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. Tom Shane

    Tom Shane Racer

    If I remember well, AC's shared memory had this type of problems too, but I'm not sure if Kunos ever tried to explain what is the actual problem/reason. Well it could be that the in-game data exhibit the same inconsistencies, but I can imagine it could also be the read/write operations to shared memory lacking any kind of locking/sync, so the other processes sometimes read incomplete page before it is fully written. Dunno. But it is certain working with such a data is a nightmare and the code very soon becomes just a collection of workarounds. :(

    I've already been there when I was creating pCARS Profiler and combined with the lack of support/communication from devs, I swore to myself "never again". :)
     
  2. f.e.negroni

    f.e.negroni Racer

    To bring some perspective, if you are trying to show real time data from the game then you don’t want to synchronise.
    If you are trying to analyse the data afterwards, unfortunately, yes the issue becomes relevant but only to a certain point.
    Even GPS fitness trackers have to massage the data afterwards as the needs for real time vs logging is very different.
     
  3. Iko Rein

    Iko Rein Gamer

    Also the spline for Silverstone and Spa does not change from 1.0 -> 0.0 at lap change (as one would expect), but goes like from 9.978 to 9.979 in case of Silverstone and bit less extreme for Spa. So this needs little bit of fixing to make graphs work correctly, if you are basing them on the lap distance.

    In my tool I have also added a "skip" for the packets at lap change. So in your example data, I am skipping the 2 packets in the middle, where lap hasn't changed, but sector has changed. So last packet for prev lap is the 2nd packet, first packet of new lap is the 5th packet. Missing 18ms (or few more packets) of data at the start of lap, typically on straight line, will not ruin the data for analysis.
     
  4. Tom Shane

    Tom Shane Racer

    I do totally agree. For purposes like motion rigs control, real-time dashboards and similar, the current data are okay. The problems start when you try to reliably detect session and lap start/end (still in real-time). But as I mentioned above, adding simple GUID (like) identifier to every session and properly resetting the data to default values after session end would make things SO MUCH easier.
     
    Last edited: Mar 16, 2020
  5. Tom Shane

    Tom Shane Racer

    I don't even need sampling rate anywhere near 20ms. And I in the past ended with the exactly same "skip" feature when working with AC. For my purposes I'm fine sampling at 4Hz, but you know, the "skip" workaround is just one of the many that you will need to implement because of the various surprises in the output data.
     
  6. AndyK70

    AndyK70 Alien

    If you need information about other players and laptimes...
    Eventually this was overlooked:
    Maybe it is not the best to get information only by shared memory access but better to get the information where it can be gathered the best from.
    Data for the players car, session info, etc.: shared mem
    Data for opponents: UDP Remote client

    just a thought :oops:
     
  7. Berno

    Berno Racer

    After 8 years of working on my dashboard software and working around each sims unique dirty data I would consider myself to be a "professional data masseur" more than computer programmer by this stage :D
     
    f.e.negroni likes this.
  8. Doug Duthie

    Doug Duthie Hardcore Simmer

    Hi,
    Is there any chance of getting the tyre wear populated in shared memory? We have the other stats for tyres (pressure/temp) and wear for brakes, so it would be nice to have a complete set
    Thanks,
    Doug
     
  9. AndyK70

    AndyK70 Alien

    @Doug Duthie it was stated already:
     
  10. Doug Duthie

    Doug Duthie Hardcore Simmer

    Yes...I know that. I was just asking if it was possible (giving brake wear is reported). It is just one of the things I've been asked to record in ACC Results Companion. If it's not possible or won't ever happen then that's fine, but there's no harm in asking.
     
    f.e.negroni likes this.
  11. RadstaR

    RadstaR Rookie

    Is ACC_PENALTY_TYPE enum right ?
    Because SPageFileGraphic.penalty returns for driving in wrong way value 22 (undefined) not 18 (ACC_Disqualified_Wrongway). Maybe others are wrong ? For example, ACC_StopAndGo_30_PitSpeeding is right value 10.
     
    Last edited: Mar 19, 2020
  12. RadstaR

    RadstaR Rookie

    And another problem. SPageFileGraphic.position is not in realtime :(
     
  13. Tom Shane

    Tom Shane Racer

    Is game reporting SPageFileStatic.aidFuelRate, aidTireRate and aidStability for you guys correctly? I have all assists and realism set to Pro and still I'm getting fuel rate and tire rate as 2.0 and stability as 1.0.

    Edit: This happens only for the first Custom Race Weekend after the game fresh start. This is the settings for the session causing problems.

    upload_2020-3-20_21-48-55.png

    Is there a place we can report this issues and somebody will read them? This one seems so empty. :)
     
    Last edited: Mar 20, 2020
  14. f.e.negroni

    f.e.negroni Racer

    I‘ll check it for you.
     
    Tom Shane likes this.
  15. Tom Shane

    Tom Shane Racer

    Thanks. I just updated the post, it seems it only happens in a specific scenarios.
     
  16. Robwarrior

    Robwarrior Rookie

    Hi,
    For external dashboard and lights animations purposes, I'm looking for a reliable way to tell if the car ignition is on or off.
    I looked at most of the available datatpoints with SimHub and couldn't find any obvious one (power or voltage based) or indirectly impacted by the ignition state.
    Any suggestion is welcome please.
     
  17. df1988

    df1988 Rookie

    Hey,

    I am wanting to get broadcast UDP data using node.js. Could anyone point me in the right direction to learn how to do this? I have looked at the broadcast sdk project in the game but I am still a bit lost.

    Thanks
     
  18. vthinsel

    vthinsel Gamer

    Hello,
    After the XSim plugin for PS4 I made, I'm willing to make one for ACC.... any updates on UDP support ? Will you drop the previous handshake protocol for a more UDP broadcast style "Project Cars" style ? Have you already defined the UDP structure ?
    Will UDP be supported also on PC ?
    Sorry for so many questions, but starting to get excited to get ACC on consoles :)
    Thanks !
     
  19. f.e.negroni

    f.e.negroni Racer

    I just tested the scenario as you described.
    I captured the shared memory 50 times a second.
    The result is as expected: fuelaid and tireaid at 1, stability at 0.
    I can send you the binary dump and the CSV output of my program.
    If you want, I can help you: you can run my program (see my signature) in parallel with your app: As long as you capture the physics packet number you can then match the results and validate this for yourself.
    I have a branch "feature/add-more-vars-to-csv-export" I made just for you so you can output those three values just so you can print them.
     

    Attached Files:

    Tom Shane likes this.
  20. f.e.negroni

    f.e.negroni Racer

    I can't see anything either: switching the engine on and off can be detected (RPMs go from 0 to progressively higher numbers) but the ignition doesn't seem to affect anything.
     
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 PS4/PS5/XB1/XBX/S General Discussions ACC Will it get cross party not just cross play on consoles? Saturday at 3:02 PM
ACC Physics Does ACC not implement real life braking mechanics?(Need some insights on this recent youtube video) Mar 16, 2024
ACC Multiplayer Communicating with accServer.exe (previously acRemoteServerUDP) Mar 14, 2024
Multiplayer Bugs & Issues Time of Day adjustment on AC Server Maker stuck at 8:00-18:00 even though I have full version ACCM Mar 2, 2024
ACC Screenshots & Videos ACC on PC with Controller | Race Element /ps5 controller activate triggers Feb 28, 2024
ACC Tools ACC will not recognise my Elgato steamdeck Feb 15, 2024
Bug reports ACC Restrictor parameter Feb 7, 2024
ACC Online Leagues / Championships room ACC Official Server higher requirement Jan 30, 2024
ACC Online Leagues / Championships room ACC LEAGUE AUSTRALIA Jan 29, 2024
ACC Tools ACC Time Trial Jan 24, 2024
ACC Troubleshooting ACC me funciona mal Jan 17, 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