Game Development Community

TGE Server Admin Software

by Peter Simard · 02/20/2008 (5:59 pm) · 5 comments

Hello again. Here are the results of the past few days work on a server admin in C#. Previously we were launching servers via batch file after remote desktoping in. As things got more complex, this approaches limitations became obvious. Using this software, a single webpage can be loaded to quickly view server status, as well as update and restart the servers.

I must admit I am impressed with C#. In utility applications like this, where speed isn't a factor, the ease of development is a huge benefit. I was able to implement complex systems like XML and sockets in only a few hours. Perhapse it's time to look into XNA.

Features:
-XML based server list
-Automatically detects logical CPUs and starts each zone on it's own CPU
-Socket support to interface with PHP or other software
-SVN integration
-Auto crash recovery
-Redirects console output from each TGE process
-Option to auto start all servers on load

Graphical UI:
www.crownsofpower.com/images/serverAdminSS.jpg
PHP interface:
www.crownsofpower.com/images/serverAdminWebUi.jpg
I plan on releasing this as soon as it is in a more polished state. The biggest issue right now is TGE doesn't seem to want to respond to stdin commands. Without this functioning, you can't send commands to your processes.

Once I get stdin working, I will be adding support for realm wide messages (such as a server reboot notification). If anyone has C# experience or TGE stdin experience, please check out this post.

#1
02/20/2008 (6:50 pm)
Very cool Peter! Great work.

I keep hearing the same about C#, and although Ive never used it, so far what I read, indicates its really a great tool. You should also check out "D".

However, the jump to XNA implies something more than just a language aspect, and I dont think good programmers like you should be jumping in there ;)
#2
02/20/2008 (9:09 pm)
Wow, that's awesome! Are you planning on releasing it for free or for purchase? Do you think it would work with TGEA also? (probably because the rendering doesnt matter?)
#3
02/21/2008 (8:47 am)
I will be releasing it open source when it's ready. It will work on any software not just Torque. It is currently configured to launch a TGE process with parameters from the XML file, but with a minor amount of work, you can have it launching anything.
#4
02/21/2008 (9:05 am)
This is very nice! I would love to try it out once you have it available.
#5
01/01/2009 (6:48 pm)
very nice,
@ Automatically detects logical CPUs and starts each zone on it's own CPU
how do you that?