It is very complicated all these methods, just use a batch file (.bat) or command (.cmd)
It is just a simple .txt file where you put the command line (without the full path) and you rename the extension to .bat or .cmd
.bat or .cmd files will serve as executable file (.exe), it will do more than just double-click it to run the software
- Place your overlay and your .exe files in a folder
- Make a .txt file with your command line :
ex/ (with dsdecmp)
DSDecmp -c lzovl overlay_0001.bin overlay_0001.bin.ovl
pause
- Save this file and rename the extension .txt into .bat or .cmd
- Place your .bat/.cmd file in a same folder (without full path of files, it's useless)
- Double-click on .bat or .cmd file and that's all
................................................................
For dsdecmp, actually, this tool has a bug
At the end of overlay (re)compressed file, you can find the full size of compressed file (in little endian)
Highlighted in blue, it is information for compression (the header)
In the red box, it is the full size of the compressed file
dsdecmp made a miscalculation on it, because it does not take into account the size of this header informations
If you want your file works, it is necessary to fix this error by adapting to the full size of the compressed file (header included)
.......................................................................................................
It is also possible to bypass the compression of overlay files by editing the index of these, located in the file "y9.bin"
In this index file, each overlay is stored on 0x20 bytes
- In red box: number of the entry in the index/number of overlay file (these 2 values are the same)
- In green box: offset where the overlay file is loaded in RAM
- In blue box: full size of overlay file uncompressed (or decompressed if is compressed)
- In orange box: full size of overlay file compressed (if the overlay file is not compressed, this value is 0x000000 or maybe uncompressed size in some cases)
- In pink box: this is a compression byte, it can be 0x00 (for uncompressed file) or "0x01, 0x02, 0x03" for a compressed file (I don't know the difference between these 3 compression values)
If you change the compression byte and the compression size, you can by-pass easily the compression of your overlay file
ex/ (with an uncompressed overlay file)
See ya all