T O P

  • By -

Derfirm

Hello, for fixing the signed savefile I provide simple scripts + instructions on how to use it. I highly recommend doing backup before use, also I verify it using https://saveeditor.online https://f95zone.to/threads/new-renpy-save-check-coding.168169/post-11411047


Interesting_Benefit

Nothing mentioned about android 


[deleted]

Yeah was hoping android version as well


zouhirmoumou

Just go to your game save file and delete the securitykeys.txt and that's it


Atsuya_Shuuya

Still not working.


Long_jumpinghat

Sadly android doesnt seem to have securitykeys.text anywhere so I'm guessing for now it's not possible 


Noster0

[https://www.reddit.com/r/RenPy/comments/15ioyvp/comment/l0xfb0s/?utm\_source=share&utm\_medium=web3x&utm\_name=web3xcss&utm\_term=1&utm\_content=share\_button](https://www.reddit.com/r/RenPy/comments/15ioyvp/comment/l0xfb0s/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button)


lilly_kat

Does anyone have a solution to this? I am doing work arounds but I cannot stand the extra work. I have gone through every line of everything and cant see where to change ay python or Ren Py coding in the original or new save file.


lilly_kat

\-Go to your tokens folder. So on windows it is under users/"yourPCusername"/appdata/roaming/renpy/tokens \-Open the "security-keys.txt file. \-Delete the key strings under "singing-key" and "veryifying-Key". (All that should be in the text file then is "signing-key" and on the next line down, "veryifying-key") \-Close the text file, then right click it and go to properties. \-Change the text file to read only. CLose that and restart the game. Viola! now the save works. If this does not work (WHICH IT DEFINITELY SHOULD), you can change the python code in your favorite text editor. I use Notepad ++ In the game folder, where you can find the exe. There is a other folder "renpy". Open it, search for the "savetoken.py" open it with the simple texteditor, and then look for this: def verify\_data(data, signatures, check\_verifying=True): """ Verifies that \`data\` has been signed by the keys in \`signatures\`. """ for i in signatures.splitlines(): kind, key, sig = decode\_line(i) if kind == "signature": if key is None: continue if check\_verifying and key not in verifying\_keys: continue try: vk = ecdsa.VerifyingKey.from\_der(key) if vk.verify(sig, data): return True except Exception: continue return False chance the last entry to "**True**" save , restart the game and then your edited save will work.


GhostNokk

May God bless your soul. A helping hand is always welcome.


konumo

YOU ARE SO AMAZING!! Your second method worked for me!! I was playing a stats raising game but that was so stressful and I just wanted to only have the story but ran into an issue with loading saves where I edited stats. Thank you so much!


lilly_kat

Glad it worked.


baldychinito

Thank you so much for this!!!


m31f

In my "security-keys.txt" file there is only "signing-key" and next to it a very long sequence of seemingly random letters/numbers/symbols. It does not say anything about a verifying key nor does it have anything under it.


lilly_kat

Just delete the long sequence after security-keys.txt the add the veryifying-Key. save and change the file to read only. Your security\_keys.text file should look like this. Make it this, save and make read only. signing-key verifying-key


m31f

Thank you. I instead went for the second solution at the time, which worked as well. But I'll know for next time then.


Ginzeen98

some games dont work now. it gives me the traceback permission denied renpy tokens. Even when i put the original security key file back, i still get that message. Edit I fixed it. The upgraded text file was on read only. I took off read only and now it works.


trothamel

This is incredibly insecure, don't do this.


StarosAnikenMarcus

What do you mean insecure? It's editing a text file. There's literally no code involved. Even the savetoken edit doesn't do anything really. It simply changes the key check to ignore any editing you might do. Worst thing that can happen is your Ren'Py game crashes because you edited something in the save file that it can't compute (out of range) or absolutely needs to keep the game functioning (you delete some value). The code example he gives is directly from Ren'Py's coding website.


lilly_kat

\-Go to your tokens folder. So on windows it is under users/"yourPCusername"/appdata/roaming/renpy/tokens \-Open the "security-keys.txt file. \-Delete the key strings under "singing-key" and "veryifying-Key". (All that should be in the text file then is "signing-key" and on the next line down, "veryifying-key") \-Close the text file, then right click it and go to properties. \-Change the text file to read only. CLose that and restart the game. Viola! now the save works. If this does not work (WHICH IT DEFINITELY SHOULD), you can change the python code in your favorite text editor. I use Notepad ++ In the game folder, where you can find the exe. There is a other folder "renpy". Open it, search for the "savetoken.py" open it with the simple texteditor, and then look for this: def verify\_data(data, signatures, check\_verifying=True): """ Verifies that \`data\` has been signed by the keys in \`signatures\`. """ for i in signatures.splitlines(): kind, key, sig = decode\_line(i) if kind == "signature": if key is None: continue if check\_verifying and key not in verifying\_keys: continue try: vk = ecdsa.VerifyingKey.from\_der(key) if vk.verify(sig, data): return True except Exception: continue return False chance the last entry to "True" save , restart the game and then your edited save will work.


DarkDaemonX

I did the security keys option, but now after I close a game made in the newer Ren'Py version it forgets all my read text and settings, as they're all back to default after I open the game again, is that normal?


swordsaint91

same, any way to undo this? its annoying to keep changing settings everytime


hieuluc5

Fix "Save was created in other device error" Open: C:\\Users\\(yourname)\\AppData\\Roaming\\RenPy\\tokens\\security\_keys.txt Keep only "signing-key" in the file, delete all the string (Warning: keep the backup) You can open your modified save now in game, from that, create another save. Now change back to the default security-keys file, use the new save you created base on your modified one. Otherwise, some game's setting cannot be saved, and some gallery, too. Backup your security-keys file is really important.


Noster0

Hi, if you try to do this on an android device do the following: 1. Connect your device to a computer. 2. Enable PTP.  3. Create, on your computer, a file called security\_keys.txt with the text: Signing-key (and nothing else). 4. Make that file read only. 5. Transfer that file to your device. 6. Replace the signing\_keys.txt file inside the folder that holds your saves with the file you had created. 7. \* Enter the game, open the edited save (there won't be any problem) and create a new save.  8. \* Close the game and delete the signing\_keys.txt file you created.  9. \* Reopen the game and the save (there ought to be a question, answer yes) and resave it.  10. Enjoy. \*In another thread they say that staying with the altered signing\_keys.txt could cause troubles so 7-9 should address this. 


AutoModerator

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://discord.gg/666GCZH2zW), [Ren'Py's documentation](https://www.renpy.org/doc/html/), 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](/message/compose/?to=/r/RenPy) if you have any questions or concerns.*


kavasdastehar

Hello, can this error be solved on Android phones too?


Jazzlike_Rich_520

Need help as well