Resource icon

InvalidateLap 0.5

No permission to download

fughettaboutit

aka leBluem aka Please Stop This
Moderator
fughettaboutit submitted a new resource:

InvalidateLap - Invalidates lap on Custom AllowedTyresOut value

AC has this value in "...\Documents\Assetto Corsa\cfg\race.ini" but its not used, AC will always use "2" tyres to judge if you are on track or npt:
[LAP_INVALIDATOR]
ALLOWED_TYRES_OUT=0
I hope i didn't get this wrong, but any try with different values did not lead to "Cut detected. Lap will not count!"

So here is this app, it has its own custom "MaxNumberOfTyresOut" value, you can set it in CM or ingame; cuts per lap/per total session will also be counted:
View attachment 6337...
Read more about this resource...
 

TUAT Formula

New Member
upload_2021-4-1_16-20-13.png

upload_2021-4-1_16-17-58.png

Hi ! Thank you for nice app,
InvalidateLap 0.2 works well, but InvalidateLap 0.3 does not count cuts. It seems always ON track.
In addition, On vanilla AC cuts will not still be displayed.
 

TUAT Formula

New Member
thank you for the update!
it works without CSP on ver.0.4, but it still do not count off track.
although it detects wheels out , always on track.

Do you need any certain settings?

↓ver.0.4
upload_2021-5-14_17-46-37.png


↓ver.0.2
upload_2021-5-14_17-49-18.png
 

fughettaboutit

aka leBluem aka Please Stop This
Moderator
are you using hotlap mode? i just tested in practice and there is no timing and thus no counting

i used session time to check for not giving you a penalty already at session start

i found "info.graphics.distanceTraveled" in shared memory and now it also works in practice ;), i post an update in a second
 
Last edited:

delpinsky

New Member
Hi! I know it's a very old post, but I need some help, because I've just created the SAS display lua code for my ACC conversion of the Nissan GT-R GT3 2018, with flags + info, and I would like to add the SAS_YellowS1, S2 and S3.dds flags used by ACC when you cut the track. I'd need some help with the lua code to get the calls from AC for the track cuts. Or is it even possible to make InvalidateLap communicating with my SAS?
Thanks in advance!
 

fughettaboutit

aka leBluem aka Please Stop This
Moderator
Use Lua, the library included in CSP has much more functionality than python.
You should not go down the rabbit hole "communication between apps with different languages"
 

fughettaboutit

aka leBluem aka Please Stop This
Moderator
Hi! I know it's a very old post, but I need some help, because I've just created the SAS display lua code for my ACC conversion of the Nissan GT-R GT3 2018, with flags + info, and I would like to add the SAS_YellowS1, S2 and S3.dds flags used by ACC when you cut the track. I'd need some help with the lua code to get the calls from AC for the track cuts. Or is it even possible to make InvalidateLap communicating with my SAS?
Thanks in advance!
when you have CSP installed, read:
...assettocorsa\extension\internal\lua-sdk\readme.txt
 
Top