Civiopedia; and how to add to it.

Yand_Durinul

Chieftain
Joined
Dec 29, 2021
Messages
11
I have been working on a mod and I am currently at the last stage where I am adding to the civilopdia, more specifically the 'Historical Context' part.

Problem is, I have ZERO idea on how to go about doing it.

Info - Creating on ModBuddy using XML.
 
I have been working on a mod and I am currently at the last stage where I am adding to the civilopdia, more specifically the 'Historical Context' part.

Problem is, I have ZERO idea on how to go about doing it.

Info - Creating on ModBuddy using XML.

The civilopedia text has a tricky part, you have to start with the right parameter, for instance, LOC_PEDIA_UNITS_PAGE (if buildings change to BUILDINGS, etc), then concatenate with you unit type (building type, etc), and finally define chapter number (defines the order, and you can add whatever paragraphs you want) => LOC_PEDIA_UNITS_PAGE_UNIT_YOURUNIQUEUNIT_CHAPTER_HISTORY_PARA_1
 
The civilopedia text has a tricky part, you have to start with the right parameter, for instance, LOC_PEDIA_UNITS_PAGE (if buildings change to BUILDINGS, etc), then concatenate with you unit type (building type, etc), and finally define chapter number (defines the order, and you can add whatever paragraphs you want) => LOC_PEDIA_UNITS_PAGE_UNIT_YOURUNIQUEUNIT_CHAPTER_HISTORY_PARA_1

Thank you for the reply but I have already tried something similar to this. Could you Point out where I have gone wrong?

Code:
               <GameData>
                  <LocalizedText>
                     <Row Tag="LOC_BUILDING_BAKERY_YD_NAME" Language="en_US">
                        <Text>Bakery</Text>
                     </Row>
                     <Row Tag="LOC_BUILDING_BAKERY_YD_DESCRIPTION" Language="en_US">
                        <Text>When completed it provides +2 [ICON_FOOD] food per turn in this city,[NEWLINE]also provides +1 [ICON_FOOD] food to [ICON_RESOURCE_WHEAT] wheat tiles in this city's border.</Text>
                     </Row>
                     <Row Tag="LOC_PEDIA_BUILDINGS_PAGE_BAKERY_YD_CHAPTER_HISTORY_PARA_1" Language="en_US">
                        <Text>Lorem Ipsum</Text>
                     </Row>
                  </LocalizedText>
               </GameData>

So far it works well, right up until the Civilopedia Line.

Cut to 5 mins later...

So as I was typing this I remembered the exact name of my building is <BUILDING_BAKERY_YD> I Missed the word 'BUILDING' out of my mod's name. but the line of code I had was fine; I feel like such a fudging idiot.

Thank you so much Raen for confirming that I had the right code. It has been driving me nuts for 3 days.
 
Back
Top Bottom