New xml questions.

Topics that are not maps. Discuss general map making concepts, techniques, contests, etc, here.

Moderators: Cartographers, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

New xml questions.

Postby koontz1973 on Tue Aug 23, 2011 12:42 am

A couple of xml questions.

Now that I have got the map into the final forge, xml needs to get done. I am going to use chipv online xml maker.

1.On the map in each region/iButho (I believe that these need to be programmed as continents), I have a chieftain that needs to be held to get the bonus. The bonus is hold 2 territs in the region and get +2, hold 4=+4, so on and so on. Using the above, how do I get this into the xml?

2.The territs inside the 150 yard line lose 1 territ per round. How does this get programmed in as well?

If this cannot be done in the above program, can you point me towards an xml that has been written with these in so I can study it.

Thanks.
Last edited by koontz1973 on Thu Aug 25, 2011 8:08 am, edited 1 time in total.
Image
User avatar
Sergeant 1st Class koontz1973
 
Posts: 7538
Joined: Thu Jan 01, 2009 10:57 am
Medals: 117
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (2)
Ratings Achievement (4) Tournament Achievement (10) General Achievement (13) Clan Achievement (5) Map Contribution (12)
Tournament Contribution (31) General Contribution (10)

Re: xml time (help questions)

Postby natty dread on Tue Aug 23, 2011 12:49 am

What time is it? XML time!

koontz1973 wrote:1.On the map in each region/iButho (I believe that these need to be programmed as continents), I have a chieftain that needs to be held to get the bonus. The bonus is hold 2 territs in the region and get +2, hold 4=+4, so on and so on. Using the above, how do I get this into the xml?


You need somewhat complicated continents to accomplish this.

