Forums
Need help with AI creation - Printable Version

+- Forums (https://www.icr2.net/forum)
+-- Forum: CART Racing Headquarters (https://www.icr2.net/forum/forumdisplay.php?fid=1)
+--- Forum: Indycar Racing 2 - CART Racing (ICR2) (https://www.icr2.net/forum/forumdisplay.php?fid=2)
+--- Thread: Need help with AI creation (/showthread.php?tid=167)

Pages: 1 2


Need help with AI creation - Pavel 69 - 04-12-2007

Hi
Because Papy Cleveland is very anaccurate I decided to make new Cleveland track for Icr2. I made track but I can not make good lp-files. AI cars always ride another lines than I want. AI make earlier turns, ride on the grass. You can see it if you enter practice.
So can anybody help me with AI creation.

P.S. I make two versions of the Cleveland: with wall on the pit entering on the back stretch, and without wall. To install second version you need to insert files from the folder "walloff" into the Clevelnd.dat.
Track has one bug (I think one). At the exit of the lust chicane don't ride near right wall, car will crash.


RE: Need help with AI creation - Wolf_pd - 04-13-2007

Interesting!

I made a new version for Cleveland at one moment too. I will send that one to you, so you can see what I made of it. Maybe you get new ideas from it.


RE: Need help with AI creation - Nintendork327 - 04-13-2007

Pavel 69 Wrote:Hi
Because Papy Cleveland is very anaccurate I decided to make new Cleveland track for Icr2.

Huh? I thought it was correct.

I know circa 1986 the front stretch of Cleveland had a kink in it that has since been straightened.


RE: Need help with AI creation - OI812 - 04-13-2007

Nintendork327 Wrote:
Pavel 69 Wrote:Hi
Because Papy Cleveland is very anaccurate I decided to make new Cleveland track for Icr2.

Huh? I thought it was correct.

I know circa 1986 the front stretch of Cleveland had a kink in it that has since been straightened.

it's the right layout, but it's actually really poorly made if you look at it. A long time ago someone did post a pic that compared the game version and an aerial shot of the track to show how far off the game's version is. I thought that the reason it couldn't be made exactly like real life had something to do with the fact that ICR2 can't handle a track that comes back around too close to itself or something. At least I think that's what they mean Grin3


RE: Need help with AI creation - EdwRom - 04-13-2007

Here's a comparison of the Night Cleveland track and Pavel's 3do . Quiet a difference Would it be too bad if the sections between turn 1-2 and 7-8 were made slightly longer so that the front and back sections can be separated a little bit? It will spoil the accuracy of the track but it should avoid the crashing/space warp problems created by turns 4 and 10 being too close.


RE: Need help with AI creation - Nintendork327 - 04-14-2007

Thanks for the info.

The more you know....


RE: Need help with AI creation - Pavel 69 - 04-30-2007

Hi!
So can anybody help me with AI.
When I convert replay to lp-file AI-lines in lp is differ from what I have made. For example, in torn 2 they ride on th grass of the right side of the track, but in replay I was riding on the center of th track. Can anybody explain this.

Thanks.


RE: Need help with AI creation - OI812 - 05-03-2007

sorry, no help with the AI, but I found this interesting. I've been watching a ton of videos on YouTube of the 93 and 94 seasons, and i got a screenshot of the Cleveland coverage. Maybe the guy at papy was looking at this when he designed the track for the game, hahaha. Anyways almost all of the videos on YouTube of the good ol' days of CART are uploaded by the user champcar4ever. Check 'em out! Link to the cleveland vid:
http://www.youtube.com/watch?v=MnzNzgJ9JNo


RE: Need help with AI creation - samsepi0l - 02-11-2019

Pavel- I'm not sure if you will see this but I am diving into AI creation and your cleveland AI ended up working really well. I'm curious if you could post about AI (LP) file making tricks you may use.


RE: Need help with AI creation - Dennis - 02-12-2019

(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?tid=1105&pid=7232#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.