Rotating maps
Rotating maps
Just wondering how you rotate maps on a server?
- kyle
- Reverse Outside Corner Grinder
- Posts: 1876
- Joined: Thu Jun 08, 2006 3:33 pm
- Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
- Contact:
Re: Rotating maps
via a script that reads ladderlog.txt
Re: Rotating maps
Something like this would work. Didn't test it though. You could also add the maps you want to use to a folder, and the script could get the array that way.
Code: Select all
#!/usr/bin/php
<?php
$maps = array(
'/path/to/map-1.aamap.xml',
'/path/to/map-2.aamap.xml',
'/path/to/map-3.aamap.xml'
);
while (!feof(STDIN))
{
$line = rtrim( fgets(STDIN) );
$part = explode(" ", $line);
if ($part[0] == "ROUND_COMMENCING")
{
if (!isset($queue) || count($array) == 0)
$queue = $maps;
$map = array_shift($queue);
echo "MAP_FILE {$map}" . "\n";
}
}
?>
Re: Rotating maps
Also I been trying to make a map with a teleport zone but I can't get the code the makes it cause armagetronad wiki appears to be down.
Re: Rotating maps
I don't think any of the public DTD's support that, if they even could. You can use settings and a delayed command to add them.
If you really want to have the zone in the map, you could use target zones and a script could teleport you when you enter.
If you really want to have the zone in the map, you could use target zones and a script could teleport you when you enter.
Re: Rotating maps
I have the plus sty branch tho
- Attachments
-
- gateway-1.0.aamap.xml
- (3.27 KiB) Downloaded 287 times
Re: Rotating maps
The DTD you're using is "AATeam/map-0.2.8.0.dtd". Let's go find that ..
http://resource.armagetronad.net/resour ... .2.8.0.dtd
If you go near the bottom, you'll find ..
You can't use "teleport" as a parameter. Even if it were added, you would need other options such as x y xdir ydir for your teleport destination.
http://resource.armagetronad.net/resour ... .2.8.0.dtd
If you go near the bottom, you'll find ..
Code: Select all
<!ATTLIST Zone effect (win | death | fortress ) "death" >
- kyle
- Reverse Outside Corner Grinder
- Posts: 1876
- Joined: Thu Jun 08, 2006 3:33 pm
- Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
- Contact:
Re: Rotating maps
They could, of course the server would have to support it.Light wrote:I don't think any of the public DTD's support that, if they even could.
but DELAYED_COMMAND settings with SPAWN_ZONE in Sty+ct is about the only way.
Re: Rotating maps
Yeah .. I don't know enough about all that to give him much useful info. lolkyle wrote:They could, of course the server would have to support it.
That's what I figured, though didn't want to say I was sure and knock any better ideas out.kyle wrote:but DELAYED_COMMAND settings with SPAWN_ZONE in Sty+ct is about the only way.
Re: Rotating maps
Okay thanks guys, I appreciate the help!
Re: Rotating maps
Um... why are people ignoring the work that I put into?
This might be ... nth time I am saying this but my server, sty+ct+ap supports many rotations and teleport zones in maps. But to use those features you need
Supported Zones:
I even documented the use of my server's rotation commands and usages for each ROTATION_TYPE here: http://vertrex.8ing.com/wiki/index.php? ... N_Settings
I have even documented my DTD fully here: http://vertrex.8ing.com/wiki/index.php? ... ctap_x.dtd
Edit:
If people need windows builds, you just simply need to ask me or send PM to my website or here (I don't check here often enough). As for the builds for linux, I might need help with that or something since I am a windows user. My partner, fman might but he is currently busy with his studies. As for Mac, again I need help in building the stuff there.
This might be ... nth time I am saying this but my server, sty+ct+ap supports many rotations and teleport zones in maps. But to use those features you need
Code: Select all
Server: 0.2.9-armagetronad-sty+ct+ap
DTD: Lover-Boy/map-0.2.9_styctap_v1.2.dtd
Code: Select all
<!ATTLIST Zone effect ( win | death | fortress | ball | flag | target | rubber | sumo | teleport | burst | object | soccerball | soccergoal ) "death" >
I have even documented my DTD fully here: http://vertrex.8ing.com/wiki/index.php? ... ctap_x.dtd
Edit:
LOL!Light wrote:I don't think any of the public DTD's support that, if they even could.
If people need windows builds, you just simply need to ask me or send PM to my website or here (I don't check here often enough). As for the builds for linux, I might need help with that or something since I am a windows user. My partner, fman might but he is currently busy with his studies. As for Mac, again I need help in building the stuff there.
Re: Rotating maps
Sorry, but I don't really keep up with your updates other than what you tell me. Also, unless he's hosting the servers himself, he's not going to have the option of switching. Still good to note though.LOVER$BOY wrote:Um... why are people ignoring the work that I put into?
Re: Rotating maps
AgreedLight wrote:Sorry, but I don't really keep up with your updates other than what you tell me. Also, unless he's hosting the servers himself, he's not going to have the option of switching. Still good to note though.LOVER$BOY wrote:Um... why are people ignoring the work that I put into?