Open lukester1975 opened 1 year ago
Hi !
Thnaks for your message, I indeed forgot to remove the "not available" flag, but the values are properly wired already,
I'm removing the "not available" flag for the next version,
Nicolas
Oh, that's interesting - I only looked at the UI property viewer as I was never seeing non-0 for DRSEnabled and DRSAvailable in AMS2.
I ended up with (JS):
if ($prop('IsInPitLane') || $prop('IsInPit')) {
return 0;
} else if ($prop('DataCorePlugin.CurrentGame') === 'Automobilista2') {
const drsState = $prop('GameRawData.mDrsState');
if (drsState & 0x10) {
return 1;
} else if (drsState & 0x08) {
return 2;
}
} else {
if ($prop('DRSEnabled')) {
return 1;
} else if ($prop('DRSAvailable')) {
return 2;
}
}
return 0;
instead of (ncalc):
if (([IsInPitLane] || [IsInPit]), 0, if ([DRSEnabled], 1, if ([DRSAvailable], 2, 0)))
which is working fine. Any chance the code is checking for DRS_ZONE_RULES and only setting DRSEnabled and DRSAvailable then? This was inside a plugin in case that makes any difference.
Thanks!
Hello Nicolas
I guess this isn't implemented yet, but is there a plan to / could you add mapping of AMS2's
mDrsState
toDRSAvailable
andDRSEnabled
?I guess you must have added some support since
mDrsState
appears in the raw game data, butDRSAvailable
andDRSEnabled
say not supported.I guess
DRS_AVAILABLE_NOW
is preferable toDRS_AVAILABLE_NEXT
forDRSAvailable
...Many thanks!
Luke.