GPBikes mods Wiki
Line 489: Line 489:
 
for a PR16x18, you have diameter = 0.016
 
for a PR16x18, you have diameter = 0.016
   
  +
You can´t change the MasterCylinder ingame (as for example the leverage and disc sizes) upto now. Maybe in further betas or RC1.
   
 
====Leverage====
 
====Leverage====

Revision as of 15:27, 29 January 2014

Description of the config file


Inertia

It has to be scaled linearly with Mass : 

Original Mass = Mo

New Mass = Mn

Ratio = Mn/Mo


So if Initial inertia vector is [I1,I2,I3] new Inertia vector should be [R*I1,R*I2,R*I3]


The engine

Inertia = 0.012

This will indicate the inertia of the engine (how fast it will takes its rev)


mapping0
{

  id = Yamaha R6
  curves = Yamaha_R6.engn
  name = SSP (140)
}

mapping1
{
  id = Yamaha R6
  curves = Yamaha_R6_Stock.engn
  name = R6 Stock (120)
}

mapping2
{
  id = Yamaha R6
  curves = Kawasaki_ZX6R_Stock.engn
  name = ZX6R Stock (120)
}

mapping3
{
  id = Yamaha R6
  curves = Honda_CBR600_Stock.engn
  name = CBR Stock (120)
}


mappingsetting = 0

You can define your own engine maps by adding new sections.

Just enter the id of the map found in the .engn file, the .engn file (should be located in the same folder) and the displayed name

The last line (mappingsetting) indicate which is the default map.


stall
{
RPM = 2000
torque = 0.1
}

This is used to simulate the stall of the engine : if you have a torque < 0.1 @2000rpm, engine will stall


IdleElectronic = 1
IdleThrottle = 0.3
IdleMinRPM = 2700
IdleMaxRPM = 3300

This is to set the idle RPM. it will oscillate between the min and max. 0.3 is the rate of change of the idle.


IdleRPM = 1200

Instead of oscillating idle you can set a fixed value and the idle will still be at 1200rpm.


BreakingRPM = 18000

BrokenTorque = 1

If you reach the breakingRPM, the engine will not have any torque (engine dead) when enabled (=1). You can set value to (=0), then the Torque is not broken and revs on (does not make much sense).


NumLimiter = 1
Limiter0 = 16200

This is the rev limiter. The motor will cut at this limit. Can be set true (=1) or false (=0).


FuelRatio = 0.38

Consumption of the bike. Value can be adjusted using MAXHUD plugin displaying the amount of fuel used for one lap. Increased ratio value will increase fuel amount per lap BUT is depending on engine capacity. (e.g. 4 cylinder using 0.38, 1 cylinder 2 stroke using 0.72).


Ratio = 2.073

Very important !!!

This is the primary reduction ratio found in the technical specification of your bike.


OptTemperature = 90
CoolingFactor = 0
HeatingFriction = 0
HeatingFactor = 0.07
WaterCoolingFactor = 0.0025

HeatTransferFactor = 1.5

ThermostatMin = 80
ThermostatMax = 90

Health and heat transfer of the engine.

OptTemperature:  is used to set the optimum temperature for the engine. It´s the temperature the engine delivers the most hp and does not overheat.

Cooling Faktor: ??

HeatingFriction: ??

Heating Factor: how fast the motor heat. The higher this factor is, the faster the motor heats


WatercoolingFactor: Speed at which the water cool the motor. The higher this factor is, better is the cooling

HeatTransferFactor: ??

ThermostatMin: below value the thermostat closes

ThermostatMax: above value thermostat is fully open

Clutch
{
  MaxTorque = 185
  Mapping = 2
  DeadZone = 0.04
  Slipper = 1

  RampAngle
  {
    range = 30, 5, 45
    setting = 1
  }
  MaxSlip
  {
    range = 0.5, 0.1, 1.0
    setting = 2
  }
}

Clutch settings


