[Tool] GD save file editor

Yup. That worked. My character is 85, and it has a minimum level requirement of 94, so it wouldn’t create it.

Which is kind of weird, since you can get drops that you’re not high enough level to use in game.

Ah well. Now I know. Thanks!

Well…

In some cases, the character level will actually affect how the item is constructed. There are prefixes in the game that comes in several tiers. They had similar effects, but their potency was different. The only difference is in the level requirements they had. At the time, the most straightforward way to deal with choosing between these “different” prefixes was to take the character level into consideration.

That seems to be a source of confusion, however. Questions similar to yours has been asked several times. It also doesn’t help that the editor doesn’t say “why” the item couldn’t be generated. I’ve wanted resolve this confusing “feature” of the editor for awhile now. I’ll try to get to it soon.

=)

Howdy!

A new version is available. There are 2 changes:

  1. Item generation is faster!

How much faster? On my machine, it went from 1.4 seconds => 0.5 seconds. YMMV. =)

  1. Item generation no longer looks at your character level

When generating items, people often saw the editor reporting “Sorry, the item could not be constructed”, only to find out after posting here, that they need to somehow tell the editor to ignore their character level. This is confusing and counter-intuitive.

So now, the editor will no longer look the loaded character level. It will always try to generate the highest quality item (in terms of level requirement) it can. If it cannot do so, it just means the editor doesn’t know about that item or cannot make sense of the name.

Lastly, if you want to restrict the item generated to a specific level, the the command still accepts an optional level number like so:


set inv/0/items "some item name" 50

In this case, the editor will try to restrict the item level requirement to 50.

Well, that was a pretty good turnaround. Thanks!

Ughh, sorry for making a post like this but I can’t even get past the selecting character part.
I’ve tried so many combinations of things but it doesn’t know how to handle my commands!
It asks me to choose a character to load and then it looks like:
1> _Hoxenious <local save>

I’m not sure what part of it I have to type out and which part is a “>” or “)” because in the cmd program they both basically look alike.

Hi!

Just enter “1” and hit return.

This is the editor trying to present a number of choices for you to choose from. If you had more characters, it should all be shown in that list, sorted alphabetically, each line starting with a different heading, numbered 1, 2, 3, etc.

You can choose from that menu by entering the heading number or letter, then hit enter to send/your choice to the editor for processing.

Please do check out the first post in the thread. It goes over some of the basics of using the editor. :slight_smile:

Hope that helps!

Is it possible to change an item’s stats using this editor?
Look at the 2 screenshots I’ve attached. The first one shows the output for the show weapon-sets/0/items/1 command.
The basic properties (attached…unknown) can be set. What about the others?
Look at the second screenshot. How could I change for example itemLevel?

Alternatively, is it possible to generate a specific item (without prefixes or suffixes aka a legendary item) with specific stats?

Unfortunately, this isn’t possible. All the stats of an item is defined in the game’s db records. For example, you can see the basename, prefix-name, and suffix-name fields look like file paths. The editor actually also pulls up those references records for you to look at. However, it’s not possible to change the contents of the db records. They are static data that’s share across all items in the game.

The only way to alter an item is to change up the base, prefix, and suffix combinations.

You can ask the editor for any item by name, including legenaries, etc. As mentioned above, it’s not possible to tweak (add, remove, change) the gear further this way.

That said, you might want to try manually attaching prefix and/or suffix to a legendary gear to get a super buffed version of said gear. You also might be able to coerce the editor to generate these kind of items for you, though I have not personally tried any of these things. X)

A reference has a fixed set of stats, like a template. How does the game know to randomize the values of various properties and where does it store the actual randomized values then?

Right. With every item, you’ll see a “seed” field, which is presumably what is used to initialize an RNG before going through all stats for some “tweaking” within a predefined reasonable range. Thats a very resonable way to create variations on a piece of gear. You can try this just by assigning a different value to the seed field and see the stats change in the game.

The randomized values are generated and presumably stored in memory to be used during various calculations. Those numbers don’t need to be stored on disk anywhere. The same stats can always be derived again by using that seed value stored with the item.

Lastly, in case it isn’t clear. It’s hard to get true randomness in computer systems. Typical RNGs required some initial seed value. From that point on, it performs deterministic operations (basic math ops) to derive a new “random number” when you ask it for one. This means if you know the seed value, you can always derive the same sequence of numbers every time. This isn’t so great for cryptography, but it’s great for procedurally generated content. :slight_smile:

