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: 157
Last edited:

Latest News

To join the OverTake Racing Club races I want them to be: (multiple choice)

  • Free to access

    Votes: 82 90.1%
  • Better structured events

    Votes: 15 16.5%
  • Better structured racing club forum

    Votes: 15 16.5%
  • More use of default game content

    Votes: 9 9.9%
  • More use of fixed setups

    Votes: 25 27.5%
  • No 3rd party registration pages

    Votes: 29 31.9%
  • Less casual events

    Votes: 8 8.8%
  • More casual events

    Votes: 29 31.9%
  • Other, specify in thread

    Votes: 4 4.4%
Back
Top