- Various bugfixes
- Fixed mod support for Macedon
Thanks for this update!!! Started new game with Sparta and can confirm that the UA now works! However, still have my doubts on the Hoplite, as in-game he has the promotion Molon Labe: +20% combat strength while defending, but this is different from the description (fights better on attack while with other units, defends better when alone). Is the description outdated?
He should have a Defensive bonus (Molon Labe) when isolated, and an Offensive bonus (Add A Step Forward) when adjacent to another unit - the pedia will show the unit as having Molon Labe because the Hoplite is given the Molon Labe promotion through Unit_FreePromotions and then this is switched through Lua later on.
And yea, I love my fix for Sparta's UA - still proud of myself for thinking of using SetXY to check for a unit spawn![]()
[132818.046] Runtime Error: C:\Users\Gebruiker\Documents\My Games\Sid Meier's Civilization 5\MODS\MC's Greek Civilisation Split (v 2)\Lua\PlotIterators.lua:151: attempt to index local 'pPlot' (a nil value)
; Enables the use of the standard Lua debug library.
EnableLuaDebugLibrary = 1
Code:[132818.046] Runtime Error: C:\Users\Gebruiker\Documents\My Games\Sid Meier's Civilization 5\MODS\MC's Greek Civilisation Split (v 2)\Lua\PlotIterators.lua:151: attempt to index local 'pPlot' (a nil value)
This is probably gonna be relevant...
[EDIT] Can you go into your Config file and set the following to 1
Code:; Enables the use of the standard Lua debug library. EnableLuaDebugLibrary = 1
local unitPromotionSpartanEmoID = GameInfoTypes["PROMOTION_MC_MOLON_LABE"] -- [Dusanlad] names btw
local unitPromotionSpartanFriendsID = GameInfoTypes["PROMOTION_MC_ADD_A_STEP_FORWARD"]
<Row>
<Type>PROMOTION_ADD_A_STEP_FORWARD</Type>
<Description>TXT_KEY_PROMOTION_MC_ADD_A_STEP_FORWARD</Description>
<Help>TXT_KEY_PROMOTION_MC_ADD_A_STEP_FORWARD_HELP</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<CannotBeChosen>true</CannotBeChosen>
<PortraitIndex>59</PortraitIndex>
<LostWithUpgrade>true</LostWithUpgrade>
<OpenAttack>20</OpenAttack>
<RoughAttack>20</RoughAttack>
<IconAtlas>PROMOTION_ATLAS</IconAtlas>
<PediaType>PEDIA_SHARED</PediaType>
<PediaEntry>TXT_KEY_PROMOTION_MC_ADD_A_STEP_FORWARD_HELP</PediaEntry>
</Row>
<Row>
<Type>PROMOTION_MOLON_LABE</Type>
<Description>TXT_KEY_PROMOTION_MC_MOLON_LABE</Description>
<Help>TXT_KEY_PROMOTION_MC_MOLON_LABE_HELP</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<CannotBeChosen>true</CannotBeChosen>
<PortraitIndex>59</PortraitIndex>
<LostWithUpgrade>true</LostWithUpgrade>
<OpenDefense>20</OpenDefense>
<RoughDefense>20</RoughDefense>
<IconAtlas>PROMOTION_ATLAS</IconAtlas>
<PediaType>PEDIA_SHARED</PediaType>
<PediaEntry>TXT_KEY_PROMOTION_MC_MOLON_LABE_HELP</PediaEntry>
</Row>
Welp, I've found the problem
Spoiler :
Code:local unitPromotionSpartanEmoID = GameInfoTypes["PROMOTION_MC_MOLON_LABE"] -- [Dusanlad] names btw local unitPromotionSpartanFriendsID = GameInfoTypes["PROMOTION_MC_ADD_A_STEP_FORWARD"] <Row> <Type>PROMOTION_ADD_A_STEP_FORWARD</Type> <Description>TXT_KEY_PROMOTION_MC_ADD_A_STEP_FORWARD</Description> <Help>TXT_KEY_PROMOTION_MC_ADD_A_STEP_FORWARD_HELP</Help> <Sound>AS2D_IF_LEVELUP</Sound> <CannotBeChosen>true</CannotBeChosen> <PortraitIndex>59</PortraitIndex> <LostWithUpgrade>true</LostWithUpgrade> <OpenAttack>20</OpenAttack> <RoughAttack>20</RoughAttack> <IconAtlas>PROMOTION_ATLAS</IconAtlas> <PediaType>PEDIA_SHARED</PediaType> <PediaEntry>TXT_KEY_PROMOTION_MC_ADD_A_STEP_FORWARD_HELP</PediaEntry> </Row> <Row> <Type>PROMOTION_MOLON_LABE</Type> <Description>TXT_KEY_PROMOTION_MC_MOLON_LABE</Description> <Help>TXT_KEY_PROMOTION_MC_MOLON_LABE_HELP</Help> <Sound>AS2D_IF_LEVELUP</Sound> <CannotBeChosen>true</CannotBeChosen> <PortraitIndex>59</PortraitIndex> <LostWithUpgrade>true</LostWithUpgrade> <OpenDefense>20</OpenDefense> <RoughDefense>20</RoughDefense> <IconAtlas>PROMOTION_ATLAS</IconAtlas> <PediaType>PEDIA_SHARED</PediaType> <PediaEntry>TXT_KEY_PROMOTION_MC_MOLON_LABE_HELP</PediaEntry> </Row>
Out of curiosity and since I'm far from an expert: what is it and is it easily fixable? Thanks for the support by the way!