[ track ]
track_name = Kern County Raceway Park
track_name_short = Kern County
track_city = Bakersfield
track_state = CA
track_length_n_type = 0.5-mile D-shaped Oval
track_misc_info_1 = Turns banked 14°
track_misc_info_2 = Frontstretch 650 feet banked 8°
track_misc_info_3 = Backstretch 650 feet banked 8°
track_num_turns = 4
track_length = 0.5m
track_altitude = 285.0
track_type = 1                                  ; 1=mile oval, 0=short-track
chassis_type = 3                                ; short track
default_event_laps = 250
default_qual_laps = 2
track_base_month = 11                            ; the race month used for single, multi, and testing
max_starters = 38
track_tire_heat = 0.74                          ; > modifies amount of heat going into the tire at a given track
track_tire_wear = 0.51                          ; > 1.0 means more wear, i.e. 2.0 is twice normal wear, 0.5 is half normal wear
track_tire_wear_loss = 0.20                     ; percentage of grip lost at full tire wear
track_tire_wear_exp = 1.10                      ; > 1.0 gives a bigger fall off later in run < 1.0 gives a bigger fall off early in run
track_asphalt_grip = 1.17                       ; > 1.0 means more grip.  This shouldn't have to change by more than +- 0.05
track_concrete_grip = 1.15                      ; > means more grip.  Again, keep between about 0.9 and 1.05
track_paint_grip = 1.20
track_north_angle = 135                         ; angle of true north in degrees

; Starter decisions:
;       First value is earliest possible green flag dlong, should be after to pace car pit entrace point
;       Second value is latest possible green flag dlong. Must be before start line and after first value
starter_decision = 732.7 746.7

[ track_gns ]
track_tire_heat = 0.74                          ; > modifies amount of heat going into the tire at a given track
track_tire_wear = 0.51                          ; > 1.0 means more wear, i.e. 2.0 is twice normal wear, 0.5 is half normal wear
track_asphalt_grip = 1.17                       ; > 1.0 means more grip.  This shouldn't have to change by more than +- 0.05
track_concrete_grip = 1.15 
track_paint_grip = 1.20

[ track_cts ]
track_tire_heat = 0.74                          ; > modifies amount of heat going into the tire at a given track
track_tire_wear = 1.00				; > 1.0 means more wear, i.e. 2.0 is twice normal wear, 0.5 is half normal wear
track_asphalt_grip = 1.17                       ; > 1.0 means more grip.  This shouldn't have to change by more than +- 0.05
track_concrete_grip = 1.15                      ; > means more grip.  Again, keep between about 0.9 and 1.05
track_paint_grip = 1.20

[ cup ]
record_lap_time = 23.310
record_holder = Ricky stenhouse, Jr. (2009 NWS)  

[ gns ]
record_lap_time = 23.310
record_holder = Ricky Stenhouse, Jr. (2009 NWS)  

[ cts ]
record_lap_time = 22.984
record_holder = Mike Skinner (2009 CWTS)

[ weather ]
track_base_temp = 72.0                          ; track average temperature on April 1 in deg F
track_temp_range = 6.0                          ; one standard deviation from average in deg F
track_temp_swing = 5.0				; 
track_wind_speed = 14.5                         ; average wind speed at the track in MPH
track_wind_speed_range = 8.0                    ; one standard deviation from average in MPH
track_wind_direction = 360                      ; compass heading in degrees from which wind is most likely (in this case from Northwest)
track_cloud_prob = 0.91                         ; probability of cloud cover, 0.0 to 1.0

[CrowdSound]
num_sources = 7
pos_0 = -117 -156.50 3
pos_1 = -78.50 -164 3
pos_2 = -41 -167 3
pos_3 = 0.15 -169 3
pos_4 = 40.5 -168 3
pos_5 = 79 -163 3
pos_6 = 116 -156 3

