SharedMemory mLaunchState is always 0

Discussion in 'Automobilista 2 - Help & Support' started by Ace, Apr 8, 2025.

  1. Ace

    Ace New Member

    Joined:
    Dec 4, 2024
    Messages:
    17
    Likes Received:
    19
    Hi there,

    I just found out that through the PC2 connection the sharedMemory value for GameRawData.mLaunchState is always zero, so there no way to get the information if a car has LC or when it's active to overlays or other tools. Even when in a proper car and the AMS2 hud shows LC available and on when pressed, the value stays zero

    I found an entry in patch notes 1.5.5.4 that stated:
    Shared Memory: Fixed mLaunchStage incorrectly declared as unsigned

    Heres the description of SharedMemory:
    line 319:
    // (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
    };

    line 554:
    int mLaunchStage; // [ enum (Type#17) LaunchStage

    Seems like the value is unassigned again or am I missing something here?
     
  2. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    903
    Likes Received:
    1,263
    There is a bug which is preventing -1 being shown for vehicles without LC installed. I'll sort that for next build.

    I've just tested the output with the hitech g2 macca which has LC and the stages are presented correctly. Are you seeing the LC light active in the hud tacho?
     
  3. Ace

    Ace New Member

    Joined:
    Dec 4, 2024
    Messages:
    17
    Likes Received:
    19
    Thank you for the fast respsonse. I can see the LC light in the ingame HUD. White when installed, orange when activated.

    But if I catch the GameRawData.mLaunchState in Simhub it's always 0. No difference if installed or activated. Don't have this problem with any other data from the SharedMemory

    Seems to happen for all cars (Hitech G2 McLaren, Formula V10 G2, etc)
     
    Last edited: Apr 9, 2025
  4. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    903
    Likes Received:
    1,263
    Not sure what more I can offer as help. I can only presume it's an issue on the simhub side I'm afraid. I tested it with the sample app on both beta and main release with no issues.

    LC-SharedMem.jpg
     
  5. CorvusCorax

    CorvusCorax Active Member AMS2 Club Member

    Joined:
    Oct 23, 2016
    Messages:
    183
    Likes Received:
    77
    It is possible it is mapped incorrectly in SimHub, as, IIRC, at one time the shared memory header distributed with AMS2 listed the field datatype as unsigned int. That's since been corrected in the header, I believe.
     
  6. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    903
    Likes Received:
    1,263
  7. Ace

    Ace New Member

    Joined:
    Dec 4, 2024
    Messages:
    17
    Likes Received:
    19
    Thank you, then it's definitely a simhub issue. I will reach out to simhub support and keep you updated

    Simhub responded already:
    So it will be fixed in the next Simhub version. Thank you all so much for the ultra fast support!
     
    Last edited by a moderator: Apr 9, 2025
    • Like Like x 1
    • Friendly Friendly x 1

Share This Page