Conquer Club

New xml questions.

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

Moderator: Cartographers

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
Lieutenant koontz1973
 
Posts: 6960
Joined: Thu Jan 01, 2009 10:57 am

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: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

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
Lieutenant koontz1973
 
Posts: 6960
Joined: Thu Jan 01, 2009 10:57 am

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: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

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
Lieutenant koontz1973
 
Posts: 6960
Joined: Thu Jan 01, 2009 10:57 am

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: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

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
Lieutenant koontz1973
 
Posts: 6960
Joined: Thu Jan 01, 2009 10:57 am

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
Lieutenant koontz1973
 
Posts: 6960
Joined: Thu Jan 01, 2009 10:57 am

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
Lieutenant koontz1973
 
Posts: 6960
Joined: Thu Jan 01, 2009 10:57 am

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: 6010
Joined: Mon Feb 08, 2010 8:17 pm
Location: Columbus, OH

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: 6010
Joined: Mon Feb 08, 2010 8:17 pm
Location: Columbus, OH

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.
Image
* Pearl Harbour * Waterloo * Forbidden City * Jamaica * Pot Mosbi
User avatar
Private cairnswk
 
Posts: 11510
Joined: Sat Feb 03, 2007 8:32 pm
Location: Australia

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: 6010
Joined: Mon Feb 08, 2010 8:17 pm
Location: Columbus, OH

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: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

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
Lieutenant koontz1973
 
Posts: 6960
Joined: Thu Jan 01, 2009 10:57 am


Return to Foundry Discussions

Who is online

Users browsing this forum: No registered users