Converting Images

Converting images to and from .bti is an important and common step in much of Mario Kart: Double Dash!! modding.

Using DouBol Dash
To convert from .bti to .png:
 * 1) Open up DouBol Dash
 * 2) Under "Tools", select "BTI Viewer". A new window should pop up.
 * 3) Under "File", select "Open" and select the .bti file.
 * 4) If the image loads, under "File" select "Export", and save the .png.

This process can be tedious if you wish to convert a large number of .bti files. However, this is the only method of converting .bti files that were exported from J3dView.

Using wimgt
To convert from .bti to .png using a .bat file (single image): cd  wimgt decode %1
 * 1) Create a new .bat file and copy as its text the text down below.
 * 2) Replace  with the path on your computer to wimgt.exe
 * 3) Now, drag the .bti file onto the .bat file, and a .png file with the same name as the .bti file should appear in the directory.

If there is .png file with the same name as the .bti file already, wimgt will not do a conversion.

If you want to change the file name when you convert, replace the last line with wimgt convert %1 -d Being sure the place the with the name and format which you want the converted .bti file to take.

Using wimgt
To convert from .png to .bti using a .bat file (single image): cd  wimgt convert %1 -d %~p1%~n1.bti -x BTI.CMPR --n-mm=0
 * 1) Create a new .bat file and copy as its text the text down below.
 * 2) Replace  with the path on your computer to wimgt.exe
 * 3) Now, drag the .bti file onto the .bat file, and a .png file with the same name as the .bti file should appear in the directory.
 * 4) If you are going to use the .bti as a course logo/thumbnail/name or character name, set bytes 0x06 and 0x07 to 0. Alternatively, you can write a script to do this for you.

"BTI.CMPR" forces wimgt to convert the image in the CMPR format. "-n-mm=0" means that 0 mipmaps will be present in the .bti file. Both of these options can be changed by editing the .bat file.

Useful .bat files
Conversion .bti <-> .png (depending on the input file): @echo off cd "C:\Program Files (x86)\Wiimm\SZS\" IF "%~x1"==".png" ( wimgt convert %1 -d %~p1%~n1.bti -x BTI.CMPR --n-mm=0 ) ELSE ( wimgt decode %1 )

Convert all .bti in the current directory to .png (and delete the original file):

cd "C:\Program Files (x86)\Wiimm\SZS\" for %%a in ("./*.bti") do ( wimgt decode %%a del %%a )

To avoid the deleting of the original .bti file, get rid of the del %%a line.

Convert all .png in the current directory to .bti:

cd "C:\Program Files (x86)\Wiimm\SZS\" for %%a in ("./*.png") do ( wimgt encode %%a -d %%~pa%%~na.bti -x BTI.CMPR --n-mm=0 )