Search found 1109 matches

by jeffster
Sun Mar 16, 2025 5:33 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Rotating Draggable
Replies: 2
Views: 39

Re: Rotating Draggable

rotations[index] += rotation_step TypeError: list indices must be integers or slices, not list This error message says that `index` variable is a list, which you can't use as index. This function def dragging(rotations, index): rotations[index] += rotation_step apparently receives a list as paramet...
by jeffster
Sat Mar 15, 2025 6:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 8.3 and Ren'Py 7.8 Released
Replies: 22
Views: 23539

Re: Ren'Py 8.3 and Ren'Py 7.8 Released

Sirifys-Al wrote: Sat Mar 15, 2025 5:49 pm By "example", do you mean a video or a test game?
See "Bug Replications"
viewtopic.php?t=20031
by jeffster
Sat Mar 15, 2025 5:21 pm
Forum: Ren'Py Questions and Announcements
Topic: How to slowly change the background in the main menu when hovering buttons?
Replies: 2
Views: 108

Re: How to slowly change the background in the main menu when hovering buttons?

Hi, I'm wondering how I can make it so that the background slowly changes when hovering over buttons and then when the cursor is removed it returns to the default one? I've been told it's done with a ConditionSwitch, but I don't know how to make it :o To change backgrounds you can use SetVariable o...
by jeffster
Sat Mar 15, 2025 5:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Trouble linking texts display of a class instance accross two different screens in GUI
Replies: 2
Views: 110

Re: Trouble linking texts display of a class instance accross two different screens in GUI

The concept is to have on the left a vpgrid filled with imagebuttons of various coins (called Numisma in the script and the game), each symbolizing the results of a plot section (ex : you receive a gold coin if you ace a test, but if you fail it you receive a copper coin). Then, I want that when th...
by jeffster
Sat Mar 15, 2025 4:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Random looping audio for background ambience?
Replies: 1
Views: 66

Re: Random looping audio for background ambience?

Looking through the docs, I noticed renpy.music.set_queue_empty_callback . This seems like a good starting point, but the docs say that specific callback function is called without any arguments, so it seems like there isn't any way to know which specific sound just ended, which would cause an issu...
by jeffster
Fri Mar 14, 2025 5:36 am
Forum: Development of Ren'Py
Topic: Object id changes between reloads leading to problems
Replies: 0
Views: 104

Object id changes between reloads leading to problems

Edit: I just realized it's the aliasing problem described here: https://renpy.org/doc/html/save_load_rollback.html#what-isn-t-saved Sorry! I can't delete this post... :( There was a post about items disappearing from inventory, and here's the essence of the problem: Append a constant object to a li...
by jeffster
Fri Mar 14, 2025 4:43 am
Forum: Ren'Py Questions and Announcements
Topic: How to save object values?
Replies: 1
Views: 132

Re: How to save object values?

Is there something I need to do when creating the object variables? The documentation https://renpy.org/doc/html/save_load_rollback.html says: "Variables set using the default statement will always be saved". It means, instead of creating variables in "python" or "init"...
by jeffster
Fri Mar 14, 2025 4:22 am
Forum: Ren'Py Questions and Announcements
Topic: Question Re Downloader for big games
Replies: 1
Views: 92

Re: Question Re Downloader for big games

as far as I can see, renpy grabs all the needed information trough the updates.json file which is basically always the same url on the server. So once new files have been uploaded, the downloader recognizes that and grabs the new files. Does that sound about right? It does. https://renpy.org/doc/ht...
by jeffster
Thu Mar 13, 2025 4:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding VERSION_INFO to executable during compile time? Ren'Py 8.3
Replies: 8
Views: 303

Re: Adding VERSION_INFO to executable during compile time? Ren'Py 8.3

If i'm not mistaken passing a variable in with that header should be whats needed, it would be a struct in C++ so its probably a list or dict in python if not a class, its actually called version_file_info in pyinstaller IIRC (no longer have it atm due to a drive crash), which is generally the Wind...
by jeffster
Thu Mar 13, 2025 2:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding VERSION_INFO to executable during compile time? Ren'Py 8.3
Replies: 8
Views: 303

Re: Adding VERSION_INFO to executable during compile time? Ren'Py 8.3

(Perhaps I have completely misunderstood your request?) I think DeVNCraft is saying that malware scanners flag Ren'Py .exe sometimes (usually without a reason), and their report might include info like "version_info" they extract from the exe file. Does renpy have any configuration variab...
by jeffster
Thu Mar 13, 2025 7:20 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to create a dynamic radial choice menu in Renpy?
Replies: 3
Views: 352

Re: How to create a dynamic radial choice menu in Renpy?

dynamic radial menu (especially calculating the segment positions based on the number of choices) Here is a much simplified version, using only one button per number of choices, rotating that button image to different positions. radial.gif A disadvantage of this method is that buttons drawn individ...
by jeffster
Wed Mar 12, 2025 3:23 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to create a dynamic radial choice menu in Renpy?
Replies: 3
Views: 352

Re: How to create a dynamic radial choice menu in Renpy?

how to make this dynamic radial menu (especially calculating the segment positions based on the number of choices) A general method could be using a CDD . Positions of buttons: n° of choices Degrees 1 0 2 0, 180 3 0, 120, 240 4 0, 90, 180, 270 5 0, 72, 144, 216, 288 6 0, 60, 120, 180, 240, 300 So t...
by jeffster
Tue Mar 11, 2025 9:44 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Surface.blit much slower in Ren'Py than PyGame
Replies: 10
Views: 3559

Re: Surface.blit much slower in Ren'Py than PyGame

Hi, Evil Snap! Thank you for an interesting and well explained research! My 2 cents: Ren'Py has no built-in way of creating a circle It's rather: there is a way, just maybe not sufficiently performant in your case (because it uses canvas . Example from https://lemmasoft.renai.us/forums/viewtopic.php...
by jeffster
Tue Mar 11, 2025 5:05 am
Forum: Ren'Py Questions and Announcements
Topic: change a variable in a image?
Replies: 3
Views: 956

Re: change a variable in a image?

image background: animation "image_name" zoom 1.1 xalign 1.0 easein 24.0 xalign 0.0 easeout 24.0 xalign 1.0 repeat As the documentation says, you can't define ATL image with parameters: https://renpy.org/doc/html/transforms.html#atl-image-statement but you can use "transform" ap...
by jeffster
Mon Mar 10, 2025 11:40 am
Forum: Ren'Py Questions and Announcements
Topic: Particle Burst - Cookbook
Replies: 10
Views: 4215

Re: Particle Burst - Cookbook

File "game/timer.rpy", line 124, in render for d in self.shown.keys(): RuntimeError: dictionary changed size during iteration The problem is here: for d in self.shown.keys(): if d < st: del(self.shown[d]) In Python 2 it worked, because "self.shown.keys()" was a list. You could i...