Debug Console: Difference between revisions

From Pizza Tower Wiki
Content added Content deleted
mNo edit summary
No edit summary
Line 1: Line 1:
The Debug Console is a cheat that allows use of the console commands.
The Debug Console allows use of the console commands.


<big>'''WARNING: Improper use of the Console can and will delete your save file. It can help you cheat stuff like achievements or ranks, ruining your experience.'''</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 Debug enabled while playing mods, since sometimes you can get stuck on walls. It's also useful when testing your own mods.
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''' ==
== Enabling the Console ==
There's 2 ways to enable debug mode:
There are 2 ways to enable debug mode:


* Adding "-debug" to the launch options
* Adding "-debug" to the 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.
* 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.


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


== '''Console Commands''' ==
== Console Commands ==


* '''alltoppins''' - spawns 5 [[toppins]] right behind [[Peppino]].
* '''alltoppins''' - spawns 5 [[toppins]] right behind [[Peppino]].
* '''bossinv true/false''' - disables the HP lost in boss battles, you'll still receive damage, but only the knockback. The hits taken don't count towards the Rankings or the Chef Tasks, but the "You hurt Peppino X Times." Still appears. <!-- I think it counts towards the damage taken stat but I don't want to say something im not sure about and i can't test it now. -->
* '''bossinv true/false''' - disables the HP lost in boss battles. The hits taken don't count towards the Rankings or the Chef Tasks, but the "You hurt Peppino X Times." still appears.<!-- I think it counts towards the damage taken stat but I don't want to say something im not sure about and i can't test it now. -->
* '''destroyice''' - Destroys ice blocks in [[Refrigerator-Refrigerador-Freezerator]]. Same function as the Furnaces.
* '''destroyice''' - Destroys ice blocks in [[Refrigerator-Refrigerador-Freezerator]]. Same function as the Furnaces.
* '''givekey''' - Gives a normal level key. <s>It's invisible but</s> it's functional.
* '''givekey''' - Gives a normal level key.
* '''hardmode true/false''' - Enables the unused Hard Mode. a [[Heat Meter|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.
* '''hardmode true/false''' - Enables the unused Hard Mode - the [[Heat Meter|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.
** Snick.exe can spawn:
** Snick.exe can spawn:
*** [[Cheeseslime|Cheeseslimes]]
*** [[Cheeseslime|Cheeseslimes]]
Line 34: Line 34:
* '''hidetiles true/false''' - Hides the tile layer.
* '''hidetiles true/false''' - Hides the tile layer.
* '''lockcam -''' Locks the camera in place. Using the command again reverts the camera to normal.
* '''lockcam -''' Locks the camera in place. Using the command again reverts the camera to normal.
* '''noclip''' - Allows you to fly through the level ignoring collision. Pressing the Grab key disables noclip and holding the Mach key makes you move faster. This will remove transformations and revert the player back to normal Peppino.
* '''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 milisecond. (for example, if you put 100, the timer will last a second) If Pizza Time was active and the command is activated, Pizza Time will end. This doesn't despawn [[Pizzaface]].
* '''panic (time)''' - Triggers Pizza Time. If time isn't specified, it lasts 5:31. If time is specified, every number is worth a milisecond. (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 <small>''[uses letters for some reason, door 1 is door A]''</small>)''' - Teleports you to a specific room and door. This is very case sensitive and will cause problems if used in unused or nonexistent rooms or doors. (you can become The Noise in one of the characterselect rooms just add A)
* '''player_room (room name) (door number <small>''[uses letters, door 1 is door A]''</small>)''' - 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 [[Transformations|power-up]] to one of five selectable states.
* '''player_set_state''' - Changes Peppino's [[Transformations|transformation]] to one of five selectable states.
*# states.normal - Normal Peppino.
*# states.normal - Normal Peppino.
*# states.knightpep - Knight transformation from [[Pizzascape]].
*# states.knightpep - Knight Peppino.
*# states.firemouth - Firemouth transformation from [[Oregano Desert]].
*# states.firemouth - Firemouth Peppino.
*# states.cheesepep - Cheese Peppino from [[Oh Shit!]].
*# states.cheesepep - Sticky Cheese Peppino.
*# states.ratmount - [[Gustavo]], he'll spawn without Brick.
*# states.ratmount - [[Gustavo]], but he'll spawn without Brick.
*#*Brick can be regained when using the command in a [[Secret Eye|secret]] room, including the [[Sound Test]], however Brick will explode 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.
*#*Brick can be regained when using the command in a [[Secret Eye|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.
*#*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 through every room in the game. <u>'''This will wipe the Save File.'''</u>
* '''roomcheck''' - Cycles through every room in the game. <u>'''This will erase the Save File.'''</u>
* '''set_combo (number) (time)''' - Sets the [[Combo]] Meter to a value and the time it will last.
* '''set_combo (number) (time)''' - Sets the [[Combo]] Meter to a value and the time it will last.
* '''showcollisions true/false''' - Makes the collisions Visible.
* '''showcollisions true/false''' - Makes the collisions Visible.
* '''showhud true/false''' - Toggles the HUD visibility.
* '''showhud true/false''' - Toggles the HUD visibility.
* '''unlock_boss_key 1/5''' - Gives you a boss key of a boss.
* '''unlock_boss_key 1-5''' - Gives a boss key.
* '''unlock_toppins (level)''' - Unlocks the 5 toppins of a level.
* '''unlock_toppins (level)''' - Unlocks the 5 toppins of a level.
** '''The following are the levels with their data name respectively.'''
** '''The following are the levels with their data name respectively.'''
Line 72: Line 72:
*** '''[[WAR]] - war'''
*** '''[[WAR]] - war'''
* '''throwarc''' - Unknown. Probably [[Greaseball]] related.
* '''throwarc''' - Unknown. Probably [[Greaseball]] related.
* '''editor''' - Teleports you to the editor. It's disabled.
* '''editor''' - Teleports to the editor. It's disabled.
* '''giveheat''' - Adds Heat to the Heat Meter. Since the Heat Meter is unused, this is useless.<!-- it may work in the hard mode heat meter?? -->
* '''giveheat''' - Adds Heat to the Heat Meter. Since the Heat Meter is unused, this is useless.<!-- it may work in the hard mode heat meter?? -->
* '''camera_zoom (target) (speed)''' - Zooms the camera on Peppino at a set speed.
* '''camera_zoom (target) (speed)''' - Zooms the camera on Peppino at a set speed.

Revision as of 09:54, 5 June 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
  • 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.

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 the "You hurt Peppino X Times." still appears.
  • 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 milisecond. (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 through every room in the game. This will erase the Save File.
  • 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.
  • unlock_boss_key 1-5 - Gives a boss key.
  • unlock_toppins (level) - Unlocks the 5 toppins of a level.
  • throwarc - Unknown. Probably Greaseball related.
  • editor - Teleports to the editor. It's disabled.
  • giveheat - Adds Heat to the Heat Meter. Since the Heat Meter is unused, this is useless.
  • 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 a unused room similar to the Tower Roof where the collisions are visible. It's not possible to leave without commands.