Can the Ironworks be modded into working?

LordGek

Prince
Joined
Aug 22, 2002
Messages
521
Hey Gang,

If you haven't already seen it in various bug threads, the ironworks national wonder isn't working. You can make it, it will add some unhealthiness, and even will say +50% or +100% from resources but when you do the math its clear this 100% bonus isn't actually factored in (check for yourself).

This all being said perhaps its just an error in the XML files (like its definition in CIV4BuildingInfos.xml) and therefore patchable by us end users? Not having a clue about the more advanced XML stuff I wouldn't even want to attempt tweaking this stuff.
 
EDIT: This doesn't actually work. Damn.

I've just checked the .xml files, and everything seems fine - it looks as if it may be an error with they way that the .xml code is being read.

From what I can tell,
Code:
<BonusYieldModifiers>
	<BonusYieldModifier>
		<BonusType>BONUS_COAL</BonusType>
		<YieldModifiers>
			<iYield>0</iYield>
			<iYield>50</iYield>
			<iYield>0</iYield>
		</YieldModifiers>
	</BonusYieldModifier>
	<BonusYieldModifier>
		<BonusType>BONUS_IRON</BonusType>
		<YieldModifiers>
			<iYield>0</iYield>
			<iYield>50</iYield>
			<iYield>0</iYield>
		</YieldModifiers>
	</BonusYieldModifier>
</BonusYieldModifiers>
says that it will give a 50% bonus with coal, and with iron.

However, it may not be reading this, as there was a <YieldModifiers/> tag earlier on in the description, which could have overwritten the <BonusYieldModifiers> tag (I don't know if they do that or not - this is speculation).

I've attached a new .xml. I can't test it here, so it may not fix it. Basically, all I've done is changed
Code:
<YieldModifiers/>
to
Code:
<YieldModifiers>
	<iYield>0</iYield>
	<iYield>0</iYield>
	<iYield>0</iYield>
</YieldModifiers>
which might, or might not get it to work...

EDIT: Basically this says that the default additonal yeilds are 0, rather than saying there is no additional yeild. As I said, I don't know if it'll work.

EDIT 2: Attachment removed - it broke the game.
 
Thanks for trying, Great Apple, but evidenly your fix causes a big cascade of errors while loading the XML. I never realized how inter connected these XML files appear to be since once it has trouble with GA's little tweak, all of these other XML files start failing as well. :confused:

Ahh well, I'm still hopeful this is something moddable (or that darned patch will appear any day from now).
 
It does provide a bonus, you say? Are you sure that this bonus isn't only to the base production rate? If you're calculating based on a city that also has a forge, factory, and power, the Ironworks will only increase the total output of a city by 50%, since the forge, factory, and power bonuses are not also multiplied.
 
Mylon said:
It does provide a bonus, you say? Are you sure that this bonus isn't only to the base production rate? If you're calculating based on a city that also has a forge, factory, and power, the Ironworks will only increase the total output of a city by 50%, since the forge, factory, and power bonuses are not also multiplied.

The rollover text LISTS a 100% resource bonus, but if you take the base amount and just add the other modifiers listed, the end result clearly is not factoring in that supposed 100% bonus.
 
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.
 
Back
Top Bottom