Jump to content


* * * * * 2 votes

AIEdit


  • Please log in to reply
34 replies to this topic

#21 Lee200

Lee200

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,518 posts
  • Gender:Male
  • Sim interest:GPL

Posted Dec 08 2012 - 02:59 PM

View PostGinetto, on Dec 08 2012 - 02:37 PM, said:

didn't Lee already made a tool for this?

Yes, I did.  :rolleyes:

It was a first go at an attempt to write a program that would fully automate the production of all the .lp files based on the ,trk file.  Setting the pass lines halfway between the race and min/max race lines while limiting the maximum offset was the first step.  I never was able to fully determine the min/max race lines, however, as many tracks use nonstandard traces.  And determining the proper race line was a still a work in progress.  The F2 mod came along about this time too so that diverted further work on the program.  Then there was the CanAm mod...etc.

No problem with Martin writing another program though if it helps someone.

Edited by Lee200, Dec 08 2012 - 03:00 PM.


#22 ezechiel47

ezechiel47

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 354 posts
  • Gender:Male
  • Sim interest:GPL

Posted Dec 10 2012 - 02:32 PM

Hi all,
I had never heard of Lee's tool. Many thanks for you efforts, Lee.

Martin, it works great ! :thumbup:
Only one thing or two...
-the created files keep the "flags"of the race.lp. Its better to delete them. If its not possible in the tool, its worth saying it in the readme.
-would it be complicated to have the choice of a different value at left and right side ? (Just saying : its also possible to make twice the stuff with two different values and keep the appropriate file).

Anyway. Again a great thank you !

Ez

#23 MECH

MECH

    Double poly killer

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,408 posts
  • Gender:Male
  • Location:Here ->
  • Interests:My Girlfriend
  • Sim interest:GPL

Posted Dec 10 2012 - 03:05 PM

View Postezechiel47, on Dec 10 2012 - 02:32 PM, said:

Hi all,
I had never heard of Lee's tool. Many thanks for you efforts, Lee.

Martin, it works great ! :thumbup:
Only one thing or two...
-the created files keep the "flags"of the race.lp. Its better to delete them. If its not possible in the tool, its worth saying it in the readme.

-would it be complicated to have the choice of a different value at left and right side ? (Just saying : its also possible to make twice the stuff with two different values and keep the appropriate file).

Anyway. Again a great thank you !

Ez
Grand Prix Legends ignores the passing flags so it shouldn't be a problem having those in the files.

No it's not a problem adding a parameter to have left and rigt offsets :)

#24 ezechiel47

ezechiel47

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 354 posts
  • Gender:Male
  • Sim interest:GPL

Posted Dec 11 2012 - 03:51 PM

Hi Martin,
thanks for your answer.
About the flags, ive always heard that we have to delete all flags in other files than race.lp because they may alter ai behaviour.
So i did a test :
I watched Ai racing at mosport with xtra 69 mod : the cars are beautiful and the ai drive quite well.
Then i injected the flags of the race.lp into the pass1 and the pass2. On a first look, i believed that all was normal. But after a few laps, i saw that the AI was joining the pits at... 24 km/h !
Not an evidence. But surely a clue... I prefer to delete flags into .lp file files other than race.lp

Good luck in the many projects you are involved in (specialy the alpine for the rx mod)

Ez

Edited by ezechiel47, Dec 11 2012 - 03:52 PM.


#25 MECH

MECH

    Double poly killer

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,408 posts
  • Gender:Male
  • Location:Here ->
  • Interests:My Girlfriend
  • Sim interest:GPL

Posted Dec 12 2012 - 12:50 PM

View Postezechiel47, on Dec 11 2012 - 03:51 PM, said:

Hi Martin,
thanks for your answer.
About the flags, ive always heard that we have to delete all flags in other files than race.lp because they may alter ai behaviour.
So i did a test :
I watched Ai racing at mosport with xtra 69 mod : the cars are beautiful and the ai drive quite well.
Then i injected the flags of the race.lp into the pass1 and the pass2. On a first look, i believed that all was normal. But after a few laps, i saw that the AI was joining the pits at... 24 km/h !
Not an evidence. But surely a clue... I prefer to delete flags into .lp file files other than race.lp

Good luck in the many projects you are involved in (specialy the alpine for the rx mod)

Ez

Hi Ezechiel,

I've uploaded a new version for you to play with :)
It has 2 offset parameters for, 1 for each passing line.
You only need to enter the distance; it will add or subtract depending on the passing file.

I also let it reset the flag values for both files. Although i'm quite certain they have no effect in Grand Prix Legends it can't harm removing them. (Grand Prix Legends only uses the flags in the race.lp for the ai. You can test this by using any flag you wish in the passing files it won't have any effect. What you describe of the 69 isn't related to passing files, could be pit.lp or boundaries of pits or something else ;) )

#26 ezechiel47

ezechiel47

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 354 posts
  • Gender:Male
  • Sim interest:GPL

Posted Dec 12 2012 - 03:53 PM

Many thanks for the two evolutions ! :thumbup:
Going to try that as soon as possible...

Ez

#27 ezechiel47

ezechiel47

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 354 posts
  • Gender:Male
  • Sim interest:GPL

Posted Dec 16 2012 - 11:11 AM

Hi,
Works great ! :thumbup:
Soon, it will be too easy to make Ai...

Many thanks

Ez

#28 Pablo_Fernandez

Pablo_Fernandez

    GPL Track Maker

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 147 posts
  • Gender:Male
  • Location:Buenos Aires, Argentina
  • Interests:GPL. Nascar. DTM. MOTO GP
  • Sim interest:GPL

