AI Lap Improver for F1 cars and tracks (experimental)

Maybe you're a programmer and you've made some cool tool for TS. Share it here with all the other players.

Moderator: Forum Moderators

Post Reply
power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm
Location: Finland

AI Lap Improver for F1 cars and tracks (experimental)

Post by power79 » Tue Nov 17, 2020 6:36 pm

Hi.

I made this for my own use but thought maybe share it too. It's not really as good as I think it could be but because it is already good enough for my purposes I probably won't spend much time for improvements unless there's actually some interest for it here (does anybody even visit this forum anymore?).

It is meant and tested for F1-Genesis/F1-Origin with the released 4K F1 tracks. Not advicing to try it with anything else.

Not all laps give good results and some get broken so you still need to test laps to find the good ones.


Main Features:
(1)
Adjusting AI lines to be safer(mostly corner exits) so that bots don't drive outside so often. Doesn't fix human errors from lap, like driving offroad or hitting obstacles so only use Lap Improver with "clean" laps(corner cutting should be ok, at least in theory). Also remember that final time that program gives out is just a target, bots won't be able to reach that.

(2)
Improving AI lines for some corners if it is possible to do(safely). Doesn't do that much for very good laps but average ones usually benefit.

(3)
Saving AI points every 0.1 sec instead of default 0.2 sec. I am pretty sure this improves bot driving at least a bit. Takes twice as much disk space but should be worth it.

(4)
SUPERLAP. After finishing with all other (selected) laps, if this option is checked Lap Improver combines best parts of those laps to SUPERLAP. Doesn't guarantee best time because combatilibity and other issues with different laps but usually gives at least second fastest time.

(5)
Possibility to save driving line to png image so you can compare original line with improved one.


Notes:

- When creating AI lines for track always remember to finish all laps on same side of the road. Otherwise bots might slow down heavily when they change laps and that ruins their lap time.

- Lap Improver reads "trackname.lap.new" files only and it exports laps to "trackname.lap.fix" file so remember to change filename to correct one before trying new lines.

- Creating laps can be quite slow depending of your processor speed. Max laps per car/track is 50 but you probably shouldn't start running with that many. (Lap processing can't be stopped midway. That could be one of the improvements for later...).





Download here:
AI Lap Improver


Hopefully it doesn't crash too much. Like I said, I made it for myself so it is not tested for any "unintended" use cases.

User avatar
Mike Nike
Community User Level: 5
Community User Level: 5
Posts: 1132
Joined: Sat Oct 30, 2004 3:11 pm
Location: Germany
Contact:

Re: AI Lap Improver for F1 cars and tracks (experimental)

Post by Mike Nike » Mon Nov 23, 2020 9:35 am

"does anybody even visit this forum anymore?"

Probably more new players or old players than those who already joined the Discord server.
I just randomly visited this forum after +-1 year.

Post Reply