Skip to content

Instantly share code, notes, and snippets.

View windwakr's full-sized avatar
😐
Set your status

windwakr

😐
Set your status
View GitHub Profile
@windwakr
windwakr / gm4dec.py
Last active July 24, 2023 12:57
Game Maker 4.1/4.2/4.3 decompiler
#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
@windwakr
windwakr / !nxtmodelformat
Last active May 3, 2022 23:27
Runescape 3 RS3 NXT 3D model format
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