Difference between revisions of "LE-CODE/Distribution FAQ"

From Custom Mario Kart
Jump to navigation Jump to search
(→‎Extracting the Common files: Im sorry, but this sentence is so bullshit and gives a wrong idea that I cant let it be here. true is that the archive is loaded before but cmon the file access is much later, objflow and geohittables are loaded right before game creates gobj which is after most of kmp is already parsed, how can track szs not be loaded at this stage.)
Line 15: Line 15:
 
=== Extracting the Common files ===
 
=== Extracting the Common files ===
  
The game loads the common files before it loads the track's SZS. So it is mandatory, to store the common files outside of the track files. The distribution creators have to extract them to into the distribution directory '''<tt>./files/Race/Common/%N/</tt>''', where »'''%N'''« is the slot number formatted as 3 hex digits (lower case).
+
LE-CODE requires common files to be stored outside of track SZS file. The distribution creators have to extract them to into the distribution directory '''<tt>./files/Race/Common/%N/</tt>''', where »'''%N'''« is the slot number formatted as 3 hex digits (lower case).
 
: Example for slot 77 (=0x04d): '''<tt>./files/Race/Common/04d/ObjFlow.bin</tt>'''
 
: Example for slot 77 (=0x04d): '''<tt>./files/Race/Common/04d/ObjFlow.bin</tt>'''
  

Revision as of 10:54, 28 February 2024

This is a special help page for creators of custom track distributions. It explains how to edit your distribution to use the extensions provided by LE-CODE. It is an addition for the general LE-CODE Distribution Tutorial.

A Track FAQ exists too.


Common Files

LE-CODE supports private versions of different files of Common.szs. To keep all track related files together, track authors are advised to place those files into the sub-directory ./Common/ of the track's SZS. See »LE-CODE/Track« for details.

Template:LE-CODE common files

Extracting the Common files

LE-CODE requires common files to be stored outside of track SZS file. The distribution creators have to extract them to into the distribution directory ./files/Race/Common/%N/, where »%N« is the slot number formatted as 3 hex digits (lower case).

Example for slot 77 (=0x04d): ./files/Race/Common/04d/ObjFlow.bin

As of v2.02a of Wiimms SZS Tools, a simple command can extract all Common sub-folders to the correct place in only one step:

wszst xcommon ./files/Race/Course/*.szs -qiod ./files/Race/Common/%N/

Issue of _d files

At the moment, only common files of the standard track are loaded, even if a _d variant of the track exists and will be loaded.

It is not a real problem, because both variants should share the same common files. But changing the draw distance is a reason for different common files.