This automatic respawn definition makes an initial setup much easier and faster. However, the user must edit the proposal especially on parts, where a check point overlaps another check point on different height.
The automatic respawn definitions is done in 5 steps:
This tutorial use the KMP development of Yoshi Lagoon v1.2 as example. The new features of the KMP compiler were imlemented while editing the KMP. Look into the final KMP text file for details and to learn the power of the KMP compiler.
As told above, we use Yoshi Lagoon v1.2 as example. First I remade the main ENPT route (see first image) and tested it. I used the same route for ITPT by creating a macro and call it in both sections:
@macro pt_route @param is_itpt # 0:ENPT, 1:ITPT @KCL-FALL-WIDTH = 200 @KCL-FALL-PRE-ADD = 500 @KCL-FALL-POST-ADD = 0 @KCL-FALL-TYPES = KCL$BORDER $GROUP G1, next: G2A*2 G2B ... @endmacro [ENPT] @:pt_route(0) [ITPT] @:pt_route(1)
For the test I watched the computer enemies at minimap and in real to find out, where I can optimize the route.
25 10050.0 5001.0 -23000.0 10.0 0x3 0xa F-- 26 7600.0 5001.0 -24800.0 10.0 0x3 0x1 --- 27 5000.0 5001.0 -25800.0 10.0 0x3 0x1 -SJFlag
Another interesting aspect are route multiplactors:
$GROUP G1, next: G2A*2 G2BRoute multiplactors are only relevant for enemy routes. The example says, that 2 of 3 enemies go to G2A, and 1 of 3 to G2B. The sum of all multiplactors is limited to 6, because the KMP supports only 6 next entries. These multiplicators are ignored for item routes.
[JGPT] @AUTO-DEFINE = SECT$ENPT @AUTO-DISTANCE = 1000.0 @AUTO-ADJUST = vy(1) @AUTO-REMOVE = 2Remove all manually defined respawn points, that are not needed any longer. In case of Yoshi Lagoon all respawn points were removed.
Here you can set
To enable the automatic assignment of respawn points and also the automatic calculation of next and prev references, I enabled both with:
[CKPT] @AUTO-RESPAWN = 1 @AUTO-NEXT = 1
If you look at the image, you see, that the left border (red) of the upper
route is slightly lower than the right border (green) of the lower route.
[JGPT] @AUTO-REMOVE = 2