Debug Console: Difference between revisions

From Pizza Tower Wiki
Content added Content deleted
No edit summary
Line 9: Line 9:


* Adding "-debug" to the launch options (right click game in library > properties > launch options)
* Adding "-debug" to the launch options (right click game in library > properties > launch options)
* Editing the data.win. 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. (lmao dont open it in notepad, its gonna give you a ton of "mojibake")
* Editing the data.win. 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. (lmao dont open it in notepad, its gonna give you a ton of "Random Numbers")


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

Revision as of 06:40, 14 August 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 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. 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. (lmao dont open it in notepad, its gonna give you a ton of "Random Numbers")

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 hundredth of a second. (for example, 100 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.
  • 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.