Server Upload Error

Post here if you need help setting up your server, etc.
Post Reply
Blazing Pheonix
On Lightcycle Grid
Posts: 10
Joined: Mon Mar 02, 2009 1:50 am

Server Upload Error

Post by Blazing Pheonix »

Hi, Thanks for clicking on this :)

I'm new to server uploading or whatever putting your map onto a local game with just yourself is called. I created the map, Saved it under C:\Documents and Settings\Cody\Application Data\Armagetron\resource\Vengence

P.S. I use windows

And I used the ` key and typed in MAP_FILE C:\Documents and Settings\Cody Goldman\Application Data\Armagetron\resource\Vengence/HexMex.txt
and it says map file changed from C:/Documents to C:\Documents and then the game finishes on the little square map and I get an error
ERROR: User given path "C:\Documents" is an absolute path. Your not allowed to access files outside the configured files hierarchies.
ERROR: Cannot determine path to write resources to.
Any help? :/
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Re: Server Upload Error

Post by DDMJ »

Ok, so first, it appears that your map is called HexMex.txt, which is an incorrect map name. Open up your map and you'll see something like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE Resource SYSTEM "AATeam/map-0.2.8.0.dtd">
<Resource type="aamap" name="arena" version="1" author="Durka" category="sumo">
Notice the line starting with <Resource. The correct name for this map would be arena-1.aamap.xml.

So the first thing you need to do is open up your map, look at the <Resource line, and name it correctly.

Next, you'll need to place it in the correct directory. For example, for the example map above, I would place it in: .../resource/Durka/sumo/.

Now, in local game, I would type this into the console: MAP_FILE Durka/sumo/arena-1.aamap.xml.

Hope that helps!
Blazing Pheonix
On Lightcycle Grid
Posts: 10
Joined: Mon Mar 02, 2009 1:50 am

Re: Server Upload Error

Post by Blazing Pheonix »

Thanks for the help. I got past that one error. :mrgreen:
I got a couple of errors that came at the end of each round. I couldn't see what they were since they came too quick :roll: . What do you think went wrong with...

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE Resource SYSTEM "map-0.2.8_beta3.dtd">
<Resource name="HexaTRON" version="1.4.0" author="Vengence" category="HexaTRON">
<Map version="0.2.8">
<World>
	<Field>
		<Settings>
			<Setting name="TEAMNAME_1" value="Blue"/>
			<Setting name="TEAMNAME_2" value="Yellow"/>
			<Setting name="TEAMNAME_3" value="Red"/>
			<Setting name="CYCLE_WIDTH" value=".1"/>
			<Setting name="CYCLE_SPEED" value="2"/>
			<Setting name="CYCLE_START_SPEED" value="2.4"/>
			<Setting name="CYCLE_SPEED_MIN" value="2"/>
			<Setting name="CYCLE_SPEED_MAX" value="10"/>
			<Setting name="CYCLE_RUBBER" value="20"/>
			<Setting name="SERVER_NAME" value="Turbulence"/>
			<Setting name="LIMIT_SCORE" value="100"/>
			<Setting name="TEAM_BLUE_1" value="15"/>
			<Setting name="TEAM_YELLOW_2" value="15"/>
			<Setting name="TEAM_RED_3" value="15"/>
			<Setting name="WALLS_LENGTH" value="15"/>
			<Setting name="EXPLOSION_RADIUS" value="1"/>
			<Setting name="GAME_TYPE" value="1"/>
			<Setting name="FORTRESS_DEFEND_RATE" value=".4"/>
			<Setting name="FORTRESS_CONQUEST_RATE" value=".3"/>
			<Setting name="FORTRESS_DECAY_RATE" value=".2"/>
			<Setting name="CYCLE_BRAKE" value="-20"/>
			<Setting name="CYCLE_BRAKE_DEPLETE" value=".4"/>
			<Setting name="CYCLE_BRAKE_REFILL" value=".125"/>
		</Settings>
		<Axes Number="6"/>
		<Spawn x="9" y="14" angle="60"/>
		<Spawn x="17" y="14" angle="180"/>
		<Spawn x="31" y="14" angle="300"/>
		<Wall>
			<Point x="0" y="14"/>
			<Point x="4" y="8"/>
			<Point x="12" y="8"/>
			<Point x="16" y="0"/>
			<Point x="24" y="0"/>
			<Point x="28" y="8"/>
			<Point x="36" y="8"/>
			<Point x="40" y="14"/>
			<Point x="36" y="20"/>
			<Point x="40" y="26"/>
			<Point x="36" y="32"/>
			<Point x="28" y="32"/>
			<Point x="24" y="40"/>
			<Point x="16" y="40"/>
			<Point x="12" y="32"/>
			<Point x="4" y="32"/>
			<Point x="0" y="26"/>
			<Point x="4" y="20"/>
			<Point x="0" y="14"/>
		</Wall>
		<Wall>
			<Point x="12" y="8"/>
			<Point x="14" y="12"/>
		</Wall>
		<Wall>
			<Point x="28" y="8"/>
			<Point x="26" y="12"/>
		</Wall>
		<Wall>
			<Point x="28" y="32"/>
			<Point x="26" y="28"/>
		</Wall>
		<Wall>
			<Point x="12" y="32"/>
			<Point x="14" y="28"/>
		</Wall>
		<Wall>
			<Point x="4" y="20"/>
			<Point x="8" y="20"/>
		</Wall>
		<Wall>
			<Point x="36" y="20"/>
			<Point x="32" y="20"/>
		</Wall>
		<Zone effect="fortress">
			<ShapeCircle radius="3">
				<Point x="8" y="14" />
			</ShapeCircle>
		</Zone>
		<Zone effect="fortress">
			<ShapeCircle radius="3">
				<Point x="32" y="14" />
			</ShapeCircle>
		</Zone>
		<Zone effect="fortress">
			<ShapeCircle radius="3">
				<Point x="20" y="32" />
			</ShapeCircle>
		</Zone>
		<Zone effect="death">
			<ShapeCircle radius="2" growth=".3">
				<Point x="20" y="20" />
			</ShapeCircle>
		</Zone>
	</Field>
</World>
</Map>
</Resource>
User avatar
sinewav
Graphic Artist
Posts: 6479
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Server Upload Error

Post by sinewav »

Blazing Pheonix wrote:I got a couple of errors that came at the end of each round. I couldn't see what they were since they came too quick
Scroll up, n00b.

There were two errors, both pretty easy to overlook. The first was "<Axes Number="6"/>". The attributes are case sensitive. It should be number.

The second was your placement of the <Settings> element. It is part of the <Map> element, not <Field>. http://wiki.armagetronad.net/index.php? ... d#Settings

Also, it's somewhat frowned upon to put a lot of settings in the map file. Be sure what you put in there is absolutely necessary and compatible with all clients/servers. Keeping most of your settings in a .cfg file gives you more flexibility (which is better because you might discover you need to change something after playing your map a while).

Try this:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE Resource SYSTEM "map-0.2.8_beta3.dtd">
<Resource name="HexaTRON" version="1.4.0" author="Vengence" category="HexaTRON">
<Map version="0.2.8">
<Settings>
         <Setting name="TEAMNAME_1" value="Blue"/>
         <Setting name="TEAMNAME_2" value="Yellow"/>
         <Setting name="TEAMNAME_3" value="Red"/>
         <Setting name="CYCLE_WIDTH" value=".1"/>
         <Setting name="CYCLE_SPEED" value="2"/>
         <Setting name="CYCLE_START_SPEED" value="2.4"/>
         <Setting name="CYCLE_SPEED_MIN" value="2"/>
         <Setting name="CYCLE_SPEED_MAX" value="10"/>
         <Setting name="CYCLE_RUBBER" value="20"/>
         <Setting name="SERVER_NAME" value="Turbulence"/>
         <Setting name="LIMIT_SCORE" value="100"/>
         <Setting name="TEAM_BLUE_1" value="15"/>
         <Setting name="TEAM_YELLOW_2" value="15"/>
         <Setting name="TEAM_RED_3" value="15"/>
         <Setting name="WALLS_LENGTH" value="15"/>
         <Setting name="EXPLOSION_RADIUS" value="1"/>
         <Setting name="GAME_TYPE" value="1"/>
         <Setting name="FORTRESS_DEFEND_RATE" value=".4"/>
         <Setting name="FORTRESS_CONQUEST_RATE" value=".3"/>
         <Setting name="FORTRESS_DECAY_RATE" value=".2"/>
         <Setting name="CYCLE_BRAKE" value="-20"/>
         <Setting name="CYCLE_BRAKE_DEPLETE" value=".4"/>
         <Setting name="CYCLE_BRAKE_REFILL" value=".125"/>
      </Settings>
<World>
   <Field>
      
      <Axes number="6"/>
      <Spawn x="9" y="14" angle="60"/>
      <Spawn x="17" y="14" angle="180"/>
      <Spawn x="31" y="14" angle="300"/>
      <Wall>
         <Point x="0" y="14"/>
         <Point x="4" y="8"/>
         <Point x="12" y="8"/>
         <Point x="16" y="0"/>
         <Point x="24" y="0"/>
         <Point x="28" y="8"/>
         <Point x="36" y="8"/>
         <Point x="40" y="14"/>
         <Point x="36" y="20"/>
         <Point x="40" y="26"/>
         <Point x="36" y="32"/>
         <Point x="28" y="32"/>
         <Point x="24" y="40"/>
         <Point x="16" y="40"/>
         <Point x="12" y="32"/>
         <Point x="4" y="32"/>
         <Point x="0" y="26"/>
         <Point x="4" y="20"/>
         <Point x="0" y="14"/>
      </Wall>
      <Wall>
         <Point x="12" y="8"/>
         <Point x="14" y="12"/>
      </Wall>
      <Wall>
         <Point x="28" y="8"/>
         <Point x="26" y="12"/>
      </Wall>
      <Wall>
         <Point x="28" y="32"/>
         <Point x="26" y="28"/>
      </Wall>
      <Wall>
         <Point x="12" y="32"/>
         <Point x="14" y="28"/>
      </Wall>
      <Wall>
         <Point x="4" y="20"/>
         <Point x="8" y="20"/>
      </Wall>
      <Wall>
         <Point x="36" y="20"/>
         <Point x="32" y="20"/>
      </Wall>
      <Zone effect="fortress">
         <ShapeCircle radius="3">
            <Point x="8" y="14" />
         </ShapeCircle>
      </Zone>
      <Zone effect="fortress">
         <ShapeCircle radius="3">
            <Point x="32" y="14" />
         </ShapeCircle>
      </Zone>
      <Zone effect="fortress">
         <ShapeCircle radius="3">
            <Point x="20" y="32" />
         </ShapeCircle>
      </Zone>
      <Zone effect="death">
         <ShapeCircle radius="2" growth=".3">
            <Point x="20" y="20" />
         </ShapeCircle>
      </Zone>
   </Field>
</World>
</Map>
</Resource>
Blazing Pheonix
On Lightcycle Grid
Posts: 10
Joined: Mon Mar 02, 2009 1:50 am

Re: Server Upload Error

Post by Blazing Pheonix »

That helps, I think just one more step. I saved it under

C:\Documents and Settings\Cody Goldman\Application Data\Armagetron\resource\Vengence\HexaTRON

The map version was 1 the category was HexaTRON. I saved the map as HexMexTest

I go to my local game

Get to the Con:

Typed " MAP_FILE Vengence\HexaTRON\HexMexTest-1.aamap.xml " I also tried " MAP_FILE Vengence\HexaTRON/HexMexTest-1.aamap.xml "

but i get

ERROR: ctxt is NULL

:mrgreen: Thanks for the help everyone
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Re: Server Upload Error

Post by DDMJ »

Your slashes are going the wrong way! Do:

Code: Select all

MAP_FILE Vengence/HexaTRON/HexMexTest-1.aamap.xml
Also, TEAMNAME_1 should be TEAM_NAME_1, same with TEAMNAME 2 & 3.
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: Server Upload Error

Post by compguygene »

Just to inform you better about the slashes.
Windows is the only operating system that uses backslashes "\" as a separator. All flavors or unix, and the internet, which was based on unix servers originally, use a forward slash "/". That is why you use a forward slash for everything, except Windoze.
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
Blazing Pheonix
On Lightcycle Grid
Posts: 10
Joined: Mon Mar 02, 2009 1:50 am

Re: Server Upload Error

Post by Blazing Pheonix »

Image

My map was a bit too small
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1967
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Server Upload Error

Post by kyle »

SP_SIZE_FACTOR
and SIZE_FACTOR

or use http://wrtlprnft.ath.cx/python/maptrans ... ptransform
Image
User avatar
sinewav
Graphic Artist
Posts: 6479
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Server Upload Error

Post by sinewav »

Blazing Pheonix wrote:My map was a bit too small
Hahahaha! I saw that when I tested it on my machine. That's a hilarious screenshot.
Blazing Pheonix
On Lightcycle Grid
Posts: 10
Joined: Mon Mar 02, 2009 1:50 am

Re: Server Upload Error

Post by Blazing Pheonix »

Ok, Its working for me now :D
Post Reply