Skip to content

Commit

Permalink
Implemented build system and DD2, adjustments to inertia
Browse files Browse the repository at this point in the history
  • Loading branch information
ohyeah2389 committed Feb 11, 2025
1 parent 4422708 commit 050cb7b
Show file tree
Hide file tree
Showing 114 changed files with 5,013 additions and 1,238 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
/Art
/CFD
/Photogrammetry Images
/ohyeah2389_modkart_class2/**/*.png
/ohyeah2389_modkart_class2/**/*.png
/Build
24 changes: 24 additions & 0 deletions Source/base/data/aero.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[HEADER]
VERSION=2

[WING_0]
NAME=BODY
CHORD=1
SPAN=1
POSITION=0, 0.1, 0
LUT_AOA_CL=wing_body_AOA_CL.lut
LUT_GH_CL=
CL_GAIN=1
LUT_AOA_CD=wing_body_AOA_CD.lut
LUT_GH_CD=
CD_GAIN=0.75 ; LUT AOA is 0.59 at 0deg, Arch thinks GMC 2007 says 0.51 so 0.86 adjusts 0.59 down to 0.51, then tuned from there to match https://www.youtube.com/watch?v=6Ch5gFK2CY8
ANGLE=0
ZONE_FRONT_CL=0
ZONE_FRONT_CD=0
ZONE_REAR_CL=0
ZONE_REAR_CD=0
ZONE_LEFT_CL=0
ZONE_LEFT_CD=0
ZONE_RIGHT_CL=0
ZONE_RIGHT_CD=0

23 changes: 23 additions & 0 deletions Source/base/data/ai.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[GEARS]
UP=6000
DOWN=3900
SLIP_THRESHOLD=0.95
GAS_CUTOFF_TIME=0.30

[PEDALS]
GASGAIN=3.0
BRAKE_HINT=1
TRAIL_HINT=1

[LOOKAHEAD]
BASE=20
GAS_BRAKE_LOOKAHEAD=0

[STEER]
STEER_GAIN=2.16
[HEADER]
VERSION=3
[ULTRA_GRIP]
VALUE=1.2
[PHYSICS_HINTS]
AERO_HINT=1
4 changes: 4 additions & 0 deletions Source/base/data/ambient_shadows.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[SETTINGS]
WIDTH=0.769026875495911
LENGTH=1.1322865486145

9 changes: 9 additions & 0 deletions Source/base/data/brakes.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[HEADER]
VERSION=1

[DATA]
MAX_TORQUE=160 ; Maximum Brake torque in Nm -- guessed
FRONT_SHARE=0.0 ; Percentance of brake torque at front axis -- obvious
HANDBRAKE_TORQUE=0 ; -- obvious
COCKPIT_ADJUSTABLE=0 ; 0: no bias control from cockpit, 1: bias control from cockpit -- obvious
ADJUST_STEP=0.5 ; step for bias cockpit adjustment.
55 changes: 55 additions & 0 deletions Source/base/data/cameras.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[CAMERA_0]
POSITION=-0.0047417,0.93216,-0.30919
FORWARD=-1.0838e-007,-0.26779,0.96348
UP=0.0063158,0.96346,0.26778
FOV=70
EXPOSURE=30
EXTERNAL_SOUND=0

[CAMERA_1]
POSITION=0.40345,0.28388,-0.33072
FORWARD=-0.03415,-0.014929,0.99931
UP=0.01038,0.99983,0.015291
FOV=80
EXPOSURE=30
EXTERNAL_SOUND=0

[CAMERA_2]
POSITION=-0.17436,0.71099,-0.33984
FORWARD=0.22631,-0.28899,0.9302
UP=0.021132,0.95621,0.29193
FOV=75
EXPOSURE=30
EXTERNAL_SOUND=0

[CAMERA_3]
POSITION=0.2695,0.41538,-0.64408
FORWARD=-0.01278,-0.90836,0.41797
UP=-0.017841,0.41813,0.90821
FOV=50
EXPOSURE=30
EXTERNAL_SOUND=1

[CAMERA_4]
POSITION=-1.7848,0.84862,1.6389
FORWARD=0.71861,-0.16217,-0.67625
UP=0.11536,0.98676,-0.11405
FOV=60
EXPOSURE=30
EXTERNAL_SOUND=1

[CAMERA_5]
POSITION=0.38992,0.22619,-0.074554
FORWARD=-0.015326,-0.0029586,-0.99988
UP=-0.008934,0.99996,-0.0028219
FOV=70
EXPOSURE=30
EXTERNAL_SOUND=0

[CAMERA_6]
POSITION=1.1409,0.053554,-2.4258
FORWARD=-0.40306,0.10195,0.90948
UP=0.028805,0.9947,-0.098734
FOV=70
EXPOSURE=30
EXTERNAL_SOUND=0
59 changes: 59 additions & 0 deletions Source/base/data/car.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[HEADER]
VERSION=extended-2 ; version number

[INFO]
SCREEN_NAME=Modular Kart Class 2 KA100
SHORT_NAME=ModKart Cls2 KA100

[BASIC]
GRAPHICS_OFFSET=0, -0.157, 0.0992 ; 3 axis correction (x,y,z), applies only to the 3D object of the car. in meters -- based off of guessed CG empty in Blender
GRAPHICS_PITCH_ROTATION=0.0 ; changes 3D object rotation in pitch
TOTALMASS=166 ; total vehicle mass in kg NOT INCLUDING FUEL -- 365 lbs (166kg) from CKNA rules (Senior Medium)
INERTIA=0.6, 0.35, 0.9 ; car polar inertia -- width, height, length

[GRAPHICS]
DRIVEREYES=0.000000,0.730000,-0.300000
ONBOARD_EXPOSURE=100
OUTBOARD_EXPOSURE=100
ON_BOARD_PITCH_ANGLE=0.000000
BUMPER_CAMERA_POS=0.000000,0.400000,0.910000
BONNET_CAMERA_POS=0.000000,0.800000,-4.000000
MIRROR_POSITION=0, 0.8, 0 ; Position used to render the mirror
VIRTUAL_MIRROR_ENABLED=0 ; -- default
USE_ANIMATED_SUSPENSIONS=0 ; -- default
SHAKE_MUL=3 ; -- default
FUEL_LIGHT_MIN_LITERS=1 ; -- guessed
BONNET_CAMERA_PITCH=-1.999933
BUMPER_CAMERA_PITCH=-1.999967

[CONTROLS]
FFMULT=8 ; -- guessed
STEER_ASSIST=1.0 ; -- Arch recommended 1.0 as it is gamma for Real Feel
STEER_LOCK=70 ; Real car's steer lock from center to right -- guessed
STEER_RATIO=7.778 ; Steer ratio -- guessed
LINEAR_STEER_ROD_RATIO=-0.1 ; -- guessed, must be negative for steering to be in correct direction
RACK_TRAVEL_LUT=steer_sin.lut
ENABLE_REAL_FEEL=1

[FUEL]
CONSUMPTION=0.0022 ; fuel consumption. In one second the consumption is (rpm*gas*CONSUMPTION)/1000 litres -- guessed
FUEL=3 ; default starting fuel in litres -- guessed
MAX_FUEL=8 ; max fuel in litres -- guessed

[FUELTANK]
POSITION=0, -0.147, 0.28 ; -- guessed

[RIDE]
PICKUP_FRONT_HEIGHT=0.0 ; Height of the front ride height pickup point in meters WRT cg -- guessed
PICKUP_REAR_HEIGHT=0.0 ; -- guessed

[RULES]
MIN_HEIGHT=-1

[PIT_STOP]
TYRE_CHANGE_TIME_SEC=20 ; time spent to change each tyre -- default
FUEL_LITER_TIME_SEC=0.2 ; time spent to put 1 lt of fuel inside the car -- default
BODY_REPAIR_TIME_SEC=20 ; time spent to repair 10% of body damage -- default
ENGINE_REPAIR_TIME_SEC=2 ; time spent to repair 10% of engine damage -- default
SUSP_REPAIR_TIME_SEC=30 ; time spent to repair 10% of suspension damage -- default

