AI Pitting Errors in Custom Track

  • You DO NOT need an account in order to download the content that we host....ONLY make an account if you plan to be an ACTIVE member.
  • We DO NOT Allow Multiple Accounts, those people found to have more than one linked to their IP address Will be Banned.

JNorton (WKC)

Well-Known Member
VIP
Hot Pass Member
Sep 28, 2016
736
93
So I have an error on a custom track I'm working on. Whenever the AI pits about half of the cars will overshoot their stalls, back up, stop, respawn, and sit in their stall for about 5 laps. Any way to fix this?

Does this happen during practice? A race? During practice it would be normal. The AI will disappear for major changes and repairs. They can also sit in the pits for an extended period of time during practice. It would be a problem if they NEVER returned to the track. Did you edit stall numbers? Make new pit LP files?
 

rwittrock

Rookie
Cold Pass Member
Feb 26, 2022
0
1
[ ai_track ]
pace_merge_from_pit_line_dlong = 295.000
pace_merge_to_pit_line_dlong = 4590.0000
pace_speed_limit_mph = 45
ai_accel_modifier = 0.77 ; acceleration grip efficiency
ai_decel_modifier = 1.15 ; braking grip efficiency
ai_fuel_use = 1.00 ; > 1.0 = more fuel consumed
ai_grip_modifier = 1.00 ; > 1.0 = more grip
ai_drag_modifier = 1.09 ; > 1.0 = more drag, which is slower
ai_line_modifier = 1.00 ; dangerous hack, don't use unless you are a trained professional
ai_qual_modifier = 1.00 ; > 1.0 = faster during qualifying
ai_wall_offset = 100 ; 100 = full-time AI collision detection
ai_tire_wear_left = 0.88 ; left tire wear adjuster for ai > 1.0 = more wear
ai_tire_wear_right = 1.02 ; right tire wear adjuster for ai
ai_arcade_tire_wear = 0.01 ; lower = less wear (used in addition to the above left/right modifiers)
ai_arcade_fuel_use = 0.99 ; > 1.0 = more fuel consumed (used in addition to fuel_use above)
ai_arcade_grip_modifier = 0.72 ; > 1.0 = more grip
ai_arcade_drag_modifier = 0.80 ; > 1.0 = more drag, which is slower
strategy_lap_time_wear_loss = 1.679 ; lap time loss from totally worn tires
strategy_lap_time_fuel_use_gain = 0.373 ; lap time gain from low fuel
strategy_base_pitting_cost = 24.349 ; time lost to a stop & go pitstop
ai_pacing_distance=2.0 ; car lengths behind while pacing
ai_bunching_distance=1.55 ; car lengths behind while bunching for start
ai_drafting_distance=1.08 ; car lengths behind while racing
ai_panic_decel=4.0 ; G's of extra deceleration inducing panic
ai_dlongpad_scale=1.5 ; scales padding in braking zones (smaller=more scaling)
ai_dlat_pad=0.75
ai_squeeze_pcnt=0.0
ai_inverse_slipcurve_k=0.65 ; how much slip angle AI need to corner. smaller = more, more = increased drag

[ pit_lane_0 ]
; AI stuff
merge_from_pit_line_dlong = 500.0 ; dlong at which cars leaving pits will merge to race line
merge_to_pit_line_dlong = 4550.0 ; dlong at which cars entering pits will merge to pit line
merge_to_pit_line_length = 20.0 ; length of merge window
pit_lane_end_dlong = 153.00 ; dlong where pit lane proper ends
pit_lane_start_dlong = 4688.00 ; dlong where pit lane proper begins
slow_pit_line_dlat_offset = 6.0 ; track-specific dlat_offset of 2nd slower pit line (0 if N/A)
stall_exit_goal_dlat_offset = -7.5 ; goal dlat offset (+ left) for the pit stall exit cubic line
stall_exit_goal_dlong_offset = 8.5 ; goal dlong offset (ahead) for the pit stall exit cubic line
begin_stall_entry_offset = 15.0 ; offset at which to begin entering the pit stall
begin_stall_approach_offset = 80.0 ; offset at which to begin approaching the pit stall
lane_merge_dlong = 100.00 ; Dlong which you must remain on the apron when exiting the pits
 

Cynon

