// File format for CAR_info.bin files (LFS 0.5U15) // ----------------------------------------------- // Note : Press letter O in the garage to export CAR_info.bin offset offset description datatype value conversion (dec) (hex) ----------- -------- ----- ---------- ----- ----- 0 0 identifier : LFS_CI char[5] LFS_CI 6 6 0 byte byte 0 7 7 version : currently 1 - do not read file if increased byte 1 8 8 short car name (3 chars + zero) char[4] MRT + zero 12 C byte : passengers - bit 0:driver, 1:front, 2:r_left, byte 0 3:r_midde, 4:r_right 13 D 0 byte byte 0 14 E 0 byte byte 0 15 F 0 byte byte 0 // Body matrix - 9 floats - in LFS, X right, Y forward, Z up 16 10 Body matrix : (a, d, g) is right vector, float 0.9999999 20 14 float -5.083227e-08 24 18 float -2.620773e-08 28 1C (b, e, h) forward, float 5.081508e-08 32 20 float 0.9999998 36 24 float -0.0006556028 40 28 (c, f, i) up float 2.624104e-08 44 2C float 0.0006556028 48 30 float 0.9999998 // From this point, most values are 4 byte floating point or 4 byte integer values 52 34 Reference point position in WORLD coordinates int 0 = 0.000m 56 38 int 4294967242 = 65536.999m 60 3C int 3271 = 0.050m x, y, z (integer : 65535=ONE) 64 40 CoG position in WORLD coordinates int 0 = 0.000m 68 44 int 4294939707 = 65536.579m 72 48 int 16257 = 0.248m x, y, z (integer : 65535=ONE) 76 4C CoG relative to reference point, in LOCAL coordinates float -5.190063e-07 80 50 float -0.4200169 84 54 float 0.1984274 x, y, z (float) 88 58 Fuel Tank Pos rel to ref point, in LOCAL coordinates float 0 92 5C float -0.431548 96 60 float 0.1547936 x, y, z (float) 100 64 0 104 68 0 108 6C 0 112 70 0 116 74 0 120 78 0 124 7C 0 // Now 4 aero blocks - rear wing, front wing, undertray, body : 20 bytes each) 128 Position : x, y, z Lift : multiply by speed squared to get lift value Drag : multiply by speed squared to get drag value // Moment of inertia matrix, required for dynamic modelling 208 moment of inertia matrix (9 floats : 36 bytes) 0 0 0 256 100 max torque (Nm) float 69.11671 260 104 @rpm float 5078.125 264 108 max power (kW - actually W!) float 47914.32 268 10C @rpm float 7871.094 272 110 fuel litres float 0 276 114 mass total float 220.5001 280 118 approx wheelbase in metres (at zero suspension compress) float 1.769 284 11C approx weight distribution (at zero suspension compress) float 0.3747785 288 120 byte : number of forward gears byte 6 289 121 byte : Drive - 1=rwd, 2=fwd, 3=all byte 1 290 122 0 byte 291 123 0 byte 292 124 torque split float 0 296 128 drivetrain efficiency float 0.85 300 12C 0 304 130 reverse gear float -10 308 134 1st gear float 6.859966 312 138 2nd float 4.690023 316 13C 3rd float 3.729972 320 140 4th float 3.209998 324 144 5th float 2.870006 328 148 6th float 2.580004 332 14C 7th gear float 0 336 150 final drive ratio float 1.699957 340 154 0 344 158 0 348 15C 0 352 160 parallel steer (1 = parallel) float 1 356 164 brake strength float 300 360 168 brake balance float 0.68 364 16C 0 368 0 372 0 376 0 380 0 // offset 384 - wheels : rear then front left then right 128 bytes each LR-------------- 384 tyre type byte 385 0 byte 386 0 byte 387 0 byte 388 pressure 392 air temperature 396 18C toe in float 0.008726647 = 0.5 deg 400 190 centre of contact patch (local coords x, y, x) float -0.5582117 404 194 float -1.083 408 198 float -0.05679554 412 unsprung mass 416 1A0 width of tyre float 0.165 420 1A4 sidewall height proportion of width float 0.55 424 1A8 rim radius float 0.1651 428 rim width 432 spring constant (vertical, at wheel) 436 damping - compression 440 damping - rebound 444 anti roll 448 camber 452 inclination 456 caster 460 scrub radius 464 moment of inertia 468 current suspension deflection (vertical, at wheel) 472 maximum suspension deflection 476 0 480 tyre spring constant at current deflection / temperature 484 current vertical tyre deflection 488 0 492 0 496 0 500 0 504 0 508 0 RR-------------- 512 tyre type byte 513 0 byte 514 0 byte 515 0 byte 516 pressure 520 air temperature 524 20C toe in float 0.008726647 = 0.5 deg 528 210 centre of contact patch (local coords x, y, x) float 0.5582117 532 214 float -1.083 536 218 float -0.05679554 540 unsprung mass 544 220 width of tyre float 0.165 548 224 sidewall height proportion of width float 0.55 552 228 rim radius float 0.1651 556 rim width 560 spring constant (vertical, at wheel) 564 damping - compression 568 damping - rebound 572 anti roll 576 camber 580 inclination 584 caster 588 scrub radius 592 moment of inertia 596 current suspension deflection (vertical, at wheel) 600 maximum suspension deflection 604 0 608 tyre spring constant at current deflection / temperature 612 current vertical tyre deflection 616 0 620 0 624 0 628 0 632 0 636 0 LF-------------- 640 tyre type byte 641 0 byte 642 0 byte 643 0 byte 644 pressure 648 air temperature 652 28C toe in float 0.003490659 = 0.2 deg 656 290 centre of contact patch (local coords x, y, x) float -0.5730524 660 294 float 0.686 664 298 float -0.05618188 668 unsprung mass 672 2A0 width of tyre float 0.165 676 2A4 sidewall height proportion of width float 0.55 680 2A8 rim radius float 0.1651 684 rim width 688 spring constant (vertical, at wheel) 692 damping - compression 696 damping - rebound 700 anti roll 704 camber 708 inclination 712 caster 716 scrub radius 720 moment of inertia 724 current suspension deflection (vertical, at wheel) 728 maximum suspension deflection 732 0 736 tyre spring constant at current deflection / temperature 740 current vertical tyre deflection 744 0 748 0 752 0 756 0 760 0 764 0 RF-------------- 768 tyre type byte 769 0 byte 770 0 byte 771 0 byte 772 pressure 776 air temperature 780 30C toe in float 0.003490659 = 0.2 deg 784 310 centre of contact patch (local coords x, y, x) float 0.5730524 788 314 float 0.686 792 318 float -0.05618188 796 unsprung mass 800 320 width of tyre float 0.165 804 324 sidewall height proportion of width float 0.55 808 328 rim radius float 0.1651 812 rim width 816 spring constant (vertical, at wheel) 820 damping - compression 824 damping - rebound 828 anti roll 832 camber 836 inclination 840 caster 844 scrub radius 848 moment of inertia 852 current suspension deflection (vertical, at wheel) 856 maximum suspension deflection 860 0 864 tyre spring constant at current deflection / temperature 868 current vertical tyre deflection 872 0 876 0 880 0 884 0 888 0 892 0