There has been a fair bit of discussion (mostly in my map thread) about the inner workings of the Starting Position XML tags, which has for the most part left me a little bit bewildered...

In my head I have an idea for a map that makes use of starting positions and an objective.I wanted to have 8 start positions, but have them so that only 2 of them would be handed out in a 2-player game, and so on.Additionally, I wanted to see if a particular start position could be used in every game (assigned to a player at random), with as many of the other seven given to the other players as necessary?

I have a feeling this isn't currently possible...

PB: 2661 | He's blue...If he were green he would die | No mod would be stupid enough to do that

MrBenn wrote:There has been a fair bit of discussion (mostly in my map thread) about the inner workings of the Starting Position XML tags, which has for the most part left me a little bit bewildered...

I'm still sorting out the tag myself, but here's what I guess... yeti can set me straight if I'm off...

MrBenn wrote:I wanted to have 8 start positions, but have them so that only 2 of them would be handed out in a 2-player game, and so on.

I think that this isn't possible... with 8 start positions each player in 1v1 will receive four. You could code it to have only two start positions, in which case the start positions will be ignored in 3+ player games.

MrBenn wrote:Additionally, I wanted to see if a particular start position could be used in every game (assigned to a player at random), with as many of the other seven given to the other players as necessary?

Giving preference to one start position? Also not possible (I think). They're handed out randomly - in a five player game (for example) with eight start positions there is no way to control which positions are or are not assigned.

But I can see where you're going with this. If you had a Mars Attacks! map for example it would be the case that you want one player to start as the aliens and everybody else is on earth fighting each other as well as fighting off the alien invaders - this would far less fun if the aliens were split up or started neutral.

Basically, each starting position is treated like a single territory and is randomly asigned to a player. So you can have as many starting position as you like but they will be randomly (and evenly) divided with remainder being ignored and those territorties that were in the starting position tags will be randomly asigned to players by default.

So lets take an example...

12 starting positions, each starting position has 3 terrs.

In a 6 player game each player is randomly asigned 2 starting postions, fine.

