Game Development Community

Specify servname at command line

by Nana-an-hu · in Torque Game Engine · 03/22/2005 (9:09 am) · 1 replies

It would be really usefull to be able to specify the server name of a dedicated server (and possibly the port 2) at the command line.

Presently when hosting dedicated servers you need 1 copy of your game per server/map you wish to host with individually modified script files.
This not only wastes a fair ammount of disk space, but also makes publishing updates onto my server more awkward and time consuming then required.

I would greatly appreciate it is somebody could point my in the right direction of even example code of where & what to change to enable this functionalirty

Thanx in advance
Abigail Hocking

#1
03/28/2005 (8:12 pm)
Look in your prefs file for the globals that define what the name/port is, somehting similar to $Pref::Server::Name = "Test Server"; You can type that into the console (replacing the string name) and have the change occur. But I am not certain if you can change the port number without restarting.