##---------------------------------------------------
## 1957 Porsche 356A Speedster
## Replacement for Mazda RX8
## Attributes.bin patch script
##---------------------------------------------------

memfile GLOBAL\GlobalMemoryFile.bin
vpak GLOBAL\ATTRIBUTES.BIN db


##---------------------------------------------------
## Node: pvehicle/default/cars/racers/rx8
##---------------------------------------------------

## VerbalType; copspeech related; code determines what cops will call your car
## PATCH LENGTH ADDRESS, NOT DATA
patch	int32	bin:0x30b10	0x00000002

## MASS; self-explanatory; mass of car expressed in kilograms
patch	float	bin:0x30b08	760

## engineaudio[0]
patch	int32	bin:0x30c94	0xbc3608fa

## engineaudio[1]
patch	int32	bin:0x30ca0	0xf9a6801c

## engineaudio[2]
patch	int32	bin:0x30cac	0x4f526043

## TENSOR_SCALE; seems to be overall handling speed scale balancing
## the bigger 2nd value is the slower the car will respond to steering input
## countered by increasing of 1st and 3rd value
patch	float	bin:0x30ad0	1
patch	float	bin:0x30ad4	2
patch	float	bin:0x30ad8	1
patch	float	bin:0x30adc	0

## HandlingRating; used to set min and max handling bars length; doesn't take effect from base or end grip values but its increase is dependent
## on chassis and tires values
## values range from 37-98 for 1st set and 90-100 for 2nd set
patch	float	bin:0x30b48	37
patch	float	bin:0x30b4c	85

## brakes_upgrades
patch	int32	bin:0x30b04	4

## induction_upgrades
patch	int32	bin:0x30b14	3

## tires_upgrades
patch	int32	bin:0x30b0c	3

## engine_upgrades
patch	int32	bin:0x30af8	4

## transmission_upgrades
patch	int32	bin:0x30afc	4

## nos_upgrades
patch	int32	bin:0x30b00	3

## chassis_upgrades
patch	int32	bin:0x30b18	3


##---------------------------------------------------
## Node: ecar/default/racers/rx8
##---------------------------------------------------

## BodyDive; maximum vector-based movement of front of car body
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x3fd88	2
patch	float	bin:0x3fd8c	1
patch	float	bin:0x3fd90	3

## RideHeight; in-race only; visible body height
patch	float	bin:0x3fdcc	0

## TireOffsets
## in format x, y, z, w
## x axis; car front = +; car rear = -
## y axis; left side = +; right = -
## z axis; up = +; down = - note: will move WHEELS [up or down] regarding CAR BODY, during race body will be on normal level
## unlike wheels that might be BELOW ground
## w - wheel diameter scaling; default game values range between 0.31 [elise] and 0.35 [mustanggt]
## NOTE: CAR BODY height will be changed to match wheel size
## all axles have point 0 in center of line between front left and rear right wheel or between front right and rear left

## front left
patch	float	bin:0x3fce0	1.05
patch	float	bin:0x3fce4	0.77
patch	float	bin:0x3fce8	0
patch	float	bin:0x3fcec	0.315

## front right
patch	float	bin:0x3fcf0	1.05
patch	float	bin:0x3fcf4	-0.77
patch	float	bin:0x3fcf8	0
patch	float	bin:0x3fcfc	0.315

## rear right
patch	float	bin:0x3fd00	-1.05
patch	float	bin:0x3fd04	-0.717
patch	float	bin:0x3fd08	0
patch	float	bin:0x3fd0c	0.315

## rear left
patch	float	bin:0x3fd10	-1.05
patch	float	bin:0x3fd14	0.717
patch	float	bin:0x3fd18	0
patch	float	bin:0x3fd1c	0.315

## BodySquat; maximum vector-based movement of rear of car body
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x3fd7c	3
patch	float	bin:0x3fd80	1
patch	float	bin:0x3fd84	4

