Then it's a bug.
Unit capture also appears to be on with factory capture. I don't know if that should be on, off, or an option.
I am so incredibly excited by this development; I've been holding off on several board ideas until we had this option.
Now to find spare time somewhere...
Edward Nygma wrote:Currently factories do not eliminate players when they capture capitals.
This will be fixed shortly (hopefully early next week).
Will all the rewriting stuff break anything existing? I've seen a few boards in Dev already that are using Factories/Barren settings, and a board or two in Review, do these need to be held-up until the rewrite?
Mine is off the table for the moment, but will return soon. Good question by the way.
I think mine will only work if capitol capture works. I can't forsee any of the current ones breaking with the options available.
There's only three changes and they are technically bug fixes for various edge conditions:
- Factory auto-assign separated from continent checking loop to prevent chaining of auto-assignments
- Factory auto-assign checks for player elimination by capturing their last territory or capturing their last capital
- Negative factories check for player elimination if factory destroys their last unit (or last capital)
Just running some tests on these now.
Awesome tom!
In what order do these things happen? If I have a factory producing +1 and -1 in the same place, which happens first?
It will depend on the order in which the continent records are retrieved from the database so it's not something you can rely on.
Edward Nygma wrote:Awesome tom!
In what order do these things happen? If I have a factory producing +1 and -1 in the same place, which happens first?
It doesn't really matter as long as there are no intervening consequences, does it?
Well it does matter if it's the player's last territory or last capital and the -1 results in them losing that territory if abandon is on and revert to neutral is immediate.
tom wrote:Well it does matter if it's the player's last territory or last capital and the -1 results in them losing that territory if abandon is on and revert to neutral is immediate.
That's my point. Is there a check for those things after each allocation, or are all allocations made (summed in some cases) and then the capital/last territory conditions are checked?
The sequence is:
Sounds good. I thought about the ordering of factory assignments and units placements and it can get really complicated so I think this is a good implementation.
The bottom line is to not have overlapping +/- bonuses to the same factory with capitals as this could lead to undesirable consequences. Said more succinctly, don't make the overlapping factory bonuses too complicated.
Could it possibly order the continents alphabetically so that we can determine the order?
Or how about by continent id so I don't have to name them alphabetically.
But both of those aren't all that easy for players to figure out what they are going to get, especially the continent id. Seems like completely random may be the best way (without the ability to set some trigger/hierarchy).
Still thinking about this...this still is going to not work completely perfect for SG is it? Say you have Territory A, B, and C that then gives Factory D and Territory D, E, F that gives Factory A. If Player A has A/B/C and Player B has D/E/F the end result would be both players get the factories and lose a territory of the continent right? Player A with B/C/D and also Player B with E/F/A?
For the record, I still don't completely understand this stuff, so if I'm way off/just causing noise then feel free to ignore this post! :D
Yertle wrote:But both of those aren't all that easy for players to figure out what they are going to get, especially the continent id. Seems like completely random may be the best way (without the ability to set some trigger/hierarchy).
The idea behind having continents pulled in order is that you can describe the behavior with reliability. With an unknown ordering, there could be an issue that doesn't show up in testing, but comes up with the "random" ordering coming out of the database.
Your scenario with ABCDEF sounds good and doesn't seem to be a problem. You can actually take away a territory, but you didn't have to attack it (sounds like fun).
You can't depend on the continentID renaming static during board copies / imports so I don't thinl it is a good idea to use that - it's also not visible anywhere with the exception of the board export XML.
I've added a sort by continent name to the continent data retrieval - this will go out in tomorrow's update.