Problem with Ironworks

Bayazid I

Chieftain
Joined
Oct 22, 2005
Messages
32
When I built the Ironworks in Nottingham, I noticed I wasn't getting exactly the productivity i wanted... so i zoomed into the city... and what do i find but that Civ 4 has changed the laws of mathematics... 2+2=2... :confused: oh okay... i understand....[not so much].. see the screenie to see what i am talking about... but as a synopsis... it is completely worthless... the only bonuses i am getting are coming from the factory and power... i hope i am misunderstanding something... but otherwise this calc is broken... i wonder how many more broken calcs there are i haven't found
 

Attachments

  • ironworks.jpg
    ironworks.jpg
    152.6 KB · Views: 1,804
Yes... it says there is a 100% bonus... but if you add the bonuses up... which i would presume you do... +50%, +50%, +100% should be a 200% bonus... the final total should be 3 times the initial... however the math shows it is only a 100 % bonus, 2 times the initial 2X29=58... so i am getting the bonus for the forge/factory/power... but not from the ironworks...
 
You may be right about the bug, but I'm not entirely certain it's the calculator. I think it is the report on 'Base Production'. It says 29. However, if you go through all of the city resource tiles and count up the hammers, they only add up to 18. A 200% increase of 18 is actually 54 (not the 58 your are indeed getting), but there could be another small bonus involved there, or it could indeed be a faulty calculation. In any case, I only count 18 base production hammers from your screen shot.

I wonder how they add up these percentage bonuses? Do they add up the raw percentages and then use this to do the increase of production calculation: 50% + 50% + 100% = 200%? Or do they apply scalar, on top of one another? I'm guessing the former, adding up the raw percentages because: (100% increase of (50% increase of (50% increase of 18) ) ) = 82 (rounded up).
 
Nah, there's about 29 there - there's a bar of iron worth 5 in the southwest, and a couple of specialists producing hammers I think (are those great engineers?)

Not sure why it's not giving you the production, unless the Ironworks bonus replaces other bonuses for some reason.
 
Just looked on two of my older saves with ironwork cities:

York.jpg


rostov.jpg


Havent noticed before, but clearly in these two shots the ironworks don't work.
 
Just out of curiosity - where is that 100% from Resources bonus coming from?

It seems without that (and some creative rounding) the numbers add up...?

Maybe that 100% is just the base production? This would indicate that it might be possible to get less than 100% out of the "worked" squares and engineers?
 
From the xml file

Code:
<iMilitaryProductionModifier>0</iMilitaryProductionModifier>
			<iSpaceProductionModifier>0</iSpaceProductionModifier>
			<iGlobalSpaceProductionModifier>0</iGlobalSpaceProductionModifier>

Maybe change those to 100?

or maybe

Code:
			<ProductionTraits/>
 
From the xml file

Code:
<iMilitaryProductionModifier>0</iMilitaryProductionModifier>
			<iSpaceProductionModifier>0</iSpaceProductionModifier>
			<iGlobalSpaceProductionModifier>0</iGlobalSpaceProductionModifier>

Maybe change those to 100?
 
Hey Folk,

Could we have all understood this wrong? That its not about having a trade networked link to either of these resources (iron or coal) but actually having either one of these resources being worked IN the city?
 
LordGek said:
Hey Folk,

Could we have all understood this wrong? That its not about having a trade networked link to either of these resources (iron or coal) but actually having either one of these resources being worked IN the city?
That's how it functioned in Civ3 - in fact you could even not build it there unless you had coal and iron in the city radius. Probably my least built wonder...think I've built it once.

Not saying this applies to civ4 Ironworks however....that I don't know.
 
LordGek said:
Hey Folk,

Could we have all understood this wrong? That its not about having a trade networked link to either of these resources (iron or coal) but actually having either one of these resources being worked IN the city?

No, makes no difference. Here's a city with 2 iron and 2 coal, both being worked by citizens (world buildered ;) )
 

Attachments

  • ironworks.jpg
    ironworks.jpg
    47.1 KB · Views: 1,201
I've also seen one case of Ironworks doing nothing (and no cases of Ironworks doing anything)
 
So any XML skilled folk willing to check out files like CIV4BuildingInfos.xml to see if maybe this is just due to some sort of XML typo (like some infamous missing ";" or something else as silly)?
 
hmm. I looked through the code and the IRON_WORKS has the correct modifiers for iron and coal in the BonusYieldModifiers section. The problem is, that BonusYieldModifiers section is only used for the ironworks. Are there any other buildings that work like the ironworks in terms of production bonuses only due to access to a particular resource?
 
Not being able to leave well enough alone I consulted the Mighty Sirian "Master of Civilization 4 XML" (not that he ever claimed this title, but as one of the key guys in most of the map python scripts, I'd figured he be a reliable source in the even simpler XML stuff):

At 07:49 AM 11/10/2005 -0800, you wrote:

Hey Sirian,
As you must have heard by now, the ironworks is not working. My question to you is do you have any clue if this is just some sort of syntax error in one of the building XML files or an actual bug in the game itself (i.e. not working regardless of the correct XML).


It's a bug, which should be remedied in the patch.
 
Hey... More bad news... I'm going to do some research on this but I think the same bug is with religion. When you update a city to a Christian Cathedral it's supposed to upgrade your culture 100%. Well it doesn't. I'm not sure how much it does give you, but if your turning out 150 culture and you build a cathedral and it only gives you 170 or so then WTH?
 
Leeus said:
Hey... More bad news... I'm going to do some research on this but I think the same bug is with religion. When you update a city to a Christian Cathedral it's supposed to upgrade your culture 100%. Well it doesn't. I'm not sure how much it does give you, but if your turning out 150 culture and you build a cathedral and it only gives you 170 or so then WTH?

The Christian Cathedral and its sister buildings (Jewish Synagogue, etc) only give a 50% culture bonus. They're working properly.
 
Back
Top Bottom