As there is almost no chance of any qrc files ever changing again, Some stuff could be hardcoded now just for earth.qrc and lines.qrc. Maybe a simple renaming script could be added to the end, to run run afterwards on the extracted files to rename them, kind of a standalone second step So no need to modify what is there now.
I have no experience with python but migh tbe able to figure out something given a few weeks
https://datatofish.com/rename-file-python/
I actually just noticed, all the file names are in the xml. Surely it is easy to use this xml to rename the files and make the folders.
I was thinking in it, first take the "id" from the xml, split it and use it for the paths, file names, and file extensions
In the code this is the only way to do it btw... i mean... inside the .qrc structure there is only 1 place where you can see the file extension, file name, and path. To extract the files with accurate names is needed to process that "id"
So... the challenge is the same for file extension, file name, and path
The easyest from them is the file extension, because is very straightforward and is not going to cause any problem
For the path and filename... well... is a bit more tricky because is needed to process the "id" string to identify the directories (with "/"), and decide if you want to extract the files in his directories or just replace the "/" by other character allowed in windows and extract all the files together (without directories)
Anway, yeah thats the next thing we need... are 3 different things, but are pretty much the same because all them involves in processing the "id" string
I wonder could we do it once manually and add a lot zero filled space in between each jpeg, that could then be used as a base for future mods, I just mean that might be easier than creating a tool that can repack any qrc dynamically, and it could be done in multiple steps and not be user friendly as it only needs to be done once.
If we was to add a round amount of space to each jpeg, like 10KB of zeroes for example, it might make the mod easier?
No, we need to respect the original .qrc structure, all the files are stored together next to each others inside a "file table"
The size of that "file table" is defined when the .qrc is created and we cant make it bigger
The only way to make the "file table" bigger is by rebuilding the .qrc structure entirelly (in other words, being able to create .qrc files from scratch)
Here are all the earth.qrc JPEGs. It seems we actually do have a good bit of space to work with, we just need to shift things around. The ground textures only take up 277KB, but the clouds take up 1.27MB, and specular is 150KB, so for example if we was to use the cloud slots for the ground, we could have 500% more space.
Yes, thats what i meant, nice calculations, from that 500% we should count only a part of it, because is not a good idea to remove the files completly... to make room is needed to replace some files by other smaller files with lower quality
As example, with the clouds, you can resize them to half the size and use a high .jpg compression, is going to cause some pixelation but probably is softened when is displayed
Also, you can increase the transparency a lot to hide the pixelation a bit... you know the density of the earth clouds could vary from day to day and in between seasons, and having a earth with very transparent clouds is ok... it would still be realistic
In earth we need clouds and that cool effect of the atmosphere layer... but for other mods like mars or moon we should reduce the visibility of atmosphere a lot because that planets doest have it (well they have a bit). And doesnt have clouds (well, in mars you can create some clouds with red dust, heheh)
Things like that should work good enought to allow us to reduce quality of some images and increase it in others
Also... keep in mind the experiments you was doing redirecting some animations to others... by doing this you are reducing the number of animations used... and as a consequence we are free to remove the images used by the disabled animations (if we patch the values in the index the firmware is not even going to notice that has been removed)
Just tried a test mod based on this idea. Seems the cloud jpgs are displayed bigger than the ground jpgs...
Anyway for a first mod it looks ok, I just injected this image a few times.
Lol, looks good, that reflection is a shame, it looks like is an sphere made of glass
Btw, the textures are mapped like in the images you uploaded to this post, right ?
https://www.psx-place.com/threads/r...ization-custom_render_plugin-earth-qrc.27756/
To me it looks like the sphere is covered with 6 "squares" (like a inflated cube)... and every face of the cube have several squared textures (lets say 4 each)
So... 6 * 4 = 24 ?
Is like that ?