## FECompressions; used to adjust height of car body regarding wheels in frontend menus
## common value range is 2x0.10-2x0.20
patch	float	bin:0x3fdf8	0.14
patch	float	bin:0x3fdfc	0.14

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x3fdac	0.1655
patch	float	bin:0x3fdb0	0.1655
patch	float	bin:0x3fdb4	0.1655
patch	float	bin:0x3fdb8	0.1655

## ReflectionOffset; used to adjust car's reflection in the menus
## common value range is 2x0.10-2x0.20
patch	float	bin:0x3fdc4	-0.03

## KitWheelOffsetRear; used to move wheels along axis Y when bodykits are used
## values range from 0 to 128; applies to REAR axle
patch	int8	bin:0x3fdd8	0
patch	int8	bin:0x3fdd9	0
patch	int8	bin:0x3fdda	0
patch	int8	bin:0x3fddb	29
patch	int8	bin:0x3fddc	0
patch	int8	bin:0x3fddd	0

## BodyRoll; maximum vector-based movement of entire car body towards left or right
## simply put - car body leaning sideways
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x3fd70	3
patch	float	bin:0x3fd74	1
patch	float	bin:0x3fd78	3

## KitWheelOffsetFront; used to move wheels along axis Y when bodykits are used
## values range from 0 to 128; applies to FRONT axle
patch	int8	bin:0x3fde6	0
patch	int8	bin:0x3fde7	0
patch	int8	bin:0x3fde8	0
patch	int8	bin:0x3fde9	41
patch	int8	bin:0x3fdea	0
patch	int8	bin:0x3fdeb	0


##---------------------------------------------------
## Node: brakes/default/rx8
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x244e8	350
patch	float	bin:0x244ec	480

## EBRAKE; handbrake power; should be larger than BRAKES value by at least 10% and larger than overall car horsepower
## common value range is 400-800; mass dependent
patch	float	bin:0x244f0	600

## BRAKE_LOCK; BRAKES field values multiplier and braking force distribution ratio
## common value range is 1.00 for front axle and 3.20-3.60 for rear axle
patch	float	bin:0x244e0	1
patch	float	bin:0x244e4	3.1


##---------------------------------------------------
## Node: brakes/default/rx8/rx8_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x24678	550
patch	float	bin:0x2467c	650

## EBRAKE
patch	float	bin:0x24680	900

## BRAKE_LOCK
patch	float	bin:0x24670	1
patch	float	bin:0x24674	3.4


##---------------------------------------------------
## Node: chassis/default/rx8
##---------------------------------------------------

## DRAG_COEFFICIENT; air resistance of object travelling in a non-vacuum environment such as air
## common value range is 0.25-0.42
patch	float	bin:0x92d8	0.3

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x92a8	16
patch	float	bin:0x92ac	16

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x9280	9
patch	float	bin:0x9284	9

## SHOCK_STIFFNESS; minimum pressure inside shock absorber in pounds per square inch
## common value range is 2x30-2x80; acceleration and mass-dependent
patch	float	bin:0x9298	55
patch	float	bin:0x929c	53

## SHOCK_BLOWOUT; maximum size by which a dampener can compress in inches; stock same as upgraded
## common value range is 5-8
patch	float	bin:0x92c0	8

## SHOCK_EXT_STIFFNESS; maximum shock absorber rebound force
## common value range is 2x40-2x80; acceleration-, downforce- and mass-dependent
patch	float	bin:0x9290	51
patch	float	bin:0x9294	51

## SWAYBAR_STIFFNESS; self-explanatory; probably expressed in pounds per square inch
## common value range is 2x200-2x450; acceleration and mass dependent
patch	float	bin:0x92b0	150
patch	float	bin:0x92b4	150

## ROLL_CENTER; vertical center of gravity [probably in inches]
## common value range is 8-10
patch	float	bin:0x92b8	10.4

## TRAVEL; maximum length by which a shock can be extended if car wheels don't have contact with road surface; stock commonly higher than upgraded
## common value range is 2x6-2x8; acceleration and mass dependent
patch	float	bin:0x9278	6.75
patch	float	bin:0x927c	6.75

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x92a0	250
patch	float	bin:0x92a4	250

