XML Questions

How to make a map. Official Handbook, Guides, Tutorials and more...

Moderators: Cartographers, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

XML Questions

Postby QoH on Sun Sep 04, 2011 1:43 pm

<questions>

Hey everyone:

I have a few quick questions.

1. I've written the XML in Pages, the Mac version of Word. What do I need to do to make it into a proper XML file?
2. How do I write how many territories people get based on territory count?
3. How do I figure out what coordinates to put for the numbers? Is there a tool I can use to do this for me?
4. How do I use Chipv's XML thing? Anytime I try and put my file in and load it, it always said "Invalid XML File"

Thanks, Q

</questions>
Image
Please don't invite me to any pickup games. I will decline the invite.
User avatar
Major QoH
 
Posts: 1835
Joined: Fri Aug 20, 2010 12:37 pm
Medals: 78
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (9) General Achievement (7) Clan Achievement (10)
Training Achievement (1) Tournament Contribution (7)

Re: XML Questions

Postby ManBungalow on Sun Sep 04, 2011 3:02 pm

1) Change the filename extension to .xml
When I was developing the Clandemonium XML, I had a giant notepad document and when I wanted to save it, I'd type "clandemonium.xml" in the save name. If I just put "clandemonium", it would save it as "clandemonium.txt".
I assume the process on your OS is similar. These files don't seem to take up much space, either.

2) Go look at the Antarctica XML file: http://www.conquerclub.com/maps/Antarctica.xml
Right near the top of the document it has a whole section on <positions>, which outlines the maximum number of the listed positions a player can start with.
Moreover, if you go play King's Court in a 1 vs 1 game, you'll only start with 2 castles, despite there being 8 castles available. That's because the XML says <positions max="2">.
If you have 8 start positions and you put <positions max="4">, then play an 8-player game, each player will start with 1 position, simply enough.
However, you'll want to make sure all of your non-starting regions has a neutral tag in it as so:
<neutral>3</neutral>.
That way it won't be given to any player in the drop.

3) See 4).

4) http://chipv.byethost13.com/ <- chipv's XML Wizard is what you want. Assuming the solution for 1) worked out alright, you can plug the XML and images into the software and work out the coordinates as you go along. I don't know how to explain the Wizard any better than that, but you can ask questions all over the place (even in this thread :-$ ).


I hope that answered your questions properly. If in doubt, ask away or check the XML of some existing maps which you know have the features you want: http://www.conquerclub.com/maps/
Image
User avatar
Colonel ManBungalow
 
Posts: 3247
Joined: Sun Jan 13, 2008 7:02 am
Location: On a giant rock orbiting a star somewhere
Medals: 84
Standard Achievement (4) Doubles Achievement (4) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (4) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (4) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Battle Royale Achievement (1) Ratings Achievement (4) Tournament Achievement (2)
General Achievement (10) Clan Achievement (12) Tournament Contribution (3) General Contribution (6)

Re: XML Questions

Postby QoH on Sun Sep 04, 2011 3:05 pm

I still don't understand how to name how many territories per player per game type...
Image
Please don't invite me to any pickup games. I will decline the invite.
User avatar
Major QoH
 
Posts: 1835
Joined: Fri Aug 20, 2010 12:37 pm
Medals: 78
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (9) General Achievement (7) Clan Achievement (10)
Training Achievement (1) Tournament Contribution (7)

Re: XML Questions

Postby QoH on Sun Sep 04, 2011 4:26 pm

Update: Pages doesn't let you save it as .xml, so I copied everything to Text Edit (The Mac version of Notepad I assume) and saved it as an XML file. All good until here.

I opened up Chipv's XML Tool, and I hit browse, and load file (I made sure I selected the right one). I get an error that says my file is too big.

Anyone have any ideas as to why this is happening?
Image
Please don't invite me to any pickup games. I will decline the invite.
User avatar
Major QoH
 
Posts: 1835
Joined: Fri Aug 20, 2010 12:37 pm
Medals: 78
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (9) General Achievement (7) Clan Achievement (10)
Training Achievement (1) Tournament Contribution (7)

