Debug Console: Difference between revisions

From Pizza Tower Wiki
Content added Content deleted
mNo edit summary
 
(39 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{{cleanup|Some incorrect/outdated information, no images, inappropriate usage of second-person, no categories or linked from a list page, etc.}}
The Debug Console is a cheat that allows use of the console commands.


[[Image:PizzaTower-DebugConsole.png|thumb|upright|Screenshot of the debug console.]]
<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>


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.
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.


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


==Enabling==
* Adding "-debug" to the 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. 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.
* 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.


== '''Console Commands''' ==
==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.
* '''alltoppins''' - spawns 5 [[toppins]] right behind [[Peppino]].
* '''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.
* '''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. -->
* '''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. But due to an unset variable, using the command results in a crash.
* '''givekey''' - Gives a normal level key. <s>It's invisible but</s> it's functional.
* '''giveheat''' - Adds Heat to the Heat Meter, Since the Heat Meter is unused, this is useless. (Doesn't work with 'hardmode' enabled.)
* '''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.
* '''givekey''' - Gives the player a normal level key.
** Snick.exe can spawn:
* '''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.
** 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]]
*** [[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 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 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 <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 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 <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 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 <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|power-up]] 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.
*# states.knightpep - Knight transformation from [[Pizzascape]].
*# <tt>states.normal</tt> - Normal [[Peppino]].
*# <tt>states.knightpep</tt> - [[Transformations#Knight|Knight Peppino]].
*# states.firemouth - Firemouth transformation from [[Oregano Desert]].
*# <tt>states.firemouth</tt> - [[Transformations#Firemouth|Firemouth Peppino]].
*# states.cheesepep - Cheese Peppino from [[Oh Shit!]].
*# <tt>states.cheesepep</tt> - [[Transformations#Sticky_Cheese|Sticky Cheese Peppino]].
*# states.ratmount - [[Gustavo]], 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 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 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.
* '''roomcheck''' - Cycles through every room in the game. <u>'''This will wipe the Save File.'''</u>
* '''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''' - Makes the collisions Visible.
* '''showcollisions <bool>''' - Makes collisions visible.
* '''showhud true/false''' - Toggles the HUD visibility.
* '''showhud <bool>''' - Toggles whether the HUD is shown.
* '''unlock_boss_key 1/5''' - Gives you a boss key of a boss.
* '''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_toppins (level)''' - Unlocks the 5 toppins of a level.
* '''unlock_boss_key <number>''' - Unlocks the boss key of the given floor.
** '''The following are the levels with their data name respectively.'''
* '''unlock_toppins <level_name_ini>''' - Unlocks the 5 toppins of a level.
*** '''[[John Gutter]] - entrance'''
** The following are the levels with their data name respectively:
*** '''[[Pizzascape]] - medieval'''
*** '''[[Ancient Cheese]] - ruin'''
*** [[John Gutter]] - <tt>entrance</tt>
*** '''[[Bloodsauce Dungeon]] - dungeon'''
*** [[Pizzascape]] - <tt>medieval</tt>
*** '''[[Oregano Desert]] - badland'''
*** [[Ancient Cheese]] - <tt>ruin</tt>
*** '''[[Fun Farm]] - farm'''
*** [[Bloodsauce Dungeon]] - <tt>dungeon</tt>
*** '''[[Wasteyard]] - graveyard'''
*** [[Oregano Desert]] - <tt>badland</tt>
*** '''[[Fast Food Saloon]] - saloon'''
*** [[Fun Farm]] - <tt>farm</tt>
*** '''[[Crust Cove]] - plage'''
*** [[Wasteyard]] - <tt>graveyard</tt>
*** '''[[Gnome Forest]] - forest'''
*** [[Fast Food Saloon]] - <tt>saloon</tt>
*** '''[[Deep-Dish 9]] - space'''
*** [[Crust Cove]] - <tt>plage</tt>
*** '''[[Golf (Level)|Golf]] - minigolf'''
*** [[Gnome Forest]] - <tt>forest</tt>
*** '''[[The Pig City]] - street'''
*** [[Deep-Dish 9]] - <tt>space</tt>
*** '''[[Peppibot Factory]] - industrial'''
*** [[GOLF (Level)|GOLF]] - <tt>minigolf</tt>
*** '''[[Oh Shit!]] - sewer'''
*** [[The Pig City]] - <tt>street</tt>
*** [[Peppibot Factory]] - <tt>industrial</tt>
*** '''[[Refrigerator-Refrigerador-Freezerator]] - freezer'''
*** '''[[Pizzascare]] - chateau'''
*** [[Oh Shit!]] - <tt>sewer</tt>
*** [[Refrigerator-Refrigerador-Freezerator]] - <tt>freezer</tt>
*** '''[[Don't Make A Sound]] - kidsparty'''
*** '''[[WAR]] - war'''
*** [[Pizzascare]] - <tt>chateau</tt>
*** [[Don't Make A Sound]] - <tt>kidsparty</tt>
* '''throwarc''' - Unknown. Probably [[Greaseball]] related.
*** [[WAR]] - <tt>war</tt>
* '''editor''' - Teleports you to the editor. It's disabled.
* '''test_p_rank''' - Gives the player a P Rank instantly, toggles pizza time with ~50 seconds left, and gives a 99 Combo
* '''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?? -->
* '''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.
* '''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 [[Pizzahead|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 vi__FORCETOC__sible. It's not possible to leave without commands.
==Trivia==
[[Category:Misc.]]
*The "loadtest" command used to teleport you to a room and attempt to load the [[Pizzahead|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.

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.