Posted Mar 10 2013 - 04:47 PM

Thanks MECH, have been watching a little and seems to be very useful. I will use it when have to assemble the AI/LP files

:thumbup:

#29 JMF

JMF

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 299 posts
  • Gender:Male
  • Location:US
  • Interests:GPL, gardening, woodworking, classic rock, modern blues, jazz-rock fusion, and sex.
  • Sim interest:GPL

Posted Aug 29 2013 - 11:55 AM

a) What does the tolerance value do when you generate the curve (.lcv file)?

B) If I set the tolerance to 0 instead of 0.5 will it leave the longitudinal, lateral, and yaw unchanged?

c) What effect does raising and lowering the tolerance value have?

d) What does the grip value do when you generate the .lp file?

I'd like to be able to change the lateral value without having any effect on the longitudinal and yaw values. Sometimes when I create a .lcv and later the .lp file AIEdit makes a lot of changes I don't like. I'm trying to learn how to better use this program. Any help would be appreciated.

Edited by JMF, Aug 29 2013 - 11:55 AM.


#30 MECH

MECH

    Double poly killer

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,408 posts
  • Gender:Male
  • Location:Here ->
  • Interests:My Girlfriend
  • Sim interest:GPL

Posted Aug 29 2013 - 12:39 PM

a. This value is giving the calculations for the lcv file room to deviate from the used lp source file.
So a smaller value should follow your lp more closely.
b. No it doesn't preserve the original yawspeed etc.. values exactly because the lines are made by formulas.
But you could get them more equal by using lower tolerance i guess ©
d. The grip value gives the car better grip. This was necessary for the min/max lines. A car with a broken suspension would spin in tight corners returning to pits.

I believe you can copy the entire column from the original lp into the new lp in Aiedit.
Although that might give some unpredictable results because all those speeds are related to eachother and the drivingline. Aiedit was designed to create lp files based on an average 67 engine. That's why it not always works for other mods that well. Besides that you have the fact that the ai  does not use the same restriction a human driver does . Which means the lap you drive can't be a 1-on-1 base for the ai lp files.
What Aiedit does is is create a driving line that takes in acount those restrictions up to some extend. You still need to finetune the lines to amke room for overtakes, tight corners, add flags etc..

#31 Pavel

Pavel

    Bruce McLaren

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 831 posts
  • Gender:Male
  • Location:Minsk, Belarus
  • Interests:Racing, Simracing, Music
  • Sim interest:GPL

Posted Aug 29 2013 - 12:51 PM

As I understand: higher the tolerance you set - program will try to follow lp line closer with lcv file by using more curves (points).

Grip value affect speed (longitudinal, lateral and yaw) generated by AIedit. Lower grip - lower speed in corners, slower acceleration.

What changes does AIEdit make to your lps? AIedit use only latitude points from your original lp. Using this data it generates lcv file. When you convert lcv to lp AIEdit generate all three speed parameters base on selected grip and curves data from lcv file.

#32 JMF

JMF

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 299 posts
  • Gender:Male
  • Location:US
  • Interests:GPL, gardening, woodworking, classic rock, modern blues, jazz-rock fusion, and sex.
  • Sim interest:GPL

Posted Aug 29 2013 - 05:21 PM

Alright fellows, that information helps. That will save me time experimenting.

View PostPavel, on Aug 29 2013 - 12:51 PM, said:

What changes does AIEdit make to your lps?

I've ruined a few files in the past. A recent example is take the AI files I just posted for Spa and run them through AIEdit with the default tolerance and grip and they change a lot. For example, the rough section just before the start finish line where the car is bouncing, AIEdit makes the cars drastically slow (down to 50 mph) then fishtail side to side then take off again when I'm full throttle out of LaSource down to Eau Rogue. The original replay does the same thing. Because of that error lap times increase a significant amount. I didn't use the lcv on the Spa or Lemans race.lp I recently uploaded. Those files are driving to suit rpytolp and manual editing of values. I really like using AIEdit and the lcv to fine tune the lateral position but it does things to the other values I don't like. I know I can work around that by pasting the yaw and longitudinals back into the lp after I use the lcv for the laterals but I was looking to avoid that by changing the tolerance and grip values.

View PostMECH, on Aug 29 2013 - 12:39 PM, said:

Which means the lap you drive can't be a 1-on-1 base for the ai lp files.

That's funny. I've learned how to drive a lap better to get rpytolp to produce the file I want. My replay laps are nothing close to the way I naturally drive. After all the replays I made to produce the lp files for Spa, it tooks me days to get back to my fast lap times.

Once again, I thank you guys for helping me better understand the program.

#33 Michkov

Michkov

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 879 posts
  • Gender:Male
  • Location:Graz
  • Sim interest:I am here to spam and wish to be deleted after registering

Posted Jan 14 2015 - 07:53 AM

I'm trying to move lcv control points about but the new line between them gets a big curvature. sometimes even going off track. I've been through the manual a couple of times now but cant find anything on how to straighten the line.

#34 ginetto

ginetto

    GPL track editor

  • Administrators
  • PipPipPipPipPipPipPipPipPipPip
  • 2,829 posts
  • Gender:Male
  • Location:Lombardia, Italia
  • Interests:Mountain
  • Sim interest:GPL

Posted Jan 14 2015 - 08:16 AM

add some points in between before to do the change; they will hold the line in place eventually

#35 dbell84

dbell84

    Dan Gurney For President

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 922 posts
  • Gender:Male
  • Location:20 minutes from Road Atlanta
  • Interests:Whatever
  • Sim interest:GPL

Posted Jan 14 2015 - 08:27 AM

Great to see you back, Ginetto!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Sim Racing Links