Pit Scripting Question

Hey Guys,

I am running a season of V12 currently. I have been running 35 lap races, and I don't think the AI pits, but I am not 100% sure. Is there a file that I can edit that will have the various teams pit at differing times? If so where do I find this file, and what would the script look like?

Thanks,
 
Dude, I already answered this for you in a different thread, check the end of the track file.



Quote

Its actually located in the track gdb itself. Here is the location and example of my Susuka DRS version location: C:\GSC2013\GameData\Locations\Suzuka\SuzukaDRS

Below is the copied text from the track gdb file, its the parameters for the track. You would need to do a pit-stop strategy for each track, or copy and paste changing values after.

SuzukaDRS
{
Filter Properties = StockV8 *
Attrition = 30
TrackName = Suzuka
EventName = Suzuka DRS
GrandPrixName = Suzuka GP
VenueName = Suzuka
Location = Suzuka, Japan
Length = 3.63 Miles / 5.844 Km
TrackType = Permanent Road Course
Track Record = 1:30.540
TerrainDataFile= SuzukaDRS.tdf
Max Vehicles = 34
GarageDepth = 2.9
RacePitKPH = 60
NormalPitKPH = 60
Practice1Day = Friday
Practice1Start = 10:00
Practice1Duration = 60
Practice2Day = Friday
Practice2Start = 14:00
Practice2Duration = 60
Practice3Day = Saturday
Practice3Start = 9:00
Practice3Duration = 60
QualifyDay = Saturday
QualifyStart = 12:00
QualifyDuration = 60
QualifyLaps = 20
RaceDay = Sunday
RaceStart = 14:00
RaceLaps = 53
RaceTime = 120
SkyBlendSunAngles=(-20.5,-1.0,11.5,25.5)
//SkyBlendSunAngles=(-2.0,-1.0,0.0,1.0)
ShadowMinSunAngle=10.0

Latitude = -23 // degs from Equator (range: -90 to 90, positive is Northern Hemisphere)
NorthDirection = 0 // the direction of North in degrees (range: 0 to 359)
RaceDate = March 3 // default date for the race
FogIntervals = (360,240,1080,180)
SunriseAmbientRGB = (54,57,84)
SunriseDirectionalRGB = (223,156,96)
SunriseFogRGB = (190,175,175)
SunriseFogin = (0)
SunriseFogout = (700)
//SunriseFogDensity = (-1.000000)
DayAmbientRGB = (130,130,140)
DayDirectionalRGB = (255,245,230)
DayFogRGB = (113,119,135)
DayFogin = (0)
DayFogout = (2000)
//DayFogDensity = (-1.000000)
SunsetAmbientRGB = (114,119,131)
SunsetDirectionalRGB = (255,165,74)
SunsetFogRGB = (105,94,94)
SunsetFogin = (0)
SunsetFogout = (1000)
//NightFogDensity = (-1.000000)
NightAmbientRGB = (12,16,20)
NightDirectionalRGB = (10,10,12)
NightFogRGB = (0,0,0)
NightFogin = (0)
NightFogout = (1500)
//NightFogDensity = (-1.000000)
SettingsFolder = Suzuka
SettingsCopy = Grip.svm
SettingsCopy = Suzuka.svm
SettingsAI = Suzuka.svm
Qualify Laptime = 91.147
Race Laptime = 93.449

DRS
{
// Up to 5 zones.
// When a zone uses a previous detection point, set that zone's detection point to -1.0
zone1 = (5327.2,5758.6,627.6) // Detection point, start point, end point
}

// For tire rules on this track
F_EXTREME_TIRES
{
CompoundsAllowed=(2,3) // A max of 4 compounds can be included in this parameter.
}
F_REIZA_TIRES
{
CompoundsAllowed=(2,3) // A max of 4 compounds can be included in this parameter.
}
PitStopStrategies
{
Niko Rosberg = 2 - 15,35
Lewis Hamilton = 2 - 16,36
Valtteri Bottas = 2 - 16,35
Felipe Massa = 2 - 15,36
Sebastian Vettel = 2 - 18,38
Daniel Ricciardo = 2 - 15,35
Fernando Alonso = 2 - 16,36
Kimi Raikkonen = 2 - 18,37
Jenson Button = 2 - 15,35
Kevin Magnussen = 2 - 14,33
Jean-Eric Vergne = 2 - 14,33
Daniil Kvyat = 2 - 16,35
Nico Hulkenberg = 2 - 10,30
Sergio Perez = 2 - 15,34
Adrian Sutil = 2 - 15,35
Esteban Gutierrez = 2 - 14,35
Pastor Maldonado = 2 - 14,35
Romain Grosjean = 2 - 16,36
Max Chilton = 2 - 16,32
Jules Bianchi = 3 - 10,22,34
Marcus Ericsson = 3 - 10,25,40
Kamui Kobayashi = 2 - 16,36
Max Verstappen = 2 - 14,32
Carlos Sainz Jr = 3 - 12,26,40
}
}
 