Re: XML Questions

Postby Victor Sullivan on Sun Sep 04, 2011 4:37 pm

QoH wrote:I still don't understand how to name how many territories per player per game type...

Just take the number of playable regions and divide that by the number of players (with the exception of 2-player games, which is the same as a 3-player game, since 1/3 of the map is dropped neutral). Any remainder should be dropped, as the extra territories would start neutral 3.


QoH wrote:Update: Pages doesn't let you save it as .xml, so I copied everything to Text Edit (The Mac version of Notepad I assume) and saved it as an XML file. All good until here.

I opened up Chipv's XML Tool, and I hit browse, and load file (I made sure I selected the right one). I get an error that says my file is too big.

Anyone have any ideas as to why this is happening?

How large is the file?

-Sully
User avatar
Corporal Victor Sullivan
 
Posts: 7197
Joined: Mon Feb 08, 2010 8:17 pm
Location: Columbus, OH
Medals: 45
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Speed Achievement (2) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (1) Ratings Achievement (1)
General Achievement (9) Map Contribution (4) Tournament Contribution (1) General Contribution (6)

Re: XML Questions

Postby QoH on Sun Sep 04, 2011 4:42 pm

I know how to CALCULATE how many territories... I don't know how to WRITE it in the XML file.

It's 247 KB... about 25 pages in a Pages Document.
Image
Please don't invite me to any pickup games. I will decline the invite.
User avatar
Major QoH
 
Posts: 1835
Joined: Fri Aug 20, 2010 12:37 pm
Medals: 78
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (9) General Achievement (7) Clan Achievement (10)
Training Achievement (1) Tournament Contribution (7)

Re: XML Questions

Postby Victor Sullivan on Sun Sep 04, 2011 5:29 pm

QoH wrote:I know how to CALCULATE how many territories... I don't know how to WRITE it in the XML file.

You don't need to.


QoH wrote:It's 247 KB... about 25 pages in a Pages Document.

Could you upload the file?

-Sully
User avatar
Corporal Victor Sullivan
 
Posts: 7197
Joined: Mon Feb 08, 2010 8:17 pm
Location: Columbus, OH
Medals: 45
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Speed Achievement (2) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (1) Ratings Achievement (1)
General Achievement (9) Map Contribution (4) Tournament Contribution (1) General Contribution (6)

Re: XML Questions

Postby QoH on Sun Sep 04, 2011 6:05 pm

Upload it to where?
Image
Please don't invite me to any pickup games. I will decline the invite.
User avatar
Major QoH
 
Posts: 1835
Joined: Fri Aug 20, 2010 12:37 pm
Medals: 78
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (9) General Achievement (7) Clan Achievement (10)
Training Achievement (1) Tournament Contribution (7)

Re: XML Questions

Postby DiM on Sun Sep 04, 2011 6:22 pm

“In the beginning God said, the four-dimensional divergence of an antisymmetric, second rank tensor equals zero, and there was light, and it was good. And on the seventh day he rested.”- Michio Kaku
Image
User avatar
Major DiM
 
Posts: 10387
Joined: Wed Feb 14, 2007 6:20 pm
Location: making maps for scooby snacks
Medals: 45
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Terminator Achievement (2) Assassin Achievement (2)
Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (1)
Cross-Map Achievement (2) Ratings Achievement (3) Tournament Achievement (4) General Achievement (4) Map Contribution (10)
Tournament Contribution (4) General Contribution (3)

Re: XML Questions

Postby QoH on Sun Sep 04, 2011 7:29 pm

http://h1.ripway.com/QoH/Denmark%20XML.xml

It shows up funny though... Not the way it is in Text Edit...
Image
Please don't invite me to any pickup games. I will decline the invite.
User avatar
Major QoH
 
Posts: 1835
Joined: Fri Aug 20, 2010 12:37 pm
Medals: 78
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (9) General Achievement (7) Clan Achievement (10)
Training Achievement (1) Tournament Contribution (7)

