View Full Version : Super easy question for Total Realism Modders


Diresu_Drowssap
Apr 22, 2007, 07:52 PM
How do I edit the XML for Musketmen and eliminate this units resource requirement? I have looked through every conceivable XML and found no place to fix this. I know it has to be easy. Could somebody shove me in the right direction?

Thanks in advance:

woodelf
Apr 23, 2007, 06:01 AM
Thread moved to main C&C.

Try this. Go into the Civ4UnitInfos XML file in the Units folder. Find musketmen and then find the tags that look like this:

<PrereqBonuses>
<BonusType>BONUS_XXXX</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
</PrereqBonuses>

XXXX is whatever musketmen require. Turn that entire 6 lines into this:

<PrereqBonuses/>

Diresu_Drowssap
Apr 23, 2007, 07:41 PM
woodelf

T H A N K Y O U !!!

I could not figure that out to save my life.

One last question if you don't mind and it is nearly the same one.

Where do I change the resource attributes? I was thinking about changing horses to provide trade points once they are "improved". (I think horses only provide shields and food points right now)

Thank you 1 billion times in advance.

Diresu_Drowssap
Apr 23, 2007, 07:59 PM
I looked through my XML files and discovered that TR_Gun_CIV4UnitInfos.xml held the Musketmen info.

I took a screen of the XML file because <PrereqBonuses/> was already blank.

http://imageigloo.com/images/6095totalrealismgold.gif

Could BonusType be what I should change? If so do I have to change a bunch of other things? I'm afraid to touch anything or this spaghetti might fly apart. 8-)

Thanks!