|
Post by Sorzo on Jun 7, 2018 9:58:20 GMT -8
How would I go about getting edited versions of Liberation Day's encoded files back into the game?
Thanks to a link provided by another user here (I believe it was Magpie), I have access to a Renpy script that extracts the various encoded files for the game, but I have no idea how to put modified versions of those copies back into the core game so that they overwrite the originals. Specifically, I'd like to have Photoshopped edits of certain CGs replace the originals. Can someone shed a bit of light on this?
Thanks!
For reference, here's the extraction script I've been using:
If that's a depack script, I suppose what I'm asking for is a repack one.
|
|
|
Post by Sorzo on Jun 8, 2018 17:55:09 GMT -8
Turns out I was looking at the problem the wrong way. Rather than trying to edit the contents of the Renpy archive, I just needed to alter the initializing statements, which are still in .rpy files outside the archive. By pointing the initializations to custom images placed in a new folder inside the game directory, I was able to achieve the desired results.
Still, there are probably mod types out there that would require editing the archive to work, so you Python geniuses out there can still free to answer the original question if you feel it would benefit the community.
|
|
|
Post by neppi on Jun 8, 2018 18:07:08 GMT -8
Turns out I was looking at the problem the wrong way. Rather than trying to edit the contents of the Renpy archive, I just needed to alter the initializing statements, which are still in .rpy files outside the archive. By pointing the initializations to custom images placed in a new folder inside the game directory, I was able to achieve the desired results. Still, there are probably mod types out there that would require editing the archive to work, so you Python geniuses out there can still free to answer the original question if you feel it would benefit the community. So you altered the .rpy directly from the game? I think its better to overwrite stuff from the outside so it doesn't create any conflicts. If you want I can look into this for you. Just write me which lines you modified, and which new code you wrote in.
|
|
|
Post by Sorzo on Jun 8, 2018 18:24:19 GMT -8
I keep a backup folder completely separate from the game directories that contains the original versions of all core files I modify. But since you're curious, I altered the following: init_cg.rpy: Lines 307-322 (inits for the second and third Chigara h-scenes, as well as all five shower scenes): changed the file each init was pointing to from the default in the archived cg folder to a new image in a mod folder in the game directory. screens.rpy: Lines 1712 and 1734: changed the thumbnail image on each line (second statement in the parentheses) to one in the aforementioned new mod folder.
The altered versions of the files are in my Tweaks thread on the Modding board.
|
|
|
Post by neppi on Jun 8, 2018 19:14:51 GMT -8
I keep a backup folder completely separate from the game directories that contains the original versions of all core files I modify. But since you're curious, I altered the following: init_cg.rpy: Lines 307-322 (inits for the second and third Chigara h-scenes, as well as all five shower scenes): changed the file each init was pointing to from the default in the archived cg folder to a new image in a mod folder in the game directory. screens.rpy: Lines 1712 and 1734: changed the thumbnail image on each line (second statement in the parentheses) to one in the aforementioned new mod folder.
The altered versions of the files are in my Tweaks thread on the Modding board.
Ok, just put the following file into your Censormod, and replacing screens.rpy and init_cg.rpy is not necessary anymore.
It is better to have the modification out of the original files because for example in screens, there are a LOT of screens, but you only modify one of them. If everyone would edit the original files, the compatibilty between mods would be much compromised, even when both of them are modifing total different things and just happen to edit the same file.
You can always overwrite stuff with higher inits in python
|
|