rrennoir/PyAccSharedMemory

Is_valid_lap is not working for hot lap

Opened this issue · 2 comments

Hi,

Is_valid_lap always returns False.

Hello, idk it works for me, I started a hotlap session and it was set to true, invalidated the lap and went to false and started a new lap it went to true again as expected

I tried it with AssettoCorsa. Just a basic piece of code:

`
from pyaccsharedmemory import accSharedMemory
import time
asm = accSharedMemory()
while True:
time.sleep(5)
sm = asm.read_shared_memory()

if (sm is not None):
    print("Graphics:")
    print(f"Valid: {sm.Graphics.is_valid_lap}")

asm.close()
`

From the beginning on it prints false. Do you know what is the error? Thx.