Debug Console: Difference between revisions

From Pizza Tower Wiki
Content added Content deleted
m (Expanded the "othertest" entry on the list of console commands.)
m (Minor typo fix.)
Line 3: Line 3:
<big>'''WARNING: Improper use of the Console can and will delete the save file it is used in.'''</big>
<big>'''WARNING: Improper use of the Console can and will delete the save file it is used in.'''</big>


It's recommended to have the debug console enabled while playing mods, due to issues mods can cause (for example getting stuck inside of walls).
It's recommended to not have the debug console enabled while playing mods, due to issues mods can cause (for example getting stuck inside of walls).


== Enabling the Console ==
== Enabling the Console ==

Revision as of 23:53, 13 November 2023

The Debug Console allows use of the console commands.

WARNING: Improper use of the Console can and will delete the save file it is used in.

It's recommended to not have the debug console enabled while playing mods, due to issues mods can cause (for example getting stuck inside of walls).

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.
  • destroyice - Destroys ice blocks in Refrigerator-Refrigerador-Freezerator. Same function as the Furnaces.
  • 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.
  • 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.
  • 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 - 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
  • 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.)
  • camera_zoom (target) (speed) - Zooms the camera on Peppino at a set speed.
  • loadtest - It teleports you to a room that attempts to load the Final Boss third phase, but fails on some versions, crashing the game. On others it will take you to an unused room similar to the Tower Roof where the collisions are visible. It's not possible to leave without commands.
  • 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.