Posts: 149
Threads: 2
Joined: Jan 2010
I just did a worldbuilder test of this. It appears to be a bug as I can't imagine why this behaviour would be intentional.
In my worldbuilder I queued multiple warriors and let one build a turn with 4 hammers. Then gave myself hunting, warriors don't convert to spears until the EoT, so I had to manually add a spear to the front of the queue and then whip at the swapping penalty for 2 pop. The spear did not complete the next turn just accumalated hammers at the base rate, the hammers from the whip have simply disappeared.
Whipping functions as normal if the spear is the only thing in the queue, if you leave the warrior in the queue you get this funny behaviour. If you whip the warrior it will complete as a spear but you can only get a maximum of 15 overflow.
Posts: 6,855
Threads: 133
Joined: Mar 2004
Mukha Wrote:I just did a worldbuilder test of this. It appears to be a bug as I can't imagine why this behaviour would be intentional.
This is known behavior (at least I knew of it.) At the end of each turn, the code cycles through the build queue, looking for any obsolete builds and updating them to the next unit. Warrior #1 on top of the queue with the whipped hammers gets changed to a spearman with the hammers intact. Then warrior #2 with 0 hammers invested also gets changed to a spearman, overwriting any other progress on the spear.
The behavior is semi-intentional. The purpose is to avoid a loophole of combining multiple partial unit builds into one unit as soon as a tech is discovered. Pikeman, musketman, longbowman, and maceman all upgrade to rifleman. So you could make partial builds of all four units, having one rifleman instantly on discovering Rifling, and two or three more immediately after via the combined overflow.
I'd call it a bug, that the code should pick the highest hammer investment to auto-upgrade, or at least ignore build orders with 0 hammers invested.
Posts: 149
Threads: 2
Joined: Jan 2010
But what is the reasoning behind the behaviour I noticed in the worldbuilder and that Sandover is complaining about?
A spear was manually added to the front of the queue (0 hammers invested) and then whipped at swapping penalty for 2 pop. The warrior with the partial build was also left in the queue behind the spear. The spear did not complete the turn after just got the normal production for that turn and 2 pop has disappeared without any hammers produced whatsoever.
Posts: 6,855
Threads: 133
Joined: Mar 2004
It's the same code. In your worldbuilder scenario, the first spear basically disappeared. The spearman you are seeing with one turn production invested is actually the warrior from farther down in the queue, which got auto-updated to spearman and overwrote the original spearman.
Posts: 6,126
Threads: 130
Joined: Apr 2006
So ... that sounds like a bug and is grounds for a reload.
I have finally decided to put down some cash and register a website. It is www.ruffhi.com. Now I remain free to move the hosting options without having to change the name of the site.
(October 22nd, 2014, 10:52)Caledorn Wrote: And ruff is officially banned from playing in my games as a reward for ruining my big surprise by posting silly and correct theories in the PB18 tech thread.
Posts: 23,669
Threads: 134
Joined: Jun 2009
+1 to the bug comments.
Current games (All): RtR: PB83
Ended games (Selection): BTS games: PB1, PB3, PBEM2, PBEM4, PBEM5B, PBEM50. RB mod games: PB5, PB15, PB27, PB37, PB42, PB46, PB71 PB80. FFH games: PBEMVII, PBEMXII. Civ 6: PBEM22 PBEM23Games ded lurked: PB18
Posts: 1,311
Threads: 3
Joined: Nov 2009
sunrise089 Wrote:1) You had metal hooked and spears were eligible to build.
Yes.
Quote:2) You had 4pop in some city.
Well yes, ofc.
Quote:3) You 2pop whipped a spear and left the queue alone.
Yes.
Quote:4) You didn't have production automated.
Never have.
Quote:5) The turn rolled, you kept access to metal.
Yes.
Quote:6) No spears were built AND the pop was still gone from the city.
Correct.
Quote:Also, you made sure you didn't have a rally point set somewhere, right?
Never use rally points.
Posts: 1,716
Threads: 10
Joined: Oct 2009
No problems with a reload here.
We don't stop playing because we grow old; we grow old because we stop playing. - George Bernard Shaw
Posts: 6,507
Threads: 63
Joined: Sep 2006
I also support a reload (but don't speak for my team). T-Hawk, what steps are necessary to mitigate as much damage as possible given then steps SSS outlined about?
Posts: 6,855
Threads: 133
Joined: Mar 2004
Make sure there's nothing in the build queue except the topmost (whipped) warrior when the turn rolls over. That build should update to spearman with the hammers intact and complete the spear on the same turn.
If you ultimately want more than one spearman, don't put it in the build queue until after the turn rolls. You'll get overflow onto it after the first spear.
If you are trying to whip a spearman AND have a partially built warrior auto-update to spearman with the hammers intact, that cannot be done as I understand it. You'd be trying to have the game keep track of two separate partially-completed spearmen in the same city, which it does not do.
|