[Hacking] UNDERTALE - Debug Mode, Room Codes, and FUN

Greetings, all! All... like, 3 of you? 2? F-four?! Well, however many there are, welcome to a special episode of "That Crazy Weeb is Talking to Us Again, Make Him go Away". Today, we're gonna do something different! And by different, I mean something that plenty of people people have done before: Editing files in Undertale to achieve specific results.

With the PS4 version coming out fairly soon, it's unlikely I'll play the PC version again. Not to mention, I found the folder where the game's save file and events record is kept. So, I thought it might be fun to fuck around with the game to get those weird FUN events and go to some of those weird locked off rooms, since if I break the game, eh, I'm not playing this version anymore. So, I did just that! Now, I'm gonna show you what I found, and how you can replicate these results(or just have fun) on your own! First off:

Part 1-A: What is FUN?

"fun" is a value in the undertale.ini file, located in appdata/local/UNDERTALE(not in the steam/common/undertale like you'd think). If you have started a game at all(as in you get the continue/reset/options on the main menu instead of controls and a prompt to start), undertale.ini will have a value called "fun" in it. Originally, in the older versions, this value had to be capitalized to "Fun", or the value would be useless. Now, in the current version, you don't need to capitalize fun and in fact shouldn't, as the events will happen only when it's "fun". What events, you ask? Well, strange occurrences, of course! Depending on what number your fun value is set to upon starting a game(1-100), you can experience certain events that don't happen normally. If you wanna see a specific event, you have to edit the file to the specific number(for example, the infamous extra hallway leading to the mystery man is 66), but even then you don't always have a 100% chance of seeing it, and there are even some parameters that will stop you from doing it if not in debug mode. So, even with the editing, it's not guaranteed. You'll see how that is in a little bit! No one really knows why it's called "fun". Maybe it's cuz some of the events are fun, some say it stands for "functional universe number" which would make sense given the game's themes and concepts. But who fuckin cares, let's get to it!

Part 1-B: Fun Times Underground

Some FUN events are pretty innocuous, so I don't really have any caps of them. These are: the well known "wrong number song", two phone calls you can get near the beginning of snowdin(one where Sans asks if your refrigerator is running, and one where Alphys tries to order a pizza), the word search puzzle being in "nightmare mode"(actually just a super hard version), and a weird NPC named Clam Girl appearing near Undyne and Napstablook's house in Waterfall. But what about the SPOOKY ones? Let's start off small


The first one doesn't seem too off at first. When set to 65(one less than 66???), going into the room which normally has a fishing pole in it, in Swowdin, will send you to the Sound Test Room. It says you can listen to your favorites, but all that's there is 3 songs nowhere in the game that are all 2 bars long, and one... strange song. The above, "Gaster's Theme" which plays for a little bit, locking you out of the other songs, until it switches to a screen saying "Thanks for the feedback! Be seeing you soon!". Spooky.


Next is the strange grey NPC, that looks like Monster Kid, called "Goner Kid". When fun is set to more than 90, he'll show up before the first room where  Undyne chucks spears at you like some kinda spearchucker. He'll talk about a concept familiar to people who have played Chrono Cross, and also if you bring him an umbrella he'll say that it's not raining. He's a very, strange, melancholic character that asks you to forget about him. Also, if you're in debug mode he says this:


I had to turn debug mode off to stop getting this. What a weird line.

Then, we have the 3 NPCs collectively known as "Gaster's Followers", which can be found near the elevators in Hotland and by setting fun to 61, 62, and 63 respectively.


Here we have Gaster Follwer A, a weird grey version of Donut Guy, with a severed head instead of a donut, which talks. He speaks in ryhmes and shit and is just generally unpleasant. Also? When you're done talking to him he disappears.

What in the fuck?


This weirdo is Gaster Follower B, which looks like the gingerbread man who consumes dew off the ficus in the MTT Restaurant.


He also wonders if this "Dr. Gaster" fellow's fate will befall Dr. Alphys as well.


Last we have Gaster Follwer C, who also talks about the good doctor and helps explain what happened. Also?


He says this... disturbing line. After each of these events, fun will be reset to 0, meaning you can't see them again without editing.

BUT WHO CARES ABOUT THAT, I THINK I FOUND HIM

If you set your fun to 66 as previously mentioned, a hallway will appear between the save room with the crystalized cheese, and Sans trying to trick you into the old ink on the telescope trick.

You have a 10 percent chance of it also containing a door. Fun also resets after you leave the hallway, so you'll have to just keep doing it over and over, setting it to 66. Prepare yourself. I managed to do it and this is what happened!


Oh. This is a weird NPC referred to as the Mystery Man. He has no collision and when talked to he just gets surprised and disappears. We don't know if this is actually Gaster but come on, I meannnnnn. Plus, you need to put in 66 for him to appear, and in the games data a Gaster exists as a fightable monster and is #666(ooh, edgy). Think about it. I mean who else could he be?

That's about all for the FUN events, but not all for the odd Gaster stuff. Who is this mysterious Dr? What happened to him? And why is he now able to appear without hacking? Even if it's a super slim chance it's still possible. But why? How? If he's really been erased from time and space, how can he do this? Oh well.

Part 2-A: What's Debug Mode?

Now, we'll go into debug mode. Debug mode for undertale isn't that much different from debug mode in any other game. It basically makes it so you can go anywhere and do anything with ease, with the original purpose, I assume, being to de-bug and de-glitch parts of the game, finding out what actions cause what problems and how to fix them. Now, people just do it for fun and to find secrets. If you want to, you could even easily complete a genocide route due to being able to set your HP to 999


As you can see I also changed my name to something I normally can't. I did this by undertale.ini and the save file. Make sure you do both or it won't work!

To get into debug mode there's a hex code in the game's data that needs to be changed from a 00 to a 01. Once it is, you can go on in and play. Do things like press delete in battle to give yourself 999 HP, press F7 to give yourself 500 gold(you can keep doing this), press F or P to make the game go FAAAAAAST, press F10 to turn off collision, press F9 to turn off currently playing sound(this will come in handy), and press insert and delete to teleport back and forth between rooms! It's a blast!

Part 2-B: Debuggin' Around the Under Ground

Lemme now show you some shit I did while in Debug Mode:


For one thing I gave myself MAD CASH. I was able to not only pay for Temmie to go to cool leg, but buy the Temmie Armor as well. Not that I needed it, with 999 HP. I also bought a Spider Cider and a Spider Donut from Muffet's bake sale, which both cost 9999 Gold. She didn't even fight me because of this, she just said "yeah man you donated tons of money thanks dude go on get outta here".


Oh hey look I'm already at the Castle. Turning collision off is super fun, I. CAN. FLYYYYYY. now.


Hey look I solved that nearly impossible puzzle! What, no, I didn't cheat don't be silly.


Ooooh, so THAT'S what that echoe flower says!

I was also able to get some odd results from going to the next room. See, you can do it during cutscenes, since it's not like the game has traditional cutscenes. But, you won't be able to move(which makes being able to save anywhere with S, and load anywhere with L, very helpful). I did this on accident during the scene where Toriel hugs you. I got stuck so I went back thinking I could continue the scene. No. She was stuck there, mid-gonnaopenthedoor animation, with no collision, and the door wouldn't open. So I went ahead. I went so far ahead I accidentally went out of the ruins. I went back though. From there I actually caused the cutscene where you meet Sans to happen again because I also went back and exited the ruins again, playing the cold open title sequence. Another fun time I had was jumping to the next room repeatedly in snowdin, where I accidentally ended up in Sans' room, which played the Papyrus coming in to see what the commotion is cutscene. But, I teleported out, into the Inn room where you sleep, then to the front desk of the Inn, which then had... Papyrus say the Inn Lady's dialogue, and then the rest of the dialogue he was supposed to say in Sans' room.

Wow. I wish I had gotten screencaps of that!


I also encountered the strange thing. Pressing Spacebar in the rainy area will cause your reflection to change to what appears to be Chara/The Fallen Child with shadowed eyes. This may have been meant to be a feature during the genocide route that was cut from the final game. Who knows, though.

Lastly, I RIGGITY RIGGITY REKT Omega Flowey's gay edgy ass. In debug mode, you can press page up to dim each of the Soul Lights, as if you went through the Soul Sections. Then press home to instantly deal 6000 damage to him and win. You can also keep doing it. So I did. You can do it during his victory speech where he goes LOL I GOT THE SAVE STATES because even if you do that he just loads the save state again. Ah well.

Part 3-A: Room Codes?

Now, you can also edit your save file and undertale.ini to go to specific rooms. This is good for going to see specific FUN events, but also for getting to inaccessible rooms! Now, it should be noted that most of them are blocked by a "dogcheck" value, that makes the game display the Annoying Dog when loading a save that says you're in that room. BUT, with the same hex editor used to get into debug mode, you can disable the dog check.

Then you can do this weird shit:

Part 3-B: I'm Fucking Magic, I Go Where I Want


First we have a fun little room that seems to have been cut from the game. It appears to be a bunch of little girls trying to catch bugs in grass. One of them says these weird lines. Some say it's Gaster, but it's probably Flowey, since he tends to stalk you throughout the game and disappears when spotted. Trying to leave this area crashes your game even though it's connected to normal rooms on the room list.


Then there's these 3, weird, soundless rooms you can go to. The first one has the smilin guy and the rabbit dude from Snowdin Town, who say "I don't know you" and "you should go back to snowdin". This gingerbread man who looks familiar says he's never been outside this room(probably cuz it's fuckin locked off) and asks you to tell him what's in the next room.

The next room contains the "battle won" animation for a Memory Head and then the game softlocks. Oops.


Then there's this room. You can access it from another room that's also cut from the game. There are these weird... like, blood or lava drips that smush about and when you try to talk to one, the game crashes.


Then there's a room with a weird white thing that just says Redacted in Wing Dings, which is what Gaster talks in. Maybe this is Gaster? When you leave, you get sent to the Sound Test room, and this happens:


Crash.

Actually, most of these rooms cause your game to crash, and not even from trying to leave them. One might think this is why they're blocked by dogs, but I think that's to throw you off/fuck with you/make you work harder. I don't have to work hard because people compiled this info for me already.


You know which room is most important though? This one. All this room is is Entry #17, written in Wing Dings. When it's done, the game closes. The text, when translated, reads:

ENTRY NUMBER 17

DARK, DARKER, YET DARKER
THE DARKNESS KEEPS GROWING
THE SHADOWS CUTTING DEEPER
PHOTON READINGS NEGATIVE
THIS NEXT EXPERIMENT SEEMS
VERY, VERY, INTERESTING...

WHAT DO YOU TWO THINK?

And that's it.

Actually, in general, that's it! All we got left is you learn how we do this!

Final Part: Naturally I Knows The Hacker

There are a few things you'll need:

A hex editor, I used this.
The values needed for FUN events
How the save file is structured.
What flags are which and what they're for.
This handy guide for setting up Debug Mode.
THIS handy guide for removing Dogcheck and going to inaccessible rooms.

And then? Well, let's see here:

Step 1. Go to  c:/Users/Username/AppData/Local/UNDERTALE

If you haven't set hidden files to be shown, do so before this. In this folder you will find a file named "file0". That's your save file. You'll also find a file named undertale.ini which you'll also need

Step 2. Go to undertale in your steam library, and right click it, selecting properties. Then go to the local files tab, and click on browse local files. You might also want to back up local files before you do this. You'll find data.win there. That's what you use your hex editor on.

Step 3. Follow the guides for turning on Debug Mode and removing Dogcheck.

Step 4. Edit the fun value in undertale.ini to your desired number. Then, open file0 with notepad or wordpad. Count 36 lines down, that's the one you want. That's Flag5, the fun flag, which needs to be set to the same number as the fun value in undertale.ini, or it won't work. The flags start right after your weapon and armor, as you can see in the save structure list, so if you can memorize where that is which shouldn't be hard, since there are two double digit numbers followed by 0s, you'll be able to find flag5 easily as it's the 6th line from there. Line 36, remember! You can edit your name from this file too, make sure it's ALSO both save file and undertale.ini.

Step 5. Find the room code in your save file. This one's way easier. It's the second to last line of the save file. With this, you can edit your room number! Once again, make sure you edit both save file and undertale.ini.

Step 6. Enjoy your new godlike powers.

Step 999. If you manage to break your game I hope you backed up the files. Be very careful when editing hex codes, make SURE you got the right ones or you'll change something you shouldn't.

And, well, there you go! Anything else should be easy to find out how to do with the guides and lists I linked, or if not with google. Enjoy!

Comments

  1. Ey, We need more gaster stuff, We need to explore more.................Orrrrrrrrrrr we can just do some secret room mysteries

    ReplyDelete
  2. Anonymous1/29/2022

    make a secret chara room!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    ReplyDelete

Post a Comment

Ey watchu think mang?