Re: XML Questions

Postby isaiah40 on Sun Sep 04, 2011 8:15 pm

QoH wrote:http://h1.ripway.com/QoH/Denmark%20XML.xml

It shows up funny though... Not the way it is in Text Edit...


I wouldn't worry about the XML right now until this gets into Final Forge. Gameplay and graphics still need to be work out, and there is sure to be changes to the gameplay between now and then.
ImageImage
show: High Score
User avatar
Lieutenant isaiah40
 
Posts: 3957
Joined: Mon Aug 27, 2007 7:14 pm
Location: To be absent from the body is to be present with Christ
Medals: 36
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (1)
Assassin Achievement (2) Freestyle Achievement (2) Fog of War Achievement (2) Speed Achievement (3) Teammate Achievement (1)
Cross-Map Achievement (2) Ratings Achievement (2) General Achievement (4) Map Contribution (5) General Contribution (6)

Re: XML Questions

Postby QoH on Sun Sep 04, 2011 8:45 pm

I did all of that and it's going to be changed???

Help!
Image
Please don't invite me to any pickup games. I will decline the invite.
User avatar
Major QoH
 
Posts: 1835
Joined: Fri Aug 20, 2010 12:37 pm
Medals: 78
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (9) General Achievement (7) Clan Achievement (10)
Training Achievement (1) Tournament Contribution (7)

Re: XML Questions

Postby blakebowling on Sun Sep 04, 2011 9:04 pm

Yes.

Since you didnt' do the xml in a plain text editor, it ads crap tags around what you've written. As that's the raw source of the file.

You'll most likely need to do it again, but there could be ways to salvage it.
12:39:59 AM rdsrds2120: sorry, I had a lot of lasagna tonight
12:40:06 AM rdsrds2120: I'm pretty out of it. CRAAZZYYY NIGHT
12:31:04 * Metsfanmax quit (kicked from Social by Metsfanmax - reason: haha gotcha now)
12:59:32 * #1_stunna gropes blakebowling
Cadet blakebowling
Operations Manager
Operations Manager
 
Posts: 4998
Joined: Wed Jan 23, 2008 12:09 pm
Location: 127.0.0.1
Medals: 41
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (3) Fog of War Achievement (3) Speed Achievement (3)
Teammate Achievement (1) Random Map Achievement (1) Ratings Achievement (3) Tournament Achievement (1) General Achievement (3)
Tournament Contribution (3) General Contribution (10)

Re: XML Questions

Postby QoH on Sun Sep 04, 2011 9:06 pm

What do you mean I didn't do it in a plain text editor?
Image
Please don't invite me to any pickup games. I will decline the invite.
User avatar
Major QoH
 
Posts: 1835
Joined: Fri Aug 20, 2010 12:37 pm
Medals: 78
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (9) General Achievement (7) Clan Achievement (10)
Training Achievement (1) Tournament Contribution (7)

Re: XML Questions

Postby blakebowling on Sun Sep 04, 2011 9:24 pm

Pages/Text Edit aren't plain text editors, they're document editors. So they put in additional tags for the purpose of formatting documents.

Follow the instructions here to make Text Edit a plain text editor.
12:39:59 AM rdsrds2120: sorry, I had a lot of lasagna tonight
12:40:06 AM rdsrds2120: I'm pretty out of it. CRAAZZYYY NIGHT
12:31:04 * Metsfanmax quit (kicked from Social by Metsfanmax - reason: haha gotcha now)
12:59:32 * #1_stunna gropes blakebowling
Cadet blakebowling
Operations Manager
Operations Manager
 
Posts: 4998
Joined: Wed Jan 23, 2008 12:09 pm
Location: 127.0.0.1
Medals: 41
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (3) Fog of War Achievement (3) Speed Achievement (3)
Teammate Achievement (1) Random Map Achievement (1) Ratings Achievement (3) Tournament Achievement (1) General Achievement (3)
Tournament Contribution (3) General Contribution (10)

Next

Return to Tools & Guides

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Login