Difference between revisions of "Creating enemy routes of battle arenas with Wiimm's tools"

From Custom Mario Kart
Jump to navigation Jump to search
Line 38: Line 38:
 
== Links ==
 
== Links ==
 
{{Custom Track Tutorial}}
 
{{Custom Track Tutorial}}
[[Category:Tutorials]][[Category:Battle Arena Tutorial]]
+
[[Category:Tutorials]]
 +
[[Category:Battle Arena Tutorial]]
 +
[[Category:Wiimms SZS Tools]]

Revision as of 11:36, 16 August 2018

Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

This tutorial explains the creation of enemy routes in battle arenas using Wiimms SZS Tools. Be sure to understood the concept of Standard Routes and Dispatch Points!

The battle support of Wiimms SZS Tools is in development. At the moment there exists no public release of the tools that can handle the technics of this article. You have to wait for the release of v1.60a.

Introduction

As of v1.60a, Wiimms SZS Tools support an automatic connection of Standard Routes and Dispatch Points. All you need is to setup up the routes and points, edit some settings to advise the KMP compiler, and run the compiler.

Wiimm implemented the auto connection of enemy routes already and started a final test phase. See the change log for progress.

There is a second page with full code examples, which are used as reference from this page.

???

KMP Compiler

KMP conversions by Wiimms SZS Tools

If a tool s of Wiimms SZS Tools reads a file, is dieas always the same: It is read into memory and analyzed to find out the data format. If the file has an acceptable file format, a scan function is selected and the file data is scanned and translated into the internal data structures, which can held more data than the files.

In case of KMP (see image on the right), native KMP files and text KMP files are accepted for input. For SZS archives, file course.kmp is searched and scanned. Native are scanned by a binary scanner and text files by a KMP compiler.

Wiimms SZS Tools use a 2-pass compiler to translate KMP text files into the internal data structure. On each pass the complete text file is scanned. In the first pass the file is scanned for name definitions. This allows to use a name before it is defined. Error messages are suppressed. The second pass is used to setup the internal data structure. Error messages about syntax errors or missing names are printed.

The concept aof the 2-pass compiler is important for this article, because route links are created by by names!

The internal data structure allows manipulations of the data on different ways independent of the external file format. Manipulations are for example transformations, but also automatic route connections.

At the end, the data is is stored as as binary (commands ENCODE, PATCH), as text (commands DECODE, PATCH, CAT), or dropped (command CHECK).

Manual route setup

???

Links