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: 210
Last edited:
Back
Top