## AERO_CG; overall distribution of aerodynamic force on the car body; values between 0 and 100; 0 for max in rear, 100 for max in front
## common value range is 47-51
patch	float	bin:0x92c4	46

## SPRING_PROGRESSION; maximum compression speed/rate for spring to achieve maximum stiffness; stock smaller than upgraded
## higher values will make springs stiffer faster so car won't shove ground on slopes but will also increase bouncing on curbs
## common value range is 2x5-2x8
patch	float	bin:0x9270	5
patch	float	bin:0x9274	5

## SHOCK_DIGRESSION; digressive shocks provide smoother ride at higher speeds and absorb body roll also improving cornering; smaller value for smoother ride
## common value range is 2x0.1-2x0.5
patch	float	bin:0x9268	0.24
patch	float	bin:0x926c	0.24

## RENDER_MOTION; dependent on ecar node settings in body roll, dive and squat; used as a multiplier of the mentioned values to calculate car body movement
## common value range is 0.50-1.00
patch	float	bin:0x92c8	1

## AERO_COEFFICIENT; used to define car aerodynamics factor and overall downforce; value too small will make it slow and too high will push it down to
## ground too hard making it difficult to drive and car will be constantly hitting road due to excessive amount of downforce
## common value range is 0.15-0.30
patch	float	bin:0x92d0	0.13

## FRONT_WEIGHT_BIAS; overall mass distribution; values from 0 to 100; 0 for max rear bias; 100 for max front bias
## common value range is 51-55
patch	float	bin:0x92d4	52


##---------------------------------------------------
## Node: chassis/default/rx8/rx8_top
##---------------------------------------------------

## DRAG_COEFFICIENT
patch	float	bin:0xa90c	0.32

## SHOCK_VALVING
patch	float	bin:0xa8dc	24
patch	float	bin:0xa8e0	24

## RIDE_HEIGHT
patch	float	bin:0xa8b4	8.5
patch	float	bin:0xa8b8	8.5

## SHOCK_STIFFNESS
patch	float	bin:0xa8cc	61
patch	float	bin:0xa8d0	61

## SHOCK_BLOWOUT
patch	float	bin:0xa8f4	8

## SHOCK_EXT_STIFFNESS
patch	float	bin:0xa8c4	51
patch	float	bin:0xa8c8	51

## SWAYBAR_STIFFNESS
patch	float	bin:0xa8e4	300
patch	float	bin:0xa8e8	225

## ROLL_CENTER
patch	float	bin:0xa8ec	9.25

## TRAVEL
patch	float	bin:0xa8ac	7.75
patch	float	bin:0xa8b0	7.75

## SPRING_STIFFNESS
patch	float	bin:0xa8d4	650
patch	float	bin:0xa8d8	500

## AERO_CG
patch	float	bin:0xa8f8	46.75

## SPRING_PROGRESSION
patch	float	bin:0xa8a4	5.7
patch	float	bin:0xa8a8	5.7

## SHOCK_DIGRESSION
patch	float	bin:0xa89c	0.24
patch	float	bin:0xa8a0	0.24

## RENDER_MOTION
patch	float	bin:0xa8fc	0.5

## AERO_COEFFICIENT
patch	float	bin:0xa904	0.22

## FRONT_WEIGHT_BIAS
patch	float	bin:0xa908	53.25


##---------------------------------------------------
## Node: engine/default/rx8
##---------------------------------------------------

## ENGINE_BRAKING; multiplies maximum torque at current gear and uses it to calculate speed loss with no throttle used
## common value range is 0.70-0.90
patch	float	bin:0x13554	0.7
patch	float	bin:0x13558	0.8
patch	float	bin:0x1355c	0.9

## IDLE; minimum operating speed of engine necessary to sustain its work but not enough to move drivetrain components
## common value range is 800-950
patch	float	bin:0x1356c	800

