Is_valid_lap is not working for hot lap
Opened this issue · 2 comments
j0na1han commented
Hi,
Is_valid_lap always returns False.
rrennoir commented
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
j0na1han commented
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.