I would like to understand the algorithm that is used for stats in the game Combat Magic. Im taking the weapon "heavy cutlass".
So currently this is what i have:
Weight = float, as it is represented on screen. 3.9f
When i try to change the level, which is 15 in game.
the value is represented like this:
1,599,062,278D;1,599,062,280D;1B::9
If i edit the 1 bool to 0, the level will change to 1. I guess its a form of disabling the levels since the player starts at level 1.
If i edit the first byte of that dword value, "06h" to "07h" the level changes to 16.
00h = 9
01h = 10
02h = 11
03h = 12
04h = 13
05h = 14
06h = 15 -- current level
07h = 16
08h = 1
09h = 2
0Ah = 3
0Bh = 4
0Ch = 5
0Dh = 6
0Eh = 7
0Fh = 8
10h = 25 -- suddenly level change
11h = 26
12h = 27
13h = 28
14h = 29
15h = 30
16h = 31
17h = 32
18h = 17 -- suddenly level change
...etc
So what is weird already is the jump to 25. If we just count normally from current level 15, 16, 17, 18, 19...etc and pretend like the jump from level 16 to level 1 never happened we would come out to level 25. So why levels whent back to normal sequence at hex 10h ? All i assume is that editing levels should happen in byte or word, Not in dword or other data types.
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.
Question
Platonic
Hi,
I would like to understand the algorithm that is used for stats in the game Combat Magic. Im taking the weapon "heavy cutlass".
So currently this is what i have:
When i try to change the level, which is 15 in game.
the value is represented like this:
1,599,062,278D;1,599,062,280D;1B::9
If i edit the 1 bool to 0, the level will change to 1. I guess its a form of disabling the levels since the player starts at level 1.
If i edit the first byte of that dword value, "06h" to "07h" the level changes to 16.
...etc
So what is weird already is the jump to 25. If we just count normally from current level 15, 16, 17, 18, 19...etc and pretend like the jump from level 16 to level 1 never happened we would come out to level 25. So why levels whent back to normal sequence at hex 10h ? All i assume is that editing levels should happen in byte or word, Not in dword or other data types.
Help or explenation would be appreciated!
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.