[Tool] GD save file editor

Hmmm! Sorry, I don’t know how the save file keeps track of that. I really haven’t been playing GD for quite a long time now. :frowning:

Hi! Can I reset the character deaths count to 0?

Pretty sure there is a field named “death-count”. So just “set death-count 0”.

:slight_smile:

Hi, Odie. Enjoying your work – love that some items are available for editing here that aren’t in other tools. Good job.

Just wondering: what is the general logic for reading the character files? I assume there’s a byte decryption happening. Would you happen to have a list/guide as to the structure of, say, a .gdc file, for example?

Hi Nanashi!

Thanks for the encouraging words! The source code of this editor is available on github. More, specifically, GDC file format is roughly documented here: https://github.com/Odie/gd-edit/blob/a9c1618d5fec313ca25169150f6ef2be467bf0bb/src/gd_edit/gdc_reader.clj#L56

It’s a small DSL that documents the structure of the various blocks in the file. Another piece of code consumes this data to deserialize the data into nested hashmaps to be navigated/examined/altered using the kludgy editor commands.

The code might look a bit strange. It’s written in a lispy language as a learning project, so it’s extra messy in there. However, the file format DSL should give you a pretty good idea of the various blocks in the GDC file.

If you have more question, feel free to post here or PM me. =)

Hi again! Explored your code and had a glance over (a LOT of glances lol) but I still cannot figure out how the decryption is happening. The structure is similar to something I am tracing, but decryption is still beyond me (maybe because I am not familiar with Clojure – more of a C# person).

Let me PM you instead so I can describe better – not too sure what the rules are on modding the game externally.

Hello! How to open all recipes?

Recipies are not stored in the char savefile, so I assume that is not possible with this tool.

Have you tried just spawning the item?

@Odie How does it look for a java?
JAVA_HOME is set, PATH variable also set. Still I got

F:\Distr\Games\GrimDawn>java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.5+10, mixed mode)

F:\Distr\Games\GrimDawn>gd-edit.exe
This application requires a Java Runtime Environment 1.7.0

Hi, @rmsinj!

I’m using a utility called ‘launch4j’ to package the jar into an exe. It was supposed to make it more straight forward to get and run the program.

After taking a brief look at that launch4j’s source, it looks like it’s ignoring environmental variables (on windows) and looking in the registry instead.

From the looks of this issue:

AdoptOpenJDK’s installer started adding compatible regkeys as of April this year? You might want to re-run a recent installer just to make sure the right regkeys are added.

It was the latest freshly installed (afer I found out, that simply setting PATH and JAVA_HOME is not enough) :slight_smile:
Ok, at least now I know what to check & how to fix. Thanks!

Added the things to registry, it worked. Thanks.

Great, glad things worked. It’s still strange that the regkey wasn’t added by the installer. Some code was merged and several issues were closed against it.

Yeah, without your tool I literally run out of cash on retraining for 15k iron per skill point :slight_smile:

Can I set specific prefix and suffix for Conduit?

Are you talking about this item? https://www.grimtools.com/db/items/2577

The short answer is “I don’t think so”.

I don’t think the game takes into consideration of the prefix and suffix records when dealing with epic weapons. At least what I saw when I tried this briefly in the past.

They are not being displayed, but they are very much affecting the item.

I assume the tool can do this, but I have no idea how :wink:

Is that right? I’ll look into it again then. :slight_smile:

No, I mean Conduit of Whispers.