GET '/RescueSquad2/RenderStats' 1.1

Published May 06, 2009
Advertisement
Sometimes you get an idea that's a little bit oddball but for some reason you can't get out of your head and just have to run with it. This has been bouncing around my head for the last couple of days and has just been translated into code:



Yes, I embedded a web server inside of Rescue Squad and as well as static content (like the images) it can serve up live render stats direct from the game engine. I'm pleasantly surprised how easy it was, it only took about an hour to grab NanoHttpd, integrate it and slightly tweak it to also serve a (semi)hardcoded stats page.

I plan to extend this somewhat to make it more useful, like having multiple (cross linked) pages of stats, a logging page containing trace messages, and possibly a resource/texture/rendertarget viewer as well. Any suggestions as to what else to (ab)use http for are welcome. :)
0 likes 2 comments

Comments

mrbastard
Nice [smile]

I considered embedding a web server and LLMozLib and doing all GUI stuff in html. I have a pathological dislike of writing GUI code...

I figured it could interact with the game logic either through get/post or possibly by hacking a custom &#106avascript API into/over llMozLib.
May 07, 2009 07:18 AM
OrangyTang
Yeah, that's an approach I've heard a few people try (or think about trying). It does seem like a good idea in that you don't have to write an entire gui library and you get to write the logic in &#106avascript.

I usually dislike writing html and &#106avascript, but if you're only targeting your own embedded browser it would probably be a whole lot easier - &#106avascript is IMHO quite a nice language, it's cross-browser issues that make most people hate it.
May 07, 2009 08:06 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement