to get the opti ai driver , you need to adjust the fast path,to real race track drivers.if there a kink in the ai file, select the track points and drag it up the track nodes, selected in the unselected menu ,click normalise path.
in aiw file edit these to >1.0
WorstAdjust=(0.9000)
MidAdjust=(1.0000)
BestAdjust=(1.1000)
Whilst tinkering with rFactor AIW (and, by extension, the SimBin titles) lately, whether using the BTB editor or the ISI AIW editor, I can't stress how important those three lines in the AIW file are. These three lines, in combination with a bunch of parameters in the mod (tire file, talent file, etc.) control how well the AI perform.
As a track designer, you don't have control over what a mod creator does, so it's up to you to provide a reasonably good AIW. Since there an incredible number of mods (approaching 200 for rFactor) out there and only one fast path, it's not going to suit all mods. A reasonably good AIW will at least get the fast and slow cars around without quirks, so it's important to test with a variety of cars of differing capabilities that you're comfortable with. For myself, I adjust these parameters for NAGT, Historix, AE86 Club, Spirit of 76, and the original ISI cars without creating any setups for myself.
I'm not a good formula car driver, but I also at least make sure the faster formula cars do not exhibit any unusual behaviors... it's okay if one slides off the track every other lap or so (particularly when they're traveling in a pack), but if two are going off every lap, then it's time to examine the corner and make adjust. The result may take a tenth or two off lap times for your favorite mod, which can be dialed out with the parameters.
The default WorstAdjust, MidAdjust, and BestAdjust create a very wide range of lap times. 0.9000 to 1.1000 is a 20% range, which means if a lap takes 100 seconds, then the worst lap could be 20 seconds slower than the best, even before the talent files are applied! That's a ridiculous range for a driver who doesn't spin out. This is one reason most AI never do well against a decent human player at
100% difficulty. Also, the AI is slower in traffic; gosh, it slows human players down, too, so this is a reasonable aspect and laptimes will be noticeably slower when the AI are fighting themselves or human players.
So the first thing I do now is to tighten up the values so they range over only 1-2% (1-2 seconds on a 100 second lap time), have the AI qualify (use that button for Finish Session rather than waiting), and compare their best times to my own best time. Then I edit the BestAdjust factor so the AI are turning my lap times, or a few tenths faster, and tighten up the WorstAdjust & BestAdjust times to match. I then race against the AI for many laps (30 minutes) and decide whether I've got it right. You have to be honest about your skills as a driver in a particular car to reach a sound decision on the final values.
Finally, once I've gotten it right for myself, I expose the AIW to friends. After all, you know your racing buddies and have a good feel for their capabilities, so their experience with the AI will be worthwhile.