-
Notifications
You must be signed in to change notification settings - Fork 17
DevConsole Commands
This is a list of most of the DUCK HACK (DevConsole) commands. Both vanilla commands and DGR-exclusive commands are listed here, sorted by importance/usefulness.
This list excludes commands that do nothing or do something useless.
Binds a command to a hotkey to be executed when pressed
Parameters:
- action
- add <hotkey> <command>
- Adds the keybind to run <command> when <hotkey> is pressed
- remove <index>
- Removes the keybind who's index is <index>. Find the indexes from the
bind list
subcommand
- Removes the keybind who's index is <index>. Find the indexes from the
- list
- Lists out all the currently active keybinds, their indexes, and their command
- add <hotkey> <command>
Exits the game
Clears the console's text
Parameters:
- [Optional] verbose
- (true|false) - Whether or not to say that the console was cleared
Checks if you qualify as a cheater for the developer console
Modifies the game window's resolution and ScreenMode
Parameters:
- width
- height
- screenmode
- 1: Windowed
- 2: Fullscreen
- 3: Borderless
- 4: Max
Toggles windowed mode
Get or Modify config fields from the console
Parameters:
- fieldId
- The ID of the AutoConfig field
- [Optional] serializedValue
- If set, then changes the value of the specified field to the <serializedValue>
- If ignored, shows the value of the specified field
Skips the current map
Displays a list of all open Duck Game lobbies in the console, as well as the steam ID for the host of each lobby
Tries to join an online game hosted by the provided steam ID
Parameters:
- id
- The steam ID of the lobby
Repeat a command multiple times
Parameters:
- times
- The amount of times the command runs
- command
Like the [rep] command but allows you to declare a variable that'll be replaced with the current execution cycle
Parameters:
- variableName
- The string of text that will be replaced into the execution cycle. I recommend making it unique like
$var
or something so it doesnt eat your other text
- The string of text that will be replaced into the execution cycle. I recommend making it unique like
- times
- The amount of times the command runs
- command
Crashes your game
Tries to join a LAN game hosted by the provided steam ID
Parameters:
- id
- The steam ID of the lobby
Toggles the Graphics Culling optimization
Gives general help about every command
Parameters:
- [Optional] includeDescriptions
- (true|false) - Whether or not to include the description for the command
- [Optional] verboseParameters
- (true|false) - Whether or not to show the Type of the parameters, which helps in knowing what kind of value should be used
Parameters:
- duck
- The name of the player to kill
Opens the AdvancedConfig folder
Repeats the given input in the console
Parameters:
- argument
- The text to repeat (doesn't execute commands)
Toggle the activity of a Drawing Context from it's ID.
Parameters:
- id
- The ID of the drawing context, or if none is specified for the method, the name of the method
Changes the position of the Duck Game window on your screen
Parameters:
- x
- y
Debugging command that prints out the number of random level "chunks" you have in your files, as well as their file paths
Debugging command that launches another instance of Duck Game that will automatically try to connect to your LAN game. Your original instance needs to be hosting a LAN game for the new instance to join, though. Otherwise the new instance gets stuck trying to join a lobby that does not exist
Debugging command that prints out what sprites were not in the sprite atlas
Filters the DevConsole's lines based on their section(s)
Parameters:
- filter
- The name of the DCSection (the colored bit behind every command) to filter by
- Can aggregate filters with
|
as a separator
Gives the specified player a specified item
Parameters:
- Player
- The name or profile-index of the person to give the item to
- Item
- The code name of the item to give. This can be anything a duck can hold
- [Optional] Arguments
-
i
- If the item is a gun, makes it infinite -
h
- If the item is a gun, equips it in a holster -
ph
- If the item is a gun, equips it in a powered holster -
e
- If the item is a piece of equipment, equips it - NOTE: These arguments can be used together in DGR, but not in vanilla
-
Spawns a Thing at the given position
Parameters:
- x
- y
- thing
- The code name for the thing to spawn. Can be anything from items to blocks
Closes the console
Configures some things about the console
Parameters:
- subcommand
- width <new width>
- height <new height>
- scale <new scale>
- font
- size <new font size>
- <new font name>
- clear
Sets the team of the specified player
Parameters:
- Player
- The name or profile-index of the player
- TeamName
- The name of the hat of the team
Executes a method of the Duck.cs class on the specified player
Parameters:
- Player
- The name or profile-index of the player
- MethodName
- [Optional] MethodArguments
Sets the value of a field or property of the Duck.cs class on the specified player
Parameters:
- Player
- The name or profile-index of the player
- FieldName
- NewValue
Gives you a Voodoo Vincent furniture item, which skips the XP thing if placed in your room
Kills a player
Parameters:
- Player
- The player name or profile-index of the player to kill
Displays your current Frames Per Second for Duck Game
Changes the current level
Parameters:
- level
- The name of the level to change to
Fills all empty profile slots with a player
Opens the save directory in your file explorer
Opens the save directory in your file explorer
Copies the console's last 750 lines of output to your clipboard
Prints Duck Game's current memory usage
Prints your local Duck Game build ID
Prints your mod hash
Prints your Steam ID
Toggles constant sync
Toggles fancy mode. You spawn with FancyShoes every round
Toggles guides in editor for Wagnus teleport ranges
Toggles QWOP mode, similar to the modifier of the same name
Toggles shield mode. You now have health in Duck Game
Toggles the random level editor in the editor
Toggles whether or not a layer is visible. Some options include 'game', 'background', 'blocks' and 'parallax'
Parameters:
- layer
- The name of the layer to toggle
Gives you a cool hat
Visualizes the center-point of the current map
Visualizes the hitboxes of things in the level
Visualizes the outer bounds of the current map
Wipes your main Duck Game profile of all data
Makes the current profile a "Power User", which gives you access to a new set of items in the editor
Toggles whether or not angling works as it did before 1.5 or not
Plays a music track
Parameters:
- song
- The name of the music file in the game
Makes it rain random things from the sky