Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Section 1: Constants to put near the top of the file
Section 2: Code to add to the AddCityStateRow function
end
kInst.EnvoyCount:SetToolTipString(envoysToolTip);
if (#envoyTable > 1 and kInst.SecondHighestName ~= nil) then
-- Show 2nd place if there is one (recall Lua tables/arrays start at index 1)
-- The check on kInst.SecondHighestName is for cases where another mod replaces the XML, but not the citystates lua file
local secondPlaceIdx = 2;
-- is there a tie for first?
if (envoyTable[1].EnvoyCount == envoyTable[2].EnvoyCount) then
-- Already sorted above, so this is either local player or the leader appearing first alphabetically
secondPlaceIdx = 1;
end
local secondHighestIsPlayer = envoyTable[secondPlaceIdx].IsLocalPlayer;
local secondHighestName = envoyTable[secondPlaceIdx].Name;
local secondHighestEnvoys = envoyTable[secondPlaceIdx].EnvoyCount;
if (secondHighestIsPlayer) then
secondHighestName = Locale.Lookup("LOC_CITY_STATES_YOU");
end
-- Add changes to the actual UI object placeholders, which are created in the CityStates.xml file
kInst.SecondHighestName:SetColor(secondHighestIsPlayer and kCityState.ColorSecondary or COLOR_ICON_BONUS_OFF);
kInst.SecondHighestName:SetText(secondHighestName);
kInst.SecondHighestEnvoys:SetColor(secondHighestIsPlayer and kCityState.ColorSecondary or COLOR_ICON_BONUS_OFF);
kInst.SecondHighestEnvoys:SetText(secondHighestEnvoys);
end
end
-- ============ END CQUI Modification ===================[/code]
Section 3: The CQUI_RemoveQuestIconsFromString function
You said the instance to replace up until should be around 270, but that's in the middle of an instance, with many more instance before and after it. BUT, after you paste your code, the last instance of yours is around 268 for me, so I'm not sure if that's the line you were referring to. The very last closing tag of </instance> is line 323.
Could you please let us know the line of the </instance> on the CIVITAS XML to replace?
So around line 60 (Also I think you made a typo saying like instead of line), has a string of text with kinst, but the return kinst; is line 82. So I pasted your 96 lines between
end
**Your 96 lines of text**
return kInst;
Here are the pastebins of the 2 files
https://pastebin.com/TcBsYzTb
https://pastebin.com/U7ZmGmuL
Here is a screenshot of what it looks like after I've met multiple city states (I'd tried normal games and it was the same thing)
https://pasteboard.co/JTqNxcA.png
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=871412359