Need help with UndertaleModTool?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

krzys-h
470 Stars 95 Forks GNU General Public License v3.0 1.3K Commits 176 Opened issues

Description

The most complete tool for modding, decompiling and unpacking Undertale (and other Game Maker: Studio games!)

Services available

!
?

Need anything else?

Contributors list

# 183,771
C#
decompi...
unpacke...
GameMak...
383 commits
# 210,079
C#
decompi...
unpacke...
GameMak...
263 commits
# 127,150
unoffic...
CSS
unpacke...
GameMak...
242 commits
# 247,361
C#
decompi...
unpacke...
GameMak...
161 commits
# 336,221
decompi...
unpacke...
GameMak...
CSS
40 commits
# 272,086
Discord
jda
Kotlin
C#
21 commits
# 419,935
C
C++
Shell
ffi
7 commits
# 109,363
antlr
antlr4
golang
Dart
6 commits
# 609,274
C#
decompi...
unpacke...
GameMak...
3 commits
# 498,496
Lua
Shell
unpacke...
GameMak...
3 commits
# 172,711
C++
Kotlin
Shell
unpacke...
1 commit
# 225,305
C++
Shell
fibers
Dart
1 commit
# 696,741
C#
decompi...
unpacke...
GameMak...
1 commit
# 692,117
C#
decompi...
unpacke...
GameMak...
1 commit
# 252,264
CSS
adblock...
C
chromiu...
1 commit

UndertaleModTool

(seeing such an amazing tool...
... fills you with DETERMINATION.)

Heya. I heard you like digging deep into Undertale data so I made a tool just for you!

Downloads are HERE: :pointright::pointright::pointright: https://github.com/krzys-h/UndertaleModTool/releases :pointleft::pointleft::pointleft:

Have questions? Want to talk? Join us on Discord! https://discord.gg/RxXpdwJ

flowey

Main features

  • Can read every single byte from the data file for lastest version of Undertale, Deltarune, and most other GameMaker: Studio games (GM:S 1.4 and GMS2 bytecode versions 13 to 17 are currently supported) for every platform and then recreate a byte-for-byte exact copy from the decoded data.
  • Properly handles all of the pointers in the file so that if you add/remove stuff, make things longer/shorter, move them around etc. the file format won't break.
  • An editor which lets you change (almost) every single value, including unknown ones.
  • Includes a (very) simple room/level editor.
  • Allows for code disassembly and editing. This means you can add any custom code to the game, either using the built-in GML compiler or GML assembly.
  • Experimental high-level decompiler. The output is accurate (except for the latest GameMaker versions), but it could use some more cleaning up of the high-level structures.
  • Support for running scripts that automatically modify your data file (or perform other nefarious tasks) - this is the way to distribute mods, but creating them is a manual job for now. It also serves as a replacement for sharing hex editor offsets - if you make it into a file-format-aware script instead, there is much smaller change of it breaking after an update.
  • All core IO functionality extracted into a library for use in external tools.
  • Can generate an .yydebug file for the GM:S debugger so that you can edit variables live! (see here)

Included scripts

Included are some test scripts. They are, but not limited to: * Universal: * EnableDebug: does just that, makes the global variable 'debug' be enabled at game start. If you don't know about Undertale's debug mode, check out https://tcrf.net/Undertale/Debug_Mode * DebugToggler: similar to the above, but instead toggles the debug mode on and off with F1 * GoToRoom: Replaces the debug mode functionality of the F3 button with a dialog that lets you jump to any room by ID * ShowRoomName: Displays the current room name and ID on screen in debug mode * Search: Simple search for text in decompiled code entries * Scripts to batch import and export various types of asset files. * Undertale only: * BorderEnabler: lets you import the PlayStation exclusive borders into the PC version and patches all version checks so that they display properly * testing: nothing important, just displays random text on the main menu - the first script I ever made * TTFFonts: Makes the game load fonts in TTF format from current directory instead of using the spritesheet fonts. You will need to track down all the font files yourself, I can't host them here for licensing reasons :( * RoomOfDetermination: Adds a new room to Undertale 1.08. I wanted to add something more to it but never got around to it, so I guess I'm releasing it as is. Just start the game and you'll see. Probably the most complete sample of adding stuff you'll find. * Deltarune only: * DeltaHATE: HATE-inspired script for corrupting Deltarune * DeltaMILK: Replaces every non-background sprite with the K.Round healing milk. Don't ask why. * TheWholeWorldRevolving: The world is spinning, spinning

Additionally, included are some community-made scripts. For more information, consult the SCRIPTS.md file.

Bug reports, contributing

All contributions are welcome! If you find a bug, a data file that does not load etc. please report it on the issues page. Pull requests and help with decoding the format is welcome too! Here is a current list of stuff that needs to be worked on: * Work on the profile system * Decompiler improvements * Dark mode / theming support * Add support for latest versions of GameMaker (notably, 2.3) - decompiler cannot function in most cases currently * Eventually, making the tool cross-platform if possible

Compilation Instructions

In order to compile UndertaleModTool yourself, the following dependencies are needed: * Windows (Due to WPF being used currently, this won't work on any other OS) * .NET Core 5 SDK * Any recent version of Visual Studio

After that, you can just open the

UndertaleModTool.sln
file in Visual Studio, Select
UndertaleModTool
as the project to build, and then compile.
Alternatively, you can also compile via command line, like so:
dotnet publish UndertaleModTool --no-self-contained -p:PublishSingleFile=true -c release -r win-x86
You can adjust win-x86 to other RIDs, such as win-x64 or win-arm.

data.win file format

Interested in the file and instruction format research I've done while working on this? Check out these: * https://github.com/krzys-h/UndertaleModTool/wiki/Corrections-to-GameMaker-Studio-1.4-data.win-format-and-VM-bytecode,-.yydebug-format-and-debugger-instructions * https://github.com/krzys-h/UndertaleModTool/wiki/Changes-in-GameMaker-Studio-2 * https://github.com/krzys-h/UndertaleModTool/wiki/Extensions,-Shaders,-Timelines-format * https://github.com/krzys-h/UndertaleModTool/wiki/Bytecode-version-differences * https://github.com/krzys-h/UndertaleModTool/wiki/YYC-games

Special thanks

Special thanks to everybody who did previous research on unpacking and decompiling Undertale, it was a really huge help: * https://pcy.ulyssis.be/undertale/ * https://github.com/donkeybonks/acolyte/wiki/Bytecode * https://github.com/PoroCYon/Altar.NET * https://github.com/WarlockD/GMdsam * @NarryG for helping me figure out the missing stuff for GMS2 and Nintendo Switch release * @colinator27 for lots of things, including the gml compiler, Shaders and a bunch of other stuff * @Kneesnap for improving the decompiler a bunch

And of course, special thanks to Toby Fox and the whole Undertale team for making the game(s) ;)

How about a random screenshot because I'm bad at writing READMEs? NYEH HEH HEH HEH!

screenshot

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.