Logo Platform
logo amplifiers simplified

Localization totally ignored.

Reply
Copied to clipboard!
3 years ago
Jun 30, 2021, 5:13:15 PM

Hi to all, gentlemen.


What can I say... I don't know what the problem is, nor can give you any clues. Localization of mod is ignored.


Everything is OK, or at least I cannot find anything wrong. References with due %, names are correct, xml syntax parsed ok, questguielement extratype called, localizationplugin, "english" subdirectory... everything as it should. Even localization files are named "ES2_Localization_" and whatever comes next, just in case that could be a problem.


Compared it to another example mods... followed all the steps. Nothing.


Game won't load localization files.


As a last resort, I put mod's localization files in base game dir... still invisible.


Here's some of one of the files:




<?xml version="1.0" encoding="utf-8"?>

<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">


    <!--THE TONKLIN HYPOTHESIS CHAPTER 1-->

    

    <LocalizationPair Name="%TonklinHypothesis01-Title">The Tonklin Hypothesis</LocalizationPair>

    <LocalizationPair Name="%TonklinHypothesis01-Description">The expedition has stumbled upon what it seems to be a cache of ancient knowledge. Written in an old Vilani dialect, the texts were sent to translation, and among other bits of info, a diary was rescued. It belonged to a figure of unknown racial background named Rehman Tonklin. He was, for what we have uncovered, one of the most prominent mathematicians of his time. The diary contained what in other side texts is named as the Tonklin Hypothesis, a math conjecture that has to do with an algorithm known as the Tonklin Zeta Function for complex numbers. The Function's analytical extension is related to the distribution of primes. Under the Hypothesis, all given values where the Function goes zero and the zero is nontrivial belong into a critical line of the real part of the number being 0.5, and it seems it never was proven or disproven.\nSolving this problem and making it a theorem can be a potentially groundbreaking advancement. The implications of discovering a closed formula for all those dodgy zeroes would open the gates for many other algorithms now in terra incognita. We can take the baton and continue where Tonklin and his followers left. Or perhaps the hypothesis was indeed proven true or false, and it is just we have't yet discovered where the solution lies buried?</LocalizationPair>

    <LocalizationPair Name="%TonklinHypothesis01-Title01">Test the Hypothesis</LocalizationPair>

    <LocalizationPair Name="%TonklinHypothesis01-Description01">Our mathematicians will for sure succeed where the ancients failed.</LocalizationPair>

    <LocalizationPair Name="%TonklinHypothesis01-Title02">Search for More Evidence</LocalizationPair>

    <LocalizationPair Name="%TonklinHypothesis01-Description02">More has to be discovered about the hypothesis and the solution, and the tool is archeology.</LocalizationPair>


As you may suppose, the quest which refers to this doesn't show up localized. Its gui element is:


    <QuestGuiElement Name="TonklinHypothesis01">

        <Title>%TonklinHypothesis01-Title</Title>

        <Description>%TonklinHypothesis01-Description</Description>

        <Icons>

            <Icon Path="Bitmaps/Dynamic/NarrativeEvents/EventRandom02Large" Size="Quest" />

        </Icons>

        <Steps>

            <Step Name="Step1">

                <ObjectiveSet Politics="Politics00"><!--for non quest options, just title and desc are required-->

                    <Title>%TonklinHypothesis01-Title01</Title>

                    <Description>%TonklinHypothesis01-Description01</Description>

                </ObjectiveSet>

                <ObjectiveSet Politics="Politics00">

                    <Title>%TonklinHypothesis01-Title02</Title>

                    <Description>%TonklinHypothesis01-Description02</Description>

                </ObjectiveSet>

            </Step>

        </Steps>

    </QuestGuiElement>



Can't tell what the wreck is going on, gentlemen. Many thanks in advance.

0Send private message
0Send private message
3 years ago
Jun 30, 2021, 6:56:05 PM

<?xml version="1.0" encoding="utf-8" ?>

