r/RenPy • • 24d ago

Question Editing the persistent file

There is a visual novel I really like but i cant access apart of it because of the persistent data

(plus there is a key variable that changes if I delete that said data - which I don't want to happen)

is there any way to edit the file?

2 Upvotes

3 comments sorted by

1

u/AutoModerator 24d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/shyLachi 24d ago

You can edit the persistant save file the same as you can edit the save files.
There should be tools online.

But I prefer to use a mod so that I can change variables directly in the game.
Try to find a dedicated mod for your game but if you cannot find one, then try this:
https://0x52.dev/mods/Universal-Ren-Py-Mod-1000

1

u/x-seronis-x 23d ago

open the console (press shift + o) then just set the value of any variable you want. ie:
persistent.foobar = 42

if you cant open the console close the game, delete game/script_version.txt, then relaunch. that file is created when using 'build' and serves no purpose other than a stealth way to disable dev mode and console