Wiimms SZS Tools/CT-CODE Extension

From Custom Mario Kart
Jump to navigation Jump to search

Since version 1.23a, Wiimms SZS Tools supports the CT-CODE extension. CT-CODE was developed by MrBean35000vr and Chadderz for their CTGP Revolution. The name CT-CODE was created by Wiimm.



Introduction

This article describes, how to modify an original Mario Kart Wii to support up to 200 custom tracks in only one Custom Track Distribution. At the beginning only some commands are described.

Patching main.dol

The file main.dol (found in directory files/sys/) must be extended with CT-CODE. The following command does it for the PAL, USA and JAPAN version:

wstrt patch --add-ctcode main.dol

It must be done only once and the result are main.dol files, that are identically to the files of CTGP Revolution v1.02. The advantage of patching is, that there is no need to distribute copyrighted software.

Defining the Online-Region

The region for online racing is defined by:

wstrt patch --region=NUMBER StaticR.rel

NUMBER is here the region number. It can be entered as decimal number (e.g. 123) or as hexadecimal number with prefix (e.g. 0x7b). To avoid region conflicts, consult »Custom Track Regions« and mark your region as reserved or used.

Creating STRAP files

First you need a CTGP-R conforming strap file. The easiest way is to use the provided template. It contains an extracted strap.d files.

In the sub-directory strap.d/Textures(NW4R)/ you find the file CT_CODE (see below) and 8 pictures. The pictures are stores as TEX0 file and as PNG file. You must at least edit the image strapD_832x456.png to define your setup screen. Use any image tool for it.

The CT-CODE is created by one of the following commands:

wctct create eu-tex ctcode.txt -od "strap.d/Textures(NW4R)/CTGP_CODE"
wctct create us-tex ctcode.txt -od "strap.d/Textures(NW4R)/CTGP_CODE"
wctct create jp-tex ctcode.txt -od "strap.d/Textures(NW4R)/CTGP_CODE"

The difference is only the supported disc type (EU, USA or JAPAN).

At last you must create the new strap file:

wszst create strap.d --overwrite

The file name of the new strap file is strap.szs. Replace all strap files found in ./files/Boot/Strap/ by the new file.

Visual effect on Track Selection

Layout

Cup Icons

BMG messages

Template

You can find a template file at the SZS tools site: CT-CODE.zip It contains: