Map file not working =(

Post here if you need help setting up your server, etc.
Post Reply
7Priest7
On Lightcycle Grid
Posts: 14
Joined: Sat Dec 11, 2010 5:26 pm

Map file not working =(

Post by 7Priest7 »

Greetings

After spending so much time creating and attempting to repair this I still fail to see the problem...

Here is the map

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE Resource SYSTEM "map-0.2.8_beta3.dtd">
<Resource type="aamap" name="cross" version="0.1" author="7Priest7@forums" commisioner="GOD" category="cross/polygon/regular">
	<Map version="0.2.8">
		<!-- A Cross Shaped Map -->

		<World>
			<Field>
				<Axes number="4" />

				<Spawn	x="150"	y="50"	xdir="0" ydir="1"	/>
				<Spawn	x="50"	y="150"	xdir="1" ydir="0"	/>
				<Spawn	x="250"	y="150"	xdir="-1" ydir="-0"	/>
				<Spawn	x="150"	y="350"	xdir="-0" ydir="-1"	/>

				<Wall>
					<Point	x="100"	y="0"	/>
					<Point	x="200"	y="0"	/>
					<Point	x="200"	y="100" />
					<Point	x="300"	y="100" />
					<Point	x="300"	y="200" />
					<Point	x="200"	y="200" />
					<Point	x="200"	y="400" />
					<Point	x="100"	y="400" />
					<Point	x="100"	y="200" />
					<Point	x="0"		y="200" />
					<Point	x="0"		y="100" />
					<Point	x="100" 	y="100" />
					<Point	x="100" 	y="0" />
				</Wall>
			</Field>
		</World>
	</Map>
</Resource>
Then the line I use to attempt to call it is
MAP_FILE 7Priest7/cross-0.1.xml(http://www.blessed-armagetron.co.cc/cross-0.1.xml)


Thanks in advance for any effort made to assist me =)
User avatar
sinewav
Graphic Artist
Posts: 6413
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Map file not working =(

Post by sinewav »

:) Hello and welcome to the ArmagetronAd forums.

Map making is a little complicated at first so don't be discouraged. Look over this one more time carefully. I see a few problems with your map, and the way you call it with MAP_FILE...
Your resource tag should have these properties instead:
  • author="7Priest7"
    category="cross">

In your map, remove the @forums. Resource date is case-sensitive too, so keep that in mind. Also, try not to use hyphens and underscores in your map names as this can sometimes be a problem. Also remove "/polygon/regular" from category. Finally, the category commissioner isn't supported in all versions of Arma (I think), so just remove it completely (/me makes a lame joke about god being unnecessary). :P

According to your current MAP_FILE setting, Arma is looking for a map named "cross" in a folder named "7Priest7". This means you've left your category out of the path (which should "cross").


Change this to: MAP_FILE 7Priest7/cross/cross-0.1.xml

And use this:

Code: Select all

<Resource type="aamap" name="cross" version="0.1" author="7priest7" category="cross">
To get this...
Attachments
screenshot_10.png
7Priest7
On Lightcycle Grid
Posts: 14
Joined: Sat Dec 11, 2010 5:26 pm

Re: Map file not working =(

Post by 7Priest7 »

Thanks sinewav for the help! <3
I did what the your post said...

The URL of the XML is http://www.blessed-armagetron.co.cc/7pr ... .aamap.xml
^ Just so I don't have to spam forums with the map code again.

And I changed the call to
MAP_FILE 7priest7/cross/cross-0.1.aamap.xml
RESOURCE_REPOSITORY_SERVER http://www.blessed-armagetron.co.cc/

However when I try to join server...
The server log echos this

Code: Select all

[0] Resource 7priest7/cross/cross-0.1.aamap.xml not found in cache. Downloading it, please be patient...
[0] Downloading http://www.blessed-armagetron.co.cc/7priest7/cross/cross-0.1.aamap.xml ...
[0] ERROR: Return value 403 != 200.
[0] Downloading http://resource.armagetronad.net/resource/7priest7/cross/cross-0.1.aamap.xml ...
[0] ERROR: ctxt is NULL
[0] Map load failure:
[0] The map 7priest7/cross/cross-0.1.aamap.xml could not be loaded or parsed; please check your configuration and the log.
Which is sadly the exact same error it was echoing before I did the above...

Anything else I need to do? (Sorry for being so fail)
User avatar
sinewav
Graphic Artist
Posts: 6413
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Map file not working =(

Post by sinewav »

Hmm, this is a little outside my level of experience. But don't worry, someone will be along shortly to help out.

The Arma server you are running in on this machine (http://www.blessed-armagetron.co.cc/) or are you running the server from your home computer and using the website as a resource repository?
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Re: Map file not working =(

Post by Jonathan »

7Priest7 wrote:[0] Resource 7priest7/cross/cross-0.1.aamap.xml not found in cache. Downloading it, please be patient...
[0] Downloading http://www.blessed-armagetron.co.cc/7pr ... .aamap.xml ...
[0] ERROR: Return value 403 != 200.
Your web server denies Armagetron access because Arma doesn't have a user agent. If I replicate Arma's access I get a 403. If I add a "User-Agent: whatever" header it gives me the file. So fix the server.
ˌɑrməˈɡɛˌtrɑn
7Priest7
On Lightcycle Grid
Posts: 14
Joined: Sat Dec 11, 2010 5:26 pm

Re: Map file not working =(

Post by 7Priest7 »

Jonathan wrote:
7Priest7 wrote:[0] Resource 7priest7/cross/cross-0.1.aamap.xml not found in cache. Downloading it, please be patient...
[0] Downloading http://www.blessed-armagetron.co.cc/7pr ... .aamap.xml ...
[0] ERROR: Return value 403 != 200.
Your web server denies Armagetron access because Arma doesn't have a user agent. If I replicate Arma's access I get a 403. If I add a "User-Agent: whatever" header it gives me the file. So fix the server.
Thanks...
IDK If I can do this on Byet however now I know the problem...
Worse case scenario, I can use "HTTP File Server" on my laptop (which I leave on almost 24/7 anyways) to serve the map file...
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Re: Map file not working =(

Post by Tank Program »

Maybe we should add a user agent to Armagetron?
Image
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: Map file not working =(

Post by AI-team »

Yes and also link the armagetronad:// protocol to Armagetron and make it work on windows ;D
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Map file not working =(

Post by Z-Man »

Tank Program wrote:Maybe we should add a user agent to Armagetron?
How? We're using libcurl, I don't think that has an option for that. If I'm wrong, knock yourself out, shouldn't be too hard. We're only calling it from two places, the resource fetcher and the authentication.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Re: Map file not working =(

Post by Jonathan »

Try CURLOPT_USERAGENT if you feel Arma needs one.
ˌɑrməˈɡɛˌtrɑn
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Re: Map file not working =(

Post by Tank Program »

Hopefully I will remember to do this over Christmas when I've got time. I think it would be complete with how we've used other bits of the HTTP protocol.
Image
Post Reply