Game Development Community

TGE server multiple instances

by Robert Arrowsmith · in Torque Game Engine · 07/20/2006 (6:26 am) · 6 replies

I've been trying to figure out a way to get TGE in server mode to run multiple missions at the same time.

Normally when starting the engine in server mode (using '-dedicated' switch) the mission name must also be included (with the '-mission' name).

Will I have to run seperate server instantiations on different machines?

#1
07/20/2006 (10:48 am)
I'm currently poking around with this, and what I can say is that you most definitely can't run multiple instances without changes to the TorqueScript. What I haven't ascertained for certain yet is whether or not it requires significant changes to the C++ code-base, but my research thus far has me believing this is not the case.

But it's not going to just be a switch.
#2
07/20/2006 (10:49 am)
You'll have to edit 2 lines in game/main.cpp, the rest is script.
#3
07/22/2006 (5:58 pm)
Well I'm hesitant to start cutting and slashing and compiling C++.
I'd much sooner leave the TGE executable alone and concentrate on just the scripting.

I've decided to make one big map split into a 5x5 grid to allow 25 different battles at the same time.
Far better than running 25 servers. Just not sure on how loaded the hardware is going to get with 400 people all playing at the same time.
#4
07/22/2006 (9:31 pm)
Stefan - Sweet, good to know! I'll have to dig a little deeper for resources on that than I have already, which is obviously not deep enough.
#5
07/28/2006 (7:16 am)
Perhaps your quickest path to solution is to purchase a $30 version of Minion of Mirth??
you will get code and player run server code to host mutli zones

looking at that model should answer almost all of your questions
about Torque and hosting multiple zones

his solution is very efficient

maybe should edit for better description
most of what you can "see" is in the .cs files or .py "python"

http://www.prairiegames.com/phpBB2/viewtopic.php?t=949
We've release the dedicated world server + full RPG World Server Source Code + full RPG Database Source Code & Compiler!!!

theres the best place to start
1) Minions of Mirth is a good example of how an Indie can release on an Indie budget
and provide a game worth more than its purchase price
2)looking at other peoples work can only help you learn

Imagine you are from a time when cars didnt exist
you see people behind the wheel of cars driving down the road

however your best chance of experimenting with driving
comes from actually seeing someone insert a key into the column
and turn it

again another example
a customer buys a chain saw and takes it home
after 2 hours he finally saws thru his first log
angry he returns to the store
the clerk listens to the customer and then decides
to try the saw to see if its defective
after pulling the cord and beginning to test cut
the customer asks "whats that sound?"
#6
07/28/2006 (7:53 am)
Huh? This thread was about multiple server instances, not full blown MORPG packages.
To accomplish what the thread creator requested, it's a matter of changing 2 or 3 lines in main.cpp or game.cpp. No need to buy anything to get that.