I need to share current gear number.
I have a python app which should receive this value.
The problem is this app works in different python version, and cannot work within built-in Python 3.3 (because of installed packages, etc.).
Any mod can be written to help with that from AC side, but...
Now it is possible to have normal autocomplete for `import ac`.
There is a new package: ac-stubs
Installation:
pip install ac-stubs
In action:
Git repo: https://github.com/rikby/ac-stubs/
Yes, good point, thanks. I grabbed all functions, just programmatically. Pushed ChatGPT to make the script :D
Do you mean I need to paste the trick into this file?
Thanks for your answer, mate.
Yeah, that's a shame =)
Probably it is worth to start a GitHub repo for this. :)
But who is the owner of this document?
It would be easier to fetch some raw text if he has it yet.
...nevermind. =)
I figured out the PDF contains the update from you + original document :)
I'm trying to figure out how to get "max gears" value for a car.
This AC API document describes "Gear" property, but there is no kind of "MaxGears" property.
Code for getting a current "Gear":
current_gear = ac.getCarState(ac.getFocusedCar(), acsys.CS.Gear)
Is there a way to get max gear's value?
I'm developing some headless app, and I need to use a python package.
In python env, it's simple,
pip install some-package
and that's it.
But we do not run some installation process in AC, don't we?
So, what's the best practice? Just copy?
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.