Question regarding shared memory

Discussion in 'Automobilista 2 - Help & Support' started by TheBigO, Jul 3, 2021.

  1. TheBigO

    TheBigO Active Member

    Joined:
    Jul 3, 2021
    Messages:
    162
    Likes Received:
    92
    Hello all,

    I am currently porting my software package for sim racing, which contains several AI-based virtual race assistants, to Automobilista 2. One of the assistants can automatically handle all the pitstop duties, like a real race engineer. To do this, a lot of information is acquired from the simulation, typically using the shared memory interface. And here I am missing several valueable information objects:

    1. Tyre setup data
      Is there any way to get the tyre pressures, tyre compounds, etc. that has been initially configured for the car?
    2. Weather information
      Am I missing something, or is the outlook for weather information (10 min, 20 min, 30 min, ...) not available in the shared memory interface?
    Beside that, is it possible to control the pitstop settings from outside of the game. My assistant can recommend the amount of refueling, tyre changes, new pressure values, and so on, and it can hand over all this settings to the simulation via API...

    I have seen, that the shared memory version is "9", whereas the version constant in the sample code is "8". Any changes in the header file, I missed?

    Thanks a lot in advance

    Oliver
     
  2. CorvusCorax

    CorvusCorax Active Member AMS2 Club Member

    Joined:
    Oct 23, 2016
    Messages:
    159
    Likes Received:
    69
    If you compare the "Patch 5 (for New protocol version links)" changelog to the API header on the Project CARS 2 API page, you will see that the version 9 changes correspond to the last few items in the header - although the header does not explicitly denote them as being version 9.
     
  3. TheBigO

    TheBigO Active Member

    Joined:
    Jul 3, 2021
    Messages:
    162
    Likes Received:
    92

Share This Page