PyAccSharedMemory icon indicating copy to clipboard operation
PyAccSharedMemory copied to clipboard

Is_valid_lap is not working for hot lap

Open j0na1han opened this issue 2 years ago • 2 comments

Hi,

Is_valid_lap always returns False.

j0na1han avatar Mar 19 '23 18:03 j0na1han

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

rrennoir avatar Mar 24 '23 22:03 rrennoir

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.

j0na1han avatar Apr 26 '23 14:04 j0na1han