<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">


    <!-- Conversion = add new files, not compatible with other mods. Standalone = replace all files, not compatible with other mods. Extension = add new files, compatible with other mods. -->

    <RuntimeModule Name="YellowMod" Type="Conversion">

        

        <!-- Available tags: AI, Art, Buildings, Gameplay, Improvements, MajorFactions, Maps, MinorFactions, Multiplayer, Other, Resources, Technologies, Units -->

        <Tags>Other</Tags>

        <!-- Name of the author -->

        <Author>Willard Stiles</Author>

        <!-- Link to your other work -->

        <Homepage></Homepage>

        <!-- Title as it appears in the workshop -->

        <Title>Yellow Mod</Title>

        <!-- Description as it appears in the workshop -->

        <Description>Adds several things. Focuses on quests/events and anomalies. Includes more expensive terraforming and research.</Description>

        <!-- Add more content to this each time you update the mod -->

        <ReleaseNotes>1.1, first revision.</ReleaseNotes>

        <!-- Image as it appears in the workshop. Size should be 430x430 pixels -->

        <PreviewImageFile>YellowIcon.png</PreviewImageFile>


        <!-- XML files to load -->

        <Plugins>

        

            <!-- Add one DatabasePlugin for each type you modify. Available DataTypes are referenced in XmlReference.xml-->         

            <DatabasePlugin DataType="QuestDefinition, Assembly-CSharp">              

                <Overrides>

                    <Override Name="Prerequisites" DataType="Amplitude.Query.Xml.XmlQueryPrerequisites, Assembly-CSharp-firstpass">

                        <ExtraType Name="FilterConstellationByDistance" DataType="QuestFilterConstellationByDistance, Assembly-CSharp" />

                        <ExtraType Name="FilterSystemByStatus" DataType="QuestFilterSystemByStatus, Assembly-CSharp" />

                        <ExtraType Name="FilterSystemByDistance" DataType="QuestFilterSystemByDistance, Assembly-CSharp" />

                        <ExtraType Name="FilterSystemByCuriosity" DataType="QuestFilterSystemByCuriosity, Assembly-CSharp" />

                        <ExtraType Name="FilterPlanetByCuriosity" DataType="QuestFilterPlanetByCuriosity, Assembly-CSharp" />

                        <ExtraType Name="FilterShipDesignByModule" DataType="QuestFilterShipDesignByModule, Assembly-CSharp" />

                        <ExtraType Name="FilterByStringValue" DataType="QuestFilterByStringValue, Assembly-CSharp" />

                        <ExtraType Name="IsNot" DataType="QuestFilterDifferentEntity, Assembly-CSharp" />

                    </Override>

                    <Override Name="Sorter" DataType="Amplitude.Query.Xml.XmlQuerySorter, Assembly-CSharp-firstpass">

                        <ExtraType Name="SortConstellationByDistance" DataType="QuestSorterConstellationByDistance, Assembly-CSharp" />

                        <ExtraType Name="SortSystemByDistance" DataType="QuestSorterSystemByDistance, Assembly-CSharp" />

                    </Override>

                </Overrides>

                <FilePath>Quests/YellowQuests.xml</FilePath>                

            </DatabasePlugin>

            

            <DatabasePlugin DataType="Amplitude.Unity.Gui.GuiElement, Assembly-CSharp-firstpass">

                <ExtraTypes>

                    <ExtraType DataType="Amplitude.Unity.Gui.ExtendedGuiElement, Assembly-CSharp-firstpass" />

                    <ExtraType DataType="AffinityGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="ResourceGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="HeroGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="HeroClassGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="PoliticsGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="WindowGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="LoadingWindowGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="MainMenuScreenGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="NewGameScreenGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="ControlBannerGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="TechnologyScreenGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="TechnologyQuadrantGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="EconomyScreenGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="FleetsScreenGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="TechnologyGuiElement2, Assembly-CSharp" />

                    <ExtraType DataType="TableGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="LawGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="QuestGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="TutorialGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="GovernmentGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="RecipeSlotGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="EmpireActionGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="EmpireDiplomaticActionGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="ScanViewWindowGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="ScanViewCaptionGroupGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="AllianceGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="DiplomaticTermGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="CuriosityTypeGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="StarSystemResourceImprovementGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="TradableSectionGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="MinorFactionDiplomacyModalWindowGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="VictoryScreenGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="StarSystemOverviewScanViewGuiElement, Assembly-CSharp" />

                    <ExtraType DataType="DamageDataGuiElement, Assembly-CSharp" />                        

                </ExtraTypes>

                <FilePath>Gui/YellowGuiElements.xml</FilePath>                    

            </DatabasePlugin>

                        

            <!--DatabasePlugin DataType="Amplitude.Unity.Gui.GuiElement, Assembly-CSharp-firstpass">

                <ExtraTypes>

                    <ExtraType DataType="Amplitude.Unity.Gui.ExtendedGuiElement, Assembly-CSharp-firstpass" />

                    <ExtraType DataType="QuestGuiElement, Assembly-CSharp" />

                </ExtraTypes>

                <FilePath>Gui/GuiElements.xml</FilePath>

            </DatabasePlugin-->

            

            <DatabasePlugin DataType="Droplist, Assembly-CSharp">

                <FilePath>Quests/Droplists/DroplistsYellow.xml</FilePath>

            </DatabasePlugin>

            

            <DatabasePlugin DataType="QuestEffectDefinition, Assembly-CSharp">

                <FilePath>Simulation/YellowEventEffects.xml</FilePath>

            </DatabasePlugin>

            

            <DatabasePlugin DataType="QuestEffectDefinition, Assembly-CSharp">

                <FilePath>Simulation/YellowEventEffectsAddDescriptors.xml</FilePath>

            </DatabasePlugin>

            

            <DatabasePlugin DataType="PopulationEventDefinition, Assembly-CSharp">

                <FilePath>Simulation/YellowPopulationEvents.xml</FilePath>

            </DatabasePlugin>

            

            <DatabasePlugin DataType="GalaxyGeneratorWeightTableDefinition, Assembly-CSharp">

                <FilePath>GalaxyGenerator/WeightTableDefinition.xml</FilePath>

            </DatabasePlugin>

            

            <DatabasePlugin DataType="Amplitude.Unity.Simulation.SimulationDescriptor, Assembly-CSharp-firstpass">

                <FilePath>Simulation/SimulationDescriptors[YellowAnomalies].xml</FilePath>

            </DatabasePlugin>

            

            <DatabasePlugin DataType="AnomalyDefinition, Assembly-CSharp">

                <FilePath>Simulation/YellowAnomalies.xml</FilePath>

            </DatabasePlugin>

            

            <DatabasePlugin DataType="AnomalyReductionDefinition, Assembly-CSharp">

                <FilePath>Simulation/YellowAnomalyReductions.xml</FilePath>

            </DatabasePlugin>

            

            <DatabasePlugin DataType="CuriosityDefinition, Assembly-CSharp">

                <FilePath>Simulation/YellowCuriosity.xml</FilePath>

            </DatabasePlugin>

            

            <!--Tech Cost more expensive-->

            <DatabasePlugin DataType="Amplitude.Unity.Simulation.SimulationDescriptor, Assembly-CSharp-firstpass">

                <FilePath>Simulation/SimulationDescriptors[Research].xml</FilePath>

            </DatabasePlugin>

            

            <!--Academy nerf-->

            

            <DatabasePlugin DataType="FactionTrait, Assembly-CSharp">

                <FilePath>Simulation/FactionTraits[Affinity_DLC4].xml</FilePath>

            </DatabasePlugin>

            

            <!--Terraformation more expensive-->

            

            <DatabasePlugin DataType="IndustryConstructibleElement, Assembly-CSharp">

                <FilePath>Simulation/ConstructibleElement_Industry[Terraformation].xml</FilePath>

            </DatabasePlugin>    

            <DatabasePlugin DataType="IndustryConstructibleElement, Assembly-CSharp">

                <FilePath>Simulation/ConstructibleElement_Industry[Terraformation_DLC3].xml</FilePath>

            </DatabasePlugin>

            

            <LocalizationPlugin>

                <Directory>Localization</Directory>

            </LocalizationPlugin>

        </Plugins>

    

    </RuntimeModule>

</Datatable>







Here it is.


By the way, I copypasted all localizationpairs on a vanilla loc file, and it messed all localization up, vanilla included. I'm currently checking the file again, but still can't find anything wrong. All <> and "" are there, and correctly put...

0Send private message
3 years ago
Jun 30, 2021, 7:35:29 PM

Hmm I'd need to investigate the entirety of your mod, would you be willing to zip it and upload it here? Or if not, dm me the zip?

0Send private message
3 years ago
Jul 1, 2021, 7:54:20 AM

Never mind, a night's sleep found the solution. I wondered if some <LocalizationPair> was not properly closed, and as there are tens of other </LocalizationPair>, the file would parse correcly.


That was the case.


Many thanks for the offer.

0Send private message
?

Click here to login

Reply
Comment