Adding a new Trait

PsiCorps

FF: Babylon 5 mod team
Joined
Dec 30, 2007
Messages
1,455
Location
Vietnam
Okay, i've been through all the Modding Tutorial pages and have been unable to find any guides on how to create a new Trait.

I did all of the XML work for the trait i wanted to create but when i load up the mod the trait doesn't appear.

I have to assume then from this that there is either an SDK or Python element to adding a new trait.

Can anybody shed any light on this?
 
Unless you want the trait to do something unusual, (see; tsentom1's python traits), its all XML. To add it to a Leader, you have to edit the LeaderHeadinfos. If you are using the BUG Sevopedia, it won't appear in the Traits tab unless you add it in (by python and XML), but it will appear under the leader.
 
Unless you want the trait to do something unusual
No, there's nothing unusual about the trait.

To add it to a Leader, you have to edit the LeaderHeadinfos.
I did all of that which is why i posted.

If you are using the BUG Sevopedia
The B5 mod doesn't use any other Modcomps (at the moment).
 
Have you enabled logging (LoggingEnabled = 1) in CivilizationIV.ini? IF so, are you getting any errors in XML.log?
 
Open My Documents\My Games\BtS\CivilizationIV.ini with a texteditor (wordpad, notepad, whatever), and set

PHP:
; Disable caching of file system (may slow initialization)
DisableFileCaching = 0

; Disable caching of xml and file system (may slow initialization)
DisableCaching = 0

both values to 1.
 
Back
Top Bottom