This is handled by the option that was enabled by default in VP. I only added mentioning of that in the text.Using v9 updated from v8 and I can't upgrade my units in allied city-state territory. Does anyone else have this issue too ?
Code:
UPDATE CustomModOptions SET Value = 1 WHERE Name = 'GLOBAL_CS_UPGRADES';
Of course I will modify the code if this makes it easier to handle. I just have lack of time. Maybe next week I will manage to look at all those stuff that gathered during my absence. Thanks for the code.Greetings from the other side of the world. Thank you for continuing the mode again. Your new Idea is very interesting.
In my country, I translate this mode into my language. However, some problems interfere with translation.
View attachment 630854
(TXT_KEY_CULTURED_BONUS)
(TXT_KEY_CULTURED_FRIENDLY_BONUS)
This is the problem. TXT_KEY_TEXT is translated also and I can't see City-state Bonus.
I slightly changed the lua code.
Edit : function GetCityStateTraitText is used in many different places. Instead edit function, add new function.
Lua/CityStateStatusHelper.lua, line 453~ changed to:
Code:-- Traits and Personalities local eMinorTrait = GetCityStateTraitKey(minorPlayerID) local eMinorPersonality = minorPlayer:GetPersonality() local sMinorPersonalityStr = "" if eMinorPersonality == MinorCivPersonalityTypes.MINOR_CIV_PERSONALITY_FRIENDLY then sMinorPersonalityStr = "FRIENDLY" elseif eMinorPersonality == MinorCivPersonalityTypes.MINOR_CIV_PERSONALITY_NEUTRAL then sMinorPersonalityStr = "NEUTRAL" elseif eMinorPersonality == MinorCivPersonalityTypes.MINOR_CIV_PERSONALITY_HOSTILE then sMinorPersonalityStr = "HOSTILE" end
Lua/CityStateStatusHelper.lua, line 936~ added to:
View attachment 630857Code:function GetCityStateTraitKey(minorPlayerID) local minorPlayer = Players[minorPlayerID] if minorPlayer then local minorCivTraitID = minorPlayer:GetMinorCivTrait() if minorCivTraitID == MinorCivTraitTypes.MINOR_CIV_TRAIT_CULTURED then return "CULTURED" end if minorCivTraitID == MinorCivTraitTypes.MINOR_CIV_TRAIT_MILITARISTIC then return "MILITARISTIC" end if minorCivTraitID == MinorCivTraitTypes.MINOR_CIV_TRAIT_MARITIME then return "MARITIME" end if minorCivTraitID == MinorCivTraitTypes.MINOR_CIV_TRAIT_MERCANTILE then return "MERCANTILE" end if minorCivTraitID == MinorCivTraitTypes.MINOR_CIV_TRAIT_RELIGIOUS then return "RELIGIOUS" end else print("Lua error - invalid player index") end return "" end
Then, it's also shown well in my language.
Can you apply this change? Or please let me know if you have a Github link.
Last edited: