# HG changeset patch # User Matti Hamalainen # Date 1294484738 -7200 # Node ID 2ca80ace51720850b895de3e5002534752efbd9a # Parent a3baf45f92c2a1b154f7c355cfc5bb1a1bfb1d9b Move things. diff -r a3baf45f92c2 -r 2ca80ace5172 makegmaps.php --- a/makegmaps.php Sat Jan 08 12:57:30 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -#!/usr/bin/php - "markers.xml", - "overlay" => "overlay.txt", - "labels" => "overlaylabels.txt", -); - - -$continentList = array( - // ID Name Xoffs Yoffs spec hasmap - "laenor" => array("Laenor", 1 , 1 , FALSE , TRUE ), - "rothikgen" => array("Rothikgen", 1311 , -1255 , FALSE , TRUE ), - "lucentium" => array("Lucentium", -634 , 2345 , FALSE , TRUE ), - "furnachia" => array("Furnachia", 1211 , 1155 , FALSE , TRUE ), - "desolathya" => array("Desolathya", -1210 , 820 , FALSE , TRUE ), - - "renardy" => array("Renardy", 2068 , -910 , TRUE , TRUE ), - "limbo" => array("Limbo", 0 , 0 , TRUE , FALSE ), -); - - -$args = ""; -foreach ($continentList as $name => $t) { - if ($t[4]) { // has a map - $args .= - "-l ".escapeshellarg($locPath.$name.".loc")." ". - "-c ".escapeshellarg($t[0])." ". - "-x ".escapeshellarg(8192 + $t[1])." ". - "-y ".escapeshellarg(8192 + $t[2])." "; - } -} - -foreach ($modes as $mode => $file) { - $tmp = escapeshellcmd($mkloc)." -v -o ".escapeshellarg($outPath.$file)." -G ".$mode." ".$args; - passthru(escapeshellcmd($mkloc)." -v -o ".escapeshellarg($outPath.$file)." -G ".$mode." ".$args) == 0 or - die("Error executing ".$mkloc.".\n"); -} - -?> \ No newline at end of file diff -r a3baf45f92c2 -r 2ca80ace5172 tools/makegmaps.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/makegmaps.php Sat Jan 08 13:05:38 2011 +0200 @@ -0,0 +1,45 @@ +#!/usr/bin/php + "markers.xml", + "overlay" => "overlay.txt", + "labels" => "overlaylabels.txt", +); + + +$continentList = array( + // ID Name Xoffs Yoffs spec hasmap + "laenor" => array("Laenor", 1 , 1 , FALSE , TRUE ), + "rothikgen" => array("Rothikgen", 1311 , -1255 , FALSE , TRUE ), + "lucentium" => array("Lucentium", -634 , 2345 , FALSE , TRUE ), + "furnachia" => array("Furnachia", 1211 , 1155 , FALSE , TRUE ), + "desolathya" => array("Desolathya", -1210 , 820 , FALSE , TRUE ), + + "renardy" => array("Renardy", 2068 , -910 , TRUE , TRUE ), + "limbo" => array("Limbo", 0 , 0 , TRUE , FALSE ), +); + + +$args = ""; +foreach ($continentList as $name => $t) { + if ($t[4]) { // has a map + $args .= + "-l ".escapeshellarg($locPath.$name.".loc")." ". + "-c ".escapeshellarg($t[0])." ". + "-x ".escapeshellarg(8192 + $t[1])." ". + "-y ".escapeshellarg(8192 + $t[2])." "; + } +} + +foreach ($modes as $mode => $file) { + $tmp = escapeshellcmd($mkloc)." -v -o ".escapeshellarg($outPath.$file)." -G ".$mode." ".$args; + passthru(escapeshellcmd($mkloc)." -v -o ".escapeshellarg($outPath.$file)." -G ".$mode." ".$args) == 0 or + die("Error executing ".$mkloc.".\n"); +} + +?> \ No newline at end of file