[ ai_track ]
pace_merge_from_pit_line_dlong = 288.00
pace_merge_to_pit_line_dlong = 580.00
pace_speed_limit_mph = 45
ai_accel_modifier = 0.76                        ; acceleration grip efficiency
ai_decel_modifier = 0.85                        ; braking grip efficiency
ai_fuel_use = 1.85                              ; > 1.0 = more fuel consumed
ai_grip_modifier = 1.02                         ; > 1.0 = more grip
ai_drag_modifier = 1.00				; > 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.06                         ; > 1.0 = faster during qualifying
ai_wall_offset = 25                            ; 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 = 1.00                       ; > 1.0 = more fuel consumed (used in addition to fuel_use above)
ai_arcade_grip_modifier = 0.800                 ; > 1.0 = more grip
ai_arcade_drag_modifier = 1.35                  ; > 1.0 = more drag, which is slower
strategy_lap_time_wear_loss = 0.01              ; 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.7                      ; car lengths behind while bunching for start
ai_drafting_distance = 1.09                     ; car lengths behind while racing
ai_panic_decel = 3.0				; G's of extra deceleration inducing panic
ai_dlongpad_scale = 5.0                         ; scales padding in braking zones (smaller = more scaling)
ai_dlat_pad = 0.05
ai_squeeze_pcnt = 2.00 
ai_inverse_slipcurve_k = 0.65                   ; how much slip angle AI need to corner. smaller = more, more = increased drag

[ ai_track_gns ]
ai_accel_modifier = 0.76                        ; acceleration grip efficiency
ai_decel_modifier = 0.85                        ; braking grip efficiency
ai_fuel_use = 0.97				; Pit window for fuel at about 102-108 laps.  > 1.0 = more fuel consumed
ai_grip_modifier = 1.00 			; > 1.0 = more grip
ai_drag_modifier = 1.00                         ; > 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.05				; > 1.0 = faster during qualifying
ai_tire_wear_left = 0.88                        ; left tire wear adjuster for ai
ai_tire_wear_right = 1.02                       ; right tire wear adjuster for ai
ai_drafting_distance = 1.09                     ; car lengths behind while racing
ai_panic_decel = 3.0				; G's of extra deceleration inducing panic
ai_dlongpad_scale = 5.0			        ; scales padding in braking zones (smaller = more scaling)
ai_dlat_pad = 0.10
ai_squeeze_pcnt = 2.0 
ai_inverse_slipcurve_k = 0.65

[ ai_track_cts ]
ai_accel_modifier = 0.65                        ; acceleration grip efficiency
ai_decel_modifier = 0.94			; braking grip efficiency
ai_fuel_use = 0.99                              ; Pit window for fuel at about 102-108 laps.  > 1.0 = more fuel consumed
ai_grip_modifier = 1.00				; > 1.0 = more grip
ai_drag_modifier = 1.00                         ; > 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.04				; > 1.0 = faster during qualifying
ai_tire_wear_left = 0.61                        ; left tire wear adjuster for ai    > 1.0 = more wear
ai_tire_wear_right = 0.77                       ; right tire wear adjuster for ai
ai_drafting_distance = 1.10                     ; car lengths behind while racing
ai_panic_decel = 3.0				; G's of extra deceleration inducing panic
ai_dlongpad_scale = 5.0
ai_dlat_pad = 0.10
ai_squeeze_pcnt = 2.00
ai_inverse_slipcurve_k = 0.65                   ; how much slip angle AI need to corner. smaller = more, more = increased drag

[ AppRuleEnterPits ]
pit0_entrance_point0_dlat = 45.24
pit0_entrance_point0_dlong = 713.74
pit0_entrance_point1_dlat = 59.51
pit0_entrance_point1_dlong = 710.4
pit1_entrance_point0_dlat = 45.24
pit1_entrance_point0_dlong = 713.74
pit1_entrance_point1_dlat = 59.51
pit1_entrance_point1_dlong = 710.4

[ pit_lane_0 ]
; AI stuff
merge_from_pit_line_dlong = 305.0               ; dlong at which cars leaving pits will merge to race line
merge_to_pit_line_dlong = 470.0                 ; dlong at which cars entering pits will merge to pit line
merge_to_pit_line_length = 30.0                 ; length of merge window
pit_lane_end_dlong = 90.36                     ; dlong where pit lane proper ends
pit_lane_start_dlong = 712.4                  ; 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 = -4.0              ; goal dlat offset (+ left) for the pit stall exit cubic line
stall_exit_goal_dlong_offset = 8.0              ; 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 = 253.0                       	; Dlong which you must remain on the apron when exiting the pits

