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

Latest News

How often do you meet up (IRL) with your simracing friends?

  • Weekly

    Votes: 29 8.8%
  • Monthly

    Votes: 17 5.2%
  • Yearly

    Votes: 24 7.3%
  • Weekly at lan events

    Votes: 2 0.6%
  • Monthly at lan events

    Votes: 1 0.3%
  • Yearly at lan events

    Votes: 7 2.1%
  • Never have

    Votes: 257 78.1%
Back
Top