WarlockD / GMdsam

Some junk test stuff trying to decompile GM bytecode
45 stars 5 forks source link

My Game Maker Studio Decompiler and Undertale resource thing

The code in here is my attempt to analyze and decompile the game Undertale that is currently programmed in Game Maker Studio. So far pulling any and all of the Undertale resources works fine (Including fonts, all sprite resources and info, images, audio, etc)

This also decompiles the byte code into pseudo code. It also attempts to replace raw numerical values with object instances, sprite index, function names, etc. It trys to de-optimizes some of the bytecode so the if statements come out alot cleaner.

Will this work with other Game Maker Studio games? "Maybe" as long as it uses bytecode.
Will this decompiler work with newer versions of Studio Maker or versions other than Undertale 1.0? A: Properly not. Currently it only works with GameMaker Studio 8.0 and a beta version of the bytecode

While it works there is no GUI and many hand coded stuff inside, but all you technically need is the Undertale.EXE or the data.win file and it will work.

Anyway to use:

Underdecomp data.win [-png] [-mask] [-constOffsets] [-oneFile] [-search] [chunktype|search_term]

For example, if you want all the sprites and the pngs from them, type:

Underdecomp data.win -png sprites

It will extract everything to the folder where the exe is at.