1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SharedMemory.h Question/Issue

Discussion in 'Automobilista 2 - Modding, 3rd Party Apps & Tools' started by Spartantracker, Nov 5, 2026 at 2:03 AM.

  1. Spartantracker

    Spartantracker New Member

    Joined:
    Thursday
    Messages:
    1
    Likes Received:
    0
    Hello!

    I've been working on an app recently, using the game's SharedMemory header file from the example app located in the game files. Reading data is good, but I don't seem to understand how mTurboBoostPressure is being read.

    The comments in the file state that the variable is a float with a range of 0.0->1.0f, with an unset value of -1.0f. But on vehicles without turbos, the value is wildly outside this range. Testing with the '79 Opala Stock Car showed that at 1,000RPM, the Turbo Boost Pressure was measuring at ~20,000.00. Testing with the Stock USA Gen 3 showed that at 1,500 RPM, the Turbo Boost Pressure was at ~14,000.00. I tried testing with the Copa Trucks as well with similar results.

    I'm using the provided example's memory mapping, version checking, sequence number checks, and memcpy approach. I'm also reading the value directly from the shared memory copy.

    Has anyone encountered this before or have any idea why this field might be returning such unexpected values? Could it be a shared memory issue, a field-specific bug, or something else?

    Any help or suggestions are greatly appreciated!
     

Share This Page