Search found 2407 matches
- Sat Apr 27, 2024 6:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to use functions defined inside screen?
- Replies: 4
- Views: 137
Re: How to use functions defined inside screen?
That's the beauty of the undefined behavior: anything can happen. Even that incorrect code will work. While RenPy wants python functions to be defined during init phase, it does not take any additional steps to ensure that code that violates that principle won't work. Your callback simply didn't tri...
- Sat Apr 27, 2024 12:26 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to use functions defined inside screen?
- Replies: 4
- Views: 137
Re: How to use functions defined inside screen?
It is simple: you cannot.
Function definition should happen in init phase and Screen Language does not have any way to execute code in init phase.
Function definition should happen in init phase and Screen Language does not have any way to execute code in init phase.
- Fri Apr 26, 2024 3:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Steam API functions other than achievements?
- Replies: 4
- Views: 139
Re: Steam API functions other than achievements?
It is hard to tell what exactly happens here, but is the steam support installed? Was the Steam integrated properly? Do achievements work?
- Fri Apr 26, 2024 8:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: Should I be using imagemaps or imagebutton for an interactive flowchart (zooming, mouse navigation, etc)
- Replies: 4
- Views: 229
Re: Should I be using imagemaps or imagebutton for an interactive flowchart (zooming, mouse navigation, etc)
And that is exactly the problem. If you are applying zoom to the displayable with children, they would be zoomed automatically. All children are already drawn before zoom is applied and are transformed together with the displayable. See this: https://drive.google.com/file/d/1bOui-Sx_4HbgQQ3pgNRp87y6...
- Fri Apr 26, 2024 8:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Steam API functions other than achievements?
- Replies: 4
- Views: 139
Re: Steam API functions other than achievements?
Well, firstly you are doing it wrong. SteamAPI documentation states that Member functions for ISteamApps are called through the global accessor function SteamApps(). https://partner.steamgames.com/doc/api/ISteamApps So correct way to do that would be $ achievements.steamapi.SteamApps().InstallDLC(&q...
- Tue Apr 23, 2024 1:49 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Using JSON for optimization?
- Replies: 5
- Views: 222
Re: Using JSON for optimization?
1) Memory is cheap. Unless your profiling shows that you are consuming prohibitive amount of memory, you don't have to worry. 2) YOu can do JSON loading in two ways. One is efficient, but incompatible with RenPy saving/rollback system. That will lead to problems. Other one will work with save/rollab...
- Sun Apr 21, 2024 7:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: set_queue_empty_callback behavior
- Replies: 6
- Views: 288
Re: set_queue_empty_callback behavior
YOu don't set any fadeout on any tracks aside from the first one.
- Thu Apr 18, 2024 3:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problems updating certain projects to Renpy 8 from Renpy ~7.5
- Replies: 4
- Views: 145
Re: Problems updating certain projects to Renpy 8 from Renpy ~7.5
Just don't sort lists containing unsortable things.
- Wed Apr 17, 2024 2:02 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problems updating certain projects to Renpy 8 from Renpy ~7.5
- Replies: 4
- Views: 145
Re: Problems updating certain projects to Renpy 8 from Renpy ~7.5
1) you are trying to sort a list containing dictionaries. To do that Python applies operator < to dictionaries. Support for dict comparison was experimental and undocumented (read: should not be used) in Python2 and was completely removed in Python 3. 2) I am not sure there, but it could be constant...
- Tue Apr 16, 2024 2:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: set_queue_empty_callback behavior
- Replies: 6
- Views: 288
Re: set_queue_empty_callback behavior
YOu almost got it, but instead of playing sound in callback, queue it to play right after current sound instead.
- Mon Apr 15, 2024 2:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: set_queue_empty_callback behavior
- Replies: 6
- Views: 288
Re: set_queue_empty_callback behavior
Note that empty queue callback is called when the queue becomes empty, i. e. when the last song starts playing, not when it finishes. https://www.renpy.org/doc/html/audio.html#renpy.music.set_queue_empty_callback renpy.music.set_queue_empty_callback(callback, channel='music') This sets a callback th...
- Sat Apr 13, 2024 4:09 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Making fading popups in a screen [SOLVED]
- Replies: 4
- Views: 216
Re: Making fading popups in a screen
1) Nothing after return is executed. 2) Even if would, your use of renpy.pause is likely to cause interaction withing interaction error 3) popup_cant_go = False creates a local variable which is instantly destroyed in this case. It odes not modyfy anything. Your best bet is to show a custom screen w...
- Sat Apr 13, 2024 6:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: Empty textbox shows up while using renpy.pause()
- Replies: 5
- Views: 365
Re: Empty textbox shows up while using renpy.pause()
It is this problem. Quite a few people in Discord and several on forums complained the exact same thing happened to them.
https://github.com/atom/atom/issues/11406
- Wed Apr 10, 2024 4:42 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved!] Name Generator generating twice?
- Replies: 5
- Views: 275
Re: Name Generator generating twice?
Screens should not have any side effects in their code. Screen code is run multiple times during prediction and every time screen refreshes (basically, when anything happens) and can be executed with any parameters, including those you never tried to pass. In short, move random name generation and e...
- Wed Apr 10, 2024 4:26 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Screen parameters not clearing properly
- Replies: 2
- Views: 119
Re: Screen parameters not clearing properly
Screens should not have any side effects in their code. Screen code is run multiple times during prediction and every time screen refreshes (basically, when anything happens) and can be executed with any parameters, including those you never tried to pass.