Problem Adding a Building

Gazebo

Lord of the Community Patch
Supporter
Joined
Sep 26, 2010
Messages
18,400
Location
Little Rock
Hey all,
Every time I attempt to add a building using Kael's Guide the Civilopedia acts up (3/4 entries are gone) and the building I tried to add doesn't work. Any ideas? Can anyone post a 'template' of the three files we need for a building (BuildingClass.xml, Building.xml, etc.)?

Thanks,
Jeff
 
You need homoja7x.xml retarderato.xml and ramjahmanhamaja.xml :P

Seriously you dont' need to name them anything specific, and you don't need to have them in three files. I always name mine whatever civ calls them with the word update beside them. If the project is only three files organizing them into folders actually takes longer to find them >.>. That portion of the guide was for 'good mod design practices' and really applies to larger projects.. it wasn't actually required.

That said, what is the 'code' that you are using? If you post it here or the file we can take a look at it and see what might be going wrong.
 
Although it is in the guide, it is only said once and never mentioned again later in the guide when it shows people how to add things; did you remember to go to the mod property actions tab and put in the OnModActivated - UpdateDatabase columns?
 
Thanks for the replies (but not the sarcasm!) :)

I'm at work right now, but when I get back I'll post what I've got so far. The problem seems to be that I don't know how to format the 'Help,' 'Strategy' and 'Pedia' categories of text– this I imagine would cause the civilopedia to break and the building not to show up.

And yes, I did update the 'actions' section of the properties tab. Found that out yesterday morning after some major hair-pulling.

This is my first modding experience in the Civ world...I am used to Oblivion and its modding suite. XML pages FTL.
 
You don't need to make the text any different than any other text - all text uses the same format. It only matters where you place it in the new item you are editing or creating.

And you know you loved the sarcasm. I attack the Gazebo!!

Edit: I probably should have worded that: You don't need to format civilopedia text any different than any other type of text.. >.>
 
Have you double checked to make sure that none of your XML tags are malformatted or misspelled? I got exactly the same problem as you're having when I added a building. I can't remember exactly what it is that was causing the problem, but I have a sneaking suspicion that it ended up being something very simple like a typo.
 
Back
Top Bottom