The online racing simulator
Add commands to set AI setup, color, and vehicle/mod
At this time, to give AI a specific vehicle, setup and color, we need to enable the "AI use player setup" and "AI use player colours" options, then select the car (XXX/mod) we want, with the appropriate setup/color, and add the AI.

Some of those steps can be automated (/car UF1 /setup my_setup /colour my_color /ai AI 1), but having the above-mentioned options enabled is required. However, selecting a mod this way is not possible as there is no corresponding command.

I would like to see new commands that can set all of those without requiring the use of those options, and without having to choose a car for ourselves just for the AI to select it too. Something akin to the /aiskill command which only affects new AI, so maybe /aicar, /aisetup, /aicolour.

With that said, there are also 2 other issues with the current system:
  • Default setups and colors cannot be selected via /setup and /colour (default setups are "not found" and default colors have no names); maybe having those work with /setup 0 or /colour 1 could be a thing? (but would require forbidding setups/color names with a single digit)
  • Mods are not available for selection (that is true for players as well, not just AI), greatly limiting possibilities, especially with the new custom AI control in the 0.7F5 series of test patches (you can't spawn local AI with different cars from yours if you are already driving, and can't assign mods to them).
Quote from Bokujishin :At this time, to give AI a specific vehicle, setup and color, we need to enable...

Totally agree. Just trying to get some ai going myself, and really struggling to get different ai cars, I've been trying to pre set up a grid with a bunch of different cars on ai, then spawn them all, then start tracking each AI and controlling them.

A few downsides so far:
  • can't do this while players are active in the multiplayer server, this would need to spec all, end race, load grid, then start race to reset AI cars
  • can't choose which pit box to spawn from, hence above to control the order they spawn (I want the traffic to spawn in a different place than the real drivers)
  • An alternative could be spawn them, then teleport, but then I have to detect if someone is there, which can be tricky to spawn many ai
It would really help if I could just spawn ai like /ai AI1 /mod xyz123 /pitstart 20 /color 3

With this, it should check if I have access to the mod (error if not), spawn the named AI1 onto pitstart ID 20, use the 3rd color (or 4th if you want to start at 0), then I could spawn traffic in a section, and disallow real players from spawning in them.

The above would also be really helpful for spawning the object mods that are "tracks", currently I'm looking at doing autohotkey to do gui manipulation with the lfs ui to get the right mod, config, and color or skin. It should work for now, but would be super handy if it was easy to implement the above by calling it directly.

FGED GREDG RDFGDR GSFDG