4 changes: 4 additions & 0 deletions Source/base/data/colliders.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[COLLIDER_0]
CENTRE=0, -0.157, 0.0 ; -- ColliderData in Blender
SIZE=0.7, 0.025, 1.55 ; -- ColliderData in Blender
GROUND_ENABLE=1
3 changes: 3 additions & 0 deletions Source/base/data/dash_cam.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[DASH_CAM]
POS=0.330737,1.1949,-0.298159
EXP=29
32 changes: 32 additions & 0 deletions Source/base/data/driver3d.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[HEADER]
VERSION=2

[MODEL]
NAME=driver_no_HANS
POSITION=0, 0, 0

[STEER_ANIMATION]
NAME=steer.ksanim
LOCK=360

[SHIFT_ANIMATION]
BLEND_TIME=100
POSITIVE_TIME=350
STATIC_TIME=102
NEGATIVE_TIME=350
PRELOAD_RPM=6000
INVERT_SHIFTING_HANDS=0

[HIDE_OBJECT_0]
NAME=DRIVER:HELMET

[HIDE_OBJECT_1]
NAME=DRIVER:GEO_Driver_FACE

[HEAD_MOVEMENT]
FILTER=0.15
MAX_G=2.1
ROLL_MAX_DEG=-18
PITCH_MAX_DEG=-15
YAW_MAX_DEG=15

59 changes: 59 additions & 0 deletions Source/base/data/drivetrain.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
; ASRE-2 KA100

[HEADER]
VERSION=3

[TRACTION]
TYPE=RWD ; -- obvious

[GEARS]
COUNT=1 ; forward gears number
GEAR_R=-1.0 ; rear gear ratio -- imaginary
GEAR_1=1.0 ; -- guessed
FINAL=8.4 ; final gear ratio -- sets default gearing but must match a ratio in gearing.rto

[DIFFERENTIAL]
POWER=1.0 ; differential lock under power. 1.0=100% lock - 0 0% lock -- obvious
COAST=1.0 ; differential lock under coasting. 1.0=100% lock 0=0% lock -- obvious
PRELOAD=0 ; preload torque setting -- guessed

[GEARBOX]
CHANGE_UP_TIME=240 ; change up time in milliseconds
CHANGE_DN_TIME=270 ; change down time in milliseconds
AUTO_CUTOFF_TIME=240 ; Auto cutoff time for upshifts in milliseconds, 0 to disable
SUPPORTS_SHIFTER=0 ; 1=Car supports shifter, 0=car supports only paddles
VALID_SHIFT_RPM_WINDOW=1000 ; range window additional to the precise rev matching rpm that permits gear engage.
CONTROLS_WINDOW_GAIN=0.4 ; multiplayer for gas,brake,clutch pedals that permits gear engage on different rev matching rpm. the lower the more difficult.
INERTIA=0.0005 ; gearbox inertia. default values to 0.02 if not set -- guessed

[CLUTCH]
MAX_TORQUE=16 ; -- placeholder

[AUTOCLUTCH]
UPSHIFT_PROFILE=NONE ; Name of the autoclutch profile for upshifts. NONE to disable autoclutch on shift up -- default
DOWNSHIFT_PROFILE=DOWNSHIFT_PROFILE ; Same as above for downshifts -- default
USE_ON_CHANGES=0
MIN_RPM=4300 ; -- 4500 per Curt's data
MAX_RPM=4700 ; -- ''
FORCED_ON=1 ; -- full-time centrifugal clutch, but overridden by Lua

[DOWNSHIFT_PROFILE]
POINT_0=50 ; Time to reach fully depress clutch -- default
POINT_1=280 ; Time to start releasing clutch -- default
POINT_2=700 ; Time to reach fully released clutch -- default

[AUTOBLIP]
ELECTRONIC=0 ; If =1 then it is a feature of the car and cannot be disabled -- default
POINT_0=20 ; Time to reach full level -- default
POINT_1=180 ; Time to start releasing gas -- default
POINT_2=200 ; Time to reach 0 gas -- default
LEVEL=0.8 ; Gas level to be reached -- default

