Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739
Crazy Tronners Wiki - Running a Server

Running a Server

From Tronwiki
Jump to: navigation, search
 
Line 5: Line 5:
  
 
  #!/bin/sh
 
  #!/bin/sh
base_dir="/home/ed"
+
  tron="/path/to/bin/armagetronad-dedicated"
  tron="$base_dir/binary/armahacktop-021007/bin/armagetronad-dedicated"
+
  var="/path/to/var/"
  var="$base_dir/var/rubber/"
+
 
  log="${var}console_log.txt"
 
  log="${var}console_log.txt"
  userconfigdir="$base_dir/config/rubber"
+
  userconfigdir="/path/to/config/"
autoresourcedir="$base_dir/resource"
+
  parser="/path/to/parser.php"
  parser="$base_dir/scripts/rubber/rubber_parser.php"
+
 
  edlog="${var}edlog.txt"
 
  edlog="${var}edlog.txt"
 
   
 
   
  tail -n0 -f -s 0.01 $edlog | $parser | $tron --userconfigdir $userconfigdir --vardir $var --autoresourcedir $autoresourcedir | tee -a $log
+
  tail -n0 -f -s 0.01 $edlog | $parser | $tron --userconfigdir $userconfigdir --vardir $var | tee -a $log
  
ALternativey, for debugging, you might want to write the cmds to a seperate text file for reading. This allows you to modify the parser as the server is running and restart it.
+
Alternativey, for debugging, you might want to write the cmds to a seperate text file for reading. This allows you to modify the parser as the server is running and restart it.
  
  tail -f -n0 -s0.1 ../../var/dzfort/edlog.txt | parser.php | tee -a /home/ed/var/dzfort/cmds.txt
+
  tail -f -n0 -s0.1 /path/to/edlog.txt | /path/to/parser.php | tee -a /path/to/cmds.txt
  
 
Then run the server with:
 
Then run the server with:
  
  tail -n0 -f -s 0.01 $cmds | $tron --userconfigdir $userconfigdir --vardir $var --autoresourcedir $autoresourcedir | tee -a $log
+
#!/bin/sh
 +
tron="/path/to/bin/armagetronad-dedicated"
 +
var="/path/to/var/"
 +
log="${var}console_log.txt"
 +
userconfigdir="/path/to/config/"
 +
parser="/path/to/parser.php"
 +
edlog="${var}edlog.txt"
 +
cmds="${var}cmds.txt"
 +
 
 +
  tail -n0 -f -s 0.01 $cmds | $tron --userconfigdir $userconfigdir --vardir $var | tee -a $log

Revision as of 11:28, 3 October 2007

Personal tools