Incomplete Information
I'd like to make my own Pack with this, but the instructions seem incomplete. From the point of creating a strap.szs file, there's no explanation on the layout and cups, and for the custom BMG messages. Could anyone with correct knowledge about CT-CODE please fill in this part of the information for people who need it? (ME).
PC Freak (talk) 21:24, 3 March 2015 (UTC)
- Yes, they are incomplete. But Wiimmfi and my others projects has a higher priority for me. Sorry -- Wiimm (talk) 22:42, 3 March 2015 (UTC)
- I don't care. Wiimmfi is a very good thing. Maybe someone else could complete the information.
- PC Freak (talk) 06:35, 4 March 2015 (UTC)
bash code to create a strap
Here you can find the code of my distribution creator. It creates the strap files including the CTGPR extension. Because of my limited time I don't give support.
function create_strap()
function create_strap()
{
((VERBOSE>0)) && echo "CREATE STRAP/100"
create_strap_images || return 1
local img="$WIIMM_DIR/img-patch"
local strap="$WORK_DIR/strap"
local dest="$strap.d/Textures(NW4R)"
mkdir -p "$dest"
cat <<- __EOT__ >"$strap.d/wszst-setup.txt"
archive-format = BRRES
file-format = YAZ0
data-align = 0x40
[exclude]
./wszst-setup.txt
[order]
= ./Textures(NW4R)/
0x100 = ./Textures(NW4R)/strapA_16_9_832x456
0xb9540 = ./Textures(NW4R)/strapA_608x456
0x140b80 = ./Textures(NW4R)/strapB_16_9_832x456
0x1f9fc0 = ./Textures(NW4R)/strapB_608x456
0x281600 = ./Textures(NW4R)/strapC_832x456
0x33aa40 = ./Textures(NW4R)/strapC_608x456
0x3c2080 = ./Textures(NW4R)/strapD_832x456
0x47b4c0 = ./Textures(NW4R)/strapD_608x456
0x502b00 = ./Textures(NW4R)/CTGP_CODE
0x58a140 = ./.string-pool.bin
__EOT__
#--- create images
local WIMGT="wimgt copy -q --n-mipmaps=0 -x tex.rgb565"
local WHITE="$MKF_DEVELOP/images/white"
local FAIL="$MKF_DEVELOP/images/mkw-fun-100-failed.png"
$WIMGT "$WHITE-832x456.png" -P "fg=$FAIL" "$dest/strapA_16_9_832x456"
$WIMGT "$WHITE-608x456.png" -P "fg=$FAIL" "$dest/strapA_608x456"
$WIMGT "$WHITE-832x456.png" -P "fg=$FAIL" "$dest/strapB_16_9_832x456"
$WIMGT "$WHITE-608x456.png" -P "fg=$FAIL" "$dest/strapB_608x456"
$WIMGT "$WHITE-832x456.png" -P "fg=$img/strap-a.png" "$dest/strapC_832x456"
$WIMGT "$WHITE-608x456.png" -P "fg=$img/strap-a.png" "$dest/strapC_608x456"
$WIMGT "$WHITE-832x456.png" -P "fg=$img/strap-b.png" "$dest/strapD_832x456"
$WIMGT "$WHITE-608x456.png" -P "fg=$img/strap-b.png" "$dest/strapD_608x456"
local bmg=()
[[ -f $BMG_CUP ]] && bmg=( --load-bmg "$BMG_CUP" )
local CMD=( wctct create -q "${bmg[@]}" "${opt_wctct[@]}" )
((${#opt_wctct[@]})) && echo "wctct options: ${opt_wctct[*]}"
local COPY="cp -l --remove-destination --dereference"
#--- eu
"${CMD[@]}" eu-tex "$WORK_DIR/ctcode-name.txt" -od "$dest/CTGP_CODE"
wszst create -q --szs --brres "$strap.d" -od "$strap-eu.szs"
copydest="$PATCH_DIR/files/Boot/Strap/eu"
mkdir -p "$copydest"
$COPY "$strap-eu.szs" "$copydest/Dutch.szs"
$COPY "$strap-eu.szs" "$copydest/Italian.szs"
$COPY "$strap-eu.szs" "$copydest/German.szs"
$COPY "$strap-eu.szs" "$copydest/English.szs"
$COPY "$strap-eu.szs" "$copydest/French.szs"
$COPY "$strap-eu.szs" "$copydest/Spanish_EU.szs"
#--- us
"${CMD[@]}" us-tex "$WORK_DIR/ctcode-name.txt" -od "$dest/CTGP_CODE"
wszst create -q --szs --brres "$strap.d" -od "$strap-us.szs"
copydest="$PATCH_DIR/files/Boot/Strap/us"
mkdir -p "$copydest"
$COPY "$strap-us.szs" "$copydest/English.szs"
$COPY "$strap-us.szs" "$copydest/French.szs"
$COPY "$strap-us.szs" "$copydest/Spanish_US.szs"
#--- jp
"${CMD[@]}" jp-tex "$WORK_DIR/ctcode-name.txt" -od "$dest/CTGP_CODE"
wszst create -q --szs --brres "$strap.d" -od "$strap-jp.szs"
copydest="$PATCH_DIR/files/Boot/Strap/jp"
mkdir -p "$copydest"
$COPY "$strap-jp.szs" "$copydest/jp.szs"
}
-- Wiimm (talk) 06:55, 4 March 2015 (UTC)
Can't Change StaticR.rel
HI Wiimm,
I'm having trouble changing the online region in my StaticR.rel file (This file is the original pal version). I Enter The Command: wstrt patch --region 13590 StaticR.rel And I get this: wstrt patch --region 13590 StaticR.rel PATCH StaticR.rel * File not modified: STATR:StaticR.rel
Also I'm Using Cygwin on Windows.
--Wg93589 (talk) 03:45, 3 August 2015 (UTC)
- It seems to be a bug since allowing different regions for battle and race.
- Wiimm (talk) 20:03, 3 August 2015 (UTC)
- The patch is applied, but not registered as modification.
- Workaround: append -od NEWFILE.rel and the patched file will stored as new file including the patch. wstrt analyse NEWFILE.rel will proof it.
- -- Wiimm (talk) 20:11, 3 August 2015 (UTC)
Black screen on boot with CT Code enabled distribution
Hi, I've been working on Lumafreak's CT Distribution and when I start the game, I get a black screen on boot. Oddly, the Wiimote can still connect, implying that the game is endlessly loading something. Not all slots are defined yet, as I don't have all of the track files yet. Analyzing the CT Code tex0 shows that it is identical to the CTGP 1.02.0003 CT Code tex0 (barring differences in the cup and track slot data). Please help! Aplumafreak500 (talk) 16:28, 27 August 2015 (UTC)
- Never mind, it's fixed now. Aplumafreak500 (talk) 22:33, 9 September 2015 (UTC)
- Sorry, But I didn't notice this before. Also I have no idea about it. -- Wiimm (talk) 20:43, 10 September 2015 (UTC)
- It was due to the folder with the strap files not being named correctly. However, using GCT with the distrib (for things like speed mods) blackscreens on boot with the Wiimote not being able to connect at all. Aplumafreak500 (talk) 00:42, 11 September 2015 (UTC)