How to run Jedi Academy as a Windows Service with FireDaemon Pro.
What is Jedi Academy?
Jedi Academy is a first person action game. The dedicated server component can be run as a Windows service using FireDaemon Pro, which allows you to start the dedicated server automatically at boot prior to login, start multiple instances of the dedicated server and more. This HOWTO will show you how to set it up. You can also use FireDaemon Fusion to manage FireDaemon and other Windows services via a web browser.
Jedi Academy Dedicated Server Setup Under FireDaemon Pro
First download the dedicated Jedi Academy Windows server. It can be downloaded from here. The download is small (< 1 MB).
Unzip the contents of the file you just downloaded to your Jedi Academy installation. By default, Jedi Academy installs to C:\Program Files\LucasArts\Star Wars Jedi Academy\, so we will use this directory for the remainder of this HOWTO.
Jedi Academy uses one configuration file to store its settings. You can find it in the “base\server.cfg” directory where you installed the server, as well as a sample file at the end of this HOWTO.
Download and install FireDaemon Pro into the directory of your choice, typically C:\Program Files\FireDaemon.
Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Adjust the paths to suit your installation. Note the required parameters.
Executable: C:\Program Files\LucasArts\Star Wars Jedi Academy\Gamedata\jampDed.exe
Working Directory: C:\Program Files\LucasArts\Star Wars Jedi Academy\Gamedata
The most important field on the tab is the Parameters. The Parameters define the initial setup of your server. Here’s the full parameter list you should have:
- “+exec server.cfg” This executes your server.cfg file on server startup. If you run multiple servers from the same installation, you can specify other config files (e.g. server2.cfg)
Now click on the Settings tab. If you DON'T want to see your dedicated server running, uncheck the Interact with Desktop check box & select “Hidden” from the “Show Window” dropdown. You can optionally run Jedi Academy as the user you installed it as. In the Logon Account field type your username (e.g. Administrator) and then enter the user's password twice in the Password and Confirm fields. You can change the Process Priority to allocate more CPU time to the dedicated server or specify which CPU or core the dedicated server will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).
Now click on the Lifecycle tab. Uncheck Graceful Shutdown as Jedi Academy Dedicated Server doesn't respond to it.
Now click OK to finish setup and start your server!
Example Configuration File
Below is an example server.cfg file:
// Server Config seta sv_hostname "jedi-ded v188.8.131.52" //seta g_motd "woot" //rconpassword "a clever password" // gametypes // 0 = FFA // 3 = DUEL one on one tournament // 4 = POWER DUEL // 6 = TEAM DEATHMATCH // 7 = SIEGE // 8 = CTF set g_gametype 0 seta sv_maxclients 16 seta g_inactivity 0 sv_maxRate 10000 set g_allowvote 1 set timelimit 20 set capturelimit 20 set g_autoMapCycle 1 map mp/ffa1