It packages this bytecode alongside game assets (sprites, audio, fonts) into a single game data file.
The most prominent, widely used, and open-source tool for this purpose is . Despite its name, UndertaleModTool is a fully functional data editor and decompiler for almost any GameMaker Studio 1.4 and GameMaker Studio 2 VM-compiled game. Key Capabilities of GMS2 Decompilers
This study examines the state of decompilation for GameMaker Studio 2 (GMS2): what GMS2 compiles into, why decompilation is hard, existing tools and approaches, technical details of bytecode and YYC, legal/ethical considerations, practical use-cases, and recommended best practices for developers to protect or recover code. Date: March 23, 2026. gamemaker studio 2 decompiler
import struct
It reads the data.win file (or equivalent bytecode files on Mac, Linux, and Android) and completely disassembles it. It packages this bytecode alongside game assets (sprites,
It translates the virtual machine bytecode back into human-readable GameMaker Language.
GameMaker Studio 2 (GMS2) is a popular game development engine used by millions of creators worldwide. While it's known for its ease of use and versatility, some developers may encounter situations where they need to access or modify the underlying code of their projects. This is where a decompiler comes in – a tool that can reverse-engineer compiled code back into its original, human-readable form. In this piece, we'll explore the concept of a GameMaker Studio 2 decompiler, its uses, and the implications of using such a tool. Key Capabilities of GMS2 Decompilers This study examines
These are command-line tools and libraries developed by the emulation and reverse-engineering community. They focus on parsing GameMaker data formats across various versions (from GameMaker 8 up to modern GMS2 versions) to extract clean assets and script structures. Legitimate Uses for a Decompiler
Aspiring developers find an interesting game mechanic (e.g., a unique shader or collision system) and want to see how it was coded. Rather than a tutorial, they seek the source truth.
Developers are human; hard drives fail, cloud backups sync incorrectly, and source control repositories get corrupted. If a developer loses their original project files but still has a compiled VM build of their game, a GMS2 decompiler can recover a massive percentage of their project, saving hundreds of hours of lost labor. 2. Modding and Localization