; race control stuff
lane_on_right = 0                               ; 0 if on left, 1 if on right
lane_has_wall = 0                               ; 0 no wall, 1 has wall
speed_limit_MPH = 35.0

; pace car
begin_pacestall_entry_offset = 35.0             ; offset at which to begin entering the pit stall
begin_pacestall_approach_offset = 55.0          ; offset at which to begin approaching the pit stall
pacestall_exit_goal_dlong_offset = 5.0		; goal dlong offset (ahead) for the pit stall exit 
pacestall_exit_goal_dlat_offset = -12.0          ; goal dlat offset for the pit stall exit
stall_pace = 110.00 52.5 -0.35


; special stalls
stall_qual_exit = 87.96 55.00 0.00

; regular stalls
stall_0 = 85.00 61.26 -0.22
stall_1 = 75.24 62.94 -0.18
stall_2 = 65.35 64.29 -0.14
stall_3 = 55.36 65.29 -0.10
stall_4 = 45.61 66.02 -0.08
stall_5 = 36.15 66.60 -0.06
stall_6 = 26.67 67.07 -0.05
stall_7 = 17.18 67.40 -0.03
stall_8 = 7.67 67.53 -0.01
stall_9 = 802.79 67.50 0.01
stall_10 = 793.04 67.32 0.03
stall_11 = 783.30 66.95 0.06
stall_12 = 773.40 66.41 0.08
stall_13 = 763.34 65.64 0.11
stall_14 = 753.35 64.59 0.14
stall_15 = 743.43 63.36 0.16
stall_16 = 733.92 61.91 0.18
stall_17 = 724.93 60.35 0.19
stall_18 = 716.00 58.67 0.21


[ pit_lane_1 ]
; AI section
merge_from_pit_line_dlong = 305.0               ; dlong at which cars leaving pits will merge to race line
merge_to_pit_line_dlong = 470.0                 ; dlong at which cars entering pits will merge to pit line
merge_to_pit_line_length = 30.0                 ; length of merge window
pit_lane_end_dlong = 90.36                     ; dlong where pit lane proper ends
pit_lane_start_dlong = 712.4                  ; 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 = 4.0              ; goal dlat offset (+ left) for the pit stall exit cubic line
stall_exit_goal_dlong_offset = 8.0              ; 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 = 253.0                       	; Dlong which you must remain on the apron when exiting the pits


; race control stuff
lane_on_right = 1                               ; 0 if on left, 1 if on right
lane_has_wall = 0                               ; 0 no wall, 1 has wall
speed_limit_MPH = 35.0

; regular stalls
stall_0 = 83.00 50.21 -0.19
stall_1 = 73.67 51.62 -0.16
stall_2 = 64.27 52.84 -0.14
stall_3 = 54.80 53.86 -0.11
stall_4 = 45.51 54.66 -0.09
stall_5 = 36.43 55.33 -0.07
stall_6 = 27.32 55.83 -0.05
stall_7 = 18.19 56.15 -0.03
stall_8 = 9.05 56.35 -0.01
stall_9 = 806.42 56.39 0.00
stall_10 = 797.14 56.30 0.02
stall_11 = 787.81 56.02 0.05
stall_12 = 778.45 55.55 0.07
stall_13 = 768.88 54.91 0.09
stall_14 = 759.34 54.08 0.11
stall_15 = 749.86 53.08 0.14
stall_16 = 740.48 51.80 0.17
stall_17 = 731.68 50.33 0.18
stall_18 = 723.00 48.82 0.19

