1. Do you need support for Assetto Corsa Competizione? Please use the proper forum below and ALWAYS zip and attach the WHOLE "Logs" folder in your c:\users\*youruser*\AppData\Local\AC2\Saved. The "AppData" folder is hidden by default, check "Hidden items" in your Windows view properties. If you report a crash, ALWAYS zip and attach the WHOLE "Crashes" folder in the same directory.
  2. FOR ASSETTO CORSA COMPETIZIONE: If you report issues with saved games, please always zip and attach your entire User/Documents/Assetto Corsa Competizione/Savegame folder!
  3. If your game executable is missing, please add your entire Steam directory to the exceptions in your antivirus software, then run a Steam integrity check or reinstall the game altogether.

DOCS ACC Shared Memory Documentation

Discussion in 'ACC Blog' started by Fernando Barbarossa, Aug 28, 2019.

  1. Fernando Barbarossa

    Fernando Barbarossa KS Dev Team

    From now on you can refer to the attached ACC shared memory documentation for your apps, motion rigs and FFB wheels. Please keep in mind that new channels can be added in the future and I’ll use this post to keep you updated.
    I've added a sample project to get started with ACC shared memory.
    A special thanks goes to Ensi Ferrum for his work on the documentation.
     

    Attached Files:

    Last edited: Sep 16, 2019
    f.e.negroni, phil, bendoe and 20 others like this.

  2. Similar Threads
    Forum Title Date
    Programming Language - Apps - GUI Themes Shared Memory or UDP Reference for ACC ? Sep 13, 2018
    ACC Troubleshooting ACC not saving telemetry when Windows username has special characters Yesterday at 11:07 PM
    ACC Online Leagues / Championships room ACC Québec! Groupe Facebook et Discord Saturday at 5:00 PM
    ACC Screenshots & Videos Great visual of ACC's physics in real time... Saturday at 11:37 AM
    ACC Troubleshooting Is is cheating server or ACC Grip-Power BUG During online race? Friday at 11:16 PM
    ACC General Discussions iRacing banner for ACC? Thursday at 1:59 PM
    ACC Audio [ACC v1.2.3] tire sound for scrubbing on understeer missing or very weak Wednesday at 10:04 AM
    ACC Online Leagues / Championships room ACC OTCR.online league Tuesday at 1:18 PM
    ACC Multiplayer ACC Dedicated Server Specs? Tuesday at 9:45 AM
    ACC Online Leagues / Championships room ACC BELGIUM HOTLAPPING EVENT @ Nürburgring Tuesday at 1:32 AM
    ACC Troubleshooting ACC wont close. Jan 19, 2020
    Online Leagues / Championships room [AC/ACC: Virtual Grand Prix] Jan 19, 2020
    ACC Hardware Discussions New to tintops and ACC Jan 19, 2020
    ACC Audio [ACC v1.2.3] Strange soundloop after 2nd practice Jan 18, 2020
    Bug reports [ACC 1.2.3] After 2nd practice soundloop went on and on and on.. Jan 18, 2020

  3. positron

    positron Rookie

    Thanks for the documentation. I have two questions
    1. Currently (version 1.0.7) I always read the value 2 for the session status and -1 for the session type. Are theses fields updated in the shared memory region?
    2. Can you add a field to indicated which session of an event is currently active?
      I'm implementing a small tool to collect lap times and try to associate those laps with the correct session and event I read from the seasonEntity.json. The way I currently detect a session change via the sessionTimeLeft field works but I cannot distinguish between a session changed in e.g. a sprint weekend and a session restart.
     
  4. Zeraxx

    Zeraxx Racer

    Wooohoo thanks guys!
     
  5. PhilS13

    PhilS13 Alien

    Is there a basic entry point project like the one that was available at some point for AC?
     
  6. Jan Balke

    Jan Balke Rookie

    Hey Guys, i have problems getting the clutch value... evertything up to brakeTemp works, but clutch is always 0.0. can anyone help?
     
  7. thecures

    thecures Gamer

    where do I insert the files? sorry for shxt english
     
  8. bgt_dept01

    bgt_dept01 Rookie

    How can I resolve the problem that reading/writing concurrently?
    Is there a mutex object or something way to protect the shared memory?
     
  9. It seems that after you exit the sim, the shared memory does not update to say the sim has exited. It is staying on AC_LIVE.
     
  10. It also looks like the graphics AC_STATUS is always -1.
     
  11. Another observation - it seems there are variables that stay at zero, like camber, ait/track temps, etc. Are these supposed to report values?
     
  12. Ensi Ferrum

    Ensi Ferrum Racer

    Following variables are not used in ACC and therefore will not send any data:

    SPageFilePhysics:

    float wheelLoad[4]
    float tyreWear[4]
    float tyreDirtyLevel[4]
    float camberRAD[4]
    float drs
    float cgHeight
    int numberOfTyresOut
    float kersCharge
    float kersInput
    float rideHeight[2]
    float ballast
    float airDensity
    float performanceMeter
    int engineBrake
    int ersRecoveryLevel
    int ersPowerLevel
    int ersHeatCharging
    int ersIsCharging
    float kersCurrentKJ
    int drsAvailable
    int drsEnabled
    float tyreTempI[4]
    float tyreTempM[4]
    float tyreTempO[4]
    int P2PActivation
    int P2PStatus
    float currentMaxRpm
    float mz[4]
    float fx[4]
    float fy[4]
    float slipRatio[4]
    float slipAngle[4]
    int tcinAction
    int absInAction
    float tyreTemp[4]

    SPageFileGraphic

    float replayTimeMultiplier

    SPageFileStatic

    float maxTorque
    float maxPower
    float suspensionMaxTravel[4]
    float tyreRadius[4]
    float maxTurboBoost
    float deprecated_1
    float deprecated_2
    int hasDRS
    int hasERS
    int hasKERS
    float kersMaxJ
    int engineBrakeSettingsCount
    int ersPowerControllerCount
    float trackSplineLength
    wchar_t trackConfiguration
    float ersMaxJ
    int isTimedRace
    int hasExtraLap
    wchar_t carSkin[33]
    int reversedGridPositions
     
  13. Crt_Jokinnen

    Crt_Jokinnen Racer

    Is this useful for the multiplayer?
    It allows a more realistic configuration of the rooms in the dedicated servers?
    Forgive my inexperienced experience in programming, but I do not understand what to do with these folders or where to enter them or if I get any configuration expansion on my online competition server.
     
  14. Ensi Ferrum

    Ensi Ferrum Racer

    The shared memory is mainly to show information in 3rd party apps (SimHub e.g.).
     
  15. bgt_dept01

    bgt_dept01 Rookie

    Hello,
    I noticed that you mentioned that shared memory is mainly to show information.
    What my question is that is it suited to apply on a motion platform like 6dof?
    Or did you provide another mechanism to send out telemetry data like UDP?
    Thanks.
     
  16. Ensi Ferrum

    Ensi Ferrum Racer

    Have a look at the documentation and you will find your answer.
    Short answer: It is suited to apply on a 6 dof motion plattform.
     
  17. Nick Moxley

    Nick Moxley Alien

    Just to clarify, there's no Game data out there that hooks directly to a Motion Rig.....Motion software still needs to crunch the 6d0f "math" so if anything the more udp data makes the Motion software's job that much easier.
     
  18. Will there be an update to Shared Memory that fixes some of the issues with the current version? For example it never tells you if the sim exited.

    And is it possible to get information on the other car in the session?
     
  19. Ensi Ferrum

    Ensi Ferrum Racer

    Can you be more precisse? What issues do you mean, except the known fact that the SM did not tell when the sim has exited in V1.0.10?
    What information you want to know from other cars?
    From the documentation, SPageFileGrraphic:
    upload_2019-10-17_19-21-1.png

    More info about the other cars / drivers can be found in the UDP Remote Client, a simple SDK is located under SteamApps\common\Assetto Corsa Competizione\sdk\broadcasting\Sources
     
  20. This is the main one. Is this going to be fixed? (Or has it been fixed)?
     
  21. Thanks for this - perhaps that is what we are looking for. :)
     
    Ensi Ferrum likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice