diff options
author | mingchen | 2007-07-19 23:08:10 +0000 |
---|---|---|
committer | mingchen | 2007-07-19 23:08:10 +0000 |
commit | 6c96de1f5786f05ce8d7f89f95b50a21be77da6f (patch) | |
tree | ab207c0832de235bf481931ac95c2fbad32b55ae /share/regions/make.php | |
parent | opps have a setting as true when it should be false. (diff) | |
download | opensim-SC-6c96de1f5786f05ce8d7f89f95b50a21be77da6f.zip opensim-SC-6c96de1f5786f05ce8d7f89f95b50a21be77da6f.tar.gz opensim-SC-6c96de1f5786f05ce8d7f89f95b50a21be77da6f.tar.bz2 opensim-SC-6c96de1f5786f05ce8d7f89f95b50a21be77da6f.tar.xz |
*Added new config files into share -- cut down to 256 for practicality reasons
*Added make.php in same folder that was used to generate these files
Diffstat (limited to 'share/regions/make.php')
-rw-r--r-- | share/regions/make.php | 14 |
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; | ||
4 | for($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 | ||