Mario Kart Wii Gecko Codes, Cheats, & Hacks

Full Version: Draw text to Screen Add Borders [SwareJonge]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Draw Text To Screen Add Borders [SwareJonge]

this code adds borders to the text drawn on screen
the 06 part of this code is optional but it reduces the border size which to me looks nice if only 1 line is drawn

(PAL)
04021F50 38E00001
0602201C 00000014
38040000 38790000
1CA00006 389AFFFF
38C00009 00000000

(NTSC-U)
04021EB0 38E00001
06021F7C 00000014
38040000 38790000
1CA00006 389AFFFF
38C00009 00000000

(NTSC-J)
04021E70 38E00001
06021F3C 00000014
38040000 38790000
1CA00006 389AFFFF
38C00009 00000000

(NTSC-K)
04021FB0 38E00001
0602207C 00000014
38040000 38790000
1CA00006 389AFFFF
38C00009 00000000

Comparison Screenshots:
Without code: https://cdn.discordapp.com/attachments/7...P01-20.png
04 only: https://cdn.discordapp.com/attachments/6...P01-21.png
06 and 04: https://cdn.discordapp.com/attachments/7...P01-21.png

04 code sets the backErase flag for nw4r_db_DrawStringToXfb_ to true, this is normally always false
06 patches some calculations for our text we want to draw on screen so that part of the framebuffer gets erased
 
Code Creator: SwareJonge
How exactly do I send text to the screen. Like is it a bmg edit i need todo ?
https://mkwii.com/showthread.php?tid=1714

It's basically futile to explain how to use the new Draw Codes by Jonge unless you are a Coder/Dev. It requires modifying the source for what you want to draw, you simply can't modify the compiled code.

What do you want drawn? Maybe somebody here can compile the code for you.
Ah. I thought it was a simple code edit. I wanted something to display the current version distro. Right now i just edited the Mario Kart Channel text to say the version. But would of been cool to have it show up when it loads saying "OptPack v1.25 has been Loaded". Something really stupid and I would want to change it every update. Ill just keep it the way it is. Thanks for the reply
I might as well try to explain. It really isn't that hard, if you are only wanting to change basic text output.

Go down to the source of the code.

Look for..

Code:
.string "DEGUG\0\0"

The contents in between the two quotations if what you want to edit. Remove the slash-zeroes btw.

Edit in w/e text you need, underneath that add in this line...

Code:
.align 2

Now go to the very top line...

Code:
.set region, ''

In between the quotation marks, put your region letter
e = ntsc-u
p = pal
j = ntsc-j
k = ntsc-k

Download and install pyiiasmh3 - https://mkwii.com/showthread.php?tid=1529

Open up pyiiasmh

Now with your modified/updated source, copy the entire thing, paste it in the large lefthand box.

Change code type to 06/16

The address/offset is 800014B0

Compile the code. Now you need to just add the 04 ram write you see for your region
(NTSC-U)
04009640 4BFF7E70

(PAL)
04009680 4BFF7E30

(NTSC-J)
040095DC 4BFF7ED4

(NTSC-K)
04009788 4BFF7D28

And that's it.