I suggest you take a look at my Korea map's XML. Load it in the XML Wizard maybe. There's a pretty analoguous bonus scheme there with the capitals (you need to hold a capital to get a bonus for each kingdom's territories) so when you figure that out, you should be able to do the same for your map.

http://www.fileden.com/files/2010/2/7/2 ... korea7.xml

Basically, you have the continents with each having "1 x territory", "2 x territories" and each giving a 0 bonus. Each contain all the territories of a kingdom, and a <required>-tag corresponding to the number of territories. Then you have continents "1 x territory & y", "2 x territories & y" which give a bonus. These also have <override> tags so that each incremental bonus overrides the last one. "1 x territory & y" contains the continent "1 x territory" and the territory "y", with no required tags...

koontz1973 wrote:2.The territs inside the 150 yard line lose 1 territ per round. How does this get programmed in as well?


Autodeploy with negative value.

For example, look at pretty much any territory on my Antarctica map... here's the XML:

download/file.php?id=142
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 13324
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked
Medals: 49
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (3) General Achievement (12) Map Contribution (12) General Contribution (7)

Re: xml time (help questions)

Postby koontz1973 on Tue Aug 23, 2011 1:28 am

Thanks natty.

The Antartica map looks pretty straight forward. Figured out the most things but how the hell did you come up with the 3 Kingdoms xml. That is going to take a while to study.
Image
User avatar
Sergeant 1st Class koontz1973
 
Posts: 7538
Joined: Thu Jan 01, 2009 10:57 am
Medals: 117
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (2)
Ratings Achievement (4) Tournament Achievement (10) General Achievement (13) Clan Achievement (5) Map Contribution (12)
Tournament Contribution (31) General Contribution (10)

Re: xml time (help questions)

Postby natty dread on Tue Aug 23, 2011 1:46 am

koontz1973 wrote:The Antartica map looks pretty straight forward. Figured out the most things but how the hell did you come up with the 3 Kingdoms xml. That is going to take a while to study.


I created the first continents of each series with the XML wizard, then loaded the XML to notepad and duplicated each continent as needed and just edited the numbers for each. Then checked for errors in the wizard.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 13324
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked
Medals: 49
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (3) General Achievement (12) Map Contribution (12) General Contribution (7)

Re: xml time (help questions)

Postby koontz1973 on Tue Aug 23, 2011 2:50 am

From what I gather with with the 3 kingdoms xml, I need to,

1. Set up the chieftains as there own continent with there auto deploy of 2.
2. Set up the each region with its own bonus of 0, structure of required 2, 4, 6, 8 .......
<continent>
3. Then set up the bonus requiring both.

So it should look like this.

<continent>
<name>Mpande</name>
<bonus>2</bonus> (this is the chieftains auto deploy bonus)
<components>
<territory>Mpande</territory>
</components>
</continent>
<continent>
<name>Mpande2</name>
<bonus>0</bonus>
<components>
<territory>Siphelele</territory>
<territory>Sifso</territory>
<territory>Kuhlek</territory>
<territory>Nkosin</territory>
</components>
<required>2</required>
</continent>
<continent>
<name>Mpande4</name>
<bonus>0</bonus>
<components>
<territory>Siphelele</territory>
<territory>Sifso</territory>
<territory>Kuhlek</territory>
<territory>Nkosin</territory>
</components>
<required>4</required>
</continent>
<continent>
<name>2 Mpande Territories & Mpande</name>
<bonus>2</bonus>
<components>
<territory>Mpande</territory>
<continent>Mpande2</continent>
</components>
</continent>
<continent>
<name>4 Mpande Territories & Mpande</name>
<bonus>4</bonus>
<components>
<territory>Mpande</territory>
<continent>Mpande4</continent>
</components>
<overrides>
<override>Mpande2</override>
</overrides>
</continent>
Image
User avatar
Sergeant 1st Class koontz1973
 
Posts: 7538
Joined: Thu Jan 01, 2009 10:57 am
Medals: 117
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (2)
Ratings Achievement (4) Tournament Achievement (10) General Achievement (13) Clan Achievement (5) Map Contribution (12)
Tournament Contribution (31) General Contribution (10)

Re: xml time (help questions)

Postby natty dread on Tue Aug 23, 2011 3:03 am

#1 is incorrect. You don't define autodeploys in continents, you do it in the territory tags. Refer to documentation...

So you don't need a continent for the chieftain. You have the chieftain territory, in which you have the <bonus> tag for autodeploy. It's a bit confusing since the <continent>s also use the <bonus> tag, however if you create a continent for only the chieftain and define a bonus there, it won't be an autodeploy, it will be a regularly deployed bonus.

#2 and #3 are correct.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 13324
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked
Medals: 49
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (3) General Achievement (12) Map Contribution (12) General Contribution (7)

Re: xml time (help questions)

Postby koontz1973 on Tue Aug 23, 2011 4:24 am

natty_dread wrote:#1 is incorrect. You don't define autodeploys in continents, you do it in the territory tags. Refer to documentation...

So you don't need a continent for the chieftain. You have the chieftain territory, in which you have the <bonus> tag for autodeploy. It's a bit confusing since the <continent>s also use the <bonus> tag, however if you create a continent for only the chieftain and define a bonus there, it won't be an autodeploy, it will be a regularly deployed bonus.


So I just remove the continent part for the chieftain and that should work.
show: remove this

The territory tags are very close to the end of the xml so do I need to do something before the continent tags for it to be recognised as part of the bonus structure.
Image
User avatar
Sergeant 1st Class koontz1973
 
Posts: 7538
Joined: Thu Jan 01, 2009 10:57 am
Medals: 117
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (2)
Ratings Achievement (4) Tournament Achievement (10) General Achievement (13) Clan Achievement (5) Map Contribution (12)
Tournament Contribution (31) General Contribution (10)

Re: xml time (help questions)

Postby koontz1973 on Thu Aug 25, 2011 8:07 am

New question. Is it possible to programme in 3 different sets of positions.

1. for the territs surrounding my chieftains. Max of 5.
2. for the river warriors so no one starts with a bonus. Max of 3
3. for the 150 yard troops, so all players start with an equal amount losing 1 territ.

This is the last thing I need to solve before running it through the xml checker.
Image
User avatar
Sergeant 1st Class koontz1973
 
Posts: 7538
Joined: Thu Jan 01, 2009 10:57 am
Medals: 117
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (2)
Ratings Achievement (4) Tournament Achievement (10) General Achievement (13) Clan Achievement (5) Map Contribution (12)
Tournament Contribution (31) General Contribution (10)

Re: New xml questions.

Postby koontz1973 on Thu Aug 25, 2011 9:19 am

xmlParseEntityRef: no name

THis came up when I checked the xml. What does it mean?
Image
User avatar
Sergeant 1st Class koontz1973
 
Posts: 7538
Joined: Thu Jan 01, 2009 10:57 am
Medals: 117
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (2)
Ratings Achievement (4) Tournament Achievement (10) General Achievement (13) Clan Achievement (5) Map Contribution (12)
Tournament Contribution (31) General Contribution (10)

Re: xml time (help questions)

Postby Victor Sullivan on Thu Aug 25, 2011 3:49 pm

koontz1973 wrote:New question. Is it possible to programme in 3 different sets of positions.

1. for the territs surrounding my chieftains. Max of 5.
2. for the river warriors so no one starts with a bonus. Max of 3
3. for the 150 yard troops, so all players start with an equal amount losing 1 territ.

This is the last thing I need to solve before running it through the xml checker.

No, you'll have to group things... Hm, I'll ponder on some good groupings.

-Sully
User avatar
Corporal Victor Sullivan
 
Posts: 7175
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: New xml questions.

Postby Victor Sullivan on Thu Aug 25, 2011 3:51 pm

koontz1973 wrote:xmlParseEntityRef: no name

THis came up when I checked the xml. What does it mean?

I'd guess something's not named. Could you perhaps PM me what you have so far? I'd be interested in checking your work.

-Sully
User avatar
Corporal Victor Sullivan
 
Posts: 7175
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: New xml questions.

Postby cairnswk on Thu Aug 25, 2011 4:00 pm

Victor Sullivan wrote:
koontz1973 wrote:xmlParseEntityRef: no name

THis came up when I checked the xml. What does it mean?

I'd guess something's not named. Could you perhaps PM me what you have so far? I'd be interested in checking your work.

-Sully

Sully, i sorted this one for koontz1973....the XML Wizard does not like ampersands.
User avatar
Private cairnswk
 
Posts: 11497
Joined: Sat Feb 03, 2007 8:32 pm
Medals: 51
Standard Achievement (2) Doubles Achievement (1) Fog of War Achievement (1) Speed Achievement (1) Teammate Achievement (1)
Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (2) Map Contribution (36) General Contribution (3)

Re: New xml questions.

Postby Victor Sullivan on Thu Aug 25, 2011 8:00 pm

cairnswk wrote:
Victor Sullivan wrote:
koontz1973 wrote:xmlParseEntityRef: no name

THis came up when I checked the xml. What does it mean?

I'd guess something's not named. Could you perhaps PM me what you have so far? I'd be interested in checking your work.

-Sully

Sully, i sorted this one for koontz1973....the XML Wizard does not like ampersands.

Ah, I see.

-Sully
User avatar
Corporal Victor Sullivan
 
Posts: 7175
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: New xml questions.

Postby ender516 on Thu Aug 25, 2011 11:30 pm

XML in general is very particular about ampersands. I did think, though, that the Wizard had been punched up to cope with ampersands typed into names.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: New xml questions.

Postby koontz1973 on Fri Aug 26, 2011 1:32 am

All finished now and up in the correct place for inspection. Thanks to everyone for the help especially cairnswk who took a look at it and natty_dread for allowing me to copy his bonus formula. =D> What a b***h that was to do. Next map, simpler. :D
Image
User avatar
Sergeant 1st Class koontz1973
 
Posts: 7538
Joined: Thu Jan 01, 2009 10:57 am
Medals: 117
Standard Achievement (4) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Teammate Achievement (1) Random Map Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (2)
Ratings Achievement (4) Tournament Achievement (10) General Achievement (13) Clan Achievement (5) Map Contribution (12)
Tournament Contribution (31) General Contribution (10)


Return to Foundry Discussions

Who is online

Users browsing this forum: No registered users

cron
Login