You’re probably right. I somehow missed your FAQ here lol: https://odie.github.io/gd-edit-docs/faq/. You actually mention that items can’t be edited (directly).
Nice explanation on the RNG part. It makes sense to me especially, since I’m coming from a computer science background.
By the way, every time I start the editor, I get the error in the attached image. Any idea why?
It still seems to work after, but I’m wondering if it wouldn’t mess up the save if I try to write.

Hmm, I’ve gotten those errors in the past also. It’s extra strange because it has stopped happening on my end. Apparently, this happens when java doesn’t like an ssl cert as it follows various redirects to get to a data file that tells the editor if a new update is available.

Anyway, I’ll try tracking it down at some point.

=)

Hello,

I tried adding Lokarr’s set to my character but it didn’t work.I get a message “Sorry, the item could not be constructed” . I successfully added other items but this set doesn’t work.Am I doing something wrong?

Greetings just curious about item spawning is it possible to spawn items like consumables many times in 1 command? for example you’re going to spawn 20 potions so are you going to type the item spawn command 20 times? or there is a command that can spawn 20 potions or sort of like that…

Howdy!

This version is now able to generate items in Lokarr’s set (or any other item whose definition is hiding under ‘records/storyelements/signs’).

=)

Howdy!

It’s possible to do this, but it’ll require multiple commands. =(

For example… on one of my characters, I can do:


> set inv/0/items "tonic of mending"
... <output omitted> ...

> show inv/0/items
... <lots of output> ...
80: Tonic of Mending

                       X : 8
                       Y : 7
            augment-name : ""
            augment-seed : 0
                basename : records/items/misc/potions/potion_healtha03.dbr
           modifier-name : ""
             prefix-name : ""
             relic-bonus : ""
  relic-completion-level : 0
              relic-name : ""
              relic-seed : 0
                    seed : 49972033
             stack-count : 1
             suffix-name : ""
          transmute-name : ""
                 unknown : 0
                    var1 : 0

> set inv/0/items/80/stack-count 99

The first command gives the character a single health potion. The second one lists the entire inventory/bag the item was added to. The potion should be the very last item. Next to the item name “Tonic of Mending”, the editor lists that the item is at slot 80. The very last changes the “stack-count” to 99 for the item that is in slot 80.

Hope that helps!

Just a message to Odie!

When I started the app, I was redirected to Java DL page (Version 8.x), it happened to auto-select the 64-bit version… that one doesn’t work (in my case with a 64-bit windows 7).

I uninstalled the 64 bit Java and manually installed the 32 bit version, presto it works now!

Didn’t have to change path (gamedir or savedir) even though it’s a GOG version transferred to a different drive using “Steammover”.

P.S. If i mistype an item (Vizor instead of visor it still recognizes it, is that a (welcome) feature? :smiley:

Hmm! That’s quite strange. I don’t think I’ve ever tested on the 32 bit java vm before and have no idea why the 64 bit version didn’t work. I’ll see if I can replicate the issue you encountered. I’m glad that it’s working for you though. :slight_smile:

Didn’t have to change path (gamedir or savedir) even though it’s a GOG version transferred to a different drive using “Steammover”.

Your install of the editor shall hence-forth be known as “totally magic”! I have the vague recollection of having the editor look into the default GoG install path for GD. But, it definitely shouldn’t be able to find the game if it’s in some arbitrary location. Maybe the magic is in steammover?

P.S. If i mistype an item (Vizor instead of visor it still recognizes it, is that a (welcome) feature? :smiley:

Yes! You found a feature! It’s actually been working this way since the very first version. The editor looks into the game db for items that are “reasonably similar” to the name you entered. It should be more than able to deal with a few typos. :slight_smile:

This version adds a “find” command!

So… your character file has lots of data. Although the editor gives you the ability to tweak every field, it can a a bit hard to locate the item in the first place.

That’s what the “find” command is for! You can just give it the name of the item you’re looking for, and the editor will pinpoint exactly where that thing is in your loaded character!

Want to give yourself a few more potions?


> find tonic

Tonic of Mending: inventory-sacks/0/inventory-items/0

> set inventory-sacks/0/inventory-items/0/stack-count 99

Want to tweak the level of a specific skill for a bit? Okay!


> find "Maiven's Sphere of Protection"

Maiven's Sphere of Protection: skills/6

> set skills/6/level 3

The command is able to locate item, equipment, skills, devotions, and factions that you have in your save file. I have no idea why I didn’t think to put in such a command earlier. But better late than never!

Have fun!