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

Python Shared Memory

Discussion in 'ACC Tools' started by Tristan Cliffe, May 25, 2020.

  1. Tristan Cliffe

    Tristan Cliffe Simracer

    I suspect the answers will be short and negative, but is it possible to access the shared memory of ACC using Python?

    I find it a struggle to see the shiftlights at times; real life wheel LEDS are visible even in very strong sunlight, but in ACC they aren't. In AC there was a nice glow effect if, if I remember correctly, post-processing was turned up, but that doesn't seem to be the case with ACC.

    What I'd like to do is play a tone or a beep when the shiftlights flash (but given that isn't in shared memory I'd happily accept at a fixed RPM of my choosing).

    Worth asking, even if it just puts me out of my misery.
     

  2. Similar Threads
    Forum Title Date
    Programming Language - Apps - GUI Themes Shared mem / python / udp telemetry ouput isofication Oct 26, 2014
    Programming Language - Apps - GUI Themes Differences between shared memory and python data Jun 22, 2014
    Programming Language - Apps - GUI Themes Shared memory for python applications (sim_info.py) for ac >= v0.22 Jun 20, 2014
    Programming Language - Apps - GUI Themes Reading shared memory with Python Dec 13, 2013
    Programming Language - Apps - GUI Themes CSP Inputs in Python? Jul 14, 2023
    Troubleshooting - Workarounds Please help! Python33.dll ERROR Nov 11, 2022
    Programming Language - Apps - GUI Themes Is it possible to change physics values in game with Python? Sep 12, 2022
    Programming Language - Apps - GUI Themes Add Python Libraries to Assetto Corsa Python App Aug 25, 2022
    Programming Language - Apps - GUI Themes Import ctypes python library in AC apps May 19, 2022
    General modding discussion How to change Onboard FOV with python Mar 12, 2022
    General modding discussion What is the difference between list and tuples in Python Jan 19, 2022
    Chit Chat Room Surprised by Python apps Mar 4, 2021
    General modding discussion Where is the AC Module for Python? Jul 6, 2020
    Programming Language - Apps - GUI Themes Http request in python app Jan 31, 2020
    Programming Language - Apps - GUI Themes Can't import Python module Jan 7, 2020

  3. f.e.negroni

    f.e.negroni Racer

    Tristan Cliffe likes this.
  4. hoxiu2

    hoxiu2 Rookie

  5. PhilS13

    PhilS13 Alien

    simhub + Ensi Ferrum's plugin already does shift beeps. Per car and per gear customizable
     
  6. Tristan Cliffe

    Tristan Cliffe Simracer

    Thank you all. Much appreciated. I'll try the sim hub plug-in, but I remain tempted to make my own just for the fun/satisfaction/learning I'd get.
     
    AndyK70 likes this.
  7. daCoon

    daCoon Rookie

  8. CDN_Hammer

    CDN_Hammer Rookie

    Thank you for that daCoon, that is exactly what I was looking for. The previous example had me a little confused when trying to process the Static data, but your example has helped me understand it much more. Thanks to all in this thread as well!
     
  9. daCoon

    daCoon Rookie

    welcome, think if you need the latest state for acc, you can also use the latest doc to update missing values. Only the order and datatype is important.
     
  10. CDN_Hammer

    CDN_Hammer Rookie

    Anyone have any suggestions on how to get the "car left / car right / three wide" notifications? I've looked through the shared mem documents several times but don't see it. I presume it is available, as they do it in Crew Chief. I'm hoping it isn't from calculating the position in the game world! :(
     
  11. Jim Britton

    Jim Britton Hardcore Simmer

    car left / right are indeed from calculating relative world positions, combining shared memory and UDP data to get world co-ordinates then using player orientation data to rotate the co-ordinate frames of reference etc etc. It's a lot of faff
     
  12. gretzer

    gretzer Rookie

    @daCoon great work! Finally having something to work with in python. :)

    Anyone of you have the idea if it's also possible to have alle the data from the broadcast API in python. I'm not even able to establish the UDP connection...
     
  13. I am also looking for a way to retrieve broadcast data in python
     
  14. Ryan Rennoir

    Ryan Rennoir Gamer

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