robertnunn / DRG-Save-Editor

Rock and stone!
GNU General Public License v3.0
104 stars 23 forks source link

Incorrect resource amounts #4

Closed naeem-bvg closed 3 years ago

naeem-bvg commented 3 years ago
Screenshot_12

Took to the hex editor not wanting to mess with the app while the overclock bug lurks. I discovered the resources were not in the same order or location, which at least partly explains the odd numbers in the screen shot. This may be because the structure of the save file changes when you overclock or promote or something. I have confirmed these in game.

def get_resources(save_bytes):
    # print('getting resources')
    marker = b"OwnedResources"
    start_offset = 101
    offset = 20
    resources = [
        "UNKNOWN",
        "Barley Bulb",
        "Jadiz",
        "Malt Star",
        "Bismor",
        "Enor Pearl",
        "Yeast Cone",
        "Starch Nut",
        "Croppa",
        "Umanite",
        "Magnite",
    ]

I don't think Error Cube or Blank Core Matrix are in there at all.

Does the app correctly populate for you?

naeem-bvg commented 3 years ago

Just saw your latest push. I believe that will resolve this issue as well.

naeem-bvg commented 3 years ago

Fixed in 1.3.3