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

    stomo73 Rookie

    Hi, According to the latest Share Memory Doc (v1.8.12) physics page contains Mz (self aligning torque) parameter, but these values are all empties (zero). I use the latest ACCSM_Example to test. I have the latest version of AC from Steam on Windows 10 64bit. What wrong?
     
  2. jonge

    jonge Gamer

    Will there be an update to the shared memory manual that contains the Porsche 992 GT3-R 2023 from the "GT World Challenge 2023" DLC?
     
  3. MSR | Grimjaw

    MSR | Grimjaw Rookie

    Same, I tried to get the values for mfdFueltoAdd, mfdTyrePress from GraphicsUpdated method, but they all return 0.. will there be an update to ACCSM Example? Am i missing anything?
    If someone has a working ACCSharedMemoryPlugin.dll please do share
     
  4. Dan658422

    Dan658422 Rookie

    Can anyone confirm what the coordinate system is for the local physics vector values, such as LocalVelocity, AccG, LocalAngularVelocity etc.
     
  5. Kris Jackson

    Kris Jackson Rookie

    I want to start working on my own app, but before I get too far in to it is it possible to get the setup data from shared memory or UDP?
     
  6. Iko Rein

    Iko Rein Racer

    Hi, there is no setup data coming via Broadcast data nor SharedMemory.

    There is no public way to access the current car setup real-time. If you really want to get access to the setup data, you have to ask your users to always save the setup they are using for the session, then load the setup data via the app, where you have to parse the JSON setup file and set the parameters in your tool. So not very easy or something, you can easily automate. One option I have been thinking, is that the driver would always save the setup with the same name, i.e. the driver can have several setups, but before starting the session, save it e.g. as 'ActiveSetup' and then my Tool would load that file. Problem is that the driver must always do that and if they don't, then the data is not valid/current.

    Cheers.
     
    Last edited: Nov 6, 2023
  7. Kadman

    Kadman Rookie

    Update please :D
     
  8. Butzy

    Butzy Rookie

    Hi Guys,
    I have a request.

    Where can I find in shared memory the Cup category of a driver?
    I mean: I have car classes, but there are also driver classes (Gold/Pro, Silver/Pro-Am).

    How can I found this info of my driver and all opponents?
    I read in documentation this:

    wchar_t carModel[33] Player car model see Appendix 2
    wchar_t track[33] Track name
    wchar_t playerName[33] Player name
    wchar_t playerSurname[33] Player surname
    wchar_t playerNick[33] Player nickname

    but no mention about Driver Class.

    Thank u so much for your support.
     
  9. Doug Duthie

    Doug Duthie Hardcore Simmer

    You'd have to use the Broadcast/UDP interface. Download the dedicated server and look in
    \SteamLibrary\steamapps\common\Assetto Corsa Competizione Dedicated Server\sdk\broadcasting\Sources\

    The InboundMessageTypes.ENTRY_LIST_CAR message gives all the driver details
     
  10. Butzy

    Butzy Rookie

    Hi Doug,
    Sorry about that.. I have not so much experience.

    I did not know that there is a broadcasting server for that.

    There are some code examples on how to connect to this interface and how to retrieve data?

    Thank u so much. I really appreciate your support :)

    Sorry another point:
    Do I need to start any ACC server broadcasting for obtain this information?
    I'm asking because I know plugins for SimHub that are returning those info without any server running on local.
     
    Last edited: Dec 11, 2023
  11. Doug Duthie

    Doug Duthie Hardcore Simmer

    While Kunos included the sample in the server stuff, it actually runs against the client - IIRC they give a running sample that you can amend. If you are going to use the UDP interface, head over to the Broadcast/Programmers thread - someone gave a fix for session cleanup which addressed a bug in the sample. I'll see if I can find a reference to it
     
  12. Butzy

    Butzy Rookie

    I have implemented the client, registered, received the REGISTRATION_RESULT event, and when I request the RequestEntryList as per the SDK code:

    Code:


    Code:
    using (var ms = new MemoryStream())
    using (var br = new BinaryWriter(ms, Encoding.UTF8))
    {
       br.Write((byte)10); // First byte is always the command type
       br.Write((int)connectID);
    
       return ms.ToArray();
    }
    It returns a new event 10 and then a 9...

    But from what I understand, 10 and 9 are outbound and not inbound.


    Code:
    UNREGISTER_COMMAND_APPLICATION = 9,
    REQUEST_ENTRY_LIST = 10,
    }
    I'm sure I'm doing something wrong, but I don't understand where. However, registration seems to be correct, returning the REGISTRATION_RESULT event (1).

    If you want, I can post the code here to understand better.

    Sorry, I'm not very experienced.
     
    Last edited: Dec 12, 2023
  13. Arotho

    Arotho Gamer

    Obviously Code would help massively.
    the REQUEST_ENTRY_LIST is a requesting event (as the name might suggest). So you need to Fire that Event and then wait for an Incoming Event. In this case EntryListMsgType and / or EntryListCarMsgType. Beware that in Team Races some driver details need to be requested again at a later point. The SDK that comes with the dedicated server stuff all handles that, so most of the code / logic u need u will already find there.
     
  14. Butzy

    Butzy Rookie

    I figure out!!!
    easier that I though.. I just copy paste the classes of the sdk, and magic was done.. before I was creating my udp connection by myself.. so stupid!
    Thank u for support :)
     
  15. Butzy

    Butzy Rookie

    Exactly.. I was refactoring them...instead to copy paste the classes and use them like they are hahaa

    Thank u so much!
     
  16. Doug Duthie

    Doug Duthie Hardcore Simmer

    BTW, if you are copying the sample, bear in mind it is a little leaky. @expor found a solution (see https://www.assettocorsa.net/forum/...-programmers-thread.53826/page-6#post-1137208 and https://www.assettocorsa.net/forum/...-programmers-thread.53826/page-7#post-1137264). Also, the sample just creates new connections for each session and doesn't really clean them up. If you don't handle both these, you will eventually crash ACC (ask me how I know :oops:)
     
  17. Butzy

    Butzy Rookie

    Yep thank u for the tip.
    I will exactly create only 1 connection, I saw about that.

    But thanks for the section of re-connection.. I was already looking into that.:)
     
  18. Butzy

    Butzy Rookie

    Hy guys
    Another question.
    About the value strategyTyreSet of SPageFileGraphic, what is expected to have?
    because as I saw in the sim, it returns me the current tyres I'm on... mmmm
    There is a specific properties to check the "next tyres type" will be changed in next pit?
    I mean: i would like to know if next pit I will mount dry/wet tires, and if dry, which set.

    Thank u
     
  19. Arotho

    Arotho Gamer

    SPageFileGraphic
    mfdTyreSet
     
  20. Butzy

    Butzy Rookie

    Hi Arotho, yes and no.. I mean.
    The value mfdTyreSet goes from 0 to 49 and are the DRY tyres set.
    But if I set WET tyres, this value is not changing.
    How can I know if I selected WET or DRY tyres for next pit?
    Thank u buddy
     
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 Yesterday at 11:59 PM
ACC PS4/PS5/XB1/XBX/S General Discussions XBox-Acc doesn't start after update ( code 0x8b050033 ) Saturday at 2:20 PM
PlayStation 4 Discussions Simrig SR2 motion system - telemetry data support missing in ACC Friday at 12:27 PM
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