[Tool] GD save file editor

Hi!

Would you be open to releasing the source for this on github or something? I would love to implement custom features (in particular, I would like a way to set faction exp for all friendly/enemy factions at once) :smiley:

P.S. I PMed you, but I guess it got lost in a black hole :frowning:

Howdy!

I think this means you don’t have java 1.8 installed. x_x

Looks like the program tried to load java.time.Instant, which is a thing that was newly introduced by java 1.8 (aka java 8). Since the java virtual machine cannot locate it because it doesn’t exist with earlier versions of java, the program exits.

Or, it’s also possible some other java related configuration has gone beserk. Maybe the CLASSPATH? If you don’t know what that is, I suggest just installing/reinstalling the latest version of java from here:

https://java.com/en/download/

Howdy!

Sorry about that… For some reason, the forum doesn’t notify me when there are new private messages. =(

So… I’m a bit hesitant to open-source the editor. It’s a toy project to try to get a better sense of a language I’m trying to learn. The language is clojure, which is a variant of lisp that runs on the JVM. It’s great, but it does take a bit of effort to get into.

What I’m trying to say is… I feel the editor is poorly written and poorly organized internally, has no documentation, has almost no tests, and is written in a strange language.

With all these warnings in place, if you still want to give it a go, I don’t mind sharing the code.

=)

I think it’d be fun! I’ve never used clojure before (I assumed it was Java, but looking at the stack traces I guess it makes sense haha) but I’m always open to new languages :smiley:

I guess that’s why the other guy I messaged also never replied :frowning:

But I do, I said I have updated to the latest java in the last two posts. I will maybe try re-downloading gd-edit. Maybe mine didn’t download correctly

Okay… hopefully, re-downloading works!

Btw, when you run “java -version” at the command prompt, what does it say? I know you said you’ve updated to the latest, but I just want to see the output to definitely rule out that possibility.

My java version according to cmg

 java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode)

Tried Re-downloading GD-edit but, nadda. Going to try re-updating java; maybe it didn’t install correctly.
Edit Tried Re-updating java but, still nothing…

Howdy!

Not sure if I can offer any real help here. I guess the next thing to check is your java class path?

Try

echo %PATH%
echo %CLASSPATH%

What are the outputs for these? Maybe the CLASSPATH has been explicitly set to something where java won’t run correctly?

There ya go.

It’s a huge mess in there. Good luck!

Hi all…

Just a minor update.
The editor will now refuse to write out a save file if Grim Dawn is still running.

As always, run the “update” command whenever it is convenient for you!

Okay, sorry for answering so late - had some work through the week. So I tried it (even updated) and finally when I wrote it -
gamedir “D:\SteamLibrary\steamapps\common\Grim Dawn” - I got this:

caught exception: Map failed
java.io.ioException: Map Failed
at sun.nio.ch.FileChannelImp.map (:-1)
gd_edit.utils$map.invokestatic (utils.clj:21)

Again, it’s too long for me to write the hole of it. I checked for the files you told somebody to see if they exist - I have them. Updated java too, but when I try “java -version” it tells me there is no such command…

Hmmm…

It isn’t super clear what’s happening here. This is the first time I’ve seen this problem reported. Initial googling suggests that maybe the jvm is encountering some kind of memory allocation failure. It’s not clear why this might be happening. Is your computer running low on memory when you run gd-edit?

Let’s try to figure out the “java -version” part first. Can you issue that command at the command prompt (not in the editor)? To do this, on win 10, do:

Start menu -> type in “cmd.exe” -> start program

Once that’s started, please run “java -version” from there.

In cmd.exe :

C:\Users\User>java -version
java version “1.8.0_121”

Java™ SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot™ Client VM (build 25.121-b13, mixed mode, sharing)


About the memory use - when I try coding with the gd-edit I am running only this forum in google chrome and the program with the folders location.

I made an account here just to say thank you big time for your tool OP. Its so awesome and i actually like the command line way of editing. It saved me from redoing a character and its very easy, at least for me, to use. So thanks again. Job well done.

Thank you for the kind words!
Much appreciated!

=)

Howdy azaflip!

There’s a new build available. If you’re still interested in continuing to figure out why the program isn’t working on your machine, hopefully, this will help. This build mostly adds some logging so we can get a slightly better idea of what might be happening when the program fails.

To get started, please update to the latest version using the “update” command.

Next, please start the gd-edit and run this command:

log debug

You only need to do this once. The setting will be carried across program restarts.

Next, please exit and restart the program and run the “gamedir” command as usual. The program should have recorded some info in a file “gd-edit.log” which should be next to “gd-edit.exe”. Please send that file to me however you prefer.

Thanks!

G’day Odie,

I downloaded your tool and have read over the introduction post, I have the latest version of Java as well as your editor; my issue lies with the class commands.

I have a 32nd level Conjurer, when I check my characters class in your editor via the ‘class’ command is says None. The commands for class are only returning an error message:

class remove shaman

“shaman” doesn’t match any of the known classes

class add arcanist

“arcanist” doesn’t match any of the known classes

etc.

Now I am guessing your editor is working as intended and the issue lies with me but that being the case can you please highlight where I am going wrong as I’d very much appreciate it.

I tried alternatives such as ‘class-add arcanist’ which didn’t yield better results and I am stumped, admittedly I know as much about programming and programs in general as I do about, uh… Well other things I know bugger all about.

Howdy!

This is likely because the editor can’t find your game installation. It needs the game db file to figure out the names of the masteries.

The editor probably printed out a warning as it started up and printed where it thinks the save files and game installation is located.

To fix this, use the gamedir command like so:

gamedir "<path-to-game-installation>"

If all goes well, the “class list” command should print out all known masteries available in the game.

Once upon a time, the editor only supported the “show” and “set” command, which did not need the game db. It didn’t make sense to make the gamedir setting mandatory. Now that there are more commands that needs the game db to work properly, I should really make this required to avoid confusion. I’ll try to put that in in the next update.

Anyway, please let me know if that resolves your issue!

:slight_smile:

G’day again mate,

This is immensely embarrassing but no it didn’t work as I am not sure of how to define the installation directory, I tried typing:

gamedir e:steamlibrary/steamapps/common/Grim Dawn

Because that’s where the computer says the game is installed, at least that’s the series of folders I go via to get to the Grim Dawn folder where all the games files and .exe are located.

I also tried:

gamedir E:>steamlibrary>steamapps>common>Grim Dawn

I got the same message both time which was:

“E:>steamlibrary>steamapps>common>Grim” does not look like a game directory
Ok!

I also tried googling my issue to see if I could find guidelines on the correct format I’m meant to use when defining a file path but I did not find any useful articles.

Howdy!

Try this:

gamedir "E:\steamlibrary\steamapps\common\Grim Dawn"

Please note the quotation marks around the path. It’s probably easier to cut and paste the command into the window.