1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

A question about "costs gold"

Discussion in 'Civ4 - Star Trek Mod' started by Deon, Mar 11, 2010.

  1. Deon

    Deon Lt. of Mordor

    Joined:
    Jan 13, 2008
    Messages:
    2,954
    Location:
    St.Petersburg, Russian Federation
    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.
     
  2. deanej

    deanej Chieftain

    Joined:
    Apr 8, 2006
    Messages:
    4,859
    Location:
    New York State
    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.
     
  3. Deon

    Deon Lt. of Mordor

    Joined:
    Jan 13, 2008
    Messages:
    2,954
    Location:
    St.Petersburg, Russian Federation
    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 :).
     

Share This Page