WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: XeR on July 30, 2011, 10:33:13 PM

Title: Print text on screen
Post by: XeR on July 30, 2011, 10:33:13 PM
Hi there,
For about 6 months I'm trying to find a way to print text on the screen, unfortunately, I wasn't able to.
I know there is code like this for Monster Hunter, but I don't own this game, and I don't want to pirate it for ethicals reasons.
Any hints?
Thanks in advance :)
Title: Re: Print text on screen
Post by: Deathwolf on July 30, 2011, 10:34:56 PM
You mean a code like showing health as text etc right?
Title: Re: Print text on screen
Post by: Bully@Wiiplaza on July 30, 2011, 10:55:42 PM
uhm, I know how to do it on call of duty games (except for black ops)
non-host/host ;D
Otherwise I don´t know.
Title: Re: Print text on screen
Post by: dcx2 on July 30, 2011, 11:42:52 PM
The MH3 MID code hijacks printf.  Most of the code is a gigantic printf string.

You could try finding printf for your game.  Look for some strings with %d in them.

For instance, in RT4EAF, there are several places where information is printf'd.  I don't make any custom strings, but I do hijack values as they're being passed to printf, so I can display something else temporarily.
Title: Re: Print text on screen
Post by: XeR on July 31, 2011, 09:58:40 AM
Quote from: dcx2 on July 30, 2011, 11:42:52 PM
The MH3 MID code hijacks printf.  Most of the code is a gigantic printf string.

You could try finding printf for your game.  Look for some strings with %d in them.

For instance, in RT4EAF, there are several places where information is printf'd.  I don't make any custom strings, but I do hijack values as they're being passed to printf, so I can display something else temporarily.
Hoo, I see. I always thought that if I call printf();, it would hide the GUI and print it, just like when an exception occurs.
I'll try it ASAP  ;D
Title: Re: Print text on screen
Post by: Bully@Wiiplaza on August 02, 2011, 10:36:19 PM
let me know if you were successful please :P
[spoiler]C´est quelque chose trés utile presque toujours ;D[/spoiler]
It´s easier to understand, if you take a close look at this mh3 code, I guess :)
That´s what I mostly do. Looking at awesome codes is the key.