<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.armagetronad.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=The+Mu</id>
	<title>Armagetron Advanced - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.armagetronad.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=The+Mu"/>
	<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Special:Contributions/The_Mu"/>
	<updated>2026-10-16T01:17:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16649</id>
		<title>Making Maps Switch Randomly (alternate)</title>
		<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16649"/>
		<updated>2006-12-10T21:48:15Z</updated>

		<summary type="html">&lt;p&gt;The Mu: /* Tutorial */ oy.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a different way to go about [[Making Maps Switch Randomly]], which requires no knowledge of Armagetron map-making. It cycles through a number of random maps every minute, and can even change settings accordingly or announce the map&#039;s name and creator.&lt;br /&gt;
&lt;br /&gt;
This tutorial worked on an i686 Dell Dimension L933r running Fedora Core 5. Let me know if you have successes on different hardware/distros.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
*A Linux system with Armagetron Advanced Server installed (possibly works on Mac OS X from a Terminal)&lt;br /&gt;
*The &amp;lt;code&amp;gt;[http://en.wikipedia.org/wiki/Cron cron]&amp;lt;/code&amp;gt; utility&lt;br /&gt;
*[http://www.php.net PHP] (possibly requires [http://httpd.apache.org/ HTTPD])&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*Make sure you are root.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ su&lt;br /&gt;
Password: _&lt;br /&gt;
#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make sure &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; is started.&lt;br /&gt;
&amp;lt;pre&amp;gt;# /etc/init.d/crond start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make a directory for &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; to check every minute.&lt;br /&gt;
&amp;lt;pre&amp;gt;# mkdir /etc/cron.minutely&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Let &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; know to check for that directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# echo &amp;quot;*  * * * root run-parts /etc/cron.minutely&amp;quot; &amp;gt;&amp;gt; /etc/crontab&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Now comes the fun part. (If you are more comfortable with another editor or have not used Vi before, go ahead and use it.)&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the sample PHP file that I use for my server.&lt;br /&gt;
&amp;lt;pre&amp;gt;!/usr/bin/php&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &amp;quot;INCLUDE settings_custom.cfg\n&amp;quot;;&lt;br /&gt;
$rand = rand(1,5);&lt;br /&gt;
if ( $rand == &amp;quot;1&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Blind/Beta/clanfun-1.1.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Clan Fun by Blind&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;2&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Your_mom/cockpit/classic_m-0.0.3.aacockpit.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Cockpit by Your mom&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;3&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE manta/misc/nano_slingers-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Slingers by Manta&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;4&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE HIM/race/race_map-0.1.0.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Race Map by HIM&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Durka/nano/nano_sumo-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Sumo by Durka&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This PHP file generates a random number and chooses a map accordingly. (The &amp;quot;\n&amp;quot;s at the end are PHP &#039;&#039;newlines&#039;&#039;; they are essential. If you modify this sample, remember to keep them!) If you want more maps, change the line&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,5);&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,x);&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;&#039;x&#039;&#039; is the number of maps you want. Then add another block of these:&lt;br /&gt;
&amp;lt;pre&amp;gt;} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE /path/to/map/file/in/repository\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Map Name by Creator&amp;quot;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
for each extra map you have.&lt;br /&gt;
&lt;br /&gt;
*Make the PHP file executable.&lt;br /&gt;
&amp;lt;pre&amp;gt;# chmod a+x rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The PHP file will output the map configuration onto the screen, but we need something to put it into a file. That is a shell script. Open another file for writing.&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the shell script. You should not need to modify this, except to specify your user config directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
/etc/cron.minutely/rand.php &amp;gt; /your/userconfig/directory/everytime.cfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Copy both files to the &amp;lt;code&amp;gt;/etc/cron.minutely&amp;lt;/code&amp;gt; directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# cp rand.php /etc/cron.minutely/rand.php&lt;br /&gt;
# cp rand.sh /etc/cron.minutely/rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Give &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; a good 3 minutes to recognize the new file.&lt;br /&gt;
&lt;br /&gt;
*Start the server. You&#039;re done!&lt;br /&gt;
&lt;br /&gt;
The best part about this is that you can edit &amp;lt;code&amp;gt;/etc/cron.minutely/rand.php&amp;lt;/code&amp;gt; to include more maps without shutting down the server; &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; will pick it up automatically in the next minute.&lt;br /&gt;
&lt;br /&gt;
Please tell me if this tutorial did not work for you.&lt;br /&gt;
&lt;br /&gt;
== Warning ==&lt;br /&gt;
If the match lasts less than 1 minute, the map may not be updated.&lt;/div&gt;</summary>
		<author><name>The Mu</name></author>
	</entry>
	<entry>
		<id>http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16646</id>
		<title>Making Maps Switch Randomly (alternate)</title>
		<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16646"/>
		<updated>2006-12-10T20:14:20Z</updated>

		<summary type="html">&lt;p&gt;The Mu: feature!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a different way to go about [[Making Maps Switch Randomly]], which requires no knowledge of Armagetron map-making. It cycles through a number of random maps every minute, and can even change settings accordingly or announce the map&#039;s name and creator.&lt;br /&gt;
&lt;br /&gt;
This tutorial worked on an i686 Dell Dimension L933r running Fedora Core 5. Let me know if you have successes on different hardware/distros.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
*A Linux system with Armagetron Advanced Server installed (possibly works on Mac OS X from a Terminal)&lt;br /&gt;
*The &amp;lt;code&amp;gt;[http://en.wikipedia.org/wiki/Cron cron]&amp;lt;/code&amp;gt; utility&lt;br /&gt;
*[http://www.php.net PHP] (possibly requires [http://httpd.apache.org/ HTTPD])&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*Make sure you are root.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ su&lt;br /&gt;
Password: _&lt;br /&gt;
#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make sure &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; is started.&lt;br /&gt;
&amp;lt;pre&amp;gt;# /etc/init.d/crond start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make a directory for &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; to check every minute.&lt;br /&gt;
&amp;lt;pre&amp;gt;# mkdir /etc/cron.minutely&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Let &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; know to check for that directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# echo &amp;quot;*  * * * root run-parts /etc/cron.minutely&amp;quot; &amp;gt;&amp;gt; /etc/crontab&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Now comes the fun part. (If you are more comfortable with another editor or have not used Vi before, go ahead and use it.)&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the sample PHP file that I use for my server.&lt;br /&gt;
&amp;lt;pre&amp;gt;!/usr/bin/php&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &amp;quot;INCLUDE settings_custom.cfg&amp;quot;;&lt;br /&gt;
$rand = rand(1,5);&lt;br /&gt;
if ( $rand == &amp;quot;1&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Blind/Beta/clanfun-1.1.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Clan Fun by Blind&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;2&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Your_mom/cockpit/classic_m-0.0.3.aacockpit.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Cockpit by Your mom&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;3&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE manta/misc/nano_slingers-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Slingers by Manta&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;4&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE HIM/race/race_map-0.1.0.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Race Map by HIM&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Durka/nano/nano_sumo-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Sumo by Durka&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This PHP file generates a random number and chooses a map accordingly. (The &amp;quot;\n&amp;quot;s at the end are PHP &#039;&#039;newlines&#039;&#039;; they are essential. If you modify this sample, remember to keep them!) If you want more maps, change the line&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,5);&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,x);&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;&#039;x&#039;&#039; is the number of maps you want. Then add another block of these:&lt;br /&gt;
&amp;lt;pre&amp;gt;} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE /path/to/map/file/in/repository\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Map Name by Creator&amp;quot;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
for each extra map you have.&lt;br /&gt;
&lt;br /&gt;
*Make the PHP file executable.&lt;br /&gt;
&amp;lt;pre&amp;gt;# chmod 777 rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The PHP file will output the map configuration onto the screen, but we need something to put it into a file. That is a shell script. Open another file for writing.&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the shell script. You should not need to modify this, except to specify your user config directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
/etc/cron.minutely/rand.php &amp;gt; /your/userconfig/directory/everytime.cfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Copy both files to the &amp;lt;code&amp;gt;/etc/cron.minutely&amp;lt;/code&amp;gt; directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# cp rand.php /etc/cron.minutely/rand.php&lt;br /&gt;
# cp rand.sh /etc/cron.minutely/rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Give &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; a good 3 minutes to recognize the new file.&lt;br /&gt;
&lt;br /&gt;
*Start the server. You&#039;re done!&lt;br /&gt;
&lt;br /&gt;
The best part about this is that you can edit &amp;lt;code&amp;gt;/etc/cron.minutely/rand.php&amp;lt;/code&amp;gt; to include more maps without shutting down the server; &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; will pick it up automatically in the next minute.&lt;br /&gt;
&lt;br /&gt;
Please tell me if this tutorial did not work for you.&lt;br /&gt;
&lt;br /&gt;
== Warning ==&lt;br /&gt;
If the match lasts less than 1 minute, the map may not be updated.&lt;/div&gt;</summary>
		<author><name>The Mu</name></author>
	</entry>
	<entry>
		<id>http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16645</id>
		<title>Making Maps Switch Randomly (alternate)</title>
		<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16645"/>
		<updated>2006-12-10T20:02:18Z</updated>

		<summary type="html">&lt;p&gt;The Mu: /* Tutorial */ oops again.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a different way to go about [[Making Maps Switch Randomly]], which requires no knowledge of Armagetron map-making. It cycles through a number of random maps every minute, and can even change settings accordingly or announce the map&#039;s name and creator.&lt;br /&gt;
&lt;br /&gt;
This tutorial worked on an i686 Dell Dimension L933r running Fedora Core 5. Let me know if you have successes on different hardware/distros.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
*A Linux system with Armagetron Advanced Server installed (possibly works on Mac OS X from a Terminal)&lt;br /&gt;
*The &amp;lt;code&amp;gt;[http://en.wikipedia.org/wiki/Cron cron]&amp;lt;/code&amp;gt; utility&lt;br /&gt;
*[http://www.php.net PHP] (possibly requires [http://httpd.apache.org/ HTTPD])&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*Make sure you are root.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ su&lt;br /&gt;
Password: _&lt;br /&gt;
#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make sure &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; is started.&lt;br /&gt;
&amp;lt;pre&amp;gt;# /etc/init.d/crond start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make a directory for &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; to check every minute.&lt;br /&gt;
&amp;lt;pre&amp;gt;# mkdir /etc/cron.minutely&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Let &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; know to check for that directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# echo &amp;quot;*  * * * root run-parts /etc/cron.minutely&amp;quot; &amp;gt;&amp;gt; /etc/crontab&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Now comes the fun part. (If you are more comfortable with another editor or have not used Vi before, go ahead and use it.)&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the sample PHP file that I use for my server.&lt;br /&gt;
&amp;lt;pre&amp;gt;!/usr/bin/php&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &amp;quot;INCLUDE settings_custom.cfg&amp;quot;;&lt;br /&gt;
$rand = rand(1,5);&lt;br /&gt;
if ( $rand == &amp;quot;1&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Blind/Beta/clanfun-1.1.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Clan Fun by Blind&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;2&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Your_mom/cockpit/classic_m-0.0.3.aacockpit.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Cockpit by Your mom&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;3&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE manta/misc/nano_slingers-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Slingers by Manta&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;4&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE HIM/race/race_map-0.1.0.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Race Map by HIM&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Durka/nano/nano_sumo-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Sumo by Durka&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This PHP file generates a random number and chooses a map accordingly. (The &amp;quot;\n&amp;quot;s at the end are PHP &#039;&#039;newlines&#039;&#039;; they are essential. If you modify this sample, remember to keep them!) If you want more maps, change the line&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,5);&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,x);&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;&#039;x&#039;&#039; is the number of maps you want. Then add another block of these:&lt;br /&gt;
&amp;lt;pre&amp;gt;} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE /path/to/map/file/in/repository\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Map Name by Creator&amp;quot;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
for each extra map you have.&lt;br /&gt;
&lt;br /&gt;
*Make the PHP file executable.&lt;br /&gt;
&amp;lt;pre&amp;gt;# chmod 777 rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The PHP file will output the map configuration onto the screen, but we need something to put it into a file. That is a shell script. Open another file for writing.&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the shell script. You should not need to modify this, except to specify your user config directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
/etc/cron.minutely/rand.php &amp;gt; /your/userconfig/directory/everytime.cfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Copy both files to the &amp;lt;code&amp;gt;/etc/cron.minutely&amp;lt;/code&amp;gt; directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# cp rand.php /etc/cron.minutely/rand.php&lt;br /&gt;
# cp rand.sh /etc/cron.minutely/rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Give &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; a good 3 minutes to recognize the new file.&lt;br /&gt;
&lt;br /&gt;
*Start the server. You&#039;re done!&lt;br /&gt;
&lt;br /&gt;
Please tell me if this tutorial did not work for you.&lt;br /&gt;
&lt;br /&gt;
== Warning ==&lt;br /&gt;
If the match lasts less than 1 minute, the map may not be updated.&lt;/div&gt;</summary>
		<author><name>The Mu</name></author>
	</entry>
	<entry>
		<id>http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16644</id>
		<title>Making Maps Switch Randomly (alternate)</title>
		<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16644"/>
		<updated>2006-12-10T20:00:31Z</updated>

		<summary type="html">&lt;p&gt;The Mu: +warning&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a different way to go about [[Making Maps Switch Randomly]], which requires no knowledge of Armagetron map-making. It cycles through a number of random maps every minute, and can even change settings accordingly or announce the map&#039;s name and creator.&lt;br /&gt;
&lt;br /&gt;
This tutorial worked on an i686 Dell Dimension L933r running Fedora Core 5. Let me know if you have successes on different hardware/distros.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
*A Linux system with Armagetron Advanced Server installed (possibly works on Mac OS X from a Terminal)&lt;br /&gt;
*The &amp;lt;code&amp;gt;[http://en.wikipedia.org/wiki/Cron cron]&amp;lt;/code&amp;gt; utility&lt;br /&gt;
*[http://www.php.net PHP] (possibly requires [http://httpd.apache.org/ HTTPD])&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*Make sure you are root.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ su&lt;br /&gt;
Password: _&lt;br /&gt;
#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make sure &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; is started.&lt;br /&gt;
&amp;lt;pre&amp;gt;# /etc/init.d/crond start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make a directory for &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; to check every minute.&lt;br /&gt;
&amp;lt;pre&amp;gt;# mkdir /etc/cron.minutely&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Let &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; know to check for that directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# echo &amp;quot;*  * * * root run-parts /etc/cron.minutely&amp;quot; &amp;gt;&amp;gt; /etc/crontab&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Now comes the fun part. (If you are more comfortable with another editor or have not used Vi before, go ahead and use it.)&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the sample PHP file that I use for my server.&lt;br /&gt;
&amp;lt;pre&amp;gt;!/usr/bin/php&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$rand = rand(1,5);&lt;br /&gt;
if ( $rand == &amp;quot;1&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Blind/Beta/clanfun-1.1.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Clan Fun by Blind&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;2&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Your_mom/cockpit/classic_m-0.0.3.aacockpit.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Cockpit by Your mom&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;3&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE manta/misc/nano_slingers-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Slingers by Manta&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;4&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE HIM/race/race_map-0.1.0.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Race Map by HIM&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Durka/nano/nano_sumo-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Sumo by Durka&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This PHP file generates a random number and chooses a map accordingly. (The &amp;quot;\n&amp;quot;s at the end are PHP &#039;&#039;newlines&#039;&#039;; they are essential. If you modify this sample, remember to keep them!) If you want more maps, change the line&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,5);&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,x);&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;&#039;x&#039;&#039; is the number of maps you want. Then add another block of these:&lt;br /&gt;
&amp;lt;pre&amp;gt;} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE /path/to/map/file/in/repository\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Map Name by Creator&amp;quot;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
for each extra map you have.&lt;br /&gt;
&lt;br /&gt;
*Make the PHP file executable.&lt;br /&gt;
&amp;lt;pre&amp;gt;# chmod 777 rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The PHP file will output the map configuration onto the screen, but we need something to put it into a file. That is a shell script. Open another file for writing.&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the shell script. You should not need to modify this, except to specify your user config directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
/etc/cron.minutely/rand.php &amp;gt; /your/userconfig/directory/everytime.cfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Copy both files to the &amp;lt;code&amp;gt;/etc/cron.minutely&amp;lt;/code&amp;gt; directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# cp rand.php /etc/cron.minutely/rand.php&lt;br /&gt;
# cp rand.sh /etc/cron.minutely/rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Give &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; a good 3 minutes to recognize the new file.&lt;br /&gt;
&lt;br /&gt;
*Start the server. You&#039;re done!&lt;br /&gt;
&lt;br /&gt;
Please tell me if this tutorial did not work for you.&lt;br /&gt;
&lt;br /&gt;
== Warning ==&lt;br /&gt;
If the match lasts less than 1 minute, the map may not be updated.&lt;/div&gt;</summary>
		<author><name>The Mu</name></author>
	</entry>
	<entry>
		<id>http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16643</id>
		<title>Making Maps Switch Randomly (alternate)</title>
		<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16643"/>
		<updated>2006-12-10T19:48:17Z</updated>

		<summary type="html">&lt;p&gt;The Mu: /* Tutorial */ oops&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a different way to go about [[Making Maps Switch Randomly]], which requires no knowledge of Armagetron map-making. It cycles through a number of random maps every minute, and can even change settings accordingly or announce the map&#039;s name and creator.&lt;br /&gt;
&lt;br /&gt;
This tutorial worked on an i686 Dell Dimension L933r running Fedora Core 5. Let me know if you have successes on different hardware/distros.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
*A Linux system with Armagetron Advanced Server installed (possibly works on Mac OS X from a Terminal)&lt;br /&gt;
*The &amp;lt;code&amp;gt;[http://en.wikipedia.org/wiki/Cron cron]&amp;lt;/code&amp;gt; utility&lt;br /&gt;
*[http://www.php.net PHP] (possibly requires [http://httpd.apache.org/ HTTPD])&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*Make sure you are root.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ su&lt;br /&gt;
Password: _&lt;br /&gt;
#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make sure &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; is started.&lt;br /&gt;
&amp;lt;pre&amp;gt;# /etc/init.d/crond start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make a directory for &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; to check every minute.&lt;br /&gt;
&amp;lt;pre&amp;gt;# mkdir /etc/cron.minutely&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Let &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; know to check for that directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# echo &amp;quot;*  * * * root run-parts /etc/cron.minutely&amp;quot; &amp;gt;&amp;gt; /etc/crontab&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Now comes the fun part. (If you are more comfortable with another editor or have not used Vi before, go ahead and use it.)&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the sample PHP file that I use for my server.&lt;br /&gt;
&amp;lt;pre&amp;gt;!/usr/bin/php&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$rand = rand(1,5);&lt;br /&gt;
if ( $rand == &amp;quot;1&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Blind/Beta/clanfun-1.1.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Clan Fun by Blind&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;2&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Your_mom/cockpit/classic_m-0.0.3.aacockpit.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Cockpit by Your mom&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;3&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE manta/misc/nano_slingers-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Slingers by Manta&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;4&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE HIM/race/race_map-0.1.0.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Race Map by HIM&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Durka/nano/nano_sumo-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Sumo by Durka&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This PHP file generates a random number and chooses a map accordingly. (The &amp;quot;\n&amp;quot;s at the end are PHP &#039;&#039;newlines&#039;&#039;; they are essential. If you modify this sample, remember to keep them!) If you want more maps, change the line&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,5);&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,x);&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;&#039;x&#039;&#039; is the number of maps you want. Then add another block of these:&lt;br /&gt;
&amp;lt;pre&amp;gt;} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE /path/to/map/file/in/repository\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Map Name by Creator&amp;quot;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
for each extra map you have.&lt;br /&gt;
&lt;br /&gt;
*Make the PHP file executable.&lt;br /&gt;
&amp;lt;pre&amp;gt;# chmod 777 rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The PHP file will output the map configuration onto the screen, but we need something to put it into a file. That is a shell script. Open another file for writing.&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the shell script. You should not need to modify this, except to specify your user config directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
/etc/cron.minutely/rand.php &amp;gt; /your/userconfig/directory/everytime.cfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Copy both files to the &amp;lt;code&amp;gt;/etc/cron.minutely&amp;lt;/code&amp;gt; directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# cp rand.php /etc/cron.minutely/rand.php&lt;br /&gt;
# cp rand.sh /etc/cron.minutely/rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Give &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; a good 3 minutes to recognize the new file.&lt;br /&gt;
&lt;br /&gt;
*Start the server. You&#039;re done!&lt;br /&gt;
&lt;br /&gt;
Please tell me if this tutorial did not work for you.&lt;/div&gt;</summary>
		<author><name>The Mu</name></author>
	</entry>
	<entry>
		<id>http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16642</id>
		<title>Making Maps Switch Randomly (alternate)</title>
		<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Making_Maps_Switch_Randomly_(alternate)&amp;diff=16642"/>
		<updated>2006-12-10T19:47:41Z</updated>

		<summary type="html">&lt;p&gt;The Mu: alternate map-rotating tutorial&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a different way to go about [[Making Maps Switch Randomly]], which requires no knowledge of Armagetron map-making. It cycles through a number of random maps every minute, and can even change settings accordingly or announce the map&#039;s name and creator.&lt;br /&gt;
&lt;br /&gt;
This tutorial worked on an i686 Dell Dimension L933r running Fedora Core 5. Let me know if you have successes on different hardware/distros.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
*A Linux system with Armagetron Advanced Server installed (possibly works on Mac OS X from a Terminal)&lt;br /&gt;
*The &amp;lt;code&amp;gt;[http://en.wikipedia.org/wiki/Cron cron]&amp;lt;/code&amp;gt; utility&lt;br /&gt;
*[http://www.php.net PHP] (possibly requires [http://httpd.apache.org/ HTTPD])&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*Make sure you are root.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ su&lt;br /&gt;
Password: _&lt;br /&gt;
#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make sure &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; is started.&lt;br /&gt;
&amp;lt;pre&amp;gt;# /etc/init.d/crond start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make a directory for &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; to check every minute.&lt;br /&gt;
&amp;lt;pre&amp;gt;# mkdir /etc/cron.minutely&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Let &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; know to check for that directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# echo *  * * * root run-parts /etc/cron.minutely &amp;gt;&amp;gt; /etc/crontab&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Now comes the fun part. (If you are more comfortable with another editor or have not used Vi before, go ahead and use it.)&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the sample PHP file that I use for my server.&lt;br /&gt;
&amp;lt;pre&amp;gt;!/usr/bin/php&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$rand = rand(1,5);&lt;br /&gt;
if ( $rand == &amp;quot;1&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Blind/Beta/clanfun-1.1.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Clan Fun by Blind&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;2&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Your_mom/cockpit/classic_m-0.0.3.aacockpit.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Cockpit by Your mom&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;3&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE manta/misc/nano_slingers-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Slingers by Manta&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;4&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE HIM/race/race_map-0.1.0.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Race Map by HIM&amp;quot;;&lt;br /&gt;
} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE Durka/nano/nano_sumo-0.0.2.aamap.xml\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Nano Sumo by Durka&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This PHP file generates a random number and chooses a map accordingly. (The &amp;quot;\n&amp;quot;s at the end are PHP &#039;&#039;newlines&#039;&#039;; they are essential. If you modify this sample, remember to keep them!) If you want more maps, change the line&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,5);&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;$rand = rand(1,x);&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;&#039;x&#039;&#039; is the number of maps you want. Then add another block of these:&lt;br /&gt;
&amp;lt;pre&amp;gt;} elseif ( $rand == &amp;quot;5&amp;quot; ) {&lt;br /&gt;
        echo &amp;quot;MAP_FILE /path/to/map/file/in/repository\n&amp;quot;;&lt;br /&gt;
        echo &amp;quot;SAY Next Map: Map Name by Creator&amp;quot;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
for each extra map you have.&lt;br /&gt;
&lt;br /&gt;
*Make the PHP file executable.&lt;br /&gt;
&amp;lt;pre&amp;gt;# chmod 777 rand.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The PHP file will output the map configuration onto the screen, but we need something to put it into a file. That is a shell script. Open another file for writing.&lt;br /&gt;
&amp;lt;pre&amp;gt;# vi rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Here is the shell script. You should not need to modify this, except to specify your user config directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
/etc/cron.minutely/rand.php &amp;gt; /your/userconfig/directory/everytime.cfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Copy both files to the &amp;lt;code&amp;gt;/etc/cron.minutely&amp;lt;/code&amp;gt; directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;# cp rand.php /etc/cron.minutely/rand.php&lt;br /&gt;
# cp rand.sh /etc/cron.minutely/rand.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Give &amp;lt;code&amp;gt;cron&amp;lt;/code&amp;gt; a good 3 minutes to recognize the new file.&lt;br /&gt;
&lt;br /&gt;
*Start the server. You&#039;re done!&lt;br /&gt;
&lt;br /&gt;
Please tell me if this tutorial did not work for you.&lt;/div&gt;</summary>
		<author><name>The Mu</name></author>
	</entry>
</feed>