Conquer Club

XML Question: Are overrides transitive?

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.

XML Question: Are overrides transitive?

Postby ender516 on Sat Jul 03, 2010 10:11 pm

If I want to set up a chain of overriding continents, such that A overrides B, which overrides C, which overrides D, can I simply put the one override in each continent, or does A have to override B and C and D, while B overrides C and D, and C overrides D?
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: XML Question: Are overrides transitive?

Postby natty dread on Sat Jul 03, 2010 10:19 pm

No if A is overridden by B then C doesn't have to override A and B, C can only override B and A gets overridden on account of being overridden by B.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: XML Question: Are overrides transitive?

Postby ender516 on Sun Jul 04, 2010 12:46 am

Great, thanks, that should make things shorter.
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: XML Question: Are overrides transitive?

Postby yeti_c on Sun Jul 04, 2010 12:59 pm

No that's wrong.

A Overrides B - B might not necessarily be a sub continent of A - thus the B to override C will not happen.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: XML Question: Are overrides transitive?

Postby ender516 on Sun Jul 04, 2010 1:19 pm

yeti_c wrote:No that's wrong.

A Overrides B - B might not necessarily be a sub continent of A - thus the B to override C will not happen.

C.

Okay, that's fair. A player can hold A and override B, but if she doesn't hold B, then C won't be overridden, simply by holding A. In my case, I'm setting up bonuses on Napoleonic Europe 1812, with a series of continents which all have the same set of territories (land battle sites), but progressively larger <required/> values. So if I have all 19 battle sites, I certainly have 17, and 15, and 13, etc. So my chain of overrides should work as planned. Thanks, guys.
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: XML Question: Are overrides transitive?

Postby natty dread on Sun Jul 04, 2010 2:31 pm

Yeah I was assuming that B was part of A, so that if you were holding A you would also be holding B.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: XML Question: Are overrides transitive?

Postby yeti_c on Sun Jul 04, 2010 2:40 pm

natty_dread wrote:Yeah I was assuming that B was part of A, so that if you were holding A you would also be holding B.


Indeed - but that wasn't the question.

For a thorough examination of how overrides work - take a look at the Poker XML.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: XML Question: Are overrides transitive?

Postby ender516 on Sun Jul 04, 2010 3:11 pm

Thanks, yeti_c. I was trying to think which map might have some clever XML, and I forgot about Poker. I have been meaning to grab a copy of the XML of every map, just to study, but my link has been so flaky lately, I haven't bothered trying to start all those downloads.
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: XML Question: Are overrides transitive?

Postby ManBungalow on Sun Jul 04, 2010 3:39 pm

It would be really nice if we could set these override chains out as so:

<continent>
<reinforcements>
</reinforcements>
</continent>

I guess it's not neccesary, but it would cut around 8000 lines off of the Clandemonium XML. Maybe we should submit a suggestion for this.

ender516 wrote:I have been meaning to grab a copy of the XML of every map, just to study, but my link has been so flaky lately, I haven't bothered trying to start all those downloads.

The word 'downloads' caught me here, are you accessing them from http://www.conquerclub.com/maps or downloading each one from wherever the creator stored it...?
Image
Colonel ManBungalow
 
Posts: 3431
Joined: Sun Jan 13, 2008 7:02 am
Location: On a giant rock orbiting a star somewhere

Re: XML Question: Are overrides transitive?

Postby ender516 on Sun Jul 04, 2010 6:49 pm

ManBungalow wrote:It would be really nice if we could set these override chains out as so:

<continent>
<reinforcements>
</reinforcements>
</continent>

I guess it's not neccesary, but it would cut around 8000 lines off of the Clandemonium XML. Maybe we should submit a suggestion for this.

There is a special topic in Foundry Discussions, I think, for XML Suggestions, or you could post one to the general Suggestions forum. If you don't, I will (eventually...).
ManBungalow wrote:
ender516 wrote:I have been meaning to grab a copy of the XML of every map, just to study, but my link has been so flaky lately, I haven't bothered trying to start all those downloads.

The word 'downloads' caught me here, are you accessing them from http://www.conquerclub.com/maps or downloading each one from wherever the creator stored it...?

Oh, from http://www.conquerclub.com/maps, for sure. That way, I know I am getting the version that is live. I just figured I would "Save Link As..." on each one, then they show up in the Downloads window of Firefox. Once I have them on my disk, I can explore them with XEmacs and the Cygwin utilities, so it's almost like working on a real computer (damn you, Bill Gates!).
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: XML Question: Are overrides transitive?

Postby yeti_c on Mon Jul 05, 2010 12:53 pm

ManBungalow wrote:It would be really nice if we could set these override chains out as so:

<continent>
<reinforcements>
</reinforcements>
</continent>

I guess it's not neccesary, but it would cut around 8000 lines off of the Clandemonium XML. Maybe we should submit a suggestion for this.

ender516 wrote:I have been meaning to grab a copy of the XML of every map, just to study, but my link has been so flaky lately, I haven't bothered trying to start all those downloads.

The word 'downloads' caught me here, are you accessing them from http://www.conquerclub.com/maps or downloading each one from wherever the creator stored it...?


Not quite sure what you're suggesting here...

Remember any new change to the XML can't break the current existing XML that is out there.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: XML Question: Are overrides transitive?

Postby ender516 on Mon Jul 05, 2010 9:44 pm

I think ManBungalow is suggesting that the bonus value for a continent could be calculated in a way similar to the way reinforcements are calculated, with a min, max, and divisor.
User avatar
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: XML Question: Are overrides transitive?

Postby natty dread on Tue Jul 06, 2010 4:12 am

ender516 wrote:I think ManBungalow is suggesting that the bonus value for a continent could be calculated in a way similar to the way reinforcements are calculated, with a min, max, and divisor.


That would be fine if it could be coded so that it wouldn't replace the old bonus system. That way old maps won't suddenly stop working.

On the other hand, I would prefer an XML update that would actually give us new features to play with. But if this could be embedded to another bigger update then I wouldn't complain.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked


Return to Foundry Discussions

Who is online

Users browsing this forum: No registered users