[DOC] Python Doc

Discussion in 'Apps' started by assettocorsamods, Jul 28, 2014.

Thread Status:
Not open for further replies.
  1. assettocorsamods

    assettocorsamods Administrator Staff Member

    Joined:
    May 30, 2014
    Messages:
    905
    Likes Received:
    126

    Attached Files:

    Last edited by a moderator: Sep 24, 2023
    Jemm likes this.
  2. assettocorsamods

    assettocorsamods Administrator Staff Member

    Joined:
    May 30, 2014
    Messages:
    905
    Likes Received:
    126
    Just in case, added the attachement to first post.
    It was last updated on March 31st, 2016. Don't know if the googledocs version is up-to-date as well.
     
  3. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,113
    Likes Received:
    378
    new in the attached document as of 2020, 21 missing vanilla functions:

    Code:
    ac.isAcLive() as bool
    ac.restart()
    
    ac.isCarInPitlane() as bool # same as ac.isCarInPitline()
    ac.getCarSkin(carID) as string
    ac.getDriverNationCode(carID) as string
    ac.getCurrentSplits(carID) as List
    ac.getTrackLength(carID) as float
    ac.getWindSpeed() as float
    ac.getWindDirection() as float
    ac.isAIControlled() as bool
    ac.getCarEngineBrakeCount() as int
    ac.getCarPowerControllerCount() as int
    
    ac.freeCameraSetClearColor(r, g, b, alpha)
    ac.freeCameraMoveForward(float)
    ac.freeCameraMoveRight(float)
    ac.freeCameraMoveUpWorld(float)
    ac.freeCameraRotatePitch(float)
    ac.freeCameraRotateHeading(float)
    ac.freeCameraRotateRoll(float)
    
    ac.sendChatMessage(string_msg)
    ac.addOnChatMessageListener(ac_WindowID, callBackFunction)
    
    
    also changed wrong ac.addInputText() to ac.addTextInput() on page 11.

    CustomShadersPatch adds more python functions, see CSP wiki

    edit March 2023: there is now a dummy library you can use for better auto-comlete:
    https://assettocorsamods.net/thread...have-autocomplete-in-an-ide-e-g-pycharm.3088/
     

    Attached Files:

    Last edited: Mar 30, 2023
Thread Status:
Not open for further replies.
  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