Jump to content
  • 0

Understanding stored data type


Bunta

Question

Posted

Hi there, I have an offline game that I have modified item values in before but the values have changed their storage type in recent updates.

It used to be that the values were stored as Dword values but now they appear to be some kind of encrypted value which I have found by doing fuzzy searches (Using float or double doesn't give me anything meaningful). I have been able to modify the value to some other arbitrary number and increase the count of that item to some stupid amount by accident, however I'd like to be able to understand how the number is stored/calculated so I can search for specific values on items that are hard to collect and don't change often enough to use fuzzy logic searches on.

So if I do a fuzzy search by Dword I have found the value and modified it to get an amount in game of 6 millionish.

I then searched that item again on a different day and set the value to the same number I had used previously but it didn't change to the same amount (it was close but different)

I experimented with some variation and values and noticed they change as follows:

Item Amount   Dword Value    Hex
6904973       2073573352     E8 37 98 7B
6904972       1881999184     50 07 2D 70
6904971       1875792736     60 53 CE 6F
6904970       1875792752     70 53 CE 6F
6904969       1875792720     50 53 CE 6F

There appears to be a pattern to the hex somehow but when I changed the value to hex 40 53 CE 6F after that the item amount stayed the same.
I figure since using the same value doesn't apply the same amount there must be something else that is acting as an encryption key to make the value meaningful. There is a second Dword value that changes alongside this one so maybe it's a combination of these two values that sets the amount.

Does anyone know how these numbers might relate or how I might be able to progress from here to understand how to identify what values should equal specific amounts?

1 answer to this question

Recommended Posts

Posted

Some more values to amounts I recorded:

Amount  Dword     	Hex
6904861	2028043856	50 7E E1 78
6904860	2028168400	D0 64 E3 78
6904859	2037730904	58 4E 75 79
6904858	2037856200	C8 37 77 79
6904857	2038684008	68 D9 83 79
6904856	2038809704	68 C4 85 79
6904855	2038935448	98 AF 87 79
6904854	2039060928	C0 99 89 79
6904853	2039186616	B8 84 8B 79
6904852	2039312096	E0 6E 8D 79
6904851	2039437392	50 58 8F 79
6904850	2039746448	90 0F 94 79
6904849	2039871744	00 F9 95 79
6904848	2039996288	80 DF 97 79
6904847	2040646272	80 CA A1 79
6904846	2040771960	78 B5 A3 79
6904845	2040898440	88 A3 A5 79

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.