Rotating maps

Topics and posts about all other servers...
Post Reply
User avatar
Agility
Core Dumper
Posts: 126
Joined: Fri Jun 19, 2009 10:22 pm

Rotating maps

Post by Agility »

Just wondering how you rotate maps on a server?

User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1843
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Rotating maps

Post by kyle »

via a script that reads ladderlog.txt
Image

User avatar
Light
Reverse Outside Corner Grinder
Posts: 1657
Joined: Thu Oct 20, 2011 2:11 pm

Re: Rotating maps

Post by Light »

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";
	}
}

?>

User avatar
Agility
Core Dumper
Posts: 126
Joined: Fri Jun 19, 2009 10:22 pm

Re: Rotating maps

Post by Agility »

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.

User avatar
Light
Reverse Outside Corner Grinder
Posts: 1657
Joined: Thu Oct 20, 2011 2:11 pm

Re: Rotating maps

Post by Light »

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.

User avatar
Agility
Core Dumper
Posts: 126
Joined: Fri Jun 19, 2009 10:22 pm

Re: Rotating maps

Post by Agility »

I have the plus sty branch tho :/
Attachments
gateway-1.0.aamap.xml
(3.27 KiB) Downloaded 74 times

User avatar
Light
Reverse Outside Corner Grinder
Posts: 1657
Joined: Thu Oct 20, 2011 2:11 pm

Re: Rotating maps

Post by Light »

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 ..

Code: Select all

<!ATTLIST Zone effect (win | death | fortress ) "death" >
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.

User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1843
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Rotating maps

Post by kyle »

Light wrote:I don't think any of the public DTD's support that, if they even could.
They could, of course the server would have to support it.

but DELAYED_COMMAND settings with SPAWN_ZONE in Sty+ct is about the only way.
Image

User avatar
Light
Reverse Outside Corner Grinder
Posts: 1657
Joined: Thu Oct 20, 2011 2:11 pm

Re: Rotating maps

Post by Light »

kyle wrote:They could, of course the server would have to support it.
Yeah .. I don't know enough about all that to give him much useful info. lol
kyle wrote:but DELAYED_COMMAND settings with SPAWN_ZONE in Sty+ct is about the only way.
That's what I figured, though didn't want to say I was sure and knock any better ideas out.

User avatar
Agility
Core Dumper
Posts: 126
Joined: Fri Jun 19, 2009 10:22 pm

Re: Rotating maps

Post by Agility »

Okay thanks guys, I appreciate the help!

User avatar
LOVER$BOY
Match Winner
Posts: 725
Joined: Thu Jan 24, 2008 12:46 pm
Contact:

Re: Rotating maps

Post by LOVER$BOY »

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

Code: Select all

Server: 0.2.9-armagetronad-sty+ct+ap
DTD: Lover-Boy/map-0.2.9_styctap_v1.2.dtd
Supported Zones:

Code: Select all

<!ATTLIST Zone effect ( win | death | fortress | ball | flag | target | rubber | sumo | teleport | burst | object | soccerball | soccergoal ) "death" >
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:
Light wrote:I don't think any of the public DTD's support that, if they even could.
LOL! :P

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.
Image

User avatar
Light
Reverse Outside Corner Grinder
Posts: 1657
Joined: Thu Oct 20, 2011 2:11 pm

Re: Rotating maps

Post by Light »

LOVER$BOY wrote:Um... why are people ignoring the work that I put into? :/
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.

User avatar
LOVER$BOY
Match Winner
Posts: 725
Joined: Thu Jan 24, 2008 12:46 pm
Contact:

Re: Rotating maps

Post by LOVER$BOY »

Light wrote:
LOVER$BOY wrote:Um... why are people ignoring the work that I put into? :/
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.
Agreed :D
Image

Post Reply