I've tried using config.archives like so...
Code: Select all
config.archive.append("C:\\path_to_part1\\game\\images")
config.archive.append("C:/path_to_part1/game/images")
# as well as
config.archives = [ "C:\\path_to_part1\\game\\images", "C:\\path_to_part1\\game\\audio" ]
I was able to accomplish it by using the path in environment.txt in the base directory but then it crashes due to my code files being the same for both in an archive as well.
Code: Select all
RENPY_SEARCHPATH = "C:\\path_to_part1\\game\\images"
I went so far as trying to edit the renpy script and loader files to just ignore duplicate errors and that didnt work either, honestly i'm afraid i'll break something beyond my knowledge of how ren'py works under the hood if I tried much more in that direction.
I can find the files with glob, which I can also use to find loose resources and it loads them perfectly fine from anywhere, the search path variable works and lets me load them from the archive, but nothing seems to let me do it the way I actually want it to be done...and the entire point is to keep them inside the archives for the smaller size and not change the game files.
Anyone have any idea why its not recognizing the archives...is it because the path is outside of the games base directory?
Any known workarounds for this?
I've searched everywhere and people always want to extract them, but I can't find anything on just loading them from inside the archive without maybe keeping each one as an binary data loaded that way...but the thought of all those in memory makes me think that might cause problems down the road if the size gets too big as well.