Building a Server on my PC
by none · in Torque Game Engine · 07/22/2011 (10:35 am) · 29 replies
I've decided that for my development of my game, I'd like to build a server on one of my own computers. I just want to create a very basic server that will play my map and allow me to connect to it remotely (master server not local server.) Can anyone point me in the right direction and give me some tips?
#2
07/23/2011 (9:03 am)
When I run the TGE built in one, it comes up as a local server. How do I run it as a master server? Thats the only problem I'm having right now.
#3
Change the mission to whatever mission you want as a dedicated server.
Edit to add: That code is all one line. -dedicated and -mission
07/24/2011 (7:04 am)
Create a .bat file with this:torqueDemo.exe -game starter.fps -dedicated -mission starter.fps/data/missions/stronghold.mis
Change the mission to whatever mission you want as a dedicated server.
Edit to add: That code is all one line. -dedicated and -mission
#4
07/24/2011 (8:29 am)
@Mike: I tried this but it appears as a local server?
#5
07/24/2011 (4:03 pm)
That code just runs a dedicated server, and it is useful but not really what you're looking for. You need your game to connect to a master server so that other clients can see it, and then in turn, connect to it. Or else give the ISP number to the clients so that they can connect directly to your server. There is a resource for doing that as well as making a master server.
#6
07/24/2011 (5:31 pm)
Torque itself is not a master server. It can be a dedicated server (i.e., run a simulation without rendering graphics), but you'll need to set up your own software to act as a master server. Like Willbkool said, there are resources here for that, but I don't know that any of them are plug-and-play solutions - they'll take a bit of configuring to adapt to your particular game, network hardware, etc.
#7
I saw this resource, but it doesn't turn out how it should.. It still comes up as a local server. If I do a trial of a VPS, what would I need to configure just to test it out?
07/24/2011 (6:04 pm)
https://www.garagegames.com/community/resource/view/9226/2#commentsI saw this resource, but it doesn't turn out how it should.. It still comes up as a local server. If I do a trial of a VPS, what would I need to configure just to test it out?
#9
07/25/2011 (10:32 am)
Alright thankyou! I'll check em out
#10
www.garagegames.com/community/resource/view/9226
07/25/2011 (4:44 pm)
This resource may be of some use:www.garagegames.com/community/resource/view/9226
#11
07/25/2011 (8:39 pm)
@Vis: I've been trying to use yours as it seems the most simple but only the first server appears and it only appears in the local directory
#13
07/26/2011 (8:11 am)
When I query master, nothing appears, however when I query local, the server appears in that area.
#14
07/27/2011 (12:53 am)
What do you see in the consol window for the master server ?
#15
07/27/2011 (5:51 am)
It says "sending heartbeat to master server..." and then nothing else for all four of the server batch files.
#16
have you checked firewall settings ?
have you deviated from the resource in anyway ?
07/28/2011 (8:53 am)
What OS are you using?have you checked firewall settings ?
have you deviated from the resource in anyway ?
#17
07/28/2011 (11:02 am)
Windows XP, and I have the servers unblocked by the firewall (I even turned them off and tested it.) Followed the resource exactly :/
#18
07/29/2011 (1:49 am)
ok, I'll run through the resource on a new fresh install, its been a while since I used TGE..... I'll post back soon as I am done.
#19
first up the line
"2:master.garagegames.com:28002"; to "2::28111"
used to and should read;
"2:master.garagegames.com:28002"; to "2:<insert your IP here>:28111"
for example: "2:192.168.2.4:28111" (although your IP will likley be different!)
the next problem I found was that the current TGE build (1.5.2) will produce an exe with _DEBUG appended (out of the box) this caught me out on the rerun of the resource.
Ensure your batch files refer to the correct exe - most likely you will need to change torquedemo.exe to torqueDemo_DEBUG.exe in all the batch files.
please can you confirm before I update the resource.
07/29/2011 (4:11 am)
OK Krystian, it would seem TGE updates and GG website updates have been unkind to the resource.first up the line
"2:master.garagegames.com:28002"; to "2::28111"
used to and should read;
"2:master.garagegames.com:28002"; to "2:<insert your IP here>:28111"
for example: "2:192.168.2.4:28111" (although your IP will likley be different!)
the next problem I found was that the current TGE build (1.5.2) will produce an exe with _DEBUG appended (out of the box) this caught me out on the rerun of the resource.
Ensure your batch files refer to the correct exe - most likely you will need to change torquedemo.exe to torqueDemo_DEBUG.exe in all the batch files.
please can you confirm before I update the resource.
#20
07/29/2011 (7:20 am)
Quote:Ensure your batch files refer to the correct exe - most likely you will need to change torquedemo.exe to torqueDemo_DEBUG.exe in all the batch files.Or build in release mode in VS, since you'll likely not want to run your server in debug mode, as far as I'm aware. Debug builds handle fatal errors better, but run slower overall.
Torque Owner Willbkool
Gamebox Creations