Debug Console: Difference between revisions

From Pizza Tower Wiki
Content added Content deleted
(Fixed some misinformation about the loadtest command.)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{cleanup|Some incorrect/outdated information, no images, no categories or linked from a list page, etc.}}
{{cleanup|Some incorrect/outdated information, no images, inappropriate usage of second-person, no categories or linked from a list page, etc.}}


[[Image:PizzaTower-DebugConsole.png|thumb|upright|Screenshot of the debug console.]]
The '''debug console''' is the main developer feature used for debugging [[Pizza Tower (Video Game)|Pizza Tower]]. The debug console has existed since the [[April Build (2021)|April Patreon Build]], and has continuously been updated to add toggles that automatically change variables or alter player behaviour.


The '''Debug Console''' is the main developer feature used for debugging [[Pizza Tower (Video Game)|Pizza Tower]]. The debug console has existed since the [[April Build (2021)|April Patreon Build]], and has continuously been updated to add commands that automatically change variables or alter player behaviour.
Note that improperly using the debug console may overwrite save files with fresh save file data.


'''Improperly using the debug console may overwrite existing save data with fresh save data.'''
==Enabling the Console==
There are 2 ways to enable debug mode:


==Enabling==
* Adding "-debug" to the launch options (right click game in library > properties > launch options)
There are 3 ways to enable the console, two of which requiring [https://help.steampowered.com/en/faqs/view/7D01-D2DD-D75E-2955 changing Steam's launch options] for the game:
* 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.


* Adding "-debug" or "debug" to the Steam launch options.
==Console Commands==
* Adding more than two Steam launch options.
* '''alltoppins''' - spawns 5 [[toppins]] right behind [[Peppino]].
* Adding "-debug" to the end of a Windows shortcut path that leads to the executable file.
* '''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.
While it is enabled, pressing F5 will open the console.
* '''camera_zoom (target) (speed)''' - Zooms the camera on Peppino at a set speed.

==Commands==
* '''alltoppins''' - Gives the player all 5 [[Toppins|toppins]].
* '''bossinv <bool>''' - Toggles player health loss in boss battles. Hits taken don't count towards your Rank or the Chef Tasks. the "You hurt Peppino X Times." message still appears and being hit will still count towards your 'damage' stat.
* '''camera_zoom <targetzoom> <spd>''' - Zooms the camera on the player to the given zoom with the given speed, does not work due to an unused variable.
* '''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.
* '''editor''' - Teleports to the editor. It's disabled.
* '''editor''' - Teleports to the editor. But due to an unset variable, using the command results in a crash.
* '''giveheat''' - Adds Heat to the Heat Meter, Since the Heat Meter is unused, this is useless. (Doesn't work with 'hardmode' enabled.)
* '''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.
* '''givekey''' - Gives the player a normal level key.
* '''gateswitchmax''' - Crashes the game???
* '''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.
* '''hardmode <bool>''' - Enables the unused [[Hard Mode]] - an old version of the [[Heat Meter]] will appear and the Hard Mode Ghost (using [[Snick.exe]]'s sprite as a placeholder) will spawn and spawn random enemies every few seconds. The enemy spawn rate increases depending on how full the Heat Meter is.
** Snick.exe can spawn:
** The Hard Mode Ghost can spawn:
*** [[Cheeseslime|Cheeseslimes]]
*** [[Cheeseslime|Cheeseslimes]]
*** [[Forknight|Forknights]]
*** [[Forknight|Forknights]]
*** [[Swedish Monkey|Swedish Monkeys]]
*** [[Pencer|Pencers]]
*** [[Pencer|Pencers]]
*** [[Flying Anchovy|Flying Anchovys]]
*** [[Tribe Cheese|Tribe Cheeses]]
*** [[Bandito Chicken|Bandito Chickens]]
*** [[Pineacool|Pineacools]]
*** [[Noise Goblin|Noise Goblins]]
*** [[Noise Goblin|Noise Goblins]]
*** [[Tribe Cheese|Tribe Cheeses]]
*** [[Pickle|Pickles]]
*** [[Pickle|Pickles]]
*** [[Peppibot|Peppibots]] (only spawn as Shoulder Bash variant)
*** [[Peppibot|Peppibots]] (only the Shoulder Bash variant)
*** [[Swedish Monkey|Swedish Monkeys]]
* '''hidetiles true/false''' - Hides the tile layer.
*** [[Pineacool|Pineacools]]
* '''loadtest''' - When used, this command enables the visibility of collisions, teleports you to <tt>rm_testing</tt> 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.
*** [[Flying Anchovy|Flying Anchovys]]
*** [[Bandito Chicken|Bandito Chickens]]
* '''hidetiles <bool>''' - Hides the tile layer.
* '''kill_boss''' - Kills a boss
* '''loadtest''' - When used, this command enables the visibility of collisions, teleports you to <tt>rm_testing</tt> and switches your character to [[The Noise]] with the unused "Pogo" move-set. 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.
* '''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.
* '''noclip''' - Allows flying through the level ignoring collision. Pressing the Grab key exits no-clip mode and holding the Dash key increases flight speed. This will remove transformations and revert the player back to normal.
* '''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 <tt>rm_testing4</tt> which contains an object (<tt>obj_softlockcrash</tt>) that first stops all music, then displays an ominous sprite of [[Peppino]] (specifically <tt>spr_finaljudgement2</tt>), 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.
* '''othertest''' - Switches the player's character to [[The Noise]] using the unused "Pogo" move-set, makes collisions visible and then teleports the player to the room <tt>rm_testing4</tt> which contains an object (<tt>obj_softlockcrash</tt>) that stops all music, displays an ominous sprite of [[Peppino]] (specifically <tt>spr_finaljudgement2</tt>), then closes the game after 10 seconds. When viewing the room with modding tools, it appears to be a simple testing room for the content introduced in the Halloween Update. (Now spawns the player in a room similar to loadtest as peppino with a baddie spawner that spawns the gun from the vigilante fight)
* '''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]].
* '''panic <fill>''' - 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 de-spawn [[Pizzaface]].
* '''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_room <targetRoom> <targetDoor>''' - Teleports the player to the given room and door. Both arguments are case sensitive and entering unused rooms or supplying a non-existent door will cause problems.
* '''player_set_state''' - Changes Peppino's [[Transformations|transformation]] to one of five selectable states.
* '''player_set_state <states.state>''' - Changes the players [[Transformations|transformation]] to one of five selectable states.
*# states.normal - Normal Peppino.
*# <tt>states.normal</tt> - Normal [[Peppino]].
*# states.knightpep - Knight Peppino.
*# <tt>states.knightpep</tt> - [[Transformations#Knight|Knight Peppino]].
*# states.firemouth - Firemouth Peppino.
*# <tt>states.firemouth</tt> - [[Transformations#Firemouth|Firemouth Peppino]].
*# states.cheesepep - Sticky Cheese Peppino.
*# <tt>states.cheesepep</tt> - [[Transformations#Sticky_Cheese|Sticky Cheese Peppino]].
*# states.ratmount - [[Gustavo]], but he'll spawn without Brick.
*# <tt>states.ratmount</tt> - [[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 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.
*#*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 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|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. <u>'''Once the command is executed, it will result in the saved data becoming impossible to delete.'''</u> The only way to fix it is to go into the savedata folder and delete the file yourself.
* '''roomcheck''' - Cycles rapidly through every hub world, level, and boss 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|pizza time]]. If the player goes through the exit door, the game will send you to the ending. <u>'''Once the command is executed, it will result in the save file becoming impossible to delete in-game and pausing being impossible.'''</u> The only way to fix it is to beat a level on the save file you used the command on.
* '''set_combo (number) (time)''' - Sets the [[Combo]] Meter to a value and the time it will last.
* '''set_combo <combo> <combotime:optional>''' - Sets the players [[Combo]] and the time it will last to the given values.
* '''showcollisions true/false (or 1/0)''' - Makes the collisions Visible.
* '''showcollisions <bool>''' - Makes collisions visible.
* '''showhud true/false''' - Toggles the HUD visibility.
* '''showhud <bool>''' - Toggles whether the HUD is shown.
* '''show_debug_overlay''' - Toggles Debug Overlay.
* '''show_debug_overlay''' - Toggles Game Maker's 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.
* '''switch_char''' - Allows you to switch between Peppino and Noise freely, may cause some unintended side-effects if used in specific situations.
* '''unlock_boss_key 1-5''' - Gives the boss key for the respected boss fight.
* '''unlock_boss_key <number>''' - Unlocks the boss key of the given floor.
* '''unlock_toppins (level)''' - Unlocks the 5 toppins of a level.
* '''unlock_toppins <level_name_ini>''' - 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:
*** [[John Gutter]] - entrance
*** [[John Gutter]] - <tt>entrance</tt>
*** [[Pizzascape]] - medieval
*** [[Pizzascape]] - <tt>medieval</tt>
*** [[Ancient Cheese]] - ruin
*** [[Ancient Cheese]] - <tt>ruin</tt>
*** [[Bloodsauce Dungeon]] - dungeon
*** [[Bloodsauce Dungeon]] - <tt>dungeon</tt>
*** [[Oregano Desert]] - badland
*** [[Oregano Desert]] - <tt>badland</tt>
*** [[Fun Farm]] - farm
*** [[Fun Farm]] - <tt>farm</tt>
*** [[Wasteyard]] - graveyard
*** [[Wasteyard]] - <tt>graveyard</tt>
*** [[Fast Food Saloon]] - saloon
*** [[Fast Food Saloon]] - <tt>saloon</tt>
*** [[Crust Cove]] - plage
*** [[Crust Cove]] - <tt>plage</tt>
*** [[Gnome Forest]] - forest
*** [[Gnome Forest]] - <tt>forest</tt>
*** [[Deep-Dish 9]] - space
*** [[Deep-Dish 9]] - <tt>space</tt>
*** [[GOLF (Level)|GOLF]] - minigolf
*** [[GOLF (Level)|GOLF]] - <tt>minigolf</tt>
*** [[The Pig City]] - street
*** [[The Pig City]] - <tt>street</tt>
*** [[Peppibot Factory]] - industrial
*** [[Peppibot Factory]] - <tt>industrial</tt>
*** [[Oh Shit!]] - sewer
*** [[Oh Shit!]] - <tt>sewer</tt>
*** [[Refrigerator-Refrigerador-Freezerator]] - freezer
*** [[Refrigerator-Refrigerador-Freezerator]] - <tt>freezer</tt>
*** [[Pizzascare]] - chateau
*** [[Pizzascare]] - <tt>chateau</tt>
*** [[Don't Make A Sound]] - kidsparty
*** [[Don't Make A Sound]] - <tt>kidsparty</tt>
*** [[WAR]] - war
*** [[WAR]] - <tt>war</tt>
* '''test_p_rank''' - Gives the player a P Rank instantly, toggles pizza time with ~50 seconds left, and gives a 99 Combo
* '''throwarc''' - Unknown. Related to the variable "global.throwarc" which is only set to 1 in the player object.
* '''throwarc''' - Toggles the global variable <tt>throwarc</tt>. Though due to the <tt>throwarc</tt> variable not being used anywhere, this has no use in-game.


==Trivia==
==Trivia==
Line 82: Line 88:
**On other versions it would take you to an unused room similar to the Tower Roof where the collisions are visible.
**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.
**It was impossible to leave without commands.
*In the Halloween update, the "switch_char" command switched the player to The Noise with the unused "Pogo" move-set, with it being impossible to switch back to Peppino when using it a second time.

Latest revision as of 18:16, 26 May 2024

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, inappropriate usage of second-person, no categories or linked from a list page, etc.

Screenshot of the debug console.

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 commands that automatically change variables or alter player behaviour.

Improperly using the debug console may overwrite existing save data with fresh save data.

Enabling

There are 3 ways to enable the console, two of which requiring changing Steam's launch options for the game:

  • Adding "-debug" or "debug" to the Steam launch options.
  • Adding more than two Steam launch options.
  • Adding "-debug" to the end of a Windows shortcut path that leads to the executable file.

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

Commands

  • alltoppins - Gives the player all 5 toppins.
  • bossinv <bool> - Toggles player health loss in boss battles. Hits taken don't count towards your Rank or the Chef Tasks. the "You hurt Peppino X Times." message still appears and being hit will still count towards your 'damage' stat.
  • camera_zoom <targetzoom> <spd> - Zooms the camera on the player to the given zoom with the given speed, does not work due to an unused variable.
  • destroyice - Destroys ice blocks in Refrigerator-Refrigerador-Freezerator. Same function as the Furnaces.
  • editor - Teleports to the editor. But due to an unset variable, using the command results in a crash.
  • giveheat - Adds Heat to the Heat Meter, Since the Heat Meter is unused, this is useless. (Doesn't work with 'hardmode' enabled.)
  • givekey - Gives the player a normal level key.
  • gateswitchmax - Crashes the game???
  • hardmode <bool> - Enables the unused Hard Mode - an old version of the Heat Meter will appear and the Hard Mode Ghost (using Snick.exe's sprite as a placeholder) will spawn and spawn random enemies every few seconds. The enemy spawn rate increases depending on how full the Heat Meter is.
  • hidetiles <bool> - Hides the tile layer.
  • kill_boss - Kills a boss
  • 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" move-set. 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 exits no-clip mode and holding the Dash key increases flight speed. This will remove transformations and revert the player back to normal.
  • othertest - Switches the player's character to The Noise using the unused "Pogo" move-set, makes collisions visible and then teleports the player to the room rm_testing4 which contains an object (obj_softlockcrash) that stops all music, displays an ominous sprite of Peppino (specifically spr_finaljudgement2), then closes the game after 10 seconds. When viewing the room with modding tools, it appears to be a simple testing room for the content introduced in the Halloween Update. (Now spawns the player in a room similar to loadtest as peppino with a baddie spawner that spawns the gun from the vigilante fight)
  • panic <fill> - 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 de-spawn Pizzaface.
  • player_room <targetRoom> <targetDoor> - Teleports the player to the given room and door. Both arguments are case sensitive and entering unused rooms or supplying a non-existent door will cause problems.
  • player_set_state <states.state> - Changes the players 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 hub world, level, and boss 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 send you to the ending. Once the command is executed, it will result in the save file becoming impossible to delete in-game and pausing being impossible. The only way to fix it is to beat a level on the save file you used the command on.
  • set_combo <combo> <combotime:optional> - Sets the players Combo and the time it will last to the given values.
  • showcollisions <bool> - Makes collisions visible.
  • showhud <bool> - Toggles whether the HUD is shown.
  • show_debug_overlay - Toggles Game Maker's debug overlay.
  • switch_char - Allows you to switch between Peppino and Noise freely, may cause some unintended side-effects if used in specific situations.
  • unlock_boss_key <number> - Unlocks the boss key of the given floor.
  • unlock_toppins <level_name_ini> - Unlocks the 5 toppins of a level.
  • test_p_rank - Gives the player a P Rank instantly, toggles pizza time with ~50 seconds left, and gives a 99 Combo
  • throwarc - Toggles the global variable throwarc. Though due to the throwarc variable not being used anywhere, this has no use in-game.

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.
  • In the Halloween update, the "switch_char" command switched the player to The Noise with the unused "Pogo" move-set, with it being impossible to switch back to Peppino when using it a second time.