Game Development Community

Multiplayer on a single PC

by Matt Zuhlke · in Torque Game Engine · 07/03/2003 (4:13 pm) · 6 replies

Is this possible? What I've tried doing is:

Start the Torque demo app and click "Start Mission". Select the Water World mission, check "Multiplayer Mission" and launch the mission. Then I try to run a second instance of the demo app, but the second instance crashes immediately. The main menu is not displayed, I just get the Windows "Torquedemo.exe has encountered a problem" error message.

I'm running Torque Release 1_1_2 on WinXP.

Thanks,
Matt

#1
07/03/2003 (4:22 pm)
I don't think its possible like that...
you might be able to start a dedicated server and then connect through the game to that.

I finally got Torque working on my crusty old Laptop to do network testing :)
#2
07/03/2003 (4:32 pm)
The reason Torque cannot run more than one process of it's self is the way it handles OpenGL and the video card. Why the second process of Torque fails is because of a sharing voilation from what I can tell. So multiplayer on one machine cannot happen with multiple processes of Torque. You should be able to maybe hack in split screen like console games do.
#3
07/03/2003 (4:46 pm)
Matt,

The Torque engine cannot run more than one instance on the same machine, as Nathan said, due to the graphics limitations. You can run a dedicated server using the -dedicated -mission filename option then run a full client to connect, but I'm not sure what that is going to provide you with.

You can get another machine if you have two connected via LAN or maybe a friend to connect to your game.

The only other option to get it to run on the same machine is to run a virtual machine using something like VMWare or Virtual PC. Then you could technically have one game client running in each VM, but that's pretty out there as far as testing something goes.
#4
07/03/2003 (5:01 pm)
Thanks to everyone for the replies. Looks like I just found an excuse to build another PC :)
#5
07/03/2003 (6:11 pm)
Actually you CAN have multiple instances of Torque running on one machine, I do it all the time. Your problem most likely lies within your video card drivers and XP I have found that several updates have made my system unstable. One time I could play a game, test with 2 instances, but when I closed the 2nd( or last) instance via a gui button. It would cause my system to reboot. So I learned to close the dos window and save myself this problem. I recently had to format and go back to basic XP with just my factory video card drivers and Torque has never been more stable.
I'm running with a G Force 3 if you are wondering
#6
07/03/2003 (7:20 pm)
I had the same results as Anthony. I used to be able to run two instances when I ran under Win98 SE. Same machine (athlon, gf3) under XP is unable to do it.