AIW for GTR2

As far as I know rFactor is the only one that has an AIW editor - it's designing to encourage modding unlike the others.

In GTL [the only BTBEvo game I have] the AIW file looks to be in much the same format as the rFactor one though, and the GTL AIW file opens quite happily in Guitarmean's rFactor AIW editor which sort of says it must be the same. Cameras showed up fine too.

I'd reckon if you use the AIW file from your rFactor version you'd have a fair chance of success, though some text editing in the AIW file might turn out to be needed

I'll find out for myself in a day or so :)
 
http://www.rfactor.net/index.php?page=devcorner

installed the way point editor and mas tools. (rfpublictools.zip).

make sure you backup the orginal rfactor aiw file and rename it.rename the version you going to edited to track name.aiw and run in rfactor waypoint editor.then copy to gtr2.
there a bit of editing to do.

open aiw file in notepad.
and ask eric tozer ,for the info on gtr2 aiw editing can't remember the thing to edited now!!! been told about three times.:)
 
So what should Adjust Height be set to??? If saved like that and I make a new AIW in rFactor (inc pit slots and the like), should I then be able to use that with GTR2, Evo and GTL, or am I kidding myself how easy it is???
 
Here are the extra bits that I do when using the rFactor aiw editor to make an aiw file for GTR2.

When driving the main path keep to the centre of the track, the ai cars follow either side of this for the formation lap and do not use the Left/Right paths in Simbin games.

Make a pit position for pit 52 (TeamIndex=51 in aiw file)
Make 3 garage positions for each pit, including pit 52.

Make start location 104 (GridIndex=103 in aiw file)
where you want the safety car to start at the beginning of the formation lap. Make sure this is the opposite side of the start/finish line to the grid.

Make the rest of the aiw as you would for rFactor.

You have to adjust the groove alpha for Simbin games as they use half of the maximum value that rFactor uses, rFactor max is 1.0000, Simbin uses a max of 0.5000 how you graduate the groove up to the maximum level will alter slightly in Simbin games. You can go as high as 0.6400 in Simbin games, but the extra 0.1400 allows for live track technology to darken the groove during races.

I edit the groove alpha with guitarmaen's aiw and cam editor, but as the values roughly need to be halved you could use other programs to do the job, a spreadsheet for example.

Once you have the aiw made, open it with a text editor (i use notepad) and replace these lines....

WorstAdjust=(0.9000)
MidAdjust=(1.0000)
BestAdjust=(1.1000)

With these lines....

GarageDepth=(3.0000)
WorstTime=(0.0000)
MidTime=(0.0000)
BestTime=(0.0000)
WorstAdjust=(0.7500)
MidAdjust=(1.0000)
BestAdjust=(1.2000)
QualRatio=(1.0200)
RaceRatio=(1.0500)

Adjust the GarageDepth so that the ai cars leave their garages ok.
The GarageDepth is in the gdb file for rFactor tracks and in the aiw file for all Simbin tracks.

Once you have the aiw file working in GTR2 make a copy and keep it safe. You may need it again if any mistakes happen in the next bit.

Go back to the rFactor editor and set "Auto altgrid gen follows main". Then go to where you want the teleport section to start and set alt start location 1 (this should be on the same side of the track as the first start location), move to the opposite side of the main path and set alt start location 2, the editor should then set alt start locations 3 to 101, manually set alt start locations 102 and 103 following the same spacing as the rest of the alt start locations.
Save the aiw file, close the rFactor editor and open the aiw file in a text editor, scroll down to the [ALTGRID] section and copy the GridIndex data, now paste it into the GTR2 aiw file as the [Teleport] section.

You need a full teleport section (GridIndex 0 to 103) for Simbin games.

Now adjust the fueluse, I normally multiply the lap length by a value between 12.9 and 13.5 depending on what type of track it is.

If everything as been done properly you should now have a fully working GTR2 aiw file.

Edit: For Race07 / GTR Evo add a time attack position, you can make this in the rFactor editor by setting an aux location (i use aux location 7) and then editing it in a text editor.

[TIMEATTACK]
Pos=(5.085,-6.957,18.940)
Ori=(-0.065,-1.716,-0.000)

This should be placed after the teleport section and before the pits section of the aiw file.
 
Almost forgot the most important change when the aiw file contains a paddock path.

When you create a path for garages in the paddock area, the rFactor editor saves the first waypoint of the path with the default value, because you do not join this waypoint to another waypoint when creating the aiw file...

example: WP_PTRS=(-1,506,-1,1)

This is fine for rFactor, but when you drive over this waypoint in a Simbin game, the game will crash. If racing online the server will crash and everyone who is on the server will have their game crash.

To solve this you need to enter a value to replace the -1

example: WP_PTRS=(477,506,-1,1)

I normally use the number of the waypoint that is at the same location as the xpitout.gmt. Some people have used 0 without problems, I've not tested it, but you may be able to use any waypoints number. Do not use the same waypoint that the other end of the paddock path is joined to.
 
Well, I'm happy to say that I've had success with GTL so far.

I exported my track to GTL [adjust height set to "None"], then copied the rFactor AIW and CAM files over to it as is, and they both worked fine :) The AI enjoyed their race!

Only thing I did notice was, as Graybrad said above, the groove was about half as wide again and needs editing down in the AIW file.

And the cameras seemed a bit more wide angle, but again that's easy to edit.
 
Yes it is a bit easier for GTL as you do not need the positions or waypoints for the safety car.

Even though some tracks don't seem to need a full teleport section, I would still make the full teleport section (0 to 103 in aiw file), so that the time trial works ok in GTL.
 
Chub

Sorry one thing I am missing here, how did you export to GTL???

Steps I am see are these...

Open track in BTBPro, if I select export, I can only export to rFactor (and set height to none), but then its in rFactor right, I cant then use it in GTL.

Else I can copy my track folder from BTBPro to BTBEvo, it all opens good, but I not have no option to export with height set to none. So when I copy AIW over, all the cars start about 30 meters below the track...

I am sure I am missing something silly here???
 
Hi Wizbiscuit,

Sorry, I didn't put that very well [it was 2am when I posted it!]. What I should have said was the export to rFactor was set to 'Height Adjust - None' when I did the AI. As you say, there isn't the height option when exporting to GTL.

It sounds like you made your AI on a different Height setting, so when you export to GTL the track has moved up but the AI stay where they are.

If you export to rFactor with 'Height Adjust - None' are the AI still below the track? If so, sadly I think you'll have to redo the AI :sad:
 

Latest News

Online or Offline racing?

  • 100% online racing

    Votes: 77 7.0%
  • 75% online 25% offline

    Votes: 119 10.8%
  • 50% online 50% offline

    Votes: 162 14.7%
  • 25% online 75% offline

    Votes: 304 27.6%
  • 100% offline racing

    Votes: 435 39.5%
  • Something else, explain in comment

    Votes: 4 0.4%
Back
Top