View Full Version : A question about "costs gold"


Deon
Mar 11, 2010, 11:58 AM
Greetings! I have a question regarding cloaking device/cloak which costs 50 gold.

I think I've copied your code for iGoldCost to my dll and compiled it just fine, but when I try to use it, it suddenly tells me that it cannot load Civ4UnitClassInfos.xml for some reason... I mean when I write the line with gold cost in the unit schema.

I thought that it would be useful to ask here, because you have it working.

deanej
Mar 12, 2010, 10:44 AM
My gold cost is for promotions, so it has to go in the promotion section. You might want to just copy my schema to make sure everything works - nothing bad will happen if a tag exists in the schema but not the DLL.

Deon
Mar 12, 2010, 11:56 AM
I think it was some missing symbol or something... I used your schema and it worked. Then I've updated my schema and it worked too, although I've used the same code. Thank you for the answer :).