AMS2 mLaunchState is always zero
Describe the bug In AMS2 the data GameRawData.mLaunchState is always returning zero
Simhub version 9.7.12
Third party plugins Disabled, don't influence the problem
To Reproduce Steps to reproduce the behavior:
- Start AMS2 and select a car that features Launch Control (for example Formula Hightech Gen 2 Mclaren or Formula 1 V10 Gen 2)
- In the car simhub would always return mLaunchState as zero, no matter if the car has LC or if it's activated
Expected behavior here's the definition in AMS2 SharedMemory: int mLaunchStage; // [ enum (Type#17) LaunchStage
// (Type#17) LaunchStage current launch control state enum LaunchStage { LAUNCH_INVALID = -1, // Launch control unavailable LAUNCH_OFF = 0, // Launch control inactive LAUNCH_REV, // Launch control revving to optimum engine speed LAUNCH_ON, // Launch control actively accelerating vehicle }; I check with AMS2 Support and they showed me screenshots that from AMS2 side indeed the mLaunchStage is set and change ingame. Heres the topic with the screenshot from the devs: https://forum.reizastudios.com/threads/sharedmemory-mlaunchstate-is-always-0.35023/
Screenshots
Log files Have in mind I build an overlay "AceAMS2Debugger" to test the values SimHub Joined.txt
Hi !
Thanks for the report I see that the data was correctly declared, but it looks like "historical" booleans data were longer (or at least not triggering any conversion misalignmentà. I changed the data length to 1 for the most recent booleans being added to the telemetry and I now get the data. (mErsAutoModeEnabled, mClutchOverheated, mClutchSlipping, mSessionIsPrivate).
It's fixed for the next version.
Nicolas
Could you please check if your solution would also work for myellowflagstate? its also always zero. TIA
// (Type#16) YellowFlagState represents current FCY state (to be used with 'mYellowFlagState') enum YellowFlagState { YFS_INVALID = -1, YFS_NONE, // No yellow flag pending on track YFS_PENDING, // Flag has been thrown, but not yet taken by leader YFS_PITS_CLOSED, // Flag taken by leader, pits not yet open YFS_PIT_LEAD_LAP, // Those on the lead lap may pit YFS_PITS_OPEN, // Everyone may pit YFS_PITS_OPEN2, // Everyone may pit YFS_LAST_LAP, // On the last caution lap YFS_RESUME, // About to restart (pace car will duck out) YFS_RACE_HALT, // Safety car will lead field into pits //------------- YFS_MAXIMUM, };
Here's a replay for you with FCY active: https://drive.google.com/file/d/1RXCSxbosPAZQPLxz6MF2UK0PkysyPUoT/view?usp=sharing