Jester69 wrote: ↑Thu Mar 03, 2022 8:01 am
Time change is the most important to me, so I made this from looking at code by 0xSthSth1337/ Ro3k3loo5.
Their code looks for movss xmm0,[rax+000000E8] wherein xmm0 is a float containing the time.
Problem is that Modern Rifle pack v2204008 keeps this code, but does not access it (I added a breakpoint here).
No wonder COTW has a lot of bugs. It literally has code it does not call on!
This script sets time to 0700 with \ key, increments time with ] key, and decrements time with [ key.
I hate the "Shoot x critters between the hours of blah blah blah". I don't mind night hunting, but just prefer the scenery at dawn.
It's my game and I'll play it how I want. (p.s. I've made all the weapons more expensive and never play with x-ray vision for the animals).
For those interested in how I found the new code, read on.
Using Cheat Engine I set Value Type = Float, Scan Type = Value between, and did a First Scan, then waited 1 minute, and changed the 2 values to the current time and time + 2minutes and ran Next Scan to narrow the Found items.
This got it down to < 220.
To get the value between I checked the game time. e.g. If the PDA was showing 10:25 I converted that to a decimal hour time. i.e. 10 + 25/60 = 10.416, and for the 2nd value set it to 10:27 = 10 + 27/60 = 10.45 (I set the 2nd value 2 minutes apart because the game runs a fast clock and the game might go past this time before I calculated these values, plugged them in and ran the scan).
I then double clicked on each Found address to add it below to the Active area and you can see the time clicking along.
Then I double clicked on Value and changed it. If it worked all the 220 values above would change and keep on ticking over.
The one which worked was only about 7 items down the list and it's code was movss [rcx+000000E8],xmm1
hmmm very similar to the original code from cheat tables by 0xSthSth1337/ Ro3k3loo5.
I found I could get a unique code for aobscanmodule if I added the following 2 bytes.
I hope this is helpful. I've never used Cheat Engine before, but it works on my PC after several re-runs and nothing is broken.
Use it at your own risk haha