Цитата(Ramsiriuz @ 3.12.2023, 20:15)
The problem is that I don't know which value to use as the first pointer, as you can see in the image there are several, I don't know how they should be correctly interpreted.
You missed base address of the process.
To get it:
1. Click "Add Address Manually" in CE.
2. Type in whatever goes before +00000354 as an address, in your case its THREADSTACK0
3. Click OK
4. Base address of process should be in "Address" column
Before +00000354 you should first read from base address.
So, here's how it should be:
Код
--lua
local BASE_ADDRESS = 0x00FF0000 -- here you should type YOUR base address
local pointer = readmem (BASE_ADDRESS, "D")
pointer = readmem (pointer + 0x00000354, "D")
-- ... rest of your offsets go there
Also, it is extremely important that pilot is bound to the window of the game.
You can either do it manually each time or by using workwindow function
Example of workwindow:
Код
--lua
workwindow(findwindow('YOUR WINDOW TITLE GOES HERE')[1][1])
-- ... rest of your code goes after