Well-Known Member
Hot Pass Member
Jan 5, 2017
339
63
[ ai_track ]
pace_merge_from_pit_line_dlong = 295.000
pace_merge_to_pit_line_dlong = 4590.0000
pace_speed_limit_mph = 45
ai_accel_modifier = 0.77 ; acceleration grip efficiency
ai_decel_modifier = 0.95 ; braking grip efficiency
ai_fuel_use = 1.00 ; > 1.0 = more fuel consumed
ai_grip_modifier = 1.00 ; > 1.0 = more grip
ai_drag_modifier = 1.09 ; > 1.0 = more drag, which is slower
ai_line_modifier = 1.00 ; dangerous hack, don't use unless you are a trained professional
ai_qual_modifier = 1.00 ; > 1.0 = faster during qualifying
ai_wall_offset = 100 ; 100 = full-time AI collision detection
ai_tire_wear_left = 0.88 ; left tire wear adjuster for ai > 1.0 = more wear
ai_tire_wear_right = 1.02 ; right tire wear adjuster for ai
ai_arcade_tire_wear = 0.01 ; lower = less wear (used in addition to the above left/right modifiers)
ai_arcade_fuel_use = 0.99 ; > 1.0 = more fuel consumed (used in addition to fuel_use above)
ai_arcade_grip_modifier = 0.72 ; > 1.0 = more grip
ai_arcade_drag_modifier = 0.80 ; > 1.0 = more drag, which is slower
strategy_lap_time_wear_loss = 1.679 ; lap time loss from totally worn tires
strategy_lap_time_fuel_use_gain = 0.373 ; lap time gain from low fuel
strategy_base_pitting_cost = 24.349 ; time lost to a stop & go pitstop
ai_pacing_distance=2.0 ; car lengths behind while pacing
ai_bunching_distance=1.55 ; car lengths behind while bunching for start
ai_drafting_distance=1.12 ; car lengths behind while racing
ai_panic_decel=27000.0 ; G's of extra deceleration inducing panic
ai_dlongpad_scale=28.5 ; scales padding in braking zones (smaller=more scaling)
ai_dlat_pad=0.75
ai_squeeze_pcnt=0.0
ai_inverse_slipcurve_k=0.65 ; how much slip angle AI need to corner. smaller = more, more = increased drag

[ pit_lane_0 ]
; AI stuff
merge_from_pit_line_dlong = 500.0 ; dlong at which cars leaving pits will merge to race line
merge_to_pit_line_dlong = 4550.0 ; dlong at which cars entering pits will merge to pit line
merge_to_pit_line_length = 20.0 ; length of merge window
pit_lane_end_dlong = 153.00 ; dlong where pit lane proper ends
pit_lane_start_dlong = 4688.00 ; dlong where pit lane proper begins
slow_pit_line_dlat_offset = 6.0 ; track-specific dlat_offset of 2nd slower pit line (0 if N/A)
stall_exit_goal_dlat_offset = -7.5 ; goal dlat offset (+ left) for the pit stall exit cubic line
stall_exit_goal_dlong_offset = 8.5 ; goal dlong offset (ahead) for the pit stall exit cubic line
begin_stall_entry_offset = 20.0 ; offset at which to begin entering the pit stall
begin_stall_approach_offset = 80.0 ; offset at which to begin approaching the pit stall
lane_merge_dlong = 100.00 ; Dlong which you must remain on the apron when exiting the pits

Was hoping I'd get the pit speed limit and all that as well, but from what I can gleam from this, the size of the track, and without having the LPs or track folder, the first changes I would attempt for the pitting problem are in gold, a few nitpick changes that I think would improve the quality of the racing are in teal, but are just personal suggestions because I enjoy extremely aggressive AI.

If ai_decel_modifier is lower, the AI seem to slow down earlier as well. I avoid making it higher than 0.95 if at all possible. I also set ai_panic_decel to an astronomically high number for similar reasons, and to prevent the AI slamming into each other under caution.

I admit that begin_stall_entry_offset might be better off at 15 than 20, but it might give them a bit more space. It might also lead to more pit lane collisions.
 
  • Like
Reactions: mtblillie

JNorton (WKC)

Well-Known Member
VIP
Hot Pass Member
Sep 28, 2016
736
93
[ pit_lane_0 ]
; AI stuff
merge_from_pit_line_dlong = 500.0 ; dlong at which cars leaving pits will merge to race line
merge_to_pit_line_dlong = 4550.0 ; dlong at which cars entering pits will merge to pit line
merge_to_pit_line_length = 20.0 ; length of merge window
pit_lane_end_dlong = 153.00 ; dlong where pit lane proper ends
pit_lane_start_dlong = 4688.00 ; dlong where pit lane proper begins
slow_pit_line_dlat_offset = 6.0 ; track-specific dlat_offset of 2nd slower pit line (0 if N/A)
stall_exit_goal_dlat_offset = -7.5 ; goal dlat offset (+ left) for the pit stall exit cubic line
stall_exit_goal_dlong_offset = 8.5 ; goal dlong offset (ahead) for the pit stall exit cubic line
begin_stall_entry_offset = 15.0 ; offset at which to begin entering the pit stall
begin_stall_approach_offset = 80.0 ; offset at which to begin approaching the pit stall
lane_merge_dlong = 100.00 ; Dlong which you must remain on the apron when exiting the pits

That's from the The Bend ESCO 2021 track.. Your Ai are getting penalties. Move the lane_merge_dlong = 100.00 farther down the track or put a ; in front of the line.. 100.00 is way back by stall #4. Actually change it to this - lane_merge_dlong = 247.11
 
Last edited:
  • Like
Reactions: mtblillie

Hot Links