Bullgorge

thelinxthelinx Join Date: 2011-08-01 Member: 113495Members
<div class="IPBDescription">A dedicated server respawner and autoupdater</div>I've written a Python 3.x script to manage a dedicated server. Its features include:
<ul><li>Automatically respawn the server if it crashes</li><li>Periodically check for NS2 updates and automatically kill the server if a new version is acquired</li><li>Record server logs</li></ul> <a href="https://github.com/TheLinx/bullgorge" target="_blank">https://github.com/TheLinx/bullgorge</a>
And now I'll just copy-paste the README file:

<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Dependencies<!--sizec--></span><!--/sizec-->
<ul><li><i>Python 3.x</i> - Bullgorge was written in Python 3.2.2. It should be forward-compatible for a while.</li><li><i>tkinter</i> - Bullgorge comes with a GUI for easy usage. Unfortunately, at the moment, there is no way to use Bullgorge without having the <i>tkinter</i> module for Python installed.</li><li><i>Wine</i> (optional) - The NS2 dedicated server only runs on Windows at the moment. Bullgorge compensates for this by automatically running server.exe with Wine if it detects you're not on Windows.</li></ul> <!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Installation<!--sizec--></span><!--/sizec-->
Download <a href="https://github.com/TheLinx/bullgorge/raw/master/bullgorge.py" target="_blank">bullgorge.py</a> and put it somewhere on your server.

<!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Usage<!--sizec--></span><!--/sizec-->
Bullgorge can run in both GUI and command-line mode.

<b>Using the GUI</b>
Open <i>bullgorge.py</i>. You should see this window:

<img src="http://i.imgur.com/Gu5uB.png" border="0" class="linked-image" />

The first two paths are very important. Bullgorge requires you to run the dedicated server available from HLDSUpdateTool. The first path is the directory where HLDSUpdateTool is located.
The second path is the location of NS2's <i>server.exe</i> file. This is also where server log files will end up.
You can specify server info manually, or you can tell the server.exe to load the values from a standard server.xml file.
You can switch between those choices by clicking the button that says <b>Values</b> in the image.
When you press <b>Start Server</b> a console-like window will open up, showing you Bullgorge status information. If you close this window, the NS2 server will also terminate.

<b>Using the command-line</b>
Invoke <i>bullgorge.py</i> by running <!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->python bullgorge.py<!--fontc--></span><!--/fontc-->, where <!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->python<!--fontc--></span><!--/fontc--> is the Python 3.x executable.
To get a list of available command-line options, run <!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->python bullgorge.py -h<!--fontc--></span><!--/fontc-->.
The main options Bullgorge is interested in are <i>--hlds</i> and <i>--server</i>.
<ul><li><i>--hlds</i> is the absolute path of hldsupdatetool.</li><li><i>--server</i> is the absolute path of NS2's server.exe. It is also where server log files will end up.</li></ul> The rest of the options are passed to the dedicated server as information to the server. Note that specifying a <i>--file</i> argument will override any other choices.

If you have any problems with the application, either post in this thread, or submit a bug report in the <a href="https://github.com/TheLinx/bullgorge/issues" target="_blank">issue tracker</a>.

Comments

Sign In or Register to comment.