30 Dec 14, 10:03PM
(This post was last modified: 30 Dec 14, 10:17PM by RandumKiwi.)
Hi guys,
I'm interested to see what the public prefers in a CTF server. Whichever is the winner will mean I change or keep the setup of Fester (gibbed.me 3344) accordingly.
What's the status quo?:
The Fester (gibbed.me 3344) server randomises a maprot of maps by using running the below script hourly. This script means that CTF/TKTF/HTF are all played. Voting is allowed, but only for CTF/TKTF/KTF/HTF modes.
What's the "handicap" option?
Under the handicap option, I would skew the script to put more CTF in the maprot, by making every second map CTF mode, while every other map would be randomised to be one of CTF/TKTF/HTF.
The Script:
Sample output of the script:
I'm interested to see what the public prefers in a CTF server. Whichever is the winner will mean I change or keep the setup of Fester (gibbed.me 3344) accordingly.
What's the status quo?:
The Fester (gibbed.me 3344) server randomises a maprot of maps by using running the below script hourly. This script means that CTF/TKTF/HTF are all played. Voting is allowed, but only for CTF/TKTF/KTF/HTF modes.
What's the "handicap" option?
Under the handicap option, I would skew the script to put more CTF in the maprot, by making every second map CTF mode, while every other map would be randomised to be one of CTF/TKTF/HTF.
The Script:
[SELECT ALL] Code:
# Find the files, randomise them, store in cache:
find /path-to-ctfmapfiles/*.cgz -type f -printf "%f\n" | sort -uR > /pathtomap/cache.txt
# Delete the old maprot file
echo "" > /path/to/maprot_fester.cfg
# Add a random mode/time to each map:
while read line; do
# Modes 5, 13 and 14 only (CTF/HTF/TKTF):
RANDOMMODE=`echo "5\n13\n14" | sort -uR | head -n1`
# Random time of between 7 and 13 minutes:
RANDOMTIME=`shuf -i 7-13 | head -n1`
echo $line | sed s/.cgz/:"$RANDOMMODE":"$RANDOMTIME":1/g >> /path/to/maprot_fester.cfg
done < /pathtomap/cache.txt
Sample output of the script:
[SELECT ALL] Code:
ac_inca2:13:9:1
ac_dune:13:9:1
ac_fabrik:13:11:1
ac_fortress:14:9:1
apollo_facility:13:8:1
ac_cilla:14:7:1
x7_container:13:7:1
mpx_sabatella_v2:5:11:1
ac_duel:5:13:1
mpx_pier:13:13:1
ac_mrak:13:7:1
beta_street:14:10:1
ac_abandoned:14:13:1
apollo_arabicnight:14:8:1
ac_dungeon:13:7:1
ac_rigid:13:8:1
ac_alcatraz:14:12:1
ac_ore:14:8:1
ac_parched:5:9:1
u_arena:14:10:1
ac_rialto:13:7:1
ac_yard1.1:5:7:1
mpx_desierto_v2:14:12:1
ac_subway:14:9:1
ac_parque:5:12:1
ac_old:5:10:1
ac_blarg:5:9:1
ac_favela:13:11:1
ac_frost:5:12:1
ac_dry1.1:13:12:1
ac_rilos:14:11:1
ac_midnight:14:13:1
ac_venganza1.1:5:11:1
ac_arn:13:11:1
ac_bank:5:7:1
ac_district:5:9:1
ac_calles:13:10:1
paulets_conex:14:11:1
ac_bismarck:14:8:1
ac_strike:5:12:1
ac_hatch:5:9:1
ac_overfreeze:14:10:1
ac_agora:13:13:1
champion:5:9:1
ac_safari:13:13:1
ac_facilities:5:9:1
ac_2fast2furious:13:8:1
ac_dusk_2013:5:7:1
ac_discovery:13:7:1
ac_offshore:13:13:1
ac_shadys_world:14:12:1
ac_surface_mine:5:12:1
ri_waterygrave:14:7:1
ac_shortway:14:10:1
mpx_grid:5:9:1
ac_occupied:14:7:1
ac_unfrozen:5:11:1
ac_castle-ruins:14:7:1
ac_templo:14:13:1
AutoZone:14:9:1
ac_komplex:13:11:1
apollo_abbey:14:7:1
ac_palenque:5:12:1
ac_pompeii:5:7:1
ac_africa:13:8:1
ac_casa:13:13:1
ac_library:13:13:1
rr_compound:14:7:1
ac_cyrville:14:10:1
symetrix:14:11:1
ac_cine:13:7:1
ac_polar:13:13:1
ac_monastery:13:9:1
ac_casa2:14:13:1
ac_winteryfactory3-2:13:11:1
ac_riverside_2012:14:11:1
ac_greenpeace:5:8:1
gravelpit:5:12:1
ac_ruinas1.1:13:8:1
ac_culvert:13:12:1
ac_samonara:13:7:1
ac_jilt:14:8:1
x7_auriga:5:9:1
ac_oasis:13:10:1
ac_alb:13:9:1
ac_hawk_2012:13:11:1
ac_hillside:14:8:1
ac_disrupt:14:13:1
ac_village:5:9:1
obl_snow:5:13:1
ac_wadi:13:9:1
ac_cavern_iod:14:7:1
ac_aim:5:10:1
ac_railway:13:11:1
ac_averno:13:11:1
ac_valencia:13:9:1
kc_mud:14:8:1
ac_cavern1.2:5:7:1
ac_frontline:5:7:1
ac_iran:14:8:1
ac_cloud1.1:13:13:1
ac_hacienda:14:12:1
ac_asylum:5:9:1
ac_spaceport:5:11:1
ac_egypt1-2:14:8:1
ac_casablanca:14:10:1
ac_rock:14:8:1
ac_empyreal:14:10:1
ac_tripoli:5:7:1
ac_nuuk:5:9:1
ac_subway2:5:7:1
ac_europa:14:8:1
ac_fold:13:13:1
ac_alcove:13:10:1
ac_streetfighter:5:10:1
factory:5:8:1
ac_snowfall:14:10:1
ac_inca:14:7:1
mpx_sabatella:13:7:1
ac_savana:14:8:1
ac_brick:14:10:1
ac_ancient_mines1-2:13:9:1
ac_aquatic:5:8:1
ac_mist:5:9:1
ac_akhdar:5:12:1
apollo_desertcity:13:11:1
ac_sleet:13:11:1
ac_victorian1.1:13:11:1