1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Like RaceDepartment on Facebook.

AI pitstops....

Discussion in 'Stock Car Extreme' started by Christian Casey, Jul 19, 2014.

  1. Hey guys, can someone shed some light on AI pits top strategy in the stock cars?
    I have only raced one full stint, so before I continue my championship I would like to get this sorted.

    I race timed 50 min stints, all wear/consumption is set to normal, will every AI pit in this time frame?

    Do they take on fuel? Tyres? Are the corresponding pit stop times correct with said actions?

    Can I finish a full race without taking tyres, it looks like I can but it was getting loose for me at 50% race completion.
    If so, does the AI take the same penalties in tyre wear?

    If I force AI pitstops in the config, will they be forced to do another stop as per the modified config, even if they pitted outside the changed parameters due to damage.

    What's the official Brazilian stock car rules on mandatory pitstops? Eg mandatory tyre changes.

    This being correct is a big deal for me so any help on this would be great.
     
  2. In the Stock Cars they will pit once at every track in the default championship as far as i know, as to what they actually do for their pitstops I wouldnt know, i assume its only tires since i dont think you can refuel the V8's.
     
  3. Thanks Troy, at least I know they do pit.

    Hey I notice your avatar, any good Aussie V8 mods out there? Add 150hp and there you go:)
     
  4. PaulH

    PaulH
    Premium Member

    • Like Like x 1
  5. You can alter the amount of pitstops an ai does, its easy
     
  6. Wow, the Aussie v8s are certainly there, will definitely grab that mod, thanks muchly Troy.

    Yeah I read you could Colin, I was wondering if I set the AI to pit twice between specified laps and they had to pit before this specified lap number due to damage or a caution, would they be doing 3 stops because I hard coded them to stop twice during later laps?
     
  7. Not sure, I have my FN2008 custom cup setup with some ai teams pitting twice, a few 0nce, and 1 or 2 3 times over 30 laps each race in a custom championship.

    It looks a lot better the AI pitting now, I did notice 1 ai getting damage and he pitted in on lap 5 or 6 to fix it, I presume he still stopped on 11 and 20 as I have coded them to do that.

    With AI I think it doesn't matter if you even put 1 lap of fuel to test as I did getting them to use my setups as if they are coded in the track file to stop on lap 11 regardless of having 1 lap of fuel the car will drive till lap 11 and pit, same if I put pit at 40 and 1 lap of fuel onboard, I don't think fuel or grip matters for AI.

    Hope that helps.

    You could try doing a race, look for a rival and have his 2 pitstops setup on a 30 lap race or less whatever, note if you setup his pits on lap 10 and 20 stay behind the rival even if slow, lets say on lap 2 or 3, bang in to him and damage his wing, watch him pit to fix it, follow him in then out and stay behind him and see does he still pit on lap 10 or whatever you set it up for.
     
  8. Hello Colin,

    I know this is an older discussion, but could please let me know where this pit scripting is located? What does it look like?
     
    • Beer Beer x 1
  9. 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
    }
    }