[Tool] GD Stash

I attempted to upgrade from the v99c jar file to the v99e jar file. The errors I’ve encountered so far are:

  • the shared stash is empty
  • searching for items in the stash yields zero results

The details of my upgrade steps are listed below.

  • I downloaded the v0.99e java zip file. I backed up the v99c GDStash folder. I do not keep the v99c folder within the my user profile folder.
  • The v99c folder path is Q:\Gaming_Data\Grim Dawn\GD Stash
  • I extracted the v99e zip to a separate temp folder
  • The temp folder contents was copied to the above drive Q: folder path (overwriting any existing files)
  • I loaded the v99e jar file and updated the config folder paths to match the v99c settings.
  • I saved the settings and clicked the import database button on the configuration tab.
  • A dialog showing some GDS info. about the number of items was displayed when the import completed.
  • No errors were displayed.
  • The transfer.gst file is still in the same save game folder.
  • When using the v99e jar file no mod stash file is selected because the only mod I use is GDStash (vanilla save files/stashes).

What changes are needed?

Edit:
If I rename the GDStash folder listed above
from: Q:\Gaming_Data\Grim Dawn\GD Stash
to: Q:\Gaming_Data\Grim Dawn__v99e__GD Stash
… and then copy the v99c backup to: Q:\Gaming_Data\Grim Dawn\GD Stash

When using the v99c jar file the shared stash is visible and searching for items in the stash yields correct results.

your steps sound fine.

  • No errors were displayed.

so database import was successful (you got a success message, correct) ? You did get a message about a number of items being updated ? Given that there was no error message, both should be true.

When you say the shared stash is empty, did you select the stash from the drop-down list to display it or just expected it to be shown by default ?

When you say searching for items yields no result, you talk about GD Stash stored items… the only reason I could think of is that the items were not transferred to the new DB location, but then you should have seen some error messages…

If I rename the GDStash folder listed above
from: Q:\Gaming_Data\Grim Dawn\GD Stash
to: Q:\Gaming_Data\Grim Dawn__v99e__GD Stash
… and then copy the v99c backup to: Q:\Gaming_Data\Grim Dawn\GD Stash

When using the v99c jar file the shared stash is visible and searching for items in the stash yields correct results.

well, then you use the backup, so that should of course work…

Can you copy the 099c jar to the 099e dir and run that ? When the items were transferred, they were also removed from the old DB location and when the table was empty it was dropped, so in theory 099c should not find any items and probably show some error message when you try.
If it still finds items, that means the transfer never took place somehow, which would explain why 099e does not find them.

No idea why the transfer would not have happened though. If 099c still finds items, use 099e again and import the database again, which should trigger the transfer. Take a screenshot of whatever messages you get. If the items still do not show up, I’d be interested to see those.

No, there should be no problem. The tool looks for its .ini and db dir there, the rest can be anywhere

You’re welcome, glad the items are back :wink:

OK, then I’ll run it in this folder. :wink:

Ok started with a backup of the v99c GD Stash folder.

  • I copied the v99e extracted contents to the v99c folder.
  • I deleted the GDStash folder that was created in my user profile folder (which holds the *.ini) file.
  • I launched the new v99e jar file.
  • I loaded the config. folder paths that were in the v99c setup and clicked the save settings button.
  • I clicked the Import Database button and again it looks as if it succeeded.

In the v99e jar file, I go to the Stash Transfer Tab. On that tab the shared stash display on the right is empty with softcore.gst already selected. If I click the search button on that tab, select all items, click search at the top, I get an empty result set (no items listed). The same empty result set happens if I check all of the item rarity boxes. Screen shots below.

ok, so you basically did the exact same thing and arrived at the exact same result :wink: Admittedly I see nothing wrong in your steps and they do work for me… unfortunately that also means I am not sure why they did not work for you

I am therefore still trying to figure out where it failed for you. If you copy the 99c jar into the 99e dir now and search the items with it, does it find any ? It should not, as they no longer are in the ‘local’ db but in the <user>/db directory. Can you confirm this ?

Depending on your knowledge / comfort level, you could also use Squirrel SQL to take a look at the actual databases.

  • during the install, make sure to also install the Apache Derby Embedded driver
  • when you create the DB connection, select ‘Apache Derby Embedded’ as the driver and use ‘jdbc:derby:C:\Users&lt;username>\GDStash\db;create=false’ as the URL
  • when you connect, provide no user and password
  • switch to the SQL tab and enter ‘select * from stash_item_v3’ and press the ‘Run’ button
  • if the items got transferred, you should get a result list, if they were not transferred the result should be empty

You could obviously do the same for the old DB, create a second connection and change the directory in the URL accordingly…

I renamed the v99e jar file to: __v99e_GDStash_jar.txt
I copied the v99c jar to the folder and launched it.

The shared stash is populated on the right but searching still fails with the v99c jar file. I’ll leave the squirrel DB stuff in your hands.

good, that means the data should have been transferred, as expected. Not sure why your search fails then however…

I noticed in the screenshot that you do not have an empty stash, but no stash (the color is different, see below)

which to me would mean your save dir is not configured correctly or that file simply does not exist in it

