FUBAR|Ascain
01-25-2004, 07:32 PM
I can't remember who asked me earlier on how to run Tribes as a service under NT, so I'm going to post the response here in hopes the right guy swings by... :weird:
You're going to need the files INSTSRV.exe and SRVANY.exe from your resource kit cd, then follow the instructions below.
*** WARNING: if you screw up your registry you can seriously screw up your windows, you've been warned ***
1. First you need to copy the files to your system somewhere, (c:\tools or somesuch...) then install the SrvAny service:
INSTSRV Tribes_server c:\tools\srvany.exe
2. In your services applett configure how you want the service to start (automatic, manual, etc) and be sure to set it to allow interaction with desktop.
3. Now you need to add the parameters to srvany to make it actually run your tribes service... Fire up Regedit(32) and follow along:
* under HKEY_LOCAL_MACHINE\SYSTEM \CurrentControlSet\Servic es\Tribes_server create a 'Parameters' key
* Inside the Parameters key, create a new string value Application... enter the full path to your infinitespawn.exe (ie 'e:\tribes\infinitespawn. exe')for the new string value
* Inside the Parameters key, create a new string value AppParameters... enter the command line parameters you use for infinitespawn (ie -mod modname +exec ServerConfig.cs +exec modname.cs -dedicated) for the new string value
* Inside the Parameters key, create a new string value AppDirectory... enter the path to your tribes directory (e:\tribes) for the new string value
the structure should be like this:
Parameters
|- Application
|- AppParameters
|- AppDirectory
Close regedit and you're done.
Now you can start/stop the service from your services applet, and if you've enabled it the server will start when the system boots without having to log in.
Hope that made some sense and it helps you out.
Grab SRVANY and INSTSRV here (http://www.kittynet.com/download/srvcutil.zip)
You're going to need the files INSTSRV.exe and SRVANY.exe from your resource kit cd, then follow the instructions below.
*** WARNING: if you screw up your registry you can seriously screw up your windows, you've been warned ***
1. First you need to copy the files to your system somewhere, (c:\tools or somesuch...) then install the SrvAny service:
INSTSRV Tribes_server c:\tools\srvany.exe
2. In your services applett configure how you want the service to start (automatic, manual, etc) and be sure to set it to allow interaction with desktop.
3. Now you need to add the parameters to srvany to make it actually run your tribes service... Fire up Regedit(32) and follow along:
* under HKEY_LOCAL_MACHINE\SYSTEM \CurrentControlSet\Servic es\Tribes_server create a 'Parameters' key
* Inside the Parameters key, create a new string value Application... enter the full path to your infinitespawn.exe (ie 'e:\tribes\infinitespawn. exe')for the new string value
* Inside the Parameters key, create a new string value AppParameters... enter the command line parameters you use for infinitespawn (ie -mod modname +exec ServerConfig.cs +exec modname.cs -dedicated) for the new string value
* Inside the Parameters key, create a new string value AppDirectory... enter the path to your tribes directory (e:\tribes) for the new string value
the structure should be like this:
Parameters
|- Application
|- AppParameters
|- AppDirectory
Close regedit and you're done.
Now you can start/stop the service from your services applet, and if you've enabled it the server will start when the system boots without having to log in.
Hope that made some sense and it helps you out.
Grab SRVANY and INSTSRV here (http://www.kittynet.com/download/srvcutil.zip)