- Jun 10, 2017
- 11,050
- 16,390
Do not edit directly theIs it due to some obfuscation tool/code in scripts.rpa?
Code:I'm sorry, but an uncaught exception occurred. [...] File "/home/artcore/Downloads/Games/AEAC2-pc/renpy/main.py", line 357, in main renpy.loader.index_archives() [...] error: Error -3 while decompressing data: incorrect header check
rpa
files, they are binary, slightly compressed, archives.Even if you're careful, editing them with a binary editor and taking care to change a string by a string of the exact same length, the result will still have a different checksum (value that permit to know if the file have been corrupted or not).
Use unren.bat (for
You must be registered to see the links
, also exist for
You must be registered to see the links
), to both extract the scripts from the rpa
files and, if needed, "uncompress" the rpyc
files. This will give you access to the source that, then and only then, you can edit.This said, if you just want to change some style, you don't necessarily need to go this far. While the game is playing, put the mouse cursor over the part you want to change, then press
SHIFT
+ [/icode]i[/icode]. You'll get a screen like this one :You don't have permission to view the spoiler content.
Log in or register now.
You don't have permission to view the spoiler content.
Log in or register now.
Once this is done, create a file, "myStyle.rpy" by example, and fill it with your changes :
Python:
# Tell Ren'py to proceed this after the default init level, therefore
# after the original styles are defined.
init offset = 100
# This will edit the "page_label_text" style
style page_label_text:
# And change the value for its "hover_color" property.
hover_color "#FF0000"
Don't forget to keep a copy of "myStyle.rpy" somewhere, in order to just have to copy/paste it when playing the next update. And give him a more explicit name for you to remember to which game it apply.