Assetto Corsa Round Counter

07/30/2018 14:23 Gambity#1
Hello guys i would like to Create a Round Counter here are my Autoit Script The Problem is that my Value is every Time 0 (Actuly i just Show the TrackPosition)

#RequireAdmin
#include <NomadMemory.au3>


$Value = _Pointer()
MsgBox(0,"", "Value: " & $Value)

Func _Pointer()
Local $Base = 0x00400000, $Staticoffset = 0x2D726C01FD0
Local $hOpen, $sRead
$hOpen = _MemoryOpen( ProcessExists("acs.exe"))
$sRead = _MemoryRead($Base + $Staticoffset, $hOpen, 'dword') + 0x71C
$sValue = _MemoryRead($Base + $sRead , $hOpen, 'dword')

_MemoryClose($hOpen)
Return $sValue
EndFunc


Here is my Pointer
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
07/30/2018 19:19 kovuus#2
moved.
Please feel free to contact me for any questions regarding this moderation action.
07/31/2018 17:41 florian0#3
Quote:
Originally Posted by Gambity View Post
Code:
   $sRead = _MemoryRead($Base + $Staticoffset, $hOpen, 'dword') + 0x71C
   $sValue = _MemoryRead($Base + $sRead , $hOpen, 'dword')
1. You have to add the Base only once.
2. Every offset in your pointer-chain means one _MemoryRead.

Code:
$sRead = _MemoryRead($Base + $Staticoffset, $hOpen, 'dword') + 0x10
$sRead = _MemoryRead($sRead, $hOpen, 'dword') + 0x40
$sRead = _MemoryRead($sRead, $hOpen, 'dword') + 0x1B0

...