[ starting_grid_0 ]
stall_pace = 115.00 0.00 0.05
stall_0 = 105.00 4.30 0.05
stall_1 = 105.00 -1.70 0.05
stall_2 = 94.66 4.04 0.01
stall_3 = 94.66 -1.96 0.01
stall_4 = 84.32 4.07 -0.01
stall_5 = 84.32 -1.93 -0.01
stall_6 = 73.98 4.13 -0.01
stall_7 = 73.98 -1.87 -0.01
stall_8 = 63.64 4.20 -0.01
stall_9 = 63.64 -1.80 -0.01
stall_10 = 53.30 4.27 -0.00
stall_11 = 53.30 -1.73 -0.00
stall_12 = 42.94 4.31 -0.01
stall_13 = 42.94 -1.69 -0.01
stall_14 = 32.58 4.38 -0.01
stall_15 = 32.58 -1.62 -0.01
stall_16 = 22.22 4.44 -0.00
stall_17 = 22.22 -1.56 -0.00
stall_18 = 11.86 4.46 -0.00
stall_19 = 11.86 -1.54 -0.00
stall_20 = 1.49 4.48 -0.00
stall_21 = 1.49 -1.52 -0.00
stall_22 = 797.70 4.50 -0.00
stall_23 = 797.70 -1.50 -0.00
stall_24 = 787.34 4.49 0.00
stall_25 = 787.34 -1.51 0.00
stall_26 = 776.99 4.49 -0.01
stall_27 = 776.99 -1.51 -0.01
stall_28 = 766.64 4.55 -0.01
stall_29 = 766.64 -1.45 -0.01
stall_30 = 756.28 4.66 -0.01
stall_31 = 756.28 -1.34 -0.01
stall_32 = 745.92 4.76 -0.00
stall_33 = 745.92 -1.24 -0.00
stall_34 = 735.56 4.75 0.00
stall_35 = 735.56 -1.25 0.00
stall_36 = 725.19 4.74 -0.00
stall_37 = 725.19 -1.26 -0.00



[ starting_grid_1 ]
stall_pace = 505.00 0.00 0.13
stall_0 = 495.00 2.99 0.13
stall_1 = 495.00 -3.01 0.13
stall_2 = 484.76 2.06 0.06
stall_3 = 484.76 -3.94 0.06
stall_4 = 474.48 1.64 0.02
stall_5 = 474.48 -4.36 0.02
stall_6 = 464.20 1.49 0.01
stall_7 = 464.20 -4.51 0.01
stall_8 = 453.92 1.36 0.02
stall_9 = 453.92 -4.64 0.02
stall_10 = 443.63 1.21 0.01
stall_11 = 443.63 -4.79 0.01
stall_12 = 433.35 1.17 0.00
stall_13 = 433.35 -4.83 0.00
stall_14 = 423.07 1.17 -0.00
stall_15 = 423.07 -4.83 -0.00
stall_16 = 412.78 1.18 -0.00
stall_17 = 412.78 -4.82 -0.00
stall_18 = 402.50 1.20 -0.00
stall_19 = 402.50 -4.80 -0.00
stall_20 = 392.21 1.21 -0.00
stall_21 = 392.21 -4.79 -0.00
stall_22 = 381.93 1.22 -0.00
stall_23 = 381.93 -4.78 -0.00
stall_24 = 371.64 1.24 -0.00
stall_25 = 371.64 -4.76 -0.00
stall_26 = 361.36 1.27 -0.01
stall_27 = 361.36 -4.73 -0.01
stall_28 = 351.07 1.35 -0.02
stall_29 = 351.07 -4.65 -0.02
stall_30 = 340.79 1.40 -0.01
stall_31 = 340.79 -4.60 -0.01
stall_32 = 330.50 1.46 -0.03
stall_33 = 330.50 -4.54 -0.03
stall_34 = 320.24 2.08 -0.09
stall_35 = 320.24 -3.92 -0.09
stall_36 = 310.03 3.33 -0.15
stall_37 = 310.03 -2.67 -0.15

[ SPCC ]
num_named_sections = 6

name_0 = 184.16 369.18 T1
name_1 = 369.18 591.45 T2
name_2 = 591.45 819.05 BSTR
name_3 = 819.05 1064.98 T3
name_4 = 1064.98 1237.67 T4
name_5 = 1237.67 184.16 FSTC
