(02-11-2019, 09:07 AM)samsepi0l Wrote: I'm curious if you could post about AI (LP) file making tricks you may use.
I started with Tjerk's tutorial, and then where I wasn't happy with the result, I tried something different.
I made the maxpanic/minpanic laps as close to the wall as possible.
I made the maxpanic/minpanic/maxrace/minrace laps all with low speed, to drive as exactly as possible. I didn't notice any negative effects because of the low speed.
I made all my laps at average temperature, no wind and 20gal fuel with race setup.
I tried to drive my pace lap as close to the track center line as possible, and additionally I divided the dlat values by 2. At first I tried to hold a maximum speed between 80 and 100mph, but because the AI uses the pace.lp speed as long as they catch up the pace car, it took too long, and the time lost by pitting at the beginnig of a yellow flag was too low, so I decided to drive a "fast" pace lap with boost level 1, 3 degrees wing and in 5th gear (on the road course).
I took my race lap also for the pit lap, I replaced only that section, where the pitting cars driving off the racing line.
I corrected the corner speeds of the race/pass1/pass2 laps, like described here:
https://icr2.net/forum/showthread.php?ti...32#pid7232
I corrected the dlat values, where necessary to have minrace/maxrace/pit between minpanic/maxpanic, pass1/pass2 between minrace/maxrace and race between pass1/pass2.
The most difficult thing for me was to make the pass1/pass2 laps. Only driving on one side of the track doesn't give a realistic result. To choose the right line, I tried to imagine, that I'm continously overtaking a car on the racing line and defend my position against an attacking car. Because it was so difficult to drive continously on the passing line, I decided to reduce the fuel load, and I hoped, that this will make for the AI cars overtaking easier. But it worked too good. After 3 laps there was no action on the track, because the fast cars overtook the slow cars so fast, and the field spread away on the track. So I needed to make the pass1/pass2 laps also with 20gal fuel.
Because of the length of the track, I couldn't make perfect laps, so I cutted several lap parts together to make the race/pass1/pass2 laps.
You can have more than one lap in the replay file, but with more laps the chance are higher, that the files will have bad values or the program crashes. I think my longest replay, which worked, had 6 laps (around 13 minutes). You can get also bad values, when you make a heavy drift or when you have Coriolis-values more than +/- 40. You can see it quite easy, because the bad values start at one point, and after it everything is trash.