Old method was pretty messy, little bit of a tweak here and its much nicer.
Clearly you just setup your server ip, port and path to your ini file (if you run this script from your kf/system folder you can just put the file name like below.
You have a couple of options with regard to actually running this. Either schedule it to run every 15 seconds or so. (the dirty method) Or you can tail your log file and look for the text that means a new map has been loaded / restarted and then run the script (much nicer, but not as easy to setup)
If someone really wants to know how to tail their log and send this update only upon map restart let me know and when i have some free time i'll sort it out.
Either copy and past the code below or just grab the file from http://212.125.94.172/6plusslots
If your server is Windows then you can burn in hell.... Or just install something like cygwin or similar and run the bash script that way - works fine.
Clearly you just setup your server ip, port and path to your ini file (if you run this script from your kf/system folder you can just put the file name like below.
You have a couple of options with regard to actually running this. Either schedule it to run every 15 seconds or so. (the dirty method) Or you can tail your log file and look for the text that means a new map has been loaded / restarted and then run the script (much nicer, but not as easy to setup)
If someone really wants to know how to tail their log and send this update only upon map restart let me know and when i have some free time i'll sort it out.
Either copy and past the code below or just grab the file from http://212.125.94.172/6plusslots
Code:
#!/bin/bash
#Written by DSAS for the good of all ([URL]http://steamcommunity.com/groups/DerekSmalls/[/URL])
#Setup server ip, port and .ini path
INI='KillingFloor.ini'
SERVER='YOURSERVERIP'
PORT='YOURPORT'
#Find username / pass and pump into variables
USERNAME=`egrep '^AdminName' $INI | tr -d '\r' | sed 's/^AdminName=//'`
PASSWORD=`egrep '^AdminPassword' $INI | tr -d '\r' | sed 's/^AdminPassword=//'`
#Send your update
wget "http://$USERNAME:$PASSWORD@$SERVER:$PORT/ServerAdmin/current_console?SendText=set Engine.GameInfo MaxPlayers 20"
Last edited:
Upvote
0