## TORQUE; self-explanatory; field count suggest game used to support up to 15 torque values; can only use 9 now
## common value range N/A since it differs per car
patch	float	bin:0x13518	70
patch	float	bin:0x1351c	87
patch	float	bin:0x13520	90
patch	float	bin:0x13524	98
patch	float	bin:0x13528	101
patch	float	bin:0x1352c	99
patch	float	bin:0x13530	92
patch	float	bin:0x13534	89
patch	float	bin:0x13538	87

## MAX_RPM; maximum operating speed of engine before its destruction [drag racing only]
## common value range N/A since it differs per car
patch	float	bin:0x13564	7500

## FLYWHEEL_MASS; the higher the mass, the higher the maximum inertia moment and therefore larger amounts of kinetic energy can be stored
## also the lower the mass, the faster the top speed can be achieved and maintained
## common value range is 9-15
patch	float	bin:0x13560	11.5

## RED_LINE; maximum safe operating speed of engine
## common value range N/A since it differs per car
patch	float	bin:0x13568	6500


##---------------------------------------------------
## Node: engine/default/rx8/rx8_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x14514	0.7
patch	float	bin:0x14518	0.8
patch	float	bin:0x1451c	0.9

## IDLE
patch	float	bin:0x1452c	800

## TORQUE
patch	float	bin:0x144d8	193
patch	float	bin:0x144dc	275
patch	float	bin:0x144e0	385
patch	float	bin:0x144e4	495
patch	float	bin:0x144e8	550
patch	float	bin:0x144ec	525
patch	float	bin:0x144f0	471
patch	float	bin:0x144f4	416
patch	float	bin:0x144f8	381

## MAX_RPM
patch	float	bin:0x14524	7500

## FLYWHEEL_MASS
patch	float	bin:0x14520	10

## RED_LINE
patch	float	bin:0x14528	6500


##---------------------------------------------------
## Node: induction/default/rx8_base
##---------------------------------------------------

## AIR_PRESSURE*; commonly 0.25
patch	float	bin:0x11d3c	0.25

## HIGH_BOOST
patch	float	bin:0x11d50	0.1

## LOW_BOOST
patch	float	bin:0x11d38	0.1

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x11d48	2.6

## PSI; maximum pressure of air taken into the turbine
## common value range is 12-15
patch	float	bin:0x11d4c	10

## SPOOL; turbine lag; 0 for 'supercharger'; anything higher will give 'turbo' upgrade
## common value range is 0.00-0.20
patch	float	bin:0x11d44	0.2

## BOOST_VARIANCE*; pressure drop/rise in chamber
patch	float	bin:0x11d40	-0.1


##---------------------------------------------------
## Node: induction/default/rx8_base/rx8_top
##---------------------------------------------------

## AIR_PRESSURE*; commonly 0.25
patch	float	bin:0x12030	0.25

## HIGH_BOOST
patch	float	bin:0x12044	0.2

## LOW_BOOST
patch	float	bin:0x1202c	0.2

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x1203c	2

## PSI; maximum pressure of air taken into the turbine
## common value range is 12-15
patch	float	bin:0x12040	12

## SPOOL; turbine lag; 0 for 'supercharger'; anything higher will give 'turbo' upgrade
## common value range is 0.00-0.20
patch	float	bin:0x12038	0.2

## BOOST_VARIANCE*; pressure drop/rise in chamber
patch	float	bin:0x12034	-0.05

##---------------------------------------------------
## Node: tires/default/rx8
##---------------------------------------------------

## YAW_SPEED; self-explanatory; rate at which car enters yaw state
## common value range is 0.30-0.70
patch	float	bin:0x22a0c	0.26

##---------------------------------------------------
## Node: tires/default/rx8/rx8_top
##---------------------------------------------------

## YAW_SPEED
patch	float	bin:0x237cc	0.31


