Informational Research
Alright so, good news, bad news, ugly news...
The good news is I managed to find the "Survival Data" thanks to some trickery. The game DLC is included in the base game, they didn't separate it, you can literally unlock it with a trick. Obviously not providing it. So I gained access to DLC and looked into the data in memory and found the buffs that exist in the game. You can find them with AOBs. Here are a few:
You will know you found the right one if it follows the TITLE / DESC formats after it, if not, its not the right address.
Code: Select all
Special Cost Down
53 00 70 00 65 00 63 00 69 00 61 00 6C 00 43 00 6F 00 73 00 74 00 44 00 6F 00 77 00 6E
Speed Up
53 00 70 00 65 00 65 00 64 00 55 00 70
Defense Up
44 00 65 00 66 00 65 00 6E 00 73 00 65 00 55 00 70 00
The Bad News, I only managed to small pointers of the data so I can pin point and find it, on top of that MATH is now the bigger problem, these are not floats as they appear in-game 10%, I might be overlooking things because I am use to xmm0 registers with float/doubles but at the moment they are 2 Bytes and represent some crazy math in the instructions from shifting bytes to mul 2 16x and then div 2 16 times. Alot of crazy stuff, The more time I have the closer I get to these buff values and maybe able to use them in the main campaign.
The Ugly news, I haven't found what counts the buff amounts yet, only found the base values of what each buff does, but where are the Buff amounts stored, say you have x4 toxic bonus or 4x defense up, that means 40% somewhere the game knows you have 4 stacks of that buff, haven't figured out where yet.
Instructions, are here for you to find.
Code: Select all
Location of Buff Slot?
SOR4.exe+464509 - 49 8B 5C CE 10 - mov rbx,[r14+rcx*8+10]
Buff Base Value
SOR4.exe+464574 - 8B AB 90000000 - mov ebp,[rbx+00000090]
If you are looking to help, Score Bonus Multiplier starts here with the base value of the score bonus item. If you eat apple or food at max health, you get one, or if you pick up cash. Then it multiplies for buffs.
Code: Select all
SOR4.exe+467E4B - 44 8B 43 1C - mov r8d,[rbx+1C]
Some AOB for backup:
48 8B 4D 08 8B 56 28 44 8B 43 1C 41 B9 02 00 00 00 39 09
8B 4C 24 58 48 63 C9 49 8B 5C CE 10 33 ED 44 8D 7F FF
6F 00 62 00 6A 00 65 00 63 00 74 00 73 00 2F 00 70 00 69 00 63 00 6B 00 75 00 70 00 5F 00 61 00 70 00 70 00 6C 00 65 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2C 01