WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: Deathwolf on November 24, 2012, 10:54:45 PM

Title: Hex values showig as ASCII data without changing into ASCII?
Post by: Deathwolf on November 24, 2012, 10:54:45 PM
Hi there!

At the moment I'm trying to do some "Screen printing" coding. My idea was to code some ingame information at the screen (like X,Y,Z coordinates). To show them on the screen, I'm just modifing an ASCII text and that's the main problem. X,Y,Z coordinates are Hex values... Is it possible to print the Hex values on the screen?
Title: Re: Hex values showig as ASCII data without changing into ASCII?
Post by: dcx2 on November 24, 2012, 11:01:21 PM
How are you printing on the screen?  Are you using some sort of printf type thing like Monster Hunter or Tales of Symphonia?
Title: Re: Hex values showig as ASCII data without changing into ASCII?
Post by: Deathwolf on November 24, 2012, 11:07:03 PM
Actually just editing an ASCII text if there are any of them on the screen. Printf type? Sounds a lot more useful than the ASCII thing.
Title: Re: Hex values showig as ASCII data without changing into ASCII?
Post by: dcx2 on November 25, 2012, 01:05:42 AM
Well, if you're editing an ASCII string in memory and it's being printed on the screen, it's probably being printf'd somewhere.

Monster Hunter Tri had a code called the MID, which I believe took an existing printf function and hijacked it for printing data to the screen.  For Tales of Symphonia, I merely found an existing string that had the printf format modifier that I wanted (e.g. "You need to be level %d!" if I wanted to print an integer in decimal), and then I would replace the printf's argument with the value I wanted to display.