shiftRPM = 16000
MaxRPM = 16500


ShiftRPM : Engine rev where the shift light of MaxHUD plugin get orange

MaxRPM : Engine rev where the shift light of MaxHUD plugin get red




TemperatureAlarm
{
min = 68
max = 98
}

Engine health:

below min -> engine to cold , power loss

above max -> engine overheats , power loss.

Not sure if an alarm is really set/displayed right now.

The fueltank

fueltank
{
 CapacityRange = 1, 1, 17
 CapacitySetting = 16
 Length = 0.3
 Width = 0.3
}

You can adjust the capacity range from your tank : min capacity, step capacity and max capacity

The capacitySetting indicate which one is the default one (careful, it starts to 0 !! so setting 16 is for 17L)

Length and Width are the size of the fuel tank (not really need to adjust this parameter). It is used to calculate the amount of fuel left in tank.


The gearbox configuration

Gearing

gearing

{
ratio0 = 12, 31
ratio1 = 14, 31
ratio2 = 16, 32
ratio3 = 17, 31
ratio4 = 18, 30
ratio5 = 18, 28
ratio6 = 18, 26
ratio7 = 19, 27
ratio8 = 21, 27
ratio9 = 21, 24
ratio10 = 20, 23
ratio11 = 20, 21
ratio12 = 19, 20
}

This is the configuration for the gear ratio. 

It is found in the technical sheet of the bike (example : http://www.yamahamotorsports.com/sport/products/modelspecs/6/0/specs.aspx)

Normally, you only have 1 ratio for each gear on a stock bike.


Ratio used for each gear

NumGears = 6
Gear0 = 0
Gear1 = 2
Gear2 = 4
Gear3 = 6
Gear4 = 8
Gear5 = 10

You have to indicate the overall amount of gears (NumGears). (e.g. 6speed gear -> 6, 5 speed gear -> 5,....)

Then you have to indicate at which ratio each gear starts (when using more than one gear ratio for each gear)

Be aware: It starts at 0!! Gear0 is 1st gear, Gear1 is 2nd gear, .....

Also, for each gear, you need to say which ratio should be used (example here : gear2 (3rd gear) uses ratio4)


Automatic Shifting values (if someone plays with Auto shifting on)

UpshiftTime = 0.02

DownshiftTime = 0.06

DisengageTime = 0.02

DisengageMaxTorque = 90

EngageTime = 0.02

EngageMaxSpeedDiff = 250

SynchroDamageFactor = 0

SemiAutomatic = 1

LiftThrottle = 0.2

LiftTime = 0.05

BlipThrottle = 0.5

BlipTime = 0.05

DeClutchTime = 0.1

ReClutchTime = 0.1

autoshift

{

gear0

{

down = 0

up = 12000

}

gear1

{

down = 5000

up = 15000

}

gear2

{

down = 10500

up = 15000

}

gear3

{

down = 10500

up = 15000

}

gear4

{

down = 10500

up = 15000

}

gear5

{

down = 10500

up = 15000

}

gear6

{

down = 10500

up = 15000

}

}

}

Each gear can be set individually at which RPM the Autoshift has to change gears, In the example above the gears are shifted down if engine RPM falls down below 10500 rpm in gear 2-6.

TBC.....


The driveline

FirstAxisInertia = 0.003

SecondAxisInertia = 0.0009

Efficiency = 0.92

First axis: Engine output at front sprocket ??

Second axis: Rear wheel sprocket ??

Efficiency: Efficency of the driveline in general, (power loss from crankshaft to rearwheel.)

Important

The efficiency is the real output on rear wheel, taking account of the transmission loss (in this example, 0.92 >> 8% loss). 


FSprocket
{
gear0 = 11
gear1 = 12
gear2 = 13
gear3 = 14
gear4 = 15
gear5 = 16
}

FSprocketSetting = 5

Very important !!

This is the front sprocket. Also found in the technical spec of the bike on "Secondary gear ratio". 

