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

    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 have 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: Feb 5, 2020

  2. Similar Threads
    Forum Title Date
    ACC Troubleshooting ACC Shared Memory Example Apr 23, 2020
    Programming Language - Apps - GUI Themes Shared Memory or UDP Reference for ACC ? Sep 13, 2018
    ACC General Discussions Multiplayer Unofficial Blacklist - ACC/PC Yesterday at 3:01 AM
    ACC PS4 - XB1 General Discussions Accessing files on private server Monday at 3:03 PM
    ACC Troubleshooting UE4 Crash ACC 1.5.3 Sunday at 2:52 PM
    ACC PS4 - XB1 General Discussions ACC physics and depth of simulation discussion Sunday at 1:45 PM
    ACC PS4 - XB1 General Discussions ACC problem Update Firmware G920 Friday at 8:36 PM
    ACC Controls & Peripherals ACC 1.5.x conflicting FanaLeds? Friday at 1:11 PM
    ACC PS4 - XB1 General Discussions ACC PS4 Career Race Mandatory PIT STOP Bug/Problem Jul 27, 2020
    ACC Multiplayer ACC Dedicated Server - Recommended Specs? Jul 27, 2020
    ACC Graphics - Tracks and Cars ACC Image customisation Jul 26, 2020
    ACC PS4 - XB1 General Discussions ACC: Amazing Training Tool Jul 25, 2020
    ACC Troubleshooting Unable to lauch ACC [running out of memory] Jul 25, 2020
    ACC Hardware Discussions Is anyone running ACC on a GTX980? Jul 24, 2020
    ACC Virtual Reality Not ACC Fault - Oculus Rift not recognizing USB 3 Jul 24, 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