Jump to content


* * * * * 2 votes

AIEdit


  • Please log in to reply
34 replies to this topic

#16 ezechiel47

ezechiel47

    Denny Hulme

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

Posted Nov 27 2012 - 02:47 PM

Many thanks, Martin.
Tested and approved. Quite a good stuff ! Indispensable to AI makers...

(only one thing not dramatic: it seems that pass1 and pass2 generated files are in reverse order - pass1 should be on left side and pass2 on right)

Thanks again for this little great tool.

Ez

#17 MECH

MECH

    Double poly killer

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

Posted Dec 04 2012 - 06:08 AM

View Postezechiel47, on Nov 27 2012 - 02:47 PM, said:

Many thanks, Martin.
Tested and approved. Quite a good stuff ! Indispensable to AI makers...

(only one thing not dramatic: it seems that pass1 and pass2 generated files are in reverse order - pass1 should be on left side and pass2 on right)

Thanks again for this little great tool.

Ez

Thx for the heads up Ezechiel :thumbup:
I'll have a look at it and fix that bug.

Do you feel there's a need to be able to use a different distant value?
E.g. a parameter which you can change to have a bigger/smaller offset.

#18 ezechiel47

ezechiel47

    Denny Hulme

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

Posted Dec 04 2012 - 01:03 PM

Yes absolutely !

For instance, for the big cars (canam and gt67), a bigger offset is better (2 meters or 2.5)

Many thanks again

Ez

#19 MECH

MECH

    Double poly killer

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

Posted Dec 08 2012 - 11:23 AM

New version with input uploaded :)


This version has also the proper + & - values for the pass files..

Edited by MECH, Dec 08 2012 - 12:40 PM.


#20 ginetto

ginetto

    GPL track editor

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

Posted Dec 08 2012 - 02:37 PM

Hi Martin :)
didn't Lee already made a tool for this?
Grand Prix Legends AI Pass Line Creator is the name and the usage is the same as yours.
Is a couple of years that I'm using it :think:

Attached Files

  • Attached File  Lees.jpg   21.99K   35 downloads


#21 Lee200

Lee200

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,277 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
  • 346 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,359 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
  • 346 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,359 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
  • 346 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
  • 346 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

    Denny Hulme

  • GPLLinks Team
  • PipPipPipPipPipPipPipPipPipPip
  • 127 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
  • 216 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,359 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..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Sim Racing Links