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...
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...
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?
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...
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...
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...
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...
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
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...
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>...
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...
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>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.