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.

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
    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
    Programming Language - Apps - GUI Themes Python HELP, LIMITER ENGINE CHANGE WHEN PUSH THE BUTTON Dec 5, 2019
    Programming Language - Apps - GUI Themes Python [ERROR] ERROR LOADING MODULE Feb 28, 2019
    Programming Language - Apps - GUI Themes Python basic app imports Aug 10, 2018
    General modding discussion [Python] Handbrake Jun 16, 2018
    General modding discussion python API - how to get CAR_ID of all other cars in a race? Apr 25, 2018
    Programming Language - Apps - GUI Themes Calling all Python/SQL Experts - help required Mar 15, 2018
    Programming Language - Apps - GUI Themes How to use standard python libraries Jan 8, 2018

  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
     

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