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. Do not post "I have the same issue" in an existing thread with a game crash, always open your own thread. Do not PM developers and staff members for personal troubleshooting and support.
  2. As part of our continuous maintenance and improvements to Assetto Corsa Competizione we will be releasing small updates on a regular basis during the esports season which might not go through the usual announcement process detailing the changes until a later version update where these changes will be listed retrospectively.
  3. If ACC doesn't start with an error or the executable is missing, please add your entire Steam directory to the exceptions in your antivirus software, run a Steam integrity check or reinstall the game altogether. Make sure you add the User/Documents/Assetto Corsa Competizione folder to your antivirus/Defender exceptions and exclude it from any file sharing app (GDrive, OneDrive or Dropbox)! The Corsair iCue software is also known to conflict with Input Device initialization, if the game does not start up and you have such devices, please try disabling the iCue software and try again. [file:unknown] [line: 95] secure crt: invalid error is a sign of antivirus interference, while [Pak chunk signing mismatch on chunk] indicates a corrupted installation that requires game file verification.
  4. When reporting an issue with saved games, please always zip and attach your entire User/Documents/Assetto Corsa Competizione/Savegame folder, along with the logs and the crash folder (when reporting related to a crash).

DOCS ACC Shared Memory Documentation

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

  1. rafss

    rafss Rookie

    Help please! Trying sample API project (using MVS 2019), but got errors:
    ACCSM_Example.cpp
    #include <windows.h>
    #include <tchar.h>

    targetver.h
    #include <SDKDDKVer.h>

    stdafx.h
    #include <stdio.h>
    #include <tchar.h>

    The environment cant find these files. How to correctly open sample project with MVS 2019 ?
     
  2. rafss

    rafss Rookie

    Maybe this will help somebody:
    at Solution Explorer choose Retarget Solution. And everything will be automatically done.
     
  3. Berno

    Berno Racer

    Am I the only one who isn't having the flag variable in the graphics struct set anymore?
    Just something I've noticed now.
     
  4. Malc2169

    Malc2169 Gamer

    I’m having the same/similar issue with the status. All I ever see is Live - unable to determine Off, Replay, etc.
     
  5. expor

    expor Gamer

    What exactly do you mean with 'not having the flag variable'? The SDK hasn't been changed in a long time, so unless you removed it yourself I don't know why it would be 'gone'.

    My game status is working fine. I use it to broadcast telemetry data to a backend and display it on a website, and that feature is working as it always was.

    For both of you; make sure you cross-check your struct definitions against the latest document, as well as datatypes / size. Any small mistake can cause all other variables to become unusable.
     
  6. Berno

    Berno Racer

    I never said the word gone. Its not being set.
    ACC_FLAG_TYPE flag for me is always zero.
    I've caused a few pile ups to test.
    In game is yellow, in the Shared Memory always set to 0. ACC_NO_FLAG.
     
  7. expor

    expor Gamer

    I see, I misinterpreted 'not having' as 'gone' ;). I can do a quick test, but some variables indeed don't work. Although my Fanatec wheel is using the flag info for the flag LEDs so I'm pretty sure it should work...
     
  8. Berno

    Berno Racer

    I just checked my status is working too. You might have something else wrong?
    Just had 1 for Replay no issues.

    hmmmm what on earth is going on for me then :(

    *edit* Now I misread don't work for do work o_O
     
  9. expor

    expor Gamer

    I do get flag updates, but I don't seem to get the YELLOW_FLAG (I'm standing still on track, and it shows YELLOW in the HUD):
    upload_2021-1-11_10-27-26.png

    Edit: My rim is also not showing the YELLOW_FLAG when standing still myself. It does however work when driving and entering a yellow sector. I think it only shows when YOU enter a yellow flag sector, not when you are in one already. Whether that is a bug or not I will leave out (since you're the one standing still it could be assumed it's obvious you're causing the yellow).
     
    Last edited: Jan 11, 2021
  10. Berno

    Berno Racer

    At least its not just me :D
    Perhaps Fanaleds is its own separate protocol? IDK.
    Also maybe that cool new display in the 2020 cockpits that shows the flag status and the sector of a yellow flag has somehow broken the yellow in shared memory?

    Hopefully someone from Kunos notices this and it can be fixed in a patch.
     
  11. expor

    expor Gamer

    ACC implements the Fanatec SDK, but I'm using Fanalab and for that you switch that plugin OFF. So the only thing it can be using is shared memory AFAIK. Anyhow I updated my post, yellow seems to only work when entering the yellow sector yourself, not when you're causing it.

    Rather, I would like to have the flag monitor values as flag updates are only for current sector. It would be great to have a way to see all sector flags (like shown on the new monitor) in shared memory!
     
  12. Berno

    Berno Racer

    Nice work narrowing it down.
    I would say its a bug because if there is yellow on the HUD it should be yellow in the status.
     
  13. Malc2169

    Malc2169 Gamer

    It might be something I'm doing sure enough, but my program recognised the LIVE status once I enter the cockpit but never changes again after that, even once I exit the sim entirely (back to desktop).
     
  14. expor

    expor Gamer

    The value is updated for sure:
    upload_2021-1-11_11-50-0.png

    You'd have to share some code where you use/update/etc the value to give further help.
     
  15. Malc2169

    Malc2169 Gamer

    Oh man, tired eyes... it's entirely my fault - I was checking myStatus rather than mySimStatus

    Apologies for the false alarm :embarrassed:
     
    AndyK70 and expor like this.
  16. Malc2169

    Malc2169 Gamer

    What is the chances of allowing float tyreWear[4] as shared entity in ACC?
     
  17. TheBigO

    TheBigO Racer

    Hello all,

    maybe you have seen my thread "Simulator Controller...". Curently I am working on an AI based race engineer, which might handle pitstop settings fully automatically. A forward / backward chaining rule engine is already up and running and currently I am using the shared memory interface to populate the knowledgbase with all the data. And here comes my questions:

    1. There are fields available in the documentation, which are missing in the "SharedFileOut.h" header file, for example brake disc and pad wear. Is the header file outdated there and how do I get an updated one?
    2. Furthermore I am looking for additional values, for example regarding the current weather and the forecast trend for the next time. The information is there, as we all know, but not available in shared memory. Are there any plans to include these data as well?
    3. Last but not least, it would be great to get access to the current setup data (especially base tyre pressures, tyre sets and compounds for the different strategies). I am able to get these by OCR scanning of the pitstop MFD, but this is a very CPU intensive process, which I hope to avoid.

    Thanks a lot in advance

    Oliver
     
  18. I created opensource Java service to get data from ACC shared memory through REST API or websocket. It is based on version 1.6 of documentation. I'm working on some detailed fuel calculation right now. https://github.com/madmak2005/acc-manager-server
     
    wotaskd likes this.
  19. AMM02

    AMM02 Rookie

    hello guys, im new to this and love to learn, but i want to ask, how can i get carID instead carModel from shared memory, cause i always get zero carID ?
     
  20. Malc2169

    Malc2169 Gamer

    Are you using Graphics>int playerCarID ?
     
Similar Threads
Forum Title Date
ACC Physics Differentiate AC and ACC Shared Memory With Different Naming. Jan 3, 2024
ACC Troubleshooting ACC Shared Memory: AC version still reports 1.7 Apr 19, 2023
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 Troubleshooting ACC crashes the entire PC after 10-20 minutes since 1.10.2 May 8, 2024
ACC PS4/PS5/XB1/XBX/S General Discussions XBox-Acc doesn't start after update ( code 0x8b050033 ) May 4, 2024
PlayStation 4 Discussions Simrig SR2 motion system - telemetry data support missing in ACC May 3, 2024
ACC Multiplayer ACC dedicated server race start hangs, but only on Nordshleife Apr 13, 2024
ACC Troubleshooting Access violation on game startup . The UE4-AC2 game has crashed Apr 11, 2024
ACC Multiplayer ACC Server Setting Apr 7, 2024
ACC Troubleshooting Fixed -RealtimeCarUpdate.Heading/Yaw removed from ACC Broadcast UDP in favor of WorldPosZ/Elevation? Apr 4, 2024
ACC Multiplayer Missing information in ACC Server Admin Handbook Version 1.10.0 Apr 3, 2024
ACC Physics ACC inconsistensies should be addressed for the future of the game. (Ex: Braking mechanics & tracks) Apr 3, 2024
ACC PS4/PS5/XB1/XBX/S General Discussions ACC chrashed started Race in carriere modus Apr 2, 2024
Bug reports acc fov bug Apr 2, 2024

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