Difference between revisions of "LE-CODE/Track FAQ"
Line 14: | Line 14: | ||
[[LE-CODE]] provides a solution for this issue. It a second [[KMP#KTPT|KTPT]] at index #1 with player_id -1 is defined, it is used as alternative draw position for the finish line. The point at offset #0 is still used for start position. | [[LE-CODE]] provides a solution for this issue. It a second [[KMP#KTPT|KTPT]] at index #1 with player_id -1 is defined, it is used as alternative draw position for the finish line. The point at offset #0 is still used for start position. | ||
− | If you setup a second KTPT, search the relevant lap counter (section [[KMP#CKPT|CKPT]]) and place the KTPT at the checkpoint line. The direction (y-rotation) of the KTPT is important | + | If you setup a second KTPT, search the relevant lap counter (section [[KMP#CKPT|CKPT]]) and place the KTPT at the checkpoint line. The direction (y-rotation) of the KTPT is important. |
[[Wiimm]] edited 15 tracks to insert a second KTPT. If you update such track and don't change the finish line, please copy the second KTPT (leave it unchanged). | [[Wiimm]] edited 15 tracks to insert a second KTPT. If you update such track and don't change the finish line, please copy the second KTPT (leave it unchanged). | ||
+ | |||
+ | === Solution using Wiimms SZS Tools === | ||
+ | |||
+ | As of v2.03 of [[Wiimms SZS Tools]], command »'''<tt>wkmpt KTPT</tt>'''« analyses the track and prints a recommendation for the second KTPT in 2 formats: As complete KTPT record, and as option --ktpt2: | ||
+ | Recommendation based on nearest ENPT #32: | ||
+ | Recommended KTPT record: 1 -82892.672 152.510 50314.219 0 33.52 0 -1 0 | ||
+ | Recommended patch option: --ktpt2=-82893,50314 | ||
+ | The option can be used to insert or replace the second KTPT: | ||
+ | wszst patch --ktpt2=-82893,50314 FILE.szs | ||
+ | Rotation and Y-position (height) are determined automatically. The position is adjusted. | ||
[[category:LE-CODE]] | [[category:LE-CODE]] | ||
[[category:Track/LE-CODE|!]] | [[category:Track/LE-CODE|!]] | ||
[[category:FAQ]] | [[category:FAQ]] |
Revision as of 15:48, 23 May 2019
This is a special help page for track editors. It explains, how to edit your tracks to use the extensions provided by LE-CODE.
Second KTPT
Issue
Usually, the start position of a track is placed very near to the finish line (CKPT lap counter). But some tracks use special start positions (starting boxes) far away from the finish line and sometimes with different direction. In this case, the finish line of the minimap is drawn at the wrong place.
Solution
LE-CODE provides a solution for this issue. It a second KTPT at index #1 with player_id -1 is defined, it is used as alternative draw position for the finish line. The point at offset #0 is still used for start position.
If you setup a second KTPT, search the relevant lap counter (section CKPT) and place the KTPT at the checkpoint line. The direction (y-rotation) of the KTPT is important.
Wiimm edited 15 tracks to insert a second KTPT. If you update such track and don't change the finish line, please copy the second KTPT (leave it unchanged).
Solution using Wiimms SZS Tools
As of v2.03 of Wiimms SZS Tools, command »wkmpt KTPT« analyses the track and prints a recommendation for the second KTPT in 2 formats: As complete KTPT record, and as option --ktpt2:
Recommendation based on nearest ENPT #32: Recommended KTPT record: 1 -82892.672 152.510 50314.219 0 33.52 0 -1 0 Recommended patch option: --ktpt2=-82893,50314
The option can be used to insert or replace the second KTPT:
wszst patch --ktpt2=-82893,50314 FILE.szs
Rotation and Y-position (height) are determined automatically. The position is adjusted.