Having problems creating an app in Assetto Corsa

Good day.



I am working on a school project for which I create an Assetto Corsa telemetry app.

My biggest problem right now is, that AC won't create a listBox in the app, no matter, what I do.


My Code:

global listBox

listBox = acsys.addListBox(appWindow, listboxName)
ac.setSize(listBox, 700, 300)
ac.setPosition(listBox, 50, 50)

for onePort in ports:
portList.append(str(onePort))
ac.console(str(onePort))
ac.addItem(listBox, str(onePort))



The console is not outputting any error message either. Since AC is printing the available com ports into the console window, I really do not know why it won't create the listBox. I need it to choose the correct com port I want to send my data to.
 
Edit:

I just checked again and AC is printing an error message to the console.
It says "... 'module' object has no attribute 'addListBox'"

I attached the file I got the attributes from.
 

Attachments

  • ACPythonDocumentation.pdf
    344.4 KB · Views: 167
Last edited:

Latest News

What is the reason for your passion for sim racing?

  • Watching real motorsport

    Votes: 327 69.6%
  • Physics and mechanics

    Votes: 204 43.4%
  • Competition and adrenaline

    Votes: 222 47.2%
  • Practice for real racing

    Votes: 95 20.2%
  • Community and simracers

    Votes: 126 26.8%
Back
Top