Debug Console

From Pizza Tower Wiki
Revision as of 16:24, 3 January 2024 by Scaf (talk | contribs) (Fixed some misinformation about the loadtest command.)

I'll deal with it.

This article does not meet the wiki's guidelines.
You can the wiki help by editing it.
Reason: Some incorrect/outdated information, no images, no categories or linked from a list page, etc.

The debug console is the main developer feature used for debugging Pizza Tower. The debug console has existed since the April Patreon Build, and has continuously been updated to add toggles that automatically change variables or alter player behaviour.

Note that improperly using the debug console may overwrite save files with fresh save file data.

Enabling the Console

There are 2 ways to enable debug mode:

  • Adding "-debug" to the launch options (right click game in library > properties > launch options)
  • Editing the data.win with Undertale Mod Tool. Search for “obj_debugcontroller_Create_0” in the code tab and go to “Disassembly" tab to change "pushi.e 0" to "pushi.e 1" and save.

While it is active, pressing F5 will open the console.

Console Commands

  • alltoppins - spawns 5 toppins right behind Peppino.
  • bossinv true/false - disables the HP lost in boss battles. The hits taken don't count towards the Rankings or the Chef Tasks, but you need to take atleast 1 hit to use it, the "You hurt Peppino X Times." still appears and the hits will still count towards your 'damage' stat.
  • camera_zoom (target) (speed) - Zooms the camera on Peppino at a set speed.
  • destroyice - Destroys ice blocks in Refrigerator-Refrigerador-Freezerator. Same function as the Furnaces.
  • editor - Teleports to the editor. It's disabled.
  • giveheat - Adds Heat to the Heat Meter, Since the Heat Meter is unused, this is useless. (Doesn't work with 'hardmode' enabled.)
  • givekey - Gives a normal level key.
  • hardmode true/false - Enables the unused Hard Mode - the Heat meter will appear and Snick.exe will spawn and generate random enemies every once in a while. The enemies spawned will increase when the Heat meter is filled.
  • hidetiles true/false - Hides the tile layer.
  • loadtest - When used, this command enables the visibility of collisions, teleports you to rm_testing and switches your character to The Noise with the unused "pogo" moveset. A part of the Credits also appears. It's impossible to leave the room without using the debug console.
  • lockcam - Locks the camera in place. Using the command again reverts the camera to normal.
  • noclip - Allows flying through the level ignoring collision. Pressing the Grab key disables noclip and holding the Dash key increases flight speed. This will remove transformations and revert the player back to normal Peppino.
  • othertest - Switches the player's character to The Noise using the unused Pogostick Moveset, makes collisions visible and then teleports the player to the room rm_testing4 which contains an object (obj_softlockcrash) that first stops all music, then displays an ominous sprite of Peppino (specifically spr_finaljudgement2), then crashes the game after waiting for a few seconds. When viewing the room in Undertale Mod Tool (a tool that allows modification of Gamemaker Studio 2 games), it appears to be a simple testing room for the content introduced in the Halloween Update.
  • panic (time) - Triggers Pizza Time. If time isn't specified, it lasts 5:31. If time is specified, every number is worth a twelfth of a second. (for example, 12 would be 1 second) If Pizza Time was active and the command is activated, Pizza Time will end. This doesn't despawn Pizzaface.
  • player_room (room name) (door number [uses letters, door 1 is door A]) - Teleports the player to a specific room and door. This is very case sensitive and will cause problems if used in unused or nonexistent rooms or doors.
  • player_set_state - Changes Peppino's transformation to one of five selectable states.
    1. states.normal - Normal Peppino.
    2. states.knightpep - Knight Peppino.
    3. states.firemouth - Firemouth Peppino.
    4. states.cheesepep - Sticky Cheese Peppino.
    5. states.ratmount - Gustavo, but he'll spawn without Brick.
      • Brick can be regained when using the command in a secret room, including the Sound Test, however Brick will vanish once removed from Gustavo. This can be fixed in the Sound Test by taunting before removing Brick, as this makes the game think the player is supposed to be Gustavo.
      • This also allows the player to leave the sound test and when entering any door as Peppino, the player will revert to Gustavo and Brick upon exiting the door, letting the player play through any level as Gustavo and Brick.
  • roomcheck - Cycles rapidly through every playable hubworlds, levels, boss gates in the game to check if no rooms were to crash the game at any point. Once the check passes, the player will end up in the hub entrance during pizza time. If the player goes through the exit door, the game will be won and the completion will be 3% with the judgement being "You Suck!" regardless of time. Once the command is executed, it will result in the saved data becoming impossible to delete. The only way to fix it is to go into the savedata folder and delete the file yourself.
  • set_combo (number) (time) - Sets the Combo Meter to a value and the time it will last.
  • showcollisions true/false (or 1/0) - Makes the collisions Visible.
  • showhud true/false - Toggles the HUD visibility.
  • show_debug_overlay - Toggles Debug Overlay.
  • switch_char - Switches the player to The Noise with the unused Pogostick Moveset. There is currently no way to switch back to Peppino when using this command a second time.
  • unlock_boss_key 1-5 - Gives the boss key for the respected boss fight.
  • unlock_toppins (level) - Unlocks the 5 toppins of a level.
  • throwarc - Unknown. Related to the variable "global.throwarc" which is only set to 1 in the player object.

Trivia

  • The "loadtest" command used to teleport you to a room and attempt to load the Final Boss third phase, failing on some versions it crashed the game.
    • On other versions it would take you to an unused room similar to the Tower Roof where the collisions are visible.
    • It was impossible to leave without commands.