In an 8 player game each player is randomly asigned 1 starting position with 4 left over. Those 4 positions add up to 12 territories. Because the 4 leftover positions cant be evenly handed out to 8 players (you can't get half a starting position) those 12 territories are randomly asigned to players like a dafault game on classic.

The <position> groups are divided equally amongst the players, with each player getting all of the territories in the <position(s)> they have been allocated. Any remaining territories in left-over <position> tags are divided equally (with 1/3 neutral in 2-player games).

Territories in <position> tags can be dealt to players even when the underlying territory has a <neutral> tag

Any territories not in <position> tags, and that do not have <neutral> starts, are divided equally amongst players (with 1/3 neutral in 2-player games)

If there are more players than starting positions, the <position> tags are ignored

It is not possible to specify which player will get which <position>

It is not possible to specify a <position> that will be dealt out in every game

It is not possible to limit the number of positions to the number of players (ie. the game engine will distribute 8 positions evenly amongst 4 players, rather than allocate 1 each and have 4 positions starting neutral)

PB: 2661 | He's blue...If he were green he would die | No mod would be stupid enough to do that

MrBenn wrote:My understanding of how the start positions work is as follows:

Each <position> can contain single or multiple territories.

The <position> groups are divided equally amongst the players, with each player getting all of the territories in the <position(s)> they have been allocated. Any remaining territories in left-over <position> tags are divided equally (with 1/3 neutral in 2-player games).

Territories in <position> tags can be dealt to players even when the underlying territory has a <neutral> tag

Any territories not in <position> tags, and that do not have <neutral> starts, are divided equally amongst players (with 1/3 neutral in 2-player games)

If there are more players than starting positions, the <position> tags are ignored

It is not possible to specify which player will get which <position>

It is not possible to specify a <position> that will be dealt out in every game

It is not possible to limit the number of positions to the number of players (ie. the game engine will distribute 8 positions evenly amongst 4 players, rather than allocate 1 each and have 4 positions starting neutral)

Correct - also note that with the positions tags - you can set the amount of armies those territories start with too.

I'd like to see an option on D-Day omaha beach, where the starting positions (in dubs, trips and quads) where team 1 are the Germans (in the bunkers and fields) and team 2 are the Americans (boats and beach) to try and recreate a more accurate battle.

the same application would be nice for all WW2 themed maps. It would help people understand what side started where in the beginning of a war.

Pedronicus wrote:I'd like to see an option on D-Day omaha beach, where the starting positions (in dubs, trips and quads) where team 1 are the Germans (in the bunkers and fields) and team 2 are the Americans (boats and beach) to try and recreate a more accurate battle.

the same application would be nice for all WW2 themed maps. It would help people understand what side started where in the beginning of a war.

Unfortunatly we can't really specify team starting positions with the current abilities of the tag.

MrBenn wrote:My understanding of how the start positions work is as follows:

Each <position> can contain single or multiple territories.

The <position> groups are divided equally amongst the players, with each player getting all of the territories in the <position(s)> they have been allocated. Any remaining territories in left-over <position> tags are divided equally (with 1/3 neutral in 2-player games).

Territories in <position> tags can be dealt to players even when the underlying territory has a <neutral> tag

Any territories not in <position> tags, and that do not have <neutral> starts, are divided equally amongst players (with 1/3 neutral in 2-player games)

If there are more players than starting positions, the <position> tags are ignored

It is not possible to specify which player will get which <position>

It is not possible to specify a <position> that will be dealt out in every game

It is not possible to limit the number of positions to the number of players (ie. the game engine will distribute 8 positions evenly amongst 4 players, rather than allocate 1 each and have 4 positions starting neutral)

Correct - also note that with the positions tags - you can set the amount of armies those territories start with too.

C.

The thing I'm wondering now, is what would happen if a map had 5 starting positions, with no starting neutrals?In 1v1, the starts are divided into 3 - 1 for each player and 1 for neutral... With 5 starts in a 1v1, each player gets given 1, 1 turns neutral; what happens to the other 2? Are they allocated neutral, or do they get lumped together with the non-designated starts?

PB: 2661 | He's blue...If he were green he would die | No mod would be stupid enough to do that

MrBenn wrote:The thing I'm wondering now, is what would happen if a map had 5 starting positions, with no starting neutrals?In 1v1, the starts are divided into 3 - 1 for each player and 1 for neutral... With 5 starts in a 1v1, each player gets given 1, 1 turns neutral; what happens to the other 2? Are they allocated neutral, or do they get lumped together with the non-designated starts?

They get put in the Non designated starts...

This happened in Das Schloss the first cut - and led to some people getting starts when they shouldn't've...

To combat this then you have to designate the starting positions as neutral X...

So with 5 starting positions in a 1v1, 2 each would be allocated to players, with the third being added to the pot for distribution unless it was a designated neutral. I think I've got it now

So here is my dilema, I think what you are saying here solves my problem. I would like the drop to start out by assigning my <positions> tag territories. and then do the standard random drop of the remaining 16 territories. I do not want the extra territories from the first 8 to be added to the pool of 16 additional drops.

I have 8 wizards (color circles on the above map) I have assigned start positions to and set them to neutral 1.I have 16 monsters (black circles on the above map) that I have not assigned neutrals to.

In a 2 player game- both players would have 4 wizards each.- both players would have 8 monsters each.

In a 3 player game- all players would have 3 wizards each with 2 remainder set to neutral.- all players would have 6 monsters each with 2 remainder set to neutral.

In a 4 player game- all players would have 2 wizards each.- all players would have 4 monsters each.

In a 5 player game- all players would have 1 wizard each with 3 remainder set to neutral.- all players would have 3 monsters each with 1 remainder set to neutral.

In a 6 player game- all players would have 1 wizard each with 2 remainder set to neutral.- all players would have 2 monsters each with 4 remainder set to neutral.

In a 7 player game- all players would have 1 wizard each with 1 remainder set to neutral.- all players would have 2 monsters each with 2 remainder set to neutral.

In a 8 player game- all players would have 1 wizards each.- all players would have 2 monsters each.

- Game engine "counts" the players (A) and the starting positions (B).- B/A = C (and D) ... 8/7 = 7 (and 1)- Where C is the number of starting positions for each player and D is a eventually remainder.- The game engine will sum the remainder with the other territories (E), then the total number will divided among players again.- D+E / A = F (and G) ... (1+16)/7 = 2 (and 3)- F will be the number of territories assigned to a player (with 3 default troops) and G an eventually remainder (3 neutral troops)

It sounds like the <neutral>1</neutral> in my starting territory would change that. And the leftover starting territories would become neutrals and not be added to the general pool for distribution. Is this correct?

Territories - and Starting positions aren't mutually exclusive entities - there fore D cannot be added to E - as D may already part of E.

Say you have a map with 40 territories - 20 of them are neutral territories.

10 of these are starting positions.

Without further info - you cannot work out the starting territory count...

C.

The example he did was use by me to explain him how the starting will work....E is the group of territories to split among players without neutrals and without starting position. ( so is not exactly a part of D). I know, i used a large way to explain him He was just saying that the eventually reminder will be splitted among players with other territories

His problem is about the reminder....he want to know if a starting position could be coded as a neutral if it will be a part of reminder....

example: 8 starting position

8 players --> 1 starting position for each player, no reminder6 players --> 1 starting position for each player, a reminder of 2 territories.

His question:Is possible to set this 2 territories to have them ever neutral if not used as starting positions?

Virtually <neutral> tag is the last one of a single territory so it would be possible doing what dolomite was saying, but i'm not sure at 100%....yeti it's my thought correct?

I do NOT visit this site and I'm NOT Team CC anymore.All PMs are autobinned. If you need to contact me, you should already have a way to do it without using this site.Thanks to those who helped me through the years.