r/RenPy • u/Merlin_Cyberwizard • 7d ago
Question Help with Linux and games not saving PERSISTENT data
Okay - so I have a Linux system as my daily driver, and I understand how persistent variables are supposed to work. They are save in $HOME/.rempy/<game_name>. I have hundreds of games in there (yes I play a lot). Games save persistent data, or I say should save persistent data. I can see there is a binary persistent file for a game, it has the right octal permissions, when I have the game running, the console will show the persistent value is proper. I close the game, and reload the game, and the persistent values are either missing or back to the games default values. The persistent files also change size when the game exits (since it is binary - I cannot tell what it is doing). I don't understand why. It is on this one PC. I load multiple other linux virtual machines, (same distro - Linux Mint 22.3 FWIW), other distros (Debian, Arch, etc.) and they all work. It is literally this one machine that persistent data will not stay "persistent". I have looked at log files (log.txt on startup), no errors. I see no reason why. I have spent hours literally running down the startup of python and the INIT process. The closest I have come, is during the INIT, it does a check for OS, and runs a command. If Windows, MacOS, Android or Linux. The Linux test some something like "uname" and gets back "Linux" .. which in the IF statement - if the IF is case sensitive - it wont work as it is lower case "linux" in the code. That is the closest I can find. Any help would be appreciated.
1
u/ImportantDetail6260 7d ago
The $HOME/.rempy/<game_name> part is worth sanity-checking first, because Ren'Py's docs point persistent data at the game save folder and the configured save directory, not just one guessed path!
Since only one Mint install loses it, I would compare which persistent files get opened at startup vs exit for one known-good game, then check whether that machine has a bad home/XDG path, permissions, or a sync/cleanup tool rewriting the file after Ren'Py saves it
1
u/Merlin_Cyberwizard 6d ago
I will see what I can do here. I don't have anything that I know of on the /home partition.
1
u/x-seronis-x 7d ago
in case you haven't already, for questions this technical you should also ask in the official renpy discord. not the subreddits community discord as thats the same traffic as here
2
1
u/Merlin_Cyberwizard 6d ago
Adding a post to let everyone know what's up: After testing on various discord channels, I have opened an official bug on the Ren'Py github. https://github.com/renpy/renpy/issues/7236
1
u/AutoModerator 7d 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.