I'm going to be writing some scripts for quake 3, and Id like to post some of the code here, for Reference reasons, here is my first simple perl script for server map config generation:
Code:
#!/usr/bin/perl -w # Reads maps from map directory creates config to paste into server config of map rotation # Note I was to lazy to check for last file printing to config, so the last m# needs to be m1 # example set m29 "map pasctf4_final;set nextmap vstr m1" if m29 was your last line change the last m to m1
$d = "/usr/local/games/ioquake3/maps";
open FILE, ">maps.txt" or die $!;
print "Do you want to include base maps?:[y/n]"; $userinput = <STDIN>; chomp ($userinput);