The first part is ususally the front sprocket, the second part the rear sprocket.

Can be set at totally unreal settings / ranges. For real settings look into spare parts catalogues of AFAM, DID, Enuma,... to get a overview of the existing range of sprockets for each bike.

FSprocketSetting indicate which is the default gear to choose (here gear5 > 16)


RSprocket
{
gear0 = 44
gear1 = 45
gear2 = 46
gear3 = 47
gear4 = 48
gear5 = 49
gear6 = 50
gear7 = 51
}

RSprocketSetting = 1

Very important !!

This is the rear sprocket. Also found in the technical spec of the bike on "Secondary gear ratio". 

The first part is ususally the front sprocket, the second part the rear sprocket.

Can be set at totally unreal settings / ranges. For real settings look into spare parts catalogues of AFAM, DID, Enuma,... to get a overview of the existing range of sprockets for each bike.

RSprocketSetting indicates which is the default gear to choose (here gear1 > 45)


The wheel

The tyre choice :

tyre0
{
id = M RR 500 94 F Qual
params = m_rr500_94_f_qual.tyre
numsets = 2
}

tyre1

{
id = M RR 500 94 F Soft
params = m_rr500_94_f_soft.tyre
numsets = 4
}

tyre2
{
id = M RR 500 94 F Hard
params = m_rr500_94_f_hard.tyre
numsets = 4
}

tyre3
{
id = M RR 500 94 F Wet
params = m_rr500_94_f_wet.tyre
numsets = 4
}

tyresetting = 2

Choice of the tyre: for each tyre, enter the id used in the .tyre file, the file .tyre and the maximum quantity available if the option Tyre limitation is active online.

tyresetting indicates which is the default tyre.


Tyre pressure

pressure
{
range = 140, 5, 200
setting = 6
}

The range is the adjustable pressure range : min, step, max

Setting is the default setting (6*5 + 140 = 170)


tyreHeater = 1
tyreHeaterTemperature = 60

Option to activate/deactivate the tyreHeater

Temperature of the tyres when going on track if the heater is active.


Friction = 1.5


Brake

RiderMaxForce = 40
DeadZone = 0.01

Max force the driver can put on the lever


Master cylinders

MasterCylinder0
{
  name = default
  Diameter = 0.019
}

mastercylindersetting = 0

You add the master cylinder here. You can add as many as you want.

Just precise the diameter (in meter) and the name of the master cylinder.

Example : for a PR19x18, you have diameter = 0.019

for a PR16x18, you have diameter = 0.016

You can´t change the MasterCylinder ingame (as for example the leverage and disc sizes) upto now. Maybe in further betas or RC1.

Leverage

Leverage0
{
Name = 16mm
ratio = 12.5
}

Leverage1
{
Name = 18mm
ratio = 11.1111
}

Leverage2
{
Name = 20mm
ratio = 10
}

leveragesetting = 1

The ratio is found with the following formula :

ratio = 200/leverage

Leverage is the distance in mm.


Disc

disc0
{
name = Steel 310mm
Mass = 2.56
PressureToTorque = 0.41
OptTemp = 500
TempFactor = 1000
Heating = 0.001
CoolingBase = 0.5
CoolingFactor = 0.28
}

discsetting = 0

Front disc brake setting:

disc0 -> you can set as many discsets as you want (define "disc0", "disc1",...)

name -> displayed name of the brake disc in the game (Garage)

Mass -> weight of both disc incl. bolts / weight of one disc incl bolts (in case of only one brake disc on the front fork)

Pressure to Torque -> pressure applied to the brake pads

OptTemp -> optimal temperature for the best brake performance

TempFactor -> ??

Heating -> ??

Coolingbase -> ??

CoolingFactor -> Cooling of the brake discs after heated up (air cooling). Factor for decreasing the brake surface temperature.

