Search results

  1. D

    HOW TO add unit Oil move cost, Oil Reserve counter and Oil produced each turn counter

    for the modded .cpp and .h file should be compiled. and yes you can link the production of a resource to a certain building, the game will check throw the cities id there's that building and will return a number you will multiply for the constant you decided for the production. es. nuclear...
  2. D

    Red Storm Rising - World War II on the Eastern Front

    use it without any prb for what concern my part.
  3. D

    How to do you make units creation?

    http://forums.civfanatics.com/showthread.php?t=139721 here are answers to your questions.
  4. D

    Case Study: Adding new XML attributes and using them in the SDK

    oyur prb is with compiling or with XML load? if the second remeber to add in your xmlschema file <element type="iAlignment" minOccurs="0"/> or insert your new attribute fro each Civ you find. if you don't do this the game won't know what to do if the attribute is absent...
  5. D

    Case Study: Adding new XML attributes and using them in the SDK

    yes that was great that prb made me crazy. :) never happened to me before too. Anyway I'm moving on now ;)
  6. D

    Python and cvcity.cpp functions

    exactly what I was looking for; for gold it uses for CvFinanceAdvisor.py (screen directory) player = gc.getPlayer(self.iActiveLeader) gold = player.getGold() how for cities?
  7. D

    Python and cvcity.cpp functions

    And If I want just to see which one is the resoult of function I have in cpp? So in mine, program should check into the city wich building has "oilConsumption" attribute (XML) and how big is the city, than make a calculation with those elements and return the resoult. How can I show the...
  8. D

    Python and cvcity.cpp functions

    sorry seven05, I haven't been so clear. I've added the code everywhere I found other city related similar codes, my problem is that I dunno how manually use that function in the python. I mean this: I have the function working in cpp? dunno I have to check, so I use financial advisor window...
  9. D

    Python and cvcity.cpp functions

    thx. done added CyCity::getOilConsumptionPerBuildings() both in CyCity.cpp and CyCity.h than how to recall that in python?
  10. D

    Python and cvcity.cpp functions

    it's CvCity::getOilConsumptionPerBuilding() it's a function I've created i'll add the file cvcity.cpp // OIL TOTAL CONSUMPTION + OIL CONSUMPTION FROM ALL BUILDINGS int CvCity::getOilTotalConsumption() { return m_iOilTotalConsumption; } void CvCity::setOilTotalConsumption (int...
  11. D

    Python and cvcity.cpp functions

    I've taken a look to the guide, My problem how to recall, I mean: to get a function in CvPlayer for ex. you write gold = gc.playergetgold() or something similar. I mean really the base...
  12. D

    Python and cvcity.cpp functions

    how do I recall in python file a function that is inserted inside cvcity.cpp (CvCity::xxxxxxx)? I need this to insert inside one of the advisors screen the value that this function return to know if it works. thx
  13. D

    religion % in a city

    really nice idea. I'm still working on my "Terrorism" mod - and implementation of War for Oil 8a lot of ideas and few time...) and religion % could solve my prb about which city the terrorist could target and in which order. so in my idea is: in the x year in the city with Judaic religion an...
  14. D

    Case Study: Adding new XML attributes and using them in the SDK

    so ladies and gentlemen I solved the prb: if you want to add a new attribute to XML and get into .cpp you should add it after last int attribute you see. In the example above <Flavors> <Flavor> <FlavorType>FLAVOR_GROWTH</FlavorType> <iFlavor>10</iFlavor> </Flavor>...
  15. D

    Function to assign a value and store

    Hi is there anyone who could tell me which function/functions (simpler is better is) should I check to understand how to: loop throw some things create a list of them assign a number to them and store it for ex. I think at city pop. the game loop throw them to make the total pop count...
  16. D

    Problems with CodeBlock compiler

    i removed the "others" directory
  17. D

    Little prb compiling with CodeBlocks v.1.0

    sorry but I'm not exactly expert in compiling. I made the same thing I made for warlord compiling mods... what should I change here?
  18. D

    Case Study: Adding new XML attributes and using them in the SDK

    I mean look here I set the XML file like this: <BuildingClass>BUILDINGCLASS_RECYCLING_CENTER</BuildingClass> <Type>BUILDING_RECYCLING_CENTER</Type> <SpecialBuildingType>NONE</SpecialBuildingType> <Description>TXT_KEY_BUILDING_RECYCLING_CENTER</Description>...
Top Bottom