View Full Version : In what file would I look if I wanted to change the effects of chopping forests?


Head Serf
Jun 11, 2007, 01:57 PM
There's been a problem with the European Middle Ages mod since hr_oskar had it, where basically forests don't provide any hammers when cut down. I haven't been able to find which file is related to this. If anyone knows which file it is, I'd be very appreciative. Thank you! :king:

Gordon Farrell
Jun 11, 2007, 10:12 PM
Hey Headserf! Think this is what you're looking for:

<BuildInfo>
<Type>BUILD_REMOVE_FOREST</Type>
<Description>TXT_KEY_BUILD_REMOVE_FOREST</Description>
<Help/>
<PrereqTech>NONE</PrereqTech>
<iTime>0</iTime>
<bKill>0</bKill>
<ImprovementType>NONE</ImprovementType>
<RouteType>NONE</RouteType>
<EntityEvent>ENTEVENT_CHOP</EntityEvent>
<FeatureStructs>
<FeatureStruct>
<FeatureType>FEATURE_FOREST</FeatureType>
<PrereqTech>TECH_BRONZE_WORKING</PrereqTech>
<iTime>300</iTime>
<iProduction>30</iProduction> <bRemove>1</bRemove>
</FeatureStruct>
</FeatureStructs>
<HotKey>KB_C</HotKey>
<bAltDown>1</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<Button>,Art/Interface/Buttons/Builds/BuildChopDown.dds,Art/Interface/Buttons/Actions_Builds_LeaderHeads_Specialists_Atlas.dds,7 ,8</Button>
</BuildInfo>


It's in Units/BuildInfo.

Head Serf
Jun 12, 2007, 05:27 AM
Oh crap. It seems that is all correct, yet it still won't work. Do you think it might be something in python?

Gordon Farrell
Jun 12, 2007, 11:50 AM
I find that often if I cut and paste the XML from the original game data files into my modified XML, suddenly it will work again --- even though line by line, character by character, it's identical to what I wrote!

You might give this a try if you haven't yet...

Zebra 9
Jun 12, 2007, 11:53 AM
I wouldn't think so. It might have to do w/ the missions xml in the units folder.