Search found 232 matches
- Thu Apr 18, 2019 12:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Console: OverflowError thrown when trying to open console
- Replies: 5
- Views: 452
Re: Console: OverflowError thrown when trying to open console
I had this happen once. I think this can happen if your console gets overwhelmed with content, since the console tries to save previous lines. Basically, if you have a series of errors that generate a lot of lines of output, you can overwhelm an array somewhere, I think. As I recall, the way I got o...
- Thu Apr 18, 2019 12:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Call a label when a variable changes
- Replies: 2
- Views: 231
Re: Call a label when a variable changes
Rather than directly updating the value, why not call a function to update it and do the checks at the same time?
- Mon Apr 08, 2019 6:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Game saves from previous versions when adding new variables
- Replies: 5
- Views: 408
Re: Game saves from previous versions when adding new variables
If your game defines a label called “after_load”, Ren’py calls it after loading all the data from a save, but before executing any statements after the point where the save occurred. So you have access to all the data, and can make any changes you need to. When you “return”, then Ren’py resumes the ...
- Mon Apr 08, 2019 11:45 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Game saves from previous versions when adding new variables
- Replies: 5
- Views: 408
Re: Game saves from previous versions when adding new variables
There are a couple of aspects to this. First, if necessary, you can use “after_load” to fix up an old save in a new game. Store a variable that will tell you what version of the game created the save, and you can write “conversion code” if necessary. Second, and this is just personal style, I try to...
- Tue Apr 02, 2019 12:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] About Play video only once and Skip button, how?
- Replies: 8
- Views: 558
Re: About Play video only once and Skip button, how?
If you set up an “image” to reference your movie file, you can use renpy.seen_image(the_movie_image) to determine if the user already has seen the movie or not. You could use a screen that shows the movie image, optionally shows the “skip” button, and takes a duration. Call the screen with the movie...
- Sat Mar 30, 2019 12:43 pm
- Forum: Development of Ren'Py
- Topic: define setlclvar = SetLocalVariable (un expected result)
- Replies: 3
- Views: 604
Re: define setlclvar = SetLocalVariable (un expected result)
The concept of “pure” in Ren’py is “if called with the same inputs, you’ll always get the same output.” It implies that the item (function/object/whatever) doesn’t have any internal state that affects its behavior. I know that PyTom uses that information (pure or not) as an optimization when doing t...
- Thu Mar 28, 2019 11:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to check if a program is running/ on computer.
- Replies: 1
- Views: 173
Re: How to check if a program is running/ on computer.
First, this sounds like a very invasive thing to be doing. However, this is almost certainly going to require platform-specific code. To determine if something is installed, well, you could look to see if the files are in the expected place. Checking to see if something is actually running is harder...
- Wed Mar 27, 2019 12:19 pm
- Forum: Development of Ren'Py
- Topic: define setlclvar = SetLocalVariable (un expected result)
- Replies: 3
- Views: 604
Re: define setlclvar = SetLocalVariable (un expected result)
I don’t know if this has anything to do with it, but the SetLocalVariable function is marked as “not pure” in the Ren’py source code, while most other actions are marked as pure. So there may be something “special” about SetLocalVariable.
- Sat Mar 23, 2019 2:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Checking persistent data with a loop in a screen [Solved]
- Replies: 11
- Views: 610
Re: Checking persistent data with a loop in a screen (Solved)
The problem with your “while” loop approach is that you’re building an expression as a string into “checkending”, but then your “If” is just looking at the string value itself. To take the approach you’re trying to do, you’d have to force Python to actually evaluate the string as an expression. In o...
- Sat Mar 23, 2019 2:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'py support for 32-bit development environment?
- Replies: 2
- Views: 407
Re: Ren'py support for 32-bit development environment?
32-bit support was dropped for Android, because all new Android apps have to be 64-bit. But AFAIK Ren’py still generates output compatible with 32-bit Windows and Linux systems.
- Fri Mar 22, 2019 12:10 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [RESOLVED] Changing screen modality
- Replies: 4
- Views: 344
Re: Changing screen modality
Are you trying to have it look like the user clicks somewhere and dialog progresses as if the image map was still there? If so, you could call the (modal) screen, have it jump to the label, and have the label use a “scene” statement to put up the same background the screen uses. The screen will have...
- Fri Mar 22, 2019 12:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: On Hide ATL with Call Screen possible?
- Replies: 3
- Views: 368
Re: On Hide ATL with Call Screen possible?
When the action is taken that would return from the screen, you could use an array of actions, hiding the screen first, then returning. I use this as a way of having “called” screens disappear with a transition, since you can pass a transition to the Hide.
- Wed Mar 20, 2019 3:35 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Reason why screen is not showing using a conditional and renpy.show_screen()?
- Replies: 5
- Views: 361
Re: Reason why screen is not showing using a conditional and renpy.show_screen()?
Instead of screen city_map_screen: python: if day > 2: renpy.show_screen("game_gui") imagemap: why not screen city_map_screen: if day > 2: use game_gui imagemap: "use" is the "screen language way" of having one screen include another screen. https://www.renpy.org/doc/html/screens.html#use
- Wed Mar 20, 2019 3:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Which JDK to download for 7.2.0 ?
- Replies: 2
- Views: 285
Re: Which JDK to download for 7.2.0 ?
Either 8u201 or 8u202 should be fine. Note that two of those panels are for demos and samples - you don't want them. So you want the "Windows x64" package from either the first or third panels.
- Wed Mar 20, 2019 3:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: A way to color certain choices?
- Replies: 6
- Views: 412
Re: A way to color certain choices?
No, it's not that bad - I just wanted to make sure that I was heading in the direction that you wanted. The thing you have to deal with is that colors aren't specified by names - they're specified by codes. So you need to do something like what I've shown before. Essentially, I create two variables ...