Search found 2411 matches

by Ocelot
Wed May 01, 2024 12:43 am
Forum: Ren'Py Questions and Announcements
Topic: Trouble Iterating Loop
Replies: 4
Views: 174

Re: Trouble Iterating Loop

ATL ≠ RenPy Script. It is another language. You can only use ATL statements in image definitions. Python statements are not part of ATL (with a good reasons), so you cannot do that.
by Ocelot
Mon Apr 29, 2024 2:47 am
Forum: Ren'Py Questions and Announcements
Topic: Making an imagebutton move from within python function
Replies: 10
Views: 273

Re: Making an imagebutton move from within python function

(Sidenote: I don't understand how your move_testcar function is supposed to work in the context of the game, but I assume that's due to it being edited for posting here.) I am pretty sure that the intention was to move through all points from path in order. Like animating moving through the city ma...
by Ocelot
Mon Apr 29, 2024 2:43 am
Forum: Ren'Py Questions and Announcements
Topic: Unsupported Locale Setting
Replies: 2
Views: 138

Re: Unsupported Locale Setting

In short: locales on windows are broken. Older versions were using non BCP47 language names, some only allows for hyphens instead of underscores in locale names, some combinations of settings set some globabl flags that setlocale cannot change, but are incompatible with some other locales. Windows 1...
by Ocelot
Sat Apr 27, 2024 6:50 pm
Forum: Ren'Py Questions and Announcements
Topic: How to use functions defined inside screen?
Replies: 4
Views: 210

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...
by Ocelot
Sat Apr 27, 2024 12:26 pm
Forum: Ren'Py Questions and Announcements
Topic: How to use functions defined inside screen?
Replies: 4
Views: 210

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.
by Ocelot
Fri Apr 26, 2024 3:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Steam API functions other than achievements?
Replies: 4
Views: 179

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?
by Ocelot
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: 264

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...
by Ocelot
Fri Apr 26, 2024 8:10 am
Forum: Ren'Py Questions and Announcements
Topic: Steam API functions other than achievements?
Replies: 4
Views: 179

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...
by Ocelot
Tue Apr 23, 2024 1:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Using JSON for optimization?
Replies: 5
Views: 264

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...
by Ocelot
Sun Apr 21, 2024 7:10 am
Forum: Ren'Py Questions and Announcements
Topic: set_queue_empty_callback behavior
Replies: 6
Views: 361

Re: set_queue_empty_callback behavior

YOu don't set any fadeout on any tracks aside from the first one.
by Ocelot
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: 219

Re: Problems updating certain projects to Renpy 8 from Renpy ~7.5

Just don't sort lists containing unsortable things.
by Ocelot
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: 219

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...
by Ocelot
Tue Apr 16, 2024 2:04 pm
Forum: Ren'Py Questions and Announcements
Topic: set_queue_empty_callback behavior
Replies: 6
Views: 361

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.
by Ocelot
Mon Apr 15, 2024 2:01 pm
Forum: Ren'Py Questions and Announcements
Topic: set_queue_empty_callback behavior
Replies: 6
Views: 361

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...