SunBeam wrote: ↑Sun Nov 05, 2017 3:46 am
Otis_Inf wrote: ↑Sat Nov 04, 2017 9:09 am
TIL trainermakers have bosses and deadlines. The world is a strange place at times...
Anyone in for a timestop? Not that useful for trainers, but hey, it's important for everyone else
v1.0.3
ACOrigins.exe+11E2821 - 83 B9 58140000 00 - cmp dword ptr [rcx+00001458],00 <<< READ timestop. > 0 -> stop engine (not camera!)
edit.
Sunbeam as you love picking apart Anvil (advil?
)Next, here's the internal command pump (3D engines create messages they store in a queue which is then handled by a thread and which calls the function associated with the message. It's a good start if you want to see what's going where in the system)
(code)
Not sure exactly how the snippet above is to be used in my research, but sure, I'll have a go at it. What I can tell you about
Timestop is it checks a DWORD in
World. In-game value is -1, while paused is 0 (map or menu open). Also, you can get World here:
The queue handler I posted is where most work ends up in the engine, which is then picked up by one of the threads running the queue (it uses several) and they then handle the message, calling the function pointed by it. It could help (if you can dissect the message format
) finding everything in the engine, really.
The one line of code I posted in my post does timestop check, sorry if that wasn't clear
Stumbled upon it when I looked in the photomode enable code (Hey, CH, you can enable it everywhere, also in cutscenes with 1 line of code, so there's a challenge
)
Oh, dear commercial trainermaker, if you peek into my notes / assembler code on github for this game, let it be known that I don't approve you use my stuff in commercial trainers. I don't share my stuff with others for free to be picked up by commercial trainermakers to make an easy profit. I don't mind you asking money for your work, do whatever you want to do, but my stuff doesn't end up in your releases.
P.S.: I'll post my research in the upcoming days. With structure names and member-functions.
Looking forward to it
1 item on my list I couldn't find was how to manually toggle the hud elements at will. Hopefully with your pointers I get fresh ideas where to look...