Search found 849 matches

by Ocelot
Thu Apr 12, 2018 12:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Saved game woes
Replies: 2
Views: 145

Re: Saved game woes

YOu can try something like:

Code: Select all

label after_load:
    window hide
    window auto
    return
by Ocelot
Thu Apr 12, 2018 12:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Is "event" a reserved word in Renpy? [solved]
Replies: 4
Views: 356

Re: Is "event" a reserved word in Renpy?

I believe those aren't reserved words. I used them before and nothing bad happened.

events is the name of a transform property, so this might be why it is highligted (similar to xpos, align, etc.: those are not reserved too, but are highlighted too)
by Ocelot
Wed Apr 11, 2018 2:56 pm
Forum: Ren'Py Questions and Announcements
Topic: .RPY file blank after Windows update
Replies: 4
Views: 233

Re: .RPY file blank after Windows update

I answered similar question on how to get files back here: viewtopic.php?p=483167#p483167
by Ocelot
Wed Apr 11, 2018 12:34 pm
Forum: Ren'Py Questions and Announcements
Topic: save fileformat
Replies: 6
Views: 762

Re: save fileformat

You unpickle it obviously. It will result in a python object representing game state. Then you will need to figure out how RenPy works to find data you want to change. Why do you need to edit save? It is generally a bad idea to do so, as different function might expect data to not change between sav...
by Ocelot
Wed Apr 11, 2018 11:57 am
Forum: Ren'Py Questions and Announcements
Topic: save fileformat
Replies: 6
Views: 762

Re: save fileformat

It is a zip file.
extra_info, renpy_version and json are raw text, screenshot.png is png file. log is IIRC a pickled (or cPickled depending on settings) game state binary data.
by Ocelot
Mon Apr 09, 2018 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Russian languge while doing tutorial...
Replies: 4
Views: 358

Re: Russian languge while doing tutorial...

Someone mixed up translations, it seems :)
by Ocelot
Mon Apr 09, 2018 11:12 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Using a language as a variable
Replies: 8
Views: 301

Re: [SOLVED] Using a language as a variable

Ahem: viewtopic.php?p=482852#p482852

Try to avoid using is unless you really need it over ==. It is not needed often. Most often you can see it in lines like if foo is None where it is safe: None is a singleton, there is only one object None ever.
by Ocelot
Sun Apr 08, 2018 5:36 pm
Forum: Ren'Py Questions and Announcements
Topic: IF statement help (Multiple specific variable #s)
Replies: 4
Views: 217

Re: IF statement help (Multiple specific variable #s)

Yes, 3, 5, 7 are equivalent to (3, 5, 7) and form a tuple. I am always cautionous around parenthesesless expressions, because I do not trust my memory on operator priorities in different programming languages.

By the way, notice that 3 != "3". Make sure you are using correct data type.
by Ocelot
Sun Apr 08, 2018 5:22 pm
Forum: Ren'Py Questions and Announcements
Topic: IF statement help (Multiple specific variable #s)
Replies: 4
Views: 217

Re: IF statement help (Multiple specific variable #s)

Code: Select all

# Choose one:
if day == 3 or day == 5 or day == 7:
    # . . .

# Or
if day in [3, 5, 7]:
   # . . .
by Ocelot
Sun Apr 08, 2018 4:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Choice menu how to hide it until finish one route
Replies: 26
Views: 799

Re: [UnSolved]Choice menu how to hide it until finish one route

1) You didn't replace route1_seen and route2_seen with persistent versions everywhere.
2) Find the difference: https://i.imgur.com/DriOS00.png vs https://i.imgur.com/tRuoPGg.png . You forgot the jump, which actually do the skipping.
by Ocelot
Sun Apr 08, 2018 1:55 pm
Forum: Ren'Py Questions and Announcements
Topic: My uh... "script" broke.
Replies: 7
Views: 419

Re: My uh... "script" broke.

This looks like a corrupted file. I hope you did backups. If not, there still is transient chance to save your data: Got to the %AppData%/RenPy/backups/<YOUR PROJECT>/ directory. There should be one or more files named script.<LOTS OF LETTERS AND NUMBERS>.rpy . Check them. If any contains your undam...
by Ocelot
Sun Apr 08, 2018 1:16 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Choice menu how to hide it until finish one route
Replies: 26
Views: 799

Re: Choice menu how to hide it until finish one route

Well it certainly works: https://streamable.com/urwrn However it will work only on same save. If you will start a new game, then you have to start over. To avoid this, make all variables persistent. FOr my script you will need to replace route1_seen with persistent.route1_seen everywhere. Change rou...
by Ocelot
Sun Apr 08, 2018 12:20 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Choice menu how to hide it until finish one route
Replies: 26
Views: 799

Re: Choice menu how to hide it until finish one route

Oh, these should have been label route_1: / label route_2:
by Ocelot
Sun Apr 08, 2018 12:11 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a name do something?
Replies: 4
Views: 228

Re: How to make a name do something?

jump should not cause any problems here. If you are using call set_name, you just need to add return after all that. jump does not breaks return stack, so first return encountered will return you to the place of last call, no matter how many jumps were done in between.