Hex values showig as ASCII data without changing into ASCII?

Started by Deathwolf, November 24, 2012, 10:54:45 PM

Previous topic - Next topic

Deathwolf

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?
lolz

dcx2

How are you printing on the screen?  Are you using some sort of printf type thing like Monster Hunter or Tales of Symphonia?

Deathwolf

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.
lolz

dcx2

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.