Old 05-07-2016, 02:03 PM
tbarabasz tbarabasz is offline
Join Date: May 2016
Posts: 3
Default Console Commands Reference

Using the information from the Grim Dawn executable file (extracted by rorschachrev), I manually parsed the commands that can be used in the console. As it was a manual work it might/should contain errors.

To activate the console go to a custom game (it dosen't work in the main campaing) and type ~ or ' (depending on your keyboard).

Unfortunatelly I was not able to find information about the parameters received by each of this commands. Many of them work with true of false, example:
> game.PlayStats true

I really want to find out how the Exec command works and what type of scripts it can execute, if anyone finds out please let me know.

BindDown - Binds a command to key press
BindToggle - Binds a command with true/false values to toggle with key press
BindUp - Binds a command to key release
Close - Closes the console
Exec - Executes a script
Exit - Exits the game
ScreenShot - Takes a screen shot

character.AnyoneHasToken - Return true if the anyone has the token
character.ClearPlayerTokens - Remove all stored trigger tokens in the player
character.GiveTakeGold - Gives the amount specified. Negative numbers take gold away and 0 will zero out your gold.
character.GrantPlayerToken - Gives the player the specified token
character.GrantPlayerToken - Gives the player the specified token
character.LogData - Shows a variety of data above player, NPCs, monsters
character.RevokePlayerToken - Revokes the specified token from the player
character.ServerHasToken - Return true if the server has the token
character.SetPlayerInvisible - Makes it so enemies dont see the player and thus dont attack - but you can attack them
character.ShowAngerLevels - Debug info for AI
character.ShowPlayerTokens - Dumps the player's trigger tokens to the console
character.WarpCursor - Makes it so player always warps to destination

debug.physics - Shows data when things affect physics engine

game.decrementdevotion - Removes a devotion point
game.Give - Creates an object and gives it to the player
game.God - Enables or disables god mode
game.IgnoreRequirements - Allows player to equip anything regardless of requirements
game.IncrementAttribute - Gives the player an attribute point
game.incrementdevotion - Gives the player a devotion point
game.IncrementLevel - Increments the player's level
game.IncrementSkill - Gives the player a skill point
game.IncrementSkill - Increments the number of points allocated to the specified skill
game.Invincible - Toggles being invincible.
game.KillMe - Kills the player
game.LargeDumpFiles true/false - Enables or disables exporting of large dump files
game.PlayStats - Displays a variety of player stats on the screen
game.ShowCursor - Shows or hides the mouse cursor
game.ShowDynamicObstacles - ?
game.ShowErrorMessages - Shows or hides skill not ready error messages
game.ShowHud - Enables or disables the UI
game.Spawn - Creates an object at the player's location
game.Speed - Sets the game speed multiplier
game.Speed - Sets the game speed multiplier
game.Teleport - Teleports the player to the specified world space coordinates
game.Uber - Enables or disables mana loss

graphics.ReloadResources - Forces all resources to be reloaded
graphics.Stats - Enables or disables displaying a variety of stats including frame rate

sound.Stats - Enables or disables displaying a variety of sound statistics

Reply With Quote
Old 05-07-2016, 02:28 PM
rorschachrev rorschachrev is offline
Join Date: Apr 2016
Posts: 317

You can use autocomplete on files. Most arguments are an integer or series of integers. Unfortunately the debug states didn't show information I was looking for like entity ID or x y z coordinates.

"With enough eyes, all bugs are shallow." - Linus Torvalds

Part of the reason I'm willing to share is because we can solve things faster collectively.

I briefly played Titan Quest but the armor equation bothered me too much so I quit early. From my google-fu the console syntax seems to be the same, but the commands are slightly different wording. I'm sure other people out there have longer lists of console commands they used in their debugging. http://www.titanquest.net/tq-forum/t...nsole-Commands
Stasher mod for stash size increase http://www.grimdawn.com/forums/showthread.php?t=38072
Tutorials + Q&A List - Start here before new posts please http://www.grimdawn.com/forums/showthread.php?t=37919
Reply With Quote
Old 05-07-2016, 10:31 PM
Grim Dawg's Avatar
Grim Dawg Grim Dawg is offline
Join Date: Apr 2016
Posts: 65

File paths go between double quotation marks ("). On my keyboard (US layout) I have to type shift+' but the console registers this poorly so be careful. Example: game.spawn "records/items/bonusitems/bonus_summonwisp.dbr" (since we're cheating anyway)

Also, console is not capital letter sensitive.
Original string dump http://www.grimdawn.com/forums/showthread.php?t=38165
Reply With Quote
Old 07-25-2016, 10:13 AM
Spelbound's Avatar
Spelbound Spelbound is offline
Join Date: Jul 2014
Posts: 369

I somehow managed to get stuck in a wall (temp bug I'm guessing). Anyway, I can tell you that "character.WarpCursor true" and ".....false" turns this feature on and off.
Reply With Quote
Old 07-12-2018, 02:45 AM
sunbeam906 sunbeam906 is offline
Join Date: Jul 2018
Posts: 2

Sorry for the necro, but I think it deserved it.

There are 4 checks (that I counted), all indentical - - reading/checking a certain bool value from Widget::`vftable` - - that if patched (0x74 to 0xEB - JE to JMP) will allow console to work at any time: 1 when game loads and initializes the Widget (main menu), 1 when you move from main menu to game world and there are 2 more when you exit to main menu or Desktop (when destroying the Widget).

Having said that, if allowed, I may post the fix. Else, whoever needs it, PM me.

youtube + jb6M1bTtNtI (can't yet post links)


Last edited by sunbeam906; 07-12-2018 at 06:21 AM. Reason: added video
Reply With Quote
Old Yesterday, 02:16 AM
isnogud isnogud is offline
Join Date: Feb 2019
Posts: 1

Tried to send a PM, have to post 3 messages in the Forum first........
I would really like to get the console working in the main campaign......

Reply With Quote
Old Today, 11:16 AM
Elfe's Avatar
Elfe Elfe is offline
Join Date: Dec 2012
Posts: 523

If you're familar with reverse engineering, you can enable it.

Otherwise you'll have a hard time as this behaviour was not intended for the console.
Steam: Elfe
Skype: tqelfe
Reply With Quote

mod console

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Grim Dawn ©2019 Crate Entertainment, LLC.
vBulletin® 3.8.4 ©2000-2014, Jelsoft Enterprises Ltd.