This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Game Maker 4.X decompiler | |
#for python 2.7 :^) | |
#Only tested on ~20 files | |
# | |
#As far as I can tell, there are no tools out there that actually support GM4(even if they claim to). | |
#Unlike later versions, image data is stored unencrypted. So we need to partially parse the GMD. | |
import struct | |
import io | |
import os | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Models in the cache have an lzma wrapper | |
BIG ENDIAN | |
1 byte, header 0x03 | |
1 int, compressed size? | |
1 int, decompressed size? | |
compressed data | |
The model data itself | |
LITTLE ENDIAN |