##---------------------------------------------------
## Node: transmission/default/rx8
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6; total amount of gears including reverse, neutral and forward gears
## maximum number of elements is 11 but only 10 are proven to cause no problems with car drivability
## common value range is 7-9
patch	int16	bin:0x1ebd2	6

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1ebd8	3.56
patch	float	bin:0x1ebdc	0
patch	float	bin:0x1ebe0	3.182
patch	float	bin:0x1ebe4	1.765
patch	float	bin:0x1ebe8	1.13
patch	float	bin:0x1ebec	0.815
patch	float	bin:0x1ebf0	0
patch	float	bin:0x1ebf4	0
patch	float	bin:0x1ebf8	0

## DIFFERENTIAL; self-explanatory; differential bias; 0.00 for rear, 0.50 for mid and 1.00 for front
## setting towards front will lock the front wheels more, causing the car to be prone to oversteer; inverse effect if bias set towards rear
## common value range is 2x0.60-2x0.80; 3x0.60-3x0.80 if car is AWD
patch	float	bin:0x1ec04	0.75
patch	float	bin:0x1ec08	0.75
patch	float	bin:0x1ec0c	0

## GEAR_EFFICIENCY; overall power multiplier on current gear and rpm used to quickly change speed at each gear without any major reconfigurations
## common value set is 9x1.00
patch	float	bin:0x1ec18	1
patch	float	bin:0x1ec1c	1
patch	float	bin:0x1ec20	1
patch	float	bin:0x1ec24	1
patch	float	bin:0x1ec28	1
patch	float	bin:0x1ec2c	1
patch	float	bin:0x1ec30	1
patch	float	bin:0x1ec34	1
patch	float	bin:0x1ec38	1

## TORQUE_CONVERTER; percentage ratio of torque converter efficiency with automatic transmission usage
## common value range is 0.20-0.80
patch	float	bin:0x1ec3c	0.8

## TORQUE_SPLIT; torque-to-axle transfer ratio; 0 for RWD, 0.5 for AWD and 1 for FWD
## common value range N/A since it differs per car
patch	float	bin:0x1ec40	0

## CLUTCH_SLIP; self-explanatory; manual gearbox efficiency ratio
## common value range is 0.70-0.90
patch	float	bin:0x1ec44	0.8

## SHIFT_SPEED; shifting interval; stock [should be] higher than upgraded
## common value range is 0.10-0.25
patch	float	bin:0x1ec4c	0.25

## FINAL_GEAR; final gear ratio determining top speed
## common value range N/A since it differs per car
patch	float	bin:0x1ec50	4.428


##---------------------------------------------------
## Node: transmission/default/rx8/rx8_top
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6
patch	int16	bin:0x1f6a6	8

## GEAR_RATIO
patch	float	bin:0x1f6ac	3.5
patch	float	bin:0x1f6b0	0
patch	float	bin:0x1f6b4	3.182
patch	float	bin:0x1f6b8	1.765
patch	float	bin:0x1f6bc	1.13
patch	float	bin:0x1f6c0	0.87
patch	float	bin:0x1f6c4	0.79
patch	float	bin:0x1f6c8	0.65
patch	float	bin:0x1f6cc	0

## DIFFERENTIAL
patch	float	bin:0x1f6d8	0.7
patch	float	bin:0x1f6dc	0.7
patch	float	bin:0x1f6e0	0

## GEAR_EFFICIENCY
patch	float	bin:0x1f6ec	1
patch	float	bin:0x1f6f0	1
patch	float	bin:0x1f6f4	1
patch	float	bin:0x1f6f8	1
patch	float	bin:0x1f6fc	1
patch	float	bin:0x1f700	1
patch	float	bin:0x1f704	1
patch	float	bin:0x1f708	1
patch	float	bin:0x1f70c	1

## TORQUE_CONVERTER
patch	float	bin:0x1f710	0.5

## TORQUE_SPLIT
patch	float	bin:0x1f714	0

## CLUTCH_SLIP
patch	float	bin:0x1f718	0.8

## SHIFT_SPEED
patch	float	bin:0x1f720	0.25

## FINAL_GEAR
patch	float	bin:0x1f724	2.55


