sugrhigh

I'm wanting to add a console like in the quake series, a simple dropdown... but no text/command entering yet! Just simple "debug" output so i can have detailed information on the game while it runs... how would you guys suggested handling the messages a simple buffer or array Anyone have a link to some code that does something similar to this (not specifically xna, just anything c or c++ i could translate over) Any help is appreciated!



Re: XNA Game Studio Express Console a la Quakes?

Jim Perry

Not sure if he's implemented it yet but you can check here.




Re: XNA Game Studio Express Console a la Quakes?

sugrhigh

Jim Perry wrote:
Not sure if he's implemented it yet but you can check here.


yes, i saw that a while back while looking for help with another component (forgot about it though) but the only problem with that is that it's so embedded into his own "engine" it would be hard to code over... i may try though, it's a great implementation





Re: XNA Game Studio Express Console a la Quakes?

Gunston

If you're looking for something simple and don't need the console on the 360 so that the user can interact with it (e.g. by entering commands), you might want to consider the System.Diagnostics namespace.

The Compact Framework implementation on the 360 includes a cut-down version of System.Diagnostics but you can certainly write to the GSE Debug Output Window as a console.

Consider:

using System.Diagnostics;

void SomeFunction()

{

Trace.WriteLine("SomeFunction called");

}

This just works out of the box and works on both Windows and 360.

If you go to http://www.microsoft.com/uk/msdn/events/nuggets.aspx, Mike Taulty has a short video called "Preparation - Building Debug and Tracing into Your Code" that explains more (but again the 360 CF offers fewer features).

Hope this helps.






Re: XNA Game Studio Express Console a la Quakes?

sugrhigh

ah! THANKS! I had been looking for this a while back too but gave up on it like 5 minutes later because it was the last day of break and I was rushing, trying to code as many "features" as possible and this one took a back seat.





Re: XNA Game Studio Express Console a la Quakes?

sugrhigh

but... id like it to be in a new window... how do i do that





Re: XNA Game Studio Express Console a la Quakes?

Gunston

Sugrhigh

Download debugview from http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx. This will give you a separate window, filtering etc. Doesn't appear to work for code running on the 360, though.

Cheers.






Re: XNA Game Studio Express Console a la Quakes?

sugrhigh

i saw that too. just was hoping there would be a way to do it "internally" but thats fine i guess.





Re: XNA Game Studio Express Console a la Quakes?

Gunston

Not sure there's a way to get what you want through the IDE. I would highly recommend debugview - fast, simple UI, just works.

Good luck.






Re: XNA Game Studio Express Console a la Quakes?

sugrhigh

Gunston wrote:

Not sure there's a way to get what you want through the IDE. I would highly recommend debugview - fast, simple UI, just works.

Good luck.



thanks. i got it to work with debugview, and wrote a method to load the program on startup so... its all good.