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. WallyM

    WallyM Alien

    What use is steerAngle being -1 to 1? How do you know how many degrees of rotation that equates to if you don't know the car's steering lock?
    RadstaR likes this.
  2. XzzDSA

    XzzDSA Racer

    With all of the talk about values that should be and more important SHOULDN'T be accessible in telemetry. Like live tyre-wear and so on. Why does the following entry in the shared memory, exist?

    "float surfaceGrip | Ideal line friction coefficient".

    Driving a race and having a number that says the track is however much grippy, in exact numbers seem a little much. IMO.
    Could game the hell out of that data in changing conditions especially.
  3. Tom Shane

    Tom Shane Racer

    Can we have updated docs or at least updated car IDs? Thanks.
  4. Ensi Ferrum

    Ensi Ferrum Racer

    Updated Document should be ready around friday.
    Have a lot to do IRL, so I am not up to date currently.
    Just have to recheck some values.

    Here's what new :

    • int ignitionOn
      Ignition switch set to on?
    • int starterEngineOn
      Starter Switch set to on?
    • int isEngineRunning
      Engine running?
    • float kerbVibration
      vibrations sent to the FFB, could be used for motion rigs
    • float slipVibrations
      vibrations sent to the FFB, could be used for motion rigs
    • float gVibrations
      vibrations sent to the FFB, could be used for motion rigs
    • float absVibrations
      vibrations sent to the FFB, could be used for motion rigs
    • int directionLightsLeft
      Is Blinker left on
    • int directionLightsRight
      Is Blinker right on
    GT4 Car Ids

    • Alpine A110 GT4 2018
    • Aston Martin Vantage AMR GT4 2018
    • Audi R8 LMS GT4 2016
    • BMW M4 GT42 018
    • Chevrolet Camaro GT4 R 2017
    • Ginetta G55 GT4 2012
    • Ktm Xbow GT4 2016
    • Maserati Gran Turismo MC GT4 2016
    • McLaren 570s GT4 2016
    • Mercedes AMG GT4 2016
    • Porsche 718 Cayman GT4 MR 2019
    ..LeRenard!, RadstaR, AndyK70 and 5 others like this.
  5. Ensi Ferrum

    Ensi Ferrum Racer

    New Documentation is up, see the first post.
    RadstaR likes this.
  6. RadstaR

    RadstaR Rookie

    Good Work, but ... in SPageFileGraphic is missing:
    float iClock // Time of day in milliseconds
    after int missingMandatoryPits and before int directionLightsLeft
    (i think)
    ..LeRenard! and Ensi Ferrum like this.
  7. Ensi Ferrum

    Ensi Ferrum Racer

    You're absolutely right.
    Last 4 lines of SPageFileGraphic:
    ..LeRenard! and RadstaR like this.
  8. jars121

    jars121 Rookie

    Sorry to derail this thread somewhat, but I'm working with the shared memory telemetry with Assetto Corsa (not Competizione) and can't seem to find a similar discussion thread. Given that much of the shared memory interface is shared across the two titles it may be valid for ACC as well.

    Has anyone had any success with the brakeTemp metric? I get a static output of 26.0 for each brake regardless of whether I'm sitting in the pits or out on track. I'm wondering if the brakeTemp output was never actually enabled, or if perhaps only some cars utilise it?
  9. ..LeRenard!

    ..LeRenard! Racer

    I am making a simple app for myself to quickly get feedback and monitor status. It'll also send out values to a philips hue on game status (whether I am racing or not, so no one comes barging into my room - green means racing, dark yellow will mean in session/pit stop/pause menu and light off will be simply, come in and disturb me no prob ;-))

    But I also want to have the flags in my app, for my other screen, this way I have immediate attention on the situation on track. The docs state the flags (see white screenshot from PDF) have these values which I programmed into an enum for readability. However when reading out I get values like -1002332136 for the yellow flag, and when in pause menu (whilst green flag) I got 1135528555...
    Am I doing something wrong when reading out? Has something changed?
    I'm using an older library though for ease of use, and maybe I should scrap that as I fear it isn't working and just program the readouts from scratch.
    Anyone has had that issue too?

  10. ..LeRenard!

    ..LeRenard! Racer

    EDIT: never mind, messed up my sequential layout in the struct, it's all fine now :)...
    The memory PageFiles are still active though after the game ends, so a bit of magic with processes that are running is necessary to do certain stuff...
  11. ..LeRenard!

    ..LeRenard! Racer

    Any C#-ies in here who have experience with marshalling?
    Check https://stackoverflow.com/questions...struct?noredirect=1#comment111876504_63267351 (this has to do with the graphicspagefile).
    I now "skip" this so I can read the rest of the the data, as I don't need it for my application. But if it would be needed in the future, I guess with the current float[,] the Marshaller wouldn't be able to know where to put the values...
    Anyone knows how I can improve this for future use?

  12. Doug Duthie

    Doug Duthie Racer

    This is what I do...
            public ACCPosition[] carCoordinates;
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 60)]
        [StructLayout(LayoutKind.Sequential, Pack = 4)]
        public struct ACCPosition
            public float xPos;
            public float yPos;
            public float zPos;
    ..LeRenard! likes this.
  13. Mattze

    Mattze Rookie

    @Ensi Ferrum Is there a reason why the inner, middle, outer tire temperature is not shared via API? In contrast to AC1 we only have the core temperature, as far as I can see.
  14. ..LeRenard!

    ..LeRenard! Racer

    Thanks, I eventually figured it out thanks to Zach of RacingSimTools - but this confirms it extra.
    Learned sth new I don't use at work, always nice :). Do you interact with the UDP interface as well, or only shared memory?
  15. ..LeRenard!

    ..LeRenard! Racer

    Thanks for your detailed notes and keeping things up to date while IRL is busy it seems.
    Any chance you or others happen to know what these values mean for the penalties?


    PitExit and PitEntry, is that crossing the line?
    Trolling, is that driving slowly or...? :)

    Maybe @Aristotelis knows more about these values?
  16. Doug Duthie

    Doug Duthie Racer

    I mainly use UDP but use shared memory to fill in the gaps that you can't get from UDP (session change, player car tyre temp, pressure, fuel, damage etc)
    ..LeRenard! likes this.
  17. Jim Britton

    Jim Britton Hardcore Simmer

    guys, does anyone have any documentation that defines the UDP broadcast data's CarModelEnum? For the race opponents there's no car class information (car model name or car class name), just this enum (which is just an integer). Unfortunately I can't seem to find any documentation that maps the enum values to the corresponding car models. Is this written down anywhere?
  18. Doug Duthie

    Doug Duthie Racer

    Hi Jim,
    Here you go

  19. Jim Britton

    Jim Britton Hardcore Simmer

    thanks Doug


    quick question about these classes - is the Huracan ST in the same class as the GT3 cars or is it a single make class?
    Last edited: Sep 1, 2020
  20. Doug Duthie

    Doug Duthie Racer

    Super Trofeo is a single make class
    Jim Britton likes this.
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 Virtual Reality I have a 3080 and ACC still runs like garbage in VR Monday at 6:12 PM
ACC Troubleshooting Cannot start ACC AC2-WinShipping.exe error Sunday at 4:48 PM
ACC Online Leagues / Championships room ACC Leagues Friday at 5:37 AM
ACC Troubleshooting ACC Freezes System [general system instability - not a game crash] Sep 23, 2020
PlayStation 4 Discussions PS4 ACC crashing after every race now. Sep 21, 2020
ACC PS4 - XB1 General Discussions XPLR Now Recruiting Drivers on ACC Sep 20, 2020
ACC Troubleshooting ACC - TC Changes randomly with no button pressed Sep 20, 2020
Console Lounge WHL 197 . AC: Dancing with the wallflower. ACC: Partick on tour. Sep 19, 2020
ACC PS4 - XB1 General Discussions What would make ACC be the best sim on console? Sep 19, 2020
ACC Troubleshooting ACC Freezes after race/stint [hard drive sleep mode] Sep 18, 2020
ACC Troubleshooting ACC - Crash (GTX 1080/I5 8600K) Sep 18, 2020
ACC Virtual Reality Finally fixed ACC VR performance. . Sep 18, 2020
ACC Controls & Peripherals Wheel / pedals not detected in ACC Sep 17, 2020

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