[NFP] [RESOLVED] Game Mode Localization Texts

GuiSKJ

Chieftain
Joined
May 26, 2020
Messages
31
Simple question. Where can I find the localized text for Civ6 game modes?

I am trying to override localization text for my mod, but the Game Modes is messing with it.

Without any of the game modes on, I can see my changes to LocalizedText table just fine.

But when I toggle a game mode, the Civ description stops displaying my text and shows something else.

An example, I have overridden the text for this key LOC_BUILDING_STAVE_CHURCH_DESCRIPTION in LocalizedText. Now, based on DebugConfiguration.sqlite, there is also this key I need to override LOC_BUILDING_STAVE_CHURCH_HEROES_DESCRIPTION. However, I can't find any table where this localized text is...


Please help, I feel like I have wasted so much time trying to find this small thing. Why didn't Fireaxis just keep ALL the localization text stuff in DebugLocalization.sqlite?
 
In file
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Babylon\Data\Babylon_Heroes_MODE.xml
Code
Code:
	<Buildings>
		<Update>
			<Where BuildingType="BUILDING_STAVE_CHURCH"/>
			<Set>
				<Description>LOC_BUILDING_STAVE_CHURCH_HEROES_DESCRIPTION</Description>
			</Set>
		</Update>
	</Buildings>
Which re-directs which text tag the game will use when the game mode is active.

In file
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Babylon\Text\en_US\Babylon_ConfigText.xml
The text tag is defined for the English Language
Code:
		<Row Tag="LOC_BUILDING_STAVE_CHURCH_HEROES_DESCRIPTION">
			<Text>A building unique to Norway. Required to purchase Apostles and Inquisitors with [ICON_Faith] Faith. Holy Site districts get an additional standard adjacency bonus from Woods. +1 [ICON_PRODUCTION] Production to each coastal resource tile in this city. Recalling Heroes in this city costs 15% less [ICON_Faith] Faith.</Text>
		</Row>
 
Thank you!

But this opens another question, how am I suppose to alter this with my mod? I have only modded Civ6 using SQL.
 
Doesn't matter. SQL is how the game localizations are stored. The XML code in the game files is parsed into SQL and then inserted into the required SQL databases.

You only need to make sure that your UpdateDatabase, UpdateText, UpdateIcons Actions have a Properties -- > LoadOrder setting of about 200 to ensure they execute into the needed database after the game core files are loaded.

UPDATE often fails completely for non-Vanilla localization LOC_KEYS, so in SQL you will want to completely re-define the Tag using SQL'S INSERT OR REPLACE INTO syntax.

You can also use XML and use the <Replace> command instead of the <Row> command.
 
Hi! My first post here, I hope this is the right thread.
I'm trying to make a Polish translation of the Neuschwanstein Castle mod by Deliverator23 (available at https://steamcommunity.com/sharedfiles/filedetails/?id=1770681973). And. It. Just. Won't. Work. I followed examples, did some online searching, pored over the code for a whole day, and nothing. Can someone please let me know where I'm being an idiot?

I've attached the mod here, but it's small enough that I can also just paste the code:

.modinfo file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="3690e815-e9eb-4f04-b101-5ddbeba64b69" version="1">
  <Properties>
    <Name>Neuschwanstein Castle PL</Name>
    <Description>Polish localisation of the Neuschwanstein Castle (World Wonder) mod by Deliverator23.</Description>
    <Created>1681300512</Created>
    <Teaser>Polish localisation of the Neuschwanstein Castle (World Wonder) mod by Deliverator23.</Teaser>
    <Authors>Solarius Scorch</Authors>
    <CompatibleVersions>1.2,2.0</CompatibleVersions>
  </Properties>
  <FrontEndActions>
    <UpdateText id="Text_PL">
      <Properties>
        <LoadOrder>300</LoadOrder>
      </Properties>
      <File>Text_PL.xml</File>
    </UpdateText>
  </FrontEndActions>
  <Files>
    <File>Text_PL.xml</File>
  </Files>
</Mod>

Text_PL.xml:

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
    <LocalizedText>
        <Replace  Language="pl_PL" Tag="LOC_BUILDING_NEUSCHWANSTEIN_NAME">
            <Text>Zamek Neuschwanstein</Text>
        </Replace>
        <Replace  Language="pl_PL" Tag="LOC_BUILDING_NEUSCHWANSTEIN_DESCRIPTION">
            <Text>Każde miasto ze średniowiecznymi lub renesansowymi murami zapewnia +2 [ICON_Culture] kultury, +2 [ICON_Gold] złota oraz +1 [ICON_Amenities] udogodnień. Zamek można zbudować tylko na wzgórzach sąsiadujących z górami.</Text>
        </Replace>
        <Replace  Language="pl_PL" Tag="LOC_BUILDING_NEUSCHWANSTEIN_QUOTE">
            <Text>"Miejsce to jest jednym z najpiękniejszych, jakie można znaleźć, święte i niedostępne, godna świątynia dla boskiego przyjaciela, który przyniósł światu zbawienie i prawdziwe błogosławieństwo." – Król Ludwik II Wittelsbach</Text>
        </Replace>
        <Replace  Language="pl_PL" Tag="LOC_PEDIA_WONDERS_PAGE_BUILDING_NEUSCHWANSTEIN_CHAPTER_HISTORY_PARA_1">
            <Text>Zamek Neuschwanstein wznosi się nad wsią Hohenschwangau w pobliżu Füssen w południowo-wschodniej Bawarii. Na zlecenie króla Ludwika II Wittelsbacha, budynek powstawał od 1869 roku jako wyidealizowany średniowieczny zamek rycerski. Król jednakże mieszkał w zamku tylko przez kilka ostatnich miesięcy swojego życia, jeszcze zanim kompleks został ukończony. Neuschwanstein pierwotnie nazywany był Nowym Zamkiem Hohenschwangau, a obecną nazwę nosi od 1886 roku.</Text>
        </Replace>
        <Replace  Language="pl_PL" Tag="LOC_PEDIA_WONDERS_PAGE_BUILDING_NEUSCHWANSTEIN_CHAPTER_HISTORY_PARA_2">
            <Text>Neuschwanstein to najsłynniejszy z zamków Ludwika II i jeden z najsłynniejszych zabytków w Niemczech. Odwiedza go rocznie około 1,5 miliona turystów. Często nazywany bajkowym zamkiem, Neuschwanstein jest otwarty dla zwiedzających prawie przez cały rok. Architektura i wnętrza są naznaczone romantycznym eklektyzmem XIX wieku; zamek uważany jest za doniosłe dzieło historyzmu.</Text>
        </Replace>
    </LocalizedText>
</GameData>

The mod is visible and active, but the texts are still in English. Please help!
 

Attachments

Back
Top Bottom