For me, this happens when I delete the stash that is currently selected in the tool and then press ‘Reload’. It tries to find the same stash again after a reload (taking into account that there could be additional stashes, so it cannot simply go by index). As it is deleted, it does not find it, therefore does not display it but still shows Softcore (.gst) as the selected stash, as there is no ‘none’ option in the drop-down selection and that is the first stash in the list.
If I then select the same stash again, it shows it correctly, as this time around it actually was the selected stash rather than no stash being selected and the drop-down simply not being able to properly show that.

Will probably have to change that so if the currently loaded stash is no longer found after a reload, it shows the first stash, as that is the one it lists :wink:

Try this (selecting the stash from the drop-down), to see if that gets rid of your stash not being displayed.

When you export the DB with the 99e jar

how big is the created file ?

If the DB is empty, its size is 8 bytes. If the DB contains items it is bigger, obviously the actual size depends on how many items there are…

If you open it in a hex editor it should look something like this (assuming it does contain items)

Does yours contain items (file size is sufficient to determine this…) ?

252KB is the size of the exported file.

Confirmed. If I click the drop down list and select the softcore.gst file then the stash display is populated on the right. Searching gives a populated result set as well after selecting the softcore.gst. It seems the UI is partially out of synch. with what is loaded behind the scenes.

Also, where are the items being store in the v99e? I have the db folder that came from the v99c jar file (drive Q:) but the db folder within the user profile is larger.

Edit:
I noticed in your screenshot of the Mass Import tab that the Import Directory path uses “My Games”. However, when Grim Dawn was installed it created a folder path within the user profile that is lower case “my games”. Would capitalization matter thus referencing two different strings as the folder path?

ok, that means you have all your items in the 99e DB

Confirmed. If I click the drop down list and select the softcore.gst file then the stash display is populated on the right. Searching gives a populated result set as well after selecting the softcore.gst. It seems the UI is partially out of synch. with what is loaded behind the scenes.

interesting, not sure why the stash would matter there - on second thought, it is because based on the selected stash I determine whether to select SC or HC items… with no stash I simply do not select anything

The ini stores the stash that was most recently selected. If you delete that, you get the ‘nonexistent stash’ displayed as you can see in my screenshot.
I did this by deleting and reloading, but you can get the same result by deleting the stash the ini file refers to and then starting the tool again.

Will change that to fall back to the first stash in the list if the stash the tool is searching for is not found.

Also, where are the items being store in the v99e? I have the db folder that came from the v99c jar file (drive Q:) but the db folder within the user profile is larger.

They are in the user dir, you can delete the one on Q:

The user one is larger because it contains the items now while the Q: one no longer does.

Edit:
I noticed in your screenshot of the Mass Import tab that the Import Directory path uses “My Games”. However, when Grim Dawn was installed it created a folder path within the user profile that is lower case “my games”. Would capitalization matter thus referencing two different strings as the folder path?

‘My Games’ already existed for me I assume, so GD did not have to create it. Capitalization does not matter on Windows, so no, the two are the same directory.

I have a possible bug to report. My lvl 75 warder has completed elite difficulty. He is missing only three shrines in elite, whereas GD Stash has five still unticked. The two in question are Arkovian Undercity and The Black Sepulcher.
This doesn’t really bother me, I just wanted to report it so that perhaps someone else can confirm this, since I don’t have a second character this far into the game. I had this issue with 0.99d and 0.99e and only used 0.96b before which didn’t have character editing options.

Also thanks for the great tool.

One stupid question maybe :slight_smile:

want to try your soft, when i want to put parameters, ididn’t find the save folder.

On my users / documents / my games / GD / >> no save folder

There is one on my DG games folder but no files on it.

How to sove this issue ?

thanks, will double check those. I went by the shrine list thread when determining which shrine is available at what difficulty.

Are you using cloud saves ? those are in a different location

Google tells me

Steam cloud
C:\Program Files (x86)\Steam\userdata\folder of numbers\219990\remote\save

Local saves
C:\Users\username\Documents\my games\Grim Dawn\save

Both are available in epic, so do you mean that they should be ticked but are not ?

Initially I thought you meant they should not be available, but they definitely should be, I checked that :wink:

EDIT: They also identify the right shrines, just checked that too… are you sure you have restored them ?

2 missing - Rhowari quest shrines?

No, none are missing (going by the shrines in tags_storyelements.txt, which obviously should be complete :wink: - except for ‘tagDevotionShrineD05=???’ which I am not sure what it is, but is available in Legendary only).

The Rhowari quest shrine is the Shrine of Mogdrogen I assume.

Probably the shrine you can reach if you have solved the secret diary questline in ultimate only

I wanted to say that I have already activated the Arkovian Undercity and Black Sepulcher shrines in elite, but in GD Stash they are both still unchecked.
I also just finished elite with this char and double checked theses shrines. All shrines in normal/veteran and elite are now activated as well as foggy bank on ultimate for a total of 46. All but AU and BS in elite show up in GD Stash. I can’t say for sure if it’s a GD stash issue, hence I suggested that someone else checks if these shrines are also missing for them. If it’s related to GD stash I hope this is helpful.

EDIT: Okay I’m a bit dumb today it seems :rolleyes:. I was missing an important point (just noticed). Arkovian Undercity and Black Sepulcher are unchecked while Old Arkovia and Nekropolis are checked despite them being greyed out in GD Stash because of course they are not available on elite. Sorry for the confusion.