aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/share/regions/make.php
diff options
context:
space:
mode:
Diffstat (limited to 'share/regions/make.php')
-rw-r--r--share/regions/make.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/share/regions/make.php b/share/regions/make.php
new file mode 100644
index 0000000..3c83470
--- /dev/null
+++ b/share/regions/make.php
@@ -0,0 +1,14 @@
1<?php
2
3$i = 0;
4for($x = 0; $x < 16; $x++)
5{
6 for($y = 0; $y < 16; $y++)
7 {
8 $ourFileName = "region_$i.xml";
9 $ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
10 fwrite($ourFileHandle , "<Root><Config sim_name=\"Test Sim #$i\" sim_location_x=\"" . (1000 + $x) . "\" sim_location_y=\"" . (1000 + $y) . "\" datastore=\"region_" . $i . "_datastore.yap\" internal_ip_address=\"0.0.0.0\" internal_ip_port=\"" . (9000 + $i) . "\" external_host_name=\"127.0.0.1\" terrain_file=\"default.r32\" terrain_multiplier=\"60.0\" master_avatar_first=\"Test\" master_avatar_last=\"User\" master_avatar_pass=\"test\" /></Root>");
11 fclose($ourFileHandle);
12 $i++;
13 }
14} \ No newline at end of file