Hi, I've been updating an InSim app which runs AI races and uses them to collect data.  It uses the following commands to launch the race:
Basically it seems like the problem is caused by ending a race with /end and then trying to use /clear. What happens is that one car is removed and the race immediately restarts.
I have verified this without using insim, the following steps ought to recreate it:
Cheers,
Omar
                
            - /end  (when a race is in progress)
 
- /sp
 
- /car XX
 
- /setup SET
 
- /track TRACK
 
- /clear
 
- /ai X   (however many times)
 
- /laps
 
- /start random
 
- /ready (to go)
Basically it seems like the problem is caused by ending a race with /end and then trying to use /clear. What happens is that one car is removed and the race immediately restarts.
I have verified this without using insim, the following steps ought to recreate it:
- launch lfs
 
- single player - apparently any track/car
 
- /clear
 
- /ai   (a few times)
 
- /ready
 
- /end
 
- /clear
Cheers,
Omar
