New Traits and Resources in BUG 4.4

OrionVeteran

Deity
Joined
Dec 25, 2003
Messages
2,443
Location
Newport News VA
1. I have added a couple of new traits to my mod, but only one trait appears on the trait list in BUG 4.4. The trait is Seafaring. My new Leaderhead shows all the attributes of the new Seafaring trait. :confused: Is there an XML setting in BUG that must be changed to allow more traits to appear on the list?

2. I have a similar situation with resources. I added 13 new resources, but if I try to add a 14th resosurce, BUG hoses up the screen icons. It doesn't matter what resource I try to add. It could be anything potatoes, Olives, whatever. If I try and add the 14th new resource BUG gets hosed up. :confused: My 13 other resource all work fine.

Any advice would be greatly appreciated.
 
I've experienced both these issues, luckily there are relatively easy solutions.

1. I have added a couple of new traits to my mod, but only one trait appears on the trait list in BUG 4.4. The trait is Seafaring. My new Leaderhead shows all the attributes of the new Seafaring trait. :confused: Is there an XML setting in BUG that must be changed to allow more traits to appear on the list?

Yes, you need to add your traits to a couple of files. First there is /Python/BUG/TraitUtil.py (this is also where you can define the symbol it uses in the pedia) and then there is /XML/BasicInfos/CIV4NewConceptInfos.xml.

2. I have a similar situation with resources. I added 13 new resources, but if I try to add a 14th resosurce, BUG hoses up the screen icons. It doesn't matter what resource I try to add. It could be anything potatoes, Olives, whatever. If I try and add the 14th new resource BUG gets hosed up. :confused: My 13 other resource all work fine.

This one had me stumped for a while but after some googling of this site I found this info in the Unofficial 3.19 patch thread implying it's a bug in BTS itself:

CvGameTextMgr::assignFontIds - Removes an erroneous extra increment command that was breaking GameFont.tga files when using exactly 49 or 74 resource types in a mod (thanks LunarMongoose)

I think the numbers are wrong but nonetheless it is true. If you add exactly 14 new resources in CIV4BonusInfos.xml the gamefont files will break. The solution is to remove one resource or add a 15th. Bizzare but I can confirm it works.

Hope that helps!
 
I've experienced both these issues, luckily there are relatively easy solutions.



Yes, you need to add your traits to a couple of files. First there is /Python/BUG/TraitUtil.py (this is also where you can define the symbol it uses in the pedia) and then there is /XML/BasicInfos/CIV4NewConceptInfos.xml.



This one had me stumped for a while but after some googling of this site I found this info in the Unofficial 3.19 patch thread implying it's a bug in BTS itself:



I think the numbers are wrong but nonetheless it is true. If you add exactly 14 new resources in CIV4BonusInfos.xml the gamefont files will break. The solution is to remove one resource or add a 15th. Bizzare but I can confirm it works.

Hope that helps!

Yes it does. I'll let you know if adding 15 resources solved the problem.

Thanks.
 
OK it didn't work. I added two more resoources for a total of 55 (15 additionals) . The game still blew up when initiating fonts. Funny thing is I have the Unofficial 3.19 patch merged in my DLL. At this point I am looking to delete the two new resources and be done with it. :cringe:

This is what the unofficial 3.19 patch did:

/*************************************************************************************************/
/* UNOFFICIAL_PATCH 06/02/10 LunarMongoose */
/* */
/* Bugfix */
/*************************************************************************************************/
/* original bts code
++iCurSymbolID;
*/
// Mongoose GameFontFix
// removes an erroneous extra increment command that was breaking GameFont.tga files when using exactly 49 or 74 resource types in a mod
/*************************************************************************************************/
/* UNOFFICIAL_PATCH END */
/*************************************************************************************************/
 
Back
Top Bottom