Looks really cool. Actually I think 2K should incorporate all your functions into the core game!
Just registered to say "Thank you"!
It works fine when i start a new game with the mod, but when i load a saved game (the previously working one) the mod doesn't work anymore. I right click a worker on a city and no menu pops up asking which automation i want them to do.
is the mod compatable with Unofficial Patch and Vanilla Enhanced? In my game workers stop working when enemy is near but right clicking on city does bring up automate menu.
What do I have to edit to start game with right click fortify option off?
You can turn the right-click-fortify off in the Options menu in Diplo Corner, then it will be off for the rest of the game. Is there some specific reason why you want it off at the start?
I know I can turn it off, I just want it to be off when I start a game.
I just checked Unofficial Patch and Vanilla Enhanced. It does modify UnitPanel.lua.
function LoadPropertiesOnStartup()
...
g_LTO_AlertFortify = g_LTO_AlertFortify or (g_LTO_AlertFortify==nil and [COLOR="Red"]false[/COLOR]); -- before this was set to true
...
end
function OnUnitActionClicked( action )
if bOkayToProcess then
if (GameInfoActions[action].SubType == ActionSubTypes.ACTIONSUBTYPE_PROMOTION) then
Events.AudioPlay2DSound("AS2D_INTERFACE_UNIT_PROMOTION");
end
Game.HandleAction( action );
[COLOR="Red"] --XX LightTouch mod XX
LuaEvents.UnitActionButtonClicked( action );
--XX LightTouch mod END XX[/COLOR]
end
end
Open his CiVUP - Civ V Unofficial Patch\Core\Misc UI\UnitPanel.lua, search for function OnUnitActionClicked, add a single line of code
Now workers dont stop when enemy is near but they perform action at beginning of turn no matter what is ticked in options.
It happens to all units
When I select a worker and right click a city, my worker moves towards that city.
EDIT: I found out why this is, I was launching the game from the main menu, not via the mods dialogue.
However now I have Light Touch working, it's preventing me from swapping units.
Any ideas?