Title: Totally random Skirmish server! Post by: TyTiger on February 10, 2014, 08:54:47 AM Hi all
I've been tinkering away quietly and have successfully managed to set up a dedicated server with a properly random set of game types (within reason..) In essence, and due to limitations of the dedicated server, i've got a set of 10 clean config files (literally numbered 1 to 10), 2 additional "current" configs, a master config, and a bash script that does all the magic. The bash script uses random number generation, to pick a random number between 1 and 10, and uses this number to copy the contents of one of the 10 pre-configured game type files, in to the current#.cfg game files, which the OADED server is executing in a contentious cycle using the vstr rotation mechanism built in to the server. i've attached a few examples, if anyone's interested in trying this out for themselves, also i welcome any suggestions. 8) [server.cfg] Code: //sudo -H -u ron bash -c "screen -S OpenArena -d -m /home/ron/Openarena-pc/oa_ded.i386 +set fs_game baseoa +set dedicated 1 +set net_port 27960 +exec Subdir of baseoa called games [1-10.cfg] Code: //Game 1 1FCTF [current1/2.cfg] Code: filled in by the script [games.cfg] Code: set d1 "exec /games/current1.cfg" [gamerotate.sh] Code: #!/bin/bash Ps. if you want to connect to this server, its at 82.44.160.86 port 27960 |