discsetting -> which setting is set as default ingame (Garage). If more than one disc sets are available you have to set a default disc set. (0,1,2,.....)

The chassis

chassis
{
	Mass = 104
	Inertia = 13.91, 9.49, 7.02
}

You indicate here the mass of the chassis.

The inertia is processed like indicated here : http://gpbikes-mods.wikia.com/wiki/Config#Inertia


The aero

aero
{
	AreaX = 1.5
	AreaY = 1
	AreaZ = 0.5

	DragRight = 1
	DragLeft = 1
	DragUp = 1
	DragDown = 1
	DragAft = 1

	Cx = 0.5
	Cl = 0.09

	RotX = 1
	RotY = 1
	RotZ = 1

	MinCdA = 0.28
	MaxCdA = 0.33
}

Here are the settings of the aero:

AreaX - Wheelbase

AreaY - height of the bike

AreaZ - width of the bike

-> all values can be found in the technical documentation of each bike individually.

Dragright,Dragleft,DragUp,DragDown,DragAft -> Amount of drag produced by the bike in each direction (1=100%)  => (not quite sure on this)

Cx,Cl -> ??

RotX,RotY,RotZ -> ?? (rotation)

MinCdA -> Minimum wind resistance of the bike.

MaxCdA -> Maximum wind resistance of the bike.

The steer

steer
{
	Mass = 10
	InertiaBox = 0.4, 0.8, 0.2
	
	RakeAngleSetting = 2
	
	Lock = 20

	Damper = 4
	DamperPower = 1.5

	spg0 = -280
	spg1 = -3
	sdg0 = -70
	sdg1 = 0.5
	sig0 = 0
	sig1 = 0

	KYaw = 30
	
	KDamping0 = 0
	KDamping1 = 0.2
}

Steer settings:

Mass = weight of the upper part of the fork, clamps, handlebars,....

InertiaBox =

RakeAngleSetting = Default setting of the rake value ingame (Garage). Rake is defined in the .geom file.(rakeanglemin,rakeanglemax,reakeanglesteps)

Lock = Amount of Degrees when turning the steering left to right and vice versa. After the value the fork tube will hit either the bumb stop or the frame head.


??==The front suspension==

front_suspension
{
	Mass = 5
	InertiaBox = 0.4, 0.4, 0.4
	
	Spring
	{
		range = 19000, 1000, 29000
		setting = 5
	}

	Area = 0.002
	AirLengthBase = 0.1
	AirPressure = 100		; kPa
	Oil
	{
		range = 0.14, 0.02, 0.2
		setting = 2
	}

	Damper
	{
		BumpThreshold = -0.05
		Bump
		{
			setting0 = 1500, 1500
			setting1 = 1600, 1500
			setting2 = 1700, 1500
			setting3 = 1800, 1500
			setting4 = 1900, 1500
			setting5 = 2000, 1500
			setting6 = 2100, 1500
			setting7 = 2200, 1500
			setting8 = 2300, 1500
			setting9 = 2400, 1500
			setting10 = 2500, 1500
			setting11 = 2600, 1500
			setting12 = 2700, 1500
			setting13 = 2800, 1500
			setting14 = 2900, 1500
			setting15 = 3000, 1500
		}
		BumpSetting = 7

		ReboundThreshold = 0.05
		Rebound
		{
			setting0 = 2500, 2500
			setting1 = 2625, 2575
			setting2 = 2750, 3100
			setting3 = 4000, 3400
			setting4 = 3000, 3700
			setting5 = 5000, 4000
			setting6 = 3250, 2500
			setting7 = 3000, 2800
			setting8 = 3500, 3100
			setting9 = 4000, 3400
			setting10 = 3750, 3700
			setting11 = 3875, 4000
			setting12 = 4000, 2500
			setting13 = 4125, 2800
			setting14 = 4250, 3100
			setting15 = 5000, 4000
			setting16 = 4500, 3700
			setting17 = 5000, 4000
			setting18 = 4750, 3850
			setting19 = 4875, 3925
		}
		ReboundSetting = 7
	}

	Preload
	{
		range = 0, 0.001, 0.016
		setting = 0
	}
}

