I noticed on some debug screenshots of some bots (especially JoeBot XP) that some of you were sending debug text to the HUD instead of the server console or the chat area.
Currently when I want to see debug messages in game about my bots I send them all to the chat area but when I want to send a lot of text all the stuff starts scrolling up and I can't see anything
What I saw on a JoeBot debug screenshot for example was quite amazing, there was a lot of text (with different colors), left/top aligned, some of it right aligned in the bottom of the screen, some of it centered, and every debug message had its location and was not overlapping another.
I am utterly jealous! How do you guys do that ?
I know how to send hudtextparms_t text to the HUD, but it's text that fades in and fades out, and I need to send it continuously if I want it to stay on the screen (and if I do that, it looks unclean). And although I can imagine how to split the screen coordinates into lines and coulumns I'm clueless on how to make it right-aligned or things like that.
Any hint ?
RACC home - Bots-United: beer, babies & bots (especially the latter) "Learn to think by yourself, else others will do it for you."
The csstats module to Amx mod displays three boxes of different colored text in different locations on the screen when you die. It looks nice and is very readable.
The csstats mm plugin source is small. I don't think it would take you long to find the code that does this!
@Joe: a new network message ? I didn't know that. Clever !
Anyway I knew the basics about the hudtextparms stuff, but I'd want to know, is all that hudtextparms text on your picture a text that appears continuously during the game (being updated if necessary) or just a fixed text that is sent on request, fades in, stays a few second and fades out like a dumb welcome message?
*EDIT*
I checked your plugin, Austin, and the AMX plugins are written in Small, and they call functions in the AMX API that are completely different from the HL engine functions or the metamod API. The source code is of no use for me
Joe, my dear Joe, my old friend Joe, may I dare to request to have a vvveryqik' look at the "normally closed" joebot XP source code that you use for displaying your stuff ? 9_9
RACC home - Bots-United: beer, babies & bots (especially the latter) "Learn to think by yourself, else others will do it for you."
Last edited by Pierre-Marie Baty; 23-01-2004 at 04:40..
( somehow it wont let me post tabs here ... and no spaces neither ... )
that is pretty similar to the code in old joebot, it looks like I just copied it ... cause it's not yet incorporated in my game class ...
and the client message idea was once again not mine, but killarunas ....
Last edited by Pierre-Marie Baty; 23-01-2004 at 18:56..
Reason: Formatted Joe's code to split the 3 million characters lines in something more readable...