Difference between revisions of "Modding Whiplash/Fatal Racing"
Jump to navigation
Jump to search
Aspirations (talk | contribs) |
Aspirations (talk | contribs) |
||
Line 41: | Line 41: | ||
|Pitch rotation, upwards (°)<br><code>float</code> | |Pitch rotation, upwards (°)<br><code>float</code> | ||
|Roll rotation, clockwise (°)<br><code>float</code> | |Roll rotation, clockwise (°)<br><code>float</code> | ||
− | |<br><code>int</code> | + | |AI line<br><code>int</code> |
− | |<br><code>int</code> | + | |AI line<br><code>int</code> |
− | |<br><code>int</code> | + | |AI line<br><code>int</code> |
− | |<br><code>int</code> | + | |AI line<br><code>int</code> |
|Track grip<br><code>int</code> | |Track grip<br><code>int</code> | ||
|<br><code>int</code> | |<br><code>int</code> | ||
− | | | + | |Right shoulder? grip<br><code>int</code> |
|<br><code>int</code> | |<br><code>int</code> | ||
|<br><code>int</code> | |<br><code>int</code> | ||
Line 119: | Line 119: | ||
|Surface type 3|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |Surface type 3|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | ||
|} | |} | ||
+ | * AI line | ||
+ | ** >0: left | ||
+ | ** 0: center | ||
+ | ** <0: right | ||
* Grip | * Grip | ||
** 0: full grip | ** 0: full grip | ||
Line 138: | Line 142: | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|- | |- | ||
− | |Geometry index | + | |Geometry index<br><code>int</code> |
|Scale factor?<br><code>int</code> | |Scale factor?<br><code>int</code> | ||
|Angle?<br><code>int</code> | |Angle?<br><code>int</code> |
Revision as of 00:58, 12 March 2024
Contents
TRK file structure
Definition
Geometry lengthint |
0 | 0 | int
|
Empty line | |||
Empty line | |||
Geometry | |||
Tuples? | |||
Empty line | |||
Stunts | |||
Empty line | |||
Textures | |||
Empty line | |||
Race info | |||
Empty line |
Geometry
Track geometry.
Left shoulder widthint
|
Left lane widthint
|
Right lane widthint
|
Right shoulder widthint
|
int
|
int
|
int
|
Yaw rotation, clockwise (°)float
|
Pitch rotation, upwards (°)float
|
Roll rotation, clockwise (°)float
|
AI lineint
|
AI lineint
|
AI lineint
|
AI lineint
|
Track gripint
|
int
|
Right shoulder? gripint
|
int
|
int
|
int
|
int
|
int
| ||||||||
Surface type?int
|
Surface type?int
|
Surface type?int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
float
|
float
|
float
| ||||||||||||
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
Empty line | |||||||||||||||||||||||||||||
... |
Surface type bit flags
Least significant bit | 31 | 24 | 16 | 8 | 0 | |||||||||||||||||||||||||||
Surface type 1 | ||||||||||||||||||||||||||||||||
Surface type 2 | Pit | |||||||||||||||||||||||||||||||
Surface type 3 |
- AI line
- >0: left
- 0: center
- <0: right
- Grip
- 0: full grip
- 12: ice
- Surface type?
- 524703 590082 590082 appears to define a moving ramp or at least a surface the car can fly off of vertically
Tuples?
Empty on some tracks.
index?int |
int
|
... | |
-1 | -1 |
Stunts
Controls geometry that moves and potrudes. Empty on some tracks.
Geometry indexint
|
Scale factor?int
|
Angle?int
|
?int
|
Timing groupint
|
Heightint
|
Time bulgingint
|
Time flatint
|
Smaller expands/larger contracts?int
|
Bulge?int
|
... | |||||||||
-1 |
- Scale factor?
- Increases the length and height of the "ramp"
- 1 is a bump, 4 starts breaking textures, 6 is huge vertical wall
- Angle?
- Lower is flatter, higher becomes trapezoid with longer top
- ?
- No clue
- Timing group
- With otherwise identical config, two bumps with same number move together, with 1 and 2 move oppositely
Textures
Texture fileTEX:<DRH file>
| |
Building texture fileBLD:<DRH file>
| |
BACKS:
| |
int |
int
|
... | |
-1 |
Race info
Not present on some tracks.
Track numberint
| |||||
Impossible lapsint |
Hard lapsint |
Tricky lapsint |
Medium lapsint |
Easy lapsint |
Girlie lapsint
|
Track map size, smaller is largerfloat |
Track map fidelity, smaller is more accurateint |
float
|
Effects
Bonus 7
- Swapping yaw and pitch: loop
- Swapping yaw and roll: twisting line
- Swapping yaw and pitch, roll 90.00000: vertical ring to the left
- Negative yaw: turnright