- Apr 28, 2020
- 1,565
- 9,072
Did you know you can break a lot of RenPy games that let you name your saves, by putting brackets in the save name like, for example, the title of this thread? Well, I didn't know either until someone from Steam told us. Apparently, RenPy thinks that whatever you put in brackets is a variable used in the game and tries to find it
Well, if you're a dev and don't want your players to suffer like this, there's actually a simple fix that doesn't require creating a new screen to enter your save names or filtering the user input. And it even works if the user already broke their game
Most likely, you have this line somewhere in your
If you assign it to a variable first, RenPy will stop trying to be smart and will just show the screen with the save names as player entered them
Everything works again
Paging Stone Fox Studios, digi.B, and ZetanDS because I reproduced it on your games as well when I tried to verify it's not me being stupid and not knowing how RenPy works for once
- The input for the save name should be on the save screen. If there's another screen where you have to enter the save name, it will work fine
- Dev allows square brackets in the save name. But I've only seen a few games that don't do it
- You put square brackets with some text between them in the save name
Well, if you're a dev and don't want your players to suffer like this, there's actually a simple fix that doesn't require creating a new screen to enter your save names or filtering the user input. And it even works if the user already broke their game
Most likely, you have this line somewhere in your
file_slots
screen
Python:
text FileSaveName(slot)
Python:
$ save_name_text = FileSaveName(slot)
text "[save_name_text]":
Paging Stone Fox Studios, digi.B, and ZetanDS because I reproduced it on your games as well when I tried to verify it's not me being stupid and not knowing how RenPy works for once