Difference between revisions of "Modding Whiplash/Fatal Racing"
Jump to navigation
Jump to search
Aspirations (talk | contribs) |
Aspirations (talk | contribs) |
||
Line 124: | Line 124: | ||
** Bits 1-7: pair index, first texture on left, second on right | ** Bits 1-7: pair index, first texture on left, second on right | ||
*** <code>00000010</code> is first pair, <code>00000100</code> is second pair, etc | *** <code>00000010</code> is first pair, <code>00000100</code> is second pair, etc | ||
+ | ====Sign type==== | ||
+ | {| class="wikitable" style="text-align: center;" | ||
+ | !Value!!Description | ||
+ | |- | ||
+ | |0||tall box | ||
+ | |- | ||
+ | |1||tall box, different texture | ||
+ | |- | ||
+ | |2||small, back upside down, on one leg | ||
+ | |- | ||
+ | |3||small, back upside down, on two legs | ||
+ | |- | ||
+ | |4||pair of tall flat rectangles space outwards only visible from center, different texture | ||
+ | |- | ||
+ | |5||giant tall folded boxes, different texture | ||
+ | |- | ||
+ | |6||giant tall box, different texture | ||
+ | |- | ||
+ | |7||WIDE short box | ||
+ | |- | ||
+ | |8||cube, different texture | ||
+ | |- | ||
+ | |9||flat square, always face camera | ||
+ | |- | ||
+ | |10||flat skinny rectangle, always face camera | ||
+ | |- | ||
+ | |11||flat small square, fixed, same back | ||
+ | |- | ||
+ | |12||fixed flat square, back upside down | ||
+ | |- | ||
+ | |13||4 tall skinny boxes | ||
+ | |- | ||
+ | |14||tall box with pyramid top, different texture | ||
+ | |- | ||
+ | |15||flat square, always face camera, same as 9? | ||
+ | |- | ||
+ | |16||fixed flat square, back upside down, same as 12? | ||
+ | |- | ||
+ | |>=256||no idea | ||
+ | |} | ||
====Values==== | ====Values==== | ||
* AI line | * AI line | ||
Line 134: | Line 174: | ||
* Surface type | * Surface type | ||
** 524703 590082 590082 appears to define a moving ramp or at least a surface the car can fly off of vertically | ** 524703 590082 590082 appears to define a moving ramp or at least a surface the car can fly off of vertically | ||
− | |||
− | |||
− | |||
− | |||
===Signs=== | ===Signs=== | ||
Empty on some tracks. | Empty on some tracks. | ||
Line 148: | Line 184: | ||
||-1||-1 | ||-1||-1 | ||
|} | |} | ||
+ | * Texture | ||
+ | ** Bit 0: unset is normal | ||
+ | ** Bits 1-7: index in BLD texture file | ||
+ | ** Bit 8: apply texture | ||
===Stunts=== | ===Stunts=== | ||
Controls geometry that moves and potrudes. Empty on some tracks. | Controls geometry that moves and potrudes. Empty on some tracks. |
Revision as of 02:55, 13 March 2024
Contents
TRK file structure
Definition
Geometry lengthint |
0 | 0 | int
|
Empty line | |||
Empty line | |||
Geometry | |||
Signs | |||
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
| ||||||||
Left surface typeint
|
Center surface typeint
|
Right surface typeint
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
int
|
Sign type?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 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Surface type | Pit | Transparent Requires no texture |
Flip horizontally | Apply texture | Texture |
- Texture
- Bit 0: some sort of offset?
- For normal textures, left index+1 right index-3
- For transparent, makes it darker?
- Bits 1-7: pair index, first texture on left, second on right
00000010
is first pair,00000100
is second pair, etc
- Bit 0: some sort of offset?
Sign type
Value | Description |
---|---|
0 | tall box |
1 | tall box, different texture |
2 | small, back upside down, on one leg |
3 | small, back upside down, on two legs |
4 | pair of tall flat rectangles space outwards only visible from center, different texture |
5 | giant tall folded boxes, different texture |
6 | giant tall box, different texture |
7 | WIDE short box |
8 | cube, different texture |
9 | flat square, always face camera |
10 | flat skinny rectangle, always face camera |
11 | flat small square, fixed, same back |
12 | fixed flat square, back upside down |
13 | 4 tall skinny boxes |
14 | tall box with pyramid top, different texture |
15 | flat square, always face camera, same as 9? |
16 | fixed flat square, back upside down, same as 12? |
>=256 | no idea |
Values
- 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
Signs
Empty on some tracks.
Signable geometry index?int |
Textureint
|
... | |
-1 | -1 |
- Texture
- Bit 0: unset is normal
- Bits 1-7: index in BLD texture file
- Bit 8: apply texture
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