Remove tale related artnames for custom objects?

Started by AlyxMS, December 02, 2016, 05:16:02 PM

Previous topic - Next topic

AlyxMS

I'm creating a mod to make paintings and I want to have total control over the names of the painting. (By that I mean defining them in a xml for the game to randomize instead of getting these titles and descriptions based on tales mixed in)

I followed the structure of statues.
In Buildings_Art.xml, for "SculptureBase", the following lines defined the name and description for the sculptures.
<nameMaker>ArtName_Sculpture</nameMaker>
<descriptionMaker>ArtDescription_Sculpture</descriptionMaker>

I found ArtName_Sculpture and ArtDescription_Sculpture in RulePackDefs.
<defName>ArtName_Sculpture</defName> in RulePacks_Art_NameRoots.xml
<defName>ArtDescription_Sculpture</defName> in RulePacks_Art_PhysicalDescriptionRoots.xml

I copied, renamed and changed them to something like this.
art_name->[PaintingNamePart1] [PaintingNamePart2] [PaintingNameNumber]
PaintingNamePart1->Testing
PaintingNamePart1->Testing2
PaintingNamePart2->Debug
PaintingNamePart2->Debug2
PaintingNameNumber->[digit]
PaintingNameNumber->[digit][digit]

When I launched the game and made some paintings.
I'm getting titles like this: Testing2 Debug 05
Which mean they worked.
But after I made more painting, I'm getting titles like:
Could not resolve any root: art_name debugLabel: null_tale

And even though I changed <defName>ArtDescription_Painting</defName> to
physical_description_root->Testing
I'm getting art descriptions like:
Testing This artwork tells the story of the capturing of Bashkire on 4th of fall, 5501.
Instead of just Testing(Which occasionally happens.)

I'm guessing this is related to the game using generating taled based names and descriptions,
Can I remove it for the object I made(paintings)?