Yes, simply the name of the driver of the series you wanna do it for, they are in the talent folder then series of what you want, if it doesn't exist, you need to create the talent files for the drivers and have them correspond to each vehicle file. For example, if you search the mods area you will see I have created ones for formula extreme with real names and real teams, download it and study it, it will start to make sense to you then. If ya need further help give me a shout dude.
 
For example, you will see in the above track file:
PitStopStrategies
{
Niko Rosberg = 2 - 15,35
That means Niko will do a 2 stop strategy on this track on lap 15 and 35, you can edit this to your liking, it also means it needs to have the talent file NikoRosberg inside the FormulaExtreme folder in the talent folder, it also means that in the vehicle folder that Mercedes has Niko Rosberg read from the talent file driving that car, you get me

Its a bit of work at the start but rewarding when setup and once setup all you have to do is the track files but very rewarding once all done, very realistic no my sim.

Happy new year
 
hello,

OK, I have a couple of questions.

1. Do I insert the script within the parentheses that follow the track name in the track gdb file? For example:
12_InterlagosHV
{
Track scripts...
PitStopStrategies...
}

Or external to this section and after the DRS section?

2. In the V12 section which I am running, I tried this script on Interlagos, not the Reiza version but from a mod. I set up all the driver names from 1995. I then convert (renamed) the talent files for V12 to reflect the 1995 season. These names matched both those on the track gdb and in the Vehicle section (the driver .veh) files which uses a skin pack from this site.

I then ran a 36 lap race with each driver set to have a single stop between lap 13 and lap 18. But still no one stopped. Do you have to run a full length race?

Thanks again, and I hope this isn't confusing.
 
Dude, I already answered this for you in a different thread, check the end of the track file.



Quote

Its actually located in the track gdb itself. Here is the location and example of my Susuka DRS version location: C:\GSC2013\GameData\Locations\Suzuka\SuzukaDRS

Below is the copied text from the track gdb file, its the parameters for the track. You would need to do a pit-stop strategy for each track, or copy and paste changing values after.

SuzukaDRS
{
Filter Properties = StockV8 *
Attrition = 30
TrackName = Suzuka
EventName = Suzuka DRS
GrandPrixName = Suzuka GP
VenueName = Suzuka
Location = Suzuka, Japan
Length = 3.63 Miles / 5.844 Km
TrackType = Permanent Road Course
Track Record = 1:30.540
TerrainDataFile= SuzukaDRS.tdf
Max Vehicles = 34
GarageDepth = 2.9
RacePitKPH = 60
NormalPitKPH = 60
Practice1Day = Friday
Practice1Start = 10:00
Practice1Duration = 60
Practice2Day = Friday
Practice2Start = 14:00
Practice2Duration = 60
Practice3Day = Saturday
Practice3Start = 9:00
Practice3Duration = 60
QualifyDay = Saturday
QualifyStart = 12:00
QualifyDuration = 60
QualifyLaps = 20
RaceDay = Sunday
RaceStart = 14:00
RaceLaps = 53
RaceTime = 120
SkyBlendSunAngles=(-20.5,-1.0,11.5,25.5)
//SkyBlendSunAngles=(-2.0,-1.0,0.0,1.0)
ShadowMinSunAngle=10.0

Latitude = -23 // degs from Equator (range: -90 to 90, positive is Northern Hemisphere)
NorthDirection = 0 // the direction of North in degrees (range: 0 to 359)
RaceDate = March 3 // default date for the race
FogIntervals = (360,240,1080,180)
SunriseAmbientRGB = (54,57,84)
SunriseDirectionalRGB = (223,156,96)
SunriseFogRGB = (190,175,175)
SunriseFogin = (0)
SunriseFogout = (700)
//SunriseFogDensity = (-1.000000)
DayAmbientRGB = (130,130,140)
DayDirectionalRGB = (255,245,230)
DayFogRGB = (113,119,135)
DayFogin = (0)
DayFogout = (2000)
//DayFogDensity = (-1.000000)
SunsetAmbientRGB = (114,119,131)
SunsetDirectionalRGB = (255,165,74)
SunsetFogRGB = (105,94,94)
SunsetFogin = (0)
SunsetFogout = (1000)
//NightFogDensity = (-1.000000)
NightAmbientRGB = (12,16,20)
NightDirectionalRGB = (10,10,12)
NightFogRGB = (0,0,0)
NightFogin = (0)
NightFogout = (1500)
//NightFogDensity = (-1.000000)
SettingsFolder = Suzuka
SettingsCopy = Grip.svm
SettingsCopy = Suzuka.svm
SettingsAI = Suzuka.svm
Qualify Laptime = 91.147
Race Laptime = 93.449

DRS
{
// Up to 5 zones.
// When a zone uses a previous detection point, set that zone's detection point to -1.0
zone1 = (5327.2,5758.6,627.6) // Detection point, start point, end point
}

// For tire rules on this track
F_EXTREME_TIRES
{
CompoundsAllowed=(2,3) // A max of 4 compounds can be included in this parameter.
}
F_REIZA_TIRES
{
CompoundsAllowed=(2,3) // A max of 4 compounds can be included in this parameter.
}
PitStopStrategies
{
Niko Rosberg = 2 - 15,35
Lewis Hamilton = 2 - 16,36
Valtteri Bottas = 2 - 16,35
Felipe Massa = 2 - 15,36
Sebastian Vettel = 2 - 18,38
Daniel Ricciardo = 2 - 15,35
Fernando Alonso = 2 - 16,36
Kimi Raikkonen = 2 - 18,37
Jenson Button = 2 - 15,35
Kevin Magnussen = 2 - 14,33
Jean-Eric Vergne = 2 - 14,33
Daniil Kvyat = 2 - 16,35
Nico Hulkenberg = 2 - 10,30
Sergio Perez = 2 - 15,34
Adrian Sutil = 2 - 15,35
Esteban Gutierrez = 2 - 14,35
Pastor Maldonado = 2 - 14,35
Romain Grosjean = 2 - 16,36
Max Chilton = 2 - 16,32
Jules Bianchi = 3 - 10,22,34
Marcus Ericsson = 3 - 10,25,40
Kamui Kobayashi = 2 - 16,36
Max Verstappen = 2 - 14,32
Carlos Sainz Jr = 3 - 12,26,40
}
}
Thank you so much for this tip. I just tried it on MR18 at MonzaGP, didn't change the drivers though but now they all do pit stops like me;). Thank you for sharing Mr. C.O.Callaghan!:thumbsup:
 

Latest News

How long have you been simracing

  • < 1 year

    Votes: 204 14.0%
  • < 2 years

    Votes: 153 10.5%
  • < 3 years

    Votes: 148 10.1%
  • < 4 years

    Votes: 109 7.5%
  • < 5 years

    Votes: 206 14.1%
  • < 10 years

    Votes: 176 12.1%
  • < 15 years

    Votes: 117 8.0%
  • < 20 years

    Votes: 79 5.4%
  • < 25 years

    Votes: 63 4.3%
  • Ok, I am a dinosaur

    Votes: 205 14.0%
Back
Top