Pizza Tower

Pizza Tower

Not enough ratings
Enabling the Console/Debug Mode
By MaxiBash
A simple guide that explains how to enable the game's console using UndertaleModTool and use the debugging features.
   
Award
Favorite
Favorited
Unfavorite
What's a Console?
There's a few debugging features that you may have seen during McPig's development progress streams, one of which is the console. The console is pretty much just a command line that allows you to toggle or trigger specific (debug) features of the game without having to set this to a keyboard key. It's not very extensive and even has a few commands that have been deprecated, but it's useful nonetheless.

PRECAUTION: BACKUP YOUR FILES!
Backup your game files and save files before proceeding. It is possible your save file gets wiped if you enter the wrong room or perform an action that starts writing stuff to your save file.

You can find your game files by going to Steam, right-clicking on the game and selecting "Browse local files". Your save file can be found under %appdata%\PizzaTower_GM2. In the case of your save file, make sure to backup your entire folder, not just saveData.ini.

Don't hold me responsible if your save file is suddenly gone. You have been warned.
Enabling the Console (Recommended Method)
The game has a startup parameter programmed that allows you to enable the console without the need for modifying the game's data.win! To enable it, simply right-click on the game's icon, go to Properties > Startup options and add the parameter -debug to enable the console.

If you're using a desktop shortcut, it's a similar story. Right-click, Properties > Path and add the -debug parameter to the very end of the line without brackets.

You're all set! Save your changes, start the game and a window should appear from the top when pressing F5.
Enabling the Console (UndertaleModTool Method)
In case you're an UndertaleModTool guru and want to have the console enabled by default for some reason, this is the method for you.

To enable the console, you'll need the latest release of UndertaleModTool. Get the latest Bleeding Edge release from here[github.com] (specifically GUI-windows-latest-isBundled-true-isSingleFile-true.zip) and extract the zip's contents when done.

Launch UndertaleModTool and select the game's data.win. It may take a while for the game to load, as there's many texture pages. After the loading window has disappeared, type in the search bar "obj_debugcontroller_Create_0". Go to the "Code" tab and select the script.

At of writing this guide, UndertaleModTool cannot decompile this script correctly. If you see an "Exception!" error, that's completely normal! Go to the "Disassembly" tab and find the fourth line of the script that reads "pushi.e 0". See the image if you're confused. Change that to 1, click anywhere outside of the text editor's window to apply the changes and save your newly edited data.win ("File > Save").



You're all set! Close UndertaleModTool and start the game.
Using the Console
There's a total of 17 working commands that you can enter in the console. To properly use any commands, remove the brackets and only enter true, false, a listed variable or a number to prevent crashes.

alltoppins - Get all the Toppin's at once during gameplay. They'll spawn right behind Peppino.
bossinv {true/false} - Make Peppino invincible during boss battles. You can still get hit, but you won't lose any health.
destroyice - Destroy all the ice objects present in the room, which'll be useful for Refrigerator-Refrigerator-Freezerator. They will stay destroyed for the remainder of the level.
givekey - Get a key. It won't show up floating around Peppino, but you can unlock locked doors.
hardmode {true/false} - Enable the (scrapped) hard mode. A scrapped variant of the Heat Meter will appear and go up as Peppino kills more enemies. Snick.exe will also spawn and roam around the player object, dropping random enemies from above. The more enemies Peppino kills, the more enemies will start spawning rapidly. Turning hard mode off will keep Snick.exe on screen, though he'll despawn if Peppino enters a different room.
hidetiles {true/false} - Hides all the tile layers present in the room.
lockcam - Locks the player camera. Use the command again to unlock it.
noclip - Disables player movement and lets you fly through walls using the arrow keys. Hold Shift to fly faster. To disable noclipping, press X.
panic {time} - Trigger Pizza Time. The default time is 5 minutes and 31 seconds. The game counts down by miliseconds, so setting the time to 10 grants you 1 second before it's Show Time. Use the command again to disable Pizza Time (this will not kill Pizzaface however).
player_room {roomname} {door A/G} - Warps Peppino to the chosen room with the chosen door
player_set_state {states.selectedstate} - Set Peppino's abilities to one of five selectable states.
  • states.normal - Regular.
  • states.knightpep - Knight Peppino from Pizzascape.
  • states.firemouth - Firemouth Peppino from Oregano Mirage.
  • states.cheesepep - Cheese Peppino from Oh Sh#t!
  • states.ratmount - Gustavo, though he'll spawn without Bricks.
roomcheck - Cycles rapidly through every room in the game to check if there's no crashes at any point. The game stops in the hub opening during Pizza Time when it's done. WARNING: This will wipe your save file.
set_combo {number} {time (optional)} - Sets your combo to the selected amount, with optionally how much time you want the combo to last. The default time is 60.
showcollisions {true/false} - Makes the collisions for solids, slopes, platforms and breakables visible.
showhud {true/false} - Toggle the HUD during gameplay.
unlock_boss_key {1/5} - Unlocks the boss key of the selected boss. The changes are saved immediately to your save file.
unlock_toppins {levelname} - Unlocks all five Toppin's for the entered level name. The changes are saved immediately to your save file.

There's also five commands that either don't work as intended or crash the game.

throwarc - Unknown. Related to the variable "global.throwarc" which is set to 1 in the player object but never set anywhere else.
editor - Teleports you to rm_editor. The command is disabled.
giveheat - Add extra heat to the Heat Meter. Unless you were to mod the Heat Meter back in, this command does nothing.
camera_zoom {targetzoom} {speed} - Set the amount and speed to zoom the camera in or out on Peppino. It doesn't seem to do anything functionality wise.
loadtest - Teleport to rm_testing4 door A with collisions enabled. This command does work correctly, but will crash the game as it attempts to load the third phase of the final boss.

TIP: If you want to Noise around, type player_room characterselect A in the console.

And of course, don't use the console to cheat or intentionally get achievements. You're only cheating yourself.
18 Comments
Doe1932 3 Nov, 2023 @ 2:02am 
idk it's kinda hard
Kawanat 27 Jul, 2023 @ 4:29pm 
hey dude thx for the commands
Qwontz 18 May, 2023 @ 6:24pm 
For those wondering about bossinv, it's the health that matters for the ranks. Bossinv just disables losing health from bosses, not getting hit, but since the game only checks for how much health you lost, just turning that on guarantees a P-rank when you defeat the boss!
StickBug 16 May, 2023 @ 7:01am 
@majima gaming i had bossinv turned on and i got hit and still got the p rank
StickBug 16 May, 2023 @ 6:58am 
as in giving the key that u get after killing bosses
StickBug 16 May, 2023 @ 6:58am 
does unlock boss key unlock new floors?
76561198414959549 6 Apr, 2023 @ 1:55pm 
Were is the file were my savefile is at i cant fine it
Time 11 Mar, 2023 @ 1:17pm 
I'm confused, If i get hit with bossinv on that should negate the p rank right?
MemeStudiosTM 21 Feb, 2023 @ 8:55am 
i actually noticed something interesting, so the other day i played around as the noise a little bit, and obviously a lot of the sprites werent finished, but just today i updated the game and decided to play it cause why not, and i did the noise again, and i actually noticed that more of his sprites have been finished, so it looks like they're still actively working on adding him back in, just thought i would point that out
xX_Di5c0D0dg3B@ll_Xx 18 Feb, 2023 @ 3:48pm 
@Trash_Bandatcoot Just figured this out, but when you jump while noclipped then noclip gets disabled.