GDTool Command Line Multi-Tool

GDTool v2026_11_03-alpha.zip (680.3 KB)

GDTool is a Grim Dawn multi-tool created by SpiderDave.

It is a command-line tool. You should open a command prompt (not Powershell). You can run the included “CMD Propt Here.cmd” to make this easier, but some knowledge of the windows command line is expected.

Status

This is alpha software. Nothing is guaranteed to work. The goal is to add many useful commands, but it may be useful to some right now.

Features

  • Automatically determine Grim Dawn folder
  • Extract various game files, and export some data to various formats, such as .png or formatted .txt files.
  • Search game files (quest text, dbr values)
  • Backup save files (local only, no cloud)

Limitiations and issues

Item Extracting

  • Item extracting does not handle duplicate names or special cases where items with the same name have different images (Beronath’s Celestial horn, gender specific set images, etc).
  • Item extracting does not yet handle non-gear items such as components and quest items.

Quest Extracting

  • Currently does not resolve references to files, tasks, etc. for example a task action might say:

    action: BeginQuestTask quests/bounties/dc/bq_dc02.qst 46CCAE00

    The file is the quest file and the 46CCAE00 is the task id. All 46CCAE00 just actually refer to the second task. Ideally this would show as:

    action: BeginQuestTask bq_dc02.qst, [2] Turn In

  • Shows some quests that aren’t yet in the game.

Lore Extracting

  • Formatted specifically for wiki pages (there will be more options in the future).
Usage:  GDTool  [opts]

Options:
  -interactive                               Interactive mode. Various options will be available with a menu interface.
  -unpackgame <folder>                       Uses archivetool.exe to extract all relevant database and resource files.
                                             The files will be extracted to "database" and "resources" relative to
                                             <folder>. If not specified, the app folder will be used (recommended).
                                             Note: This will take a long time and require up to 17.8 GB.
  -builddatabase                             Build sqlite database from unpacked files. Note: This will about 24 hours
                                             to build and the database will be about 3.04 GB in size.
  -console                                   Open sqlite console.
  -getformat <file>                          Get the format of .tex file <file>.
  -items                                     Extract all item images to .png using the item's title.
  -extracttex <file>                         Extract .tex file <file> to .png file. Supports RGB8, RGBA8,
                                             DXT1, DXT3, DXT5. Animation supported.
  -maketex <srcFile> [srcFile...] <dstFile>  Create a .tex from .png image(s).
  -format <format>                           Specify format for texture (use with -maketex). Valid formats are RGB8,
                                             RGBA8, DXT1, DXT3, DXT5.
  -fps <fps>                                 Specify FPS for animated texture (use with -maketex)
  -extractalltex                             Extract all .tex files to .png. Note: This will take hours.
  -lore                                      Dump all lore, in a format meant for the wiki.
  -gdfolder                                  Print the Grim Dawn folder.
  -opengdfolder                              Open Grim Dawn main folder in Explorer.
  -quest <file>                              Parse a quest file and display structured information.
  -exportallquests                           Parse all quest files and save structured information to output/quests.
  -findquest <text>                          Search all .qst files in records/quests for <text>.
  -finddbr <text>                            Search all .dbr files with tags resolved for <text> in value fields.
  -fixquest <file>                           Fix a broken .qst file missing its localization pointer.
  -backupsave                                Backup save files. Does not work for cloud saves. One backup per date.
                                             Subsequent saves on the same day will overwrite.
  -info                                      Display detailed GDTool version information.
  -h, -help                                  Show this help.

C:\nim\projects\GDTool>gdtool -findquest rook
[Devil's Crossing] Welcome to Devil's Crossing - quests\mq_prisonentry.qst

C:\nim\projects\GDTool>gdtool -quest resources\quests\mq_prisonentry.qst
--------------------------------------------------------------------------------
[Devil's Crossing] Welcome to Devil's Crossing
Main Quest
--------------------------------------------------------------------------------

[1] Speak to gate guard
    The inner prison of Devil's Crossing is guarded by Rook, a man loyal to Bourbon
    through and through. Now that you have proven yourself, Rook should let you
    inside. Speak to him outside the gates of Devil's Crossing.

    OnAccept:
        action: GiveToken DC_PRISON_GUARD

    Objectives:
      * Speak to Rook in order to gain entry into the inner prison
        condition: HasToken DC_PRISON_GUARD True

    OnComplete:
        action: CompleteQuest quests/mq_prisonentry.qst

        condition: IsDifficulty = Normal
        action: GiveExperience 100

        action: QuestEvent("prisonGateEntry")

        condition: IsDifficulty = Epic
        action: GiveExperience 5500

        condition: IsDifficulty = Ultimate
        action: GiveExperience 14000

Building the database takes a loooooooooong time.

New interactive mode:
image

Let me know if you find this useful or have ideas for features.

1 Like