[DAMAGE]
RPM_WINDOW_K=100 ; -- default

[AUTO_SHIFTER]
UP=6000 ; -- default
DOWN=3200 ; -- default
SLIP_THRESHOLD=0.95 ; -- default
GAS_CUTOFF_TIME=0.30 ; -- default
59 changes: 59 additions & 0 deletions Source/base/data/drivetrain_lo206.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
; ASRE-2 LO206

[HEADER]
VERSION=3

[TRACTION]
TYPE=RWD ; -- obvious

[GEARS]
COUNT=1 ; forward gears number
GEAR_R=-1.0 ; rear gear ratio -- imaginary
GEAR_1=1.0 ; -- guessed
FINAL=3.933 ; final gear ratio -- sets default gearing but must match a ratio in gearing.rto

[DIFFERENTIAL]
POWER=1.0 ; differential lock under power. 1.0=100% lock - 0 0% lock -- obvious
COAST=1.0 ; differential lock under coasting. 1.0=100% lock 0=0% lock -- obvious
PRELOAD=100 ; preload torque setting -- guessed

[GEARBOX]
CHANGE_UP_TIME=240 ; change up time in milliseconds
CHANGE_DN_TIME=270 ; change down time in milliseconds
AUTO_CUTOFF_TIME=240 ; Auto cutoff time for upshifts in milliseconds, 0 to disable
SUPPORTS_SHIFTER=0 ; 1=Car supports shifter, 0=car supports only paddles
VALID_SHIFT_RPM_WINDOW=1000 ; range window additional to the precise rev matching rpm that permits gear engage.
CONTROLS_WINDOW_GAIN=0.4 ; multiplayer for gas,brake,clutch pedals that permits gear engage on different rev matching rpm. the lower the more difficult.
INERTIA=0.005 ; gearbox inertia. default values to 0.02 if not set -- guessed

[CLUTCH]
MAX_TORQUE=40 ; -- placeholder

[AUTOCLUTCH]
UPSHIFT_PROFILE=NONE ; Name of the autoclutch profile for upshifts. NONE to disable autoclutch on shift up -- default
DOWNSHIFT_PROFILE=DOWNSHIFT_PROFILE ; Same as above for downshifts -- default
USE_ON_CHANGES=1
MIN_RPM=3400 ; -- https://www.dynocams.com/item/stinger-s/
MAX_RPM=4600 ; -- https://www.dynocams.com/item/stinger-s/
FORCED_ON=1 ; -- full-time centrifugal clutch

[DOWNSHIFT_PROFILE]
POINT_0=50 ; Time to reach fully depress clutch -- default
POINT_1=280 ; Time to start releasing clutch -- default
POINT_2=700 ; Time to reach fully released clutch -- default

[AUTOBLIP]
ELECTRONIC=0 ; If =1 then it is a feature of the car and cannot be disabled -- default
POINT_0=20 ; Time to reach full level -- default
POINT_1=180 ; Time to start releasing gas -- default
POINT_2=200 ; Time to reach 0 gas -- default
LEVEL=0.8 ; Gas level to be reached -- default

[DAMAGE]
RPM_WINDOW_K=100 ; -- default

[AUTO_SHIFTER]
UP=6000 ; -- default
DOWN=3200 ; -- default
SLIP_THRESHOLD=0.95 ; -- default
GAS_CUTOFF_TIME=0.30 ; -- default
Empty file added Source/base/data/drs.ini
Empty file.
14 changes: 14 additions & 0 deletions Source/base/data/electronics.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[ABS]
SLIP_RATIO_LIMIT=0.11
CURVE=
PRESENT=0
ACTIVE=0
RATE_HZ=250

[TRACTION_CONTROL]
SLIP_RATIO_LIMIT=0.10
CURVE=
PRESENT=0
ACTIVE=0
RATE_HZ=150
MIN_SPEED_KMH=20
1 change: 1 addition & 0 deletions Source/base/data/empty.lut
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0|0
Loading

0 comments on commit 050cb7b

Please sign in to comment.