The rear suspension

rear_suspension
{
	Mass = 8
	InertiaBox = 0.4, 0.2, 0.6
	
	PivotSetting = 0
	LengthSetting = 0

	Spring
	{
		range = 75000, 5000, 125000
		setting = 5
	}

	Damper
	{
		BumpThreshold = -0.05
		Bump
		{
			setting0 = 6000, 6000
			setting1 = 6600, 6000
			setting2 = 7200, 6000
			setting3 = 7800, 6000
			setting4 = 8400, 6000
			setting5 = 9000, 6000
			setting6 = 9600, 6000
			setting7 = 10200, 6000
			setting8 = 10800, 6000
			setting9 = 11400, 6000
			setting10 = 12000, 6000
		}
		BumpSetting = 5

		ReboundThreshold = 0.05
		Rebound
		{
			setting0 = 10000, 10000
			setting1 = 11000, 10600
			setting2 = 12000, 11200
			setting3 = 13000, 11800
			setting4 = 14000, 12400
			setting5 = 15000, 13000
			setting6 = 16000, 13600
			setting7 = 17000, 14200
			setting8 = 18000, 14800
			setting9 = 19000, 15400
			setting10 = 20000, 16000
		}
		ReboundSetting = 5
	}

	Preload
	{
		range = 0, 0.001, 0.008
		setting = 0
	}
}

??


The ECU (optional)

valid = 1

Indicates if the ECU is used or not


ThrottleMapping0
{
	name = qualify
	Gear0
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.85
	}
	Gear1
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.9
	}
	Gear2
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.95
	}
}

ThrottleMapping1
{
	name = race 1
	Gear0
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.85
	}
	Gear1
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.9
	}
	Gear2
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.95
	}
}

ThrottleMapping2
{
	name = race 2
	Gear0
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.9
	}
	Gear1
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.95
	}
}

ThrottleMapping3
{
	name = wet
	Gear0
	{
		rpm0 = 8000
		rpm1 = 10000
		rpm2 = 15000
		rpm3 = 17000
		throttle = 0.95
	}
}

How is the throttle input mapped to the engine


	TCS
	{
		NumSettings = 4
		MinSlip = 0.1
		MaxSlip = 0.4
		ThrottleSmooth = 0.1
		Setting = 0
	}

Traction control settings


EngineBraking
	{
		NumSettings = 3
		MinSlip = 0
		MaxSlip = -0.1
		Throttle = 0.1
		ThrottleSmooth = 0.1
		Setting = 2
	}

Engine braking settings


AntiWheeling
	{
		NumSettings = 3
		WRatioAccFactor = 0.05
		MinWRatio = 10
		MaxWRatio = 20
		ThrottleSmooth = 15
		Setting = 0
	}

Antiwheeling settings


pitlimiter = 1

If pitlimiter is available (1) or not (0)


Misc

autoclutch
{
  minRPM = 3000
  maxRPM = 4000
}

Settings for autoclutch (how much gas is given when going on a previous gear to avoid blocking rear wheel)  


shifthelp
{
LiftThrottle = 0.2
LiftTime = 0.1

BlipThrottle = 0.4
BlipTime = 0.1

DeClutchTime = 0.15
ReClutchTime = 0.35
}

Settings for the shift help when no shifter is available.

LiftThrottle/Time : How much time and throttle (%) the gas should be close when we go to the next gear

BlipThrottle/Time : How much time and throttle (%) the gas should be open (blipped) when we go to the previousgear

Declutch/Reclutch time : how much time is needed to declutch (clucth open) and to reclutch (clutch closes).


wheelinghelp
{
 MinRatio = 15
 MaxRatio = 25
 Throttle = 0.5
}

Wheeling help settings