Endangered Units and End Turn

EmperorFool

Deity
Joined
Mar 2, 2007
Messages
9,637
Location
Mountain View, California
When you hit the End Turn button and a Worker feels threatened, the game used to select that unit. This no longer happens while the rest of the behavior is the same: the turn doesn't end and a message says that a unit needs orders. You have click the button again to select the unit that needs orders.

Versions: GEM v1.053 and CivUP v34
 
As far as I can see, when a worker is threatened it activates at the start of the turn. I still observe this happening. I don't think there is any different behavior from G&K??
 
The Worker was showing the animation of its current action (Build a Plantation) during the turn. When I clicked the End Turn button the animation ceased, and the button text changed to "Unit Needs Orders", but the Worker didn't get selected as it has up until now.
 
It changed with GEM whereas it works with Vanilla, G&K, and VEM. I did notice that I have two versions of GEM in my MODS folder (only one is active) so let me test again after removing the old one.
 
Unit selection routines like this are done in the game core only Firaxis has access to.

It's almost certainly because of the end-of-turn GEM processing prior to actually processing the next turn, but I have no idea if/how to fix this.
 
I think I managed to fix this problem for civup v37. I had missed part of ActionInfoPanel when converting files from vanilla to G&K. The block of code I overlooked appears to handle unit selection, which used to be in the game core, but Firaxis apparently moved to the moddable lua files. :)
 
Back
Top Bottom