Search found 35 matches
- Fri Jun 10, 2022 2:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help implementing conditional compilation
- Replies: 21
- Views: 360
Re: Need help implementing conditional compilation
By "not directly in the images directory", you mean they're in subdirectories of "images", right? Yes, into chapters and scenes subdirectories. It's been working fine up until now. The documented behavior is: The image directory is named "images", and is placed under the game directory. When a file...
- Fri Jun 10, 2022 2:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help implementing conditional compilation
- Replies: 21
- Views: 360
Re: Need help implementing conditional compilation
You technically can generate image names at startup: init -999 python: # you can check existence if single .jpg file exist and set extention as you want. # if it is runtime speed problem and not game size problem, you can make a menu choice, which images you want to use # and store user choice in p...
- Fri Jun 10, 2022 1:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help implementing conditional compilation
- Replies: 21
- Views: 360
Re: Need help implementing conditional compilation
First, statements init phase statements are executed. This includes init , init python , image , define , default , transform , screen , style , translate , and other statements for which it is documented that they are run in init phase. I posted order of init statement execution earlier. Generally...
- Fri Jun 10, 2022 1:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help implementing conditional compilation
- Replies: 21
- Views: 360
Re: Need help implementing conditional compilation
Yeah, okay, it's kind of obtuse and I wish it was more clearly specified also. I *think* the rule is: show eileen_idle # implicitly looks up a file named "eileen_idle.jpg", "eileen_idle.png" or "eileen_idle.webp" show "eileen_idle.jpg" # if you quote it, must match the actual filename, though it st...
- Fri Jun 10, 2022 12:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help implementing conditional compilation
- Replies: 21
- Views: 360
Re: Need help implementing conditional compilation
Execution order is described there: https://www.renpy.org/doc/html/python.html#init-python-statement When a priority is not given, 0 is used. Init statements are run in priority order, from lowest to highest. Init statements of the same priority are run in Unicode order by filename, and then from t...
- Fri Jun 10, 2022 12:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Need help implementing conditional compilation
- Replies: 21
- Views: 360
Re: Need help implementing conditional compilation
Renpy is already pretty smart about finding images, so if you just leave off the 'jpg' and 'webp' suffixes of your 'image' declaration statements, at runtime it will find whichever version was included. Ahhh, no. Ren'Py reports "Image 'blah' not found." I ensured that the jpg files were in the same...
- Fri Jun 10, 2022 11:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: Need help implementing conditional compilation
- Replies: 21
- Views: 360
Re: Need help implementing conditional compilation
I *think* what is happening here is that 'image' statements are pulled out and run at init time, while the "if/else" statement is a runtime construct that ends up being ignored. Hence, my question about what gets loaded when. The image assignments are in a standard .rpy file; I'd expect code there ...
- Fri Jun 10, 2022 10:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: Need help implementing conditional compilation
- Replies: 21
- Views: 360
Need help implementing conditional compilation
The renpy.org docs touch on this in places, but I can't find a definitive explanation of exactly what loads, when . What I'm trying to do is implement a sort of rudimentary conditional compilation system. (With the least amount of effort, cough, cough) I've had requests for a compressed images versi...
- Fri May 27, 2022 7:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Best strategy for saving games to accomodate future versions?
- Replies: 4
- Views: 257
Re: Best strategy for saving games to accomodate future versions?
The save file includes the rollback buffer. If renpy tries to reload a game and finds the expected "current line" no longer exists, it should automatically roll back until it finds a line that *does* still exist. So really, all you need to do is change the "hey, this is a good time to save" line so...
- Fri May 27, 2022 6:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Best strategy for saving games to accomodate future versions?
- Replies: 4
- Views: 257
Best strategy for saving games to accomodate future versions?
I know this is a common problem and I've seen lots of VNs handle it different ways. I'm looking for suggestions for the best strategy. I'm in the middle of building a VN that will have 10 chapters in total. I'd like to release the first two chapters, but am at a loss as to how to prompt the user at ...
- Fri May 27, 2022 5:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "show"ing a full screen image without hiding dialog window?
- Replies: 10
- Views: 330
Re: "show"ing a full screen image without hiding dialog window?
Well, none except that I didn't realize that that syntax was possible. That's why I asked in the first place? Thanks.Ocelot wrote: ↑Fri May 27, 2022 12:33 pmIf you have to write eval and you are not writing parser, you probably doing it wrong.
What was wronh with?Code: Select all
show image1 with {'master': slowDissolve}
- Fri May 27, 2022 9:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: "show"ing a full screen image without hiding dialog window?
- Replies: 10
- Views: 330
Re: "show"ing a full screen image without hiding dialog window?
You could potentially add show window with None None being the transition to use, which being "None" will force it to use no transition at all But I want the transition. That was the impetus for the discussion. I ended up solving the problem by avoiding the high-level show command: init python: def...
- Mon May 23, 2022 11:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "show"ing a full screen image without hiding dialog window?
- Replies: 10
- Views: 330
Re: "show"ing a full screen image without hiding dialog window?
Thanks edgebug! That did it. I looked at $ renpy.transition briefly but went down a rabbit hole with show expression and forgot to swing back around to it.
- Mon May 23, 2022 11:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "show"ing a full screen image without hiding dialog window?
- Replies: 10
- Views: 330
Re: "show"ing a full screen image without hiding dialog window?
That's one of the first things I tried. It's the show statement that hides the window, and it doesn't come back until the transition finishes (in this case Dissolve(3.0)).
- Mon May 23, 2022 11:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "show"ing a full screen image without hiding dialog window?
- Replies: 10
- Views: 330
"show"ing a full screen image without hiding dialog window?
I thought this would be easy, but after a couple of hours of searching the web I'm not any wiser. I'm trying to display a sequence showing the mc falling asleep slowly while slowly progressing the dialog using extend .The full screen image sequence shows the mc slowly closing his eyes and transition...