• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

larienna

Second Lieutenant
3 Badges
Jul 1, 2012
139
0
  • Warlock 2: The Exiled
  • Warlock: Master of the Arcane
  • 500k Club
I passed through the XML of viewdata.xr and data.xr and I see no way to change certain text strings like Gods name, and resistance name. For example, gods has system names like s_agrela, but there is no "Agrela" string to be change.

Code:
<Item>
	<s_name>god_agrela</s_name>
	<s_icon>icon_god_agrela</s_icon>
	<p2_position x="-0.707107" y="-0.707107"/>
	<s_avatar>g_agrela</s_avatar>
</Item>

I would like to change god names to government types names and change the resistance names for other elements.
 
I checked the locdata of the system and there is nothing there. I checked the loc data of the mod and indeed it contains the text strings. It seems we'll have to do more searching.

My only issue is if it's outside data, videdata, and locdata, how do you add a new file to the mod and make sure it is going to replace the original file.
 
I think that loc data can contain any string, it does not seem to be organized by object type and it does not seem to duplicate entries from the main locdata.xml. Maybe there are other source of locdata. Here is the structure of a string in locdata.

<Item>
<s_key>#bd_m_bld_food_granary</s_key>
<s_comment/>
<s_referenceText>Granary</s_referenceText>
<localizedTexts>
<Item>
<s_lang>en</s_lang>
<s_text>Granary</s_text>
</Item>
</localizedTexts>
</Item>

The strings seems to be added in order of creation, I made 3 buildings, then a race then added new buildings and they are listed in that order in the locdata.

So I suspect that if you have the s_name id of the object you want to change, that you could change the string of any object. I might try with glyphs and gods.

------------------------

Another thing I am not sure about XML is general is how do you remove entries. For example, if I do not want certain resources or glyph, how do I proceed. I think that the override of the mod affect the whole group. So if I redefine 1 glyph, I need to copy all the glyph because as soon as 1 glyph is added, it override all the original glyph. This is why by adding a building tree to my new race, it copied all the building trees of all races even if no modification where made for them.
 
Victory!

I Successfully changed the gods name using the technique above. Here is a screenshot

2014-07-07_00001.jpg

It also modifies the editor.

2014-07-07_00002.jpg

Here is an XML sample:

<Item>
<s_key>#god_grumgog</s_key>
<s_comment/>
<s_referenceText>Magicracy A</s_referenceText>
<localizedTexts>
<Item>
<s_lang>en</s_lang>
<s_text>Magicracy B</s_text>
</Item>
</localizedTexts>
</Item>

It seem that only the "B" String seem to be used. Not quite sure where the A string is used.