AC Python Documentation missing identifier

Discussion in 'Apps' started by Giovanni Rizzetto, Sep 15, 2023.

  1. Giovanni Rizzetto

    Giovanni Rizzetto New Member

    Joined:
    Sep 15, 2023
    Messages:
    2
    Likes Received:
    0
    Hi,

    I am playing with an assetto corsa app to see what kind of signals I can extract form the game and see how well the simulation works.

    I was trying to get the lateral friction coefficient for each tyre, I see that it should be possible to read it with the Dy indentifier :

    dy = ac.getCarState(ac.getFocusedCar(), acsys.CS.Dy)

    but when I try, it says that no such thing exists ("type Object CS has no attribute Dy"). I have the same problem with the ThermalState identifier.

    I was able to get to every other signal I wanted.

    Is it possible to extract those two or am I missing something?
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,119
    Likes Received:
    381
    it gives back 4 values at once, and its uppercase CS.DY
    car= ac.getFocusedCar()
    dyFl, dyFr, dyRl, dyRr = ac.getCarState(car, acsys.CS.DY)
     
    luchian likes this.
  3. Giovanni Rizzetto

    Giovanni Rizzetto New Member

    Joined:
    Sep 15, 2023
    Messages:
    2
    Likes Received:
    0
    Great, with DY it works. Of course, there is no problem in just using one variable to store all the four components.

    I have to signal that in Python SDK I found on this website the identifier is wrong: Dy.

    What about ThermalState? I have the same problem, it might again be a problem in how the identifier is spelled.
     
  4. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,119
    Likes Received:
    381
    ye, the py doc is wrong about that

    CS.CurrentTyresCoreTemp
    CS.LastTyresTemp

    see ...assettocorsa\apps\python\system\acsys.py
     
    luchian likes this.
  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