Quick Question regarding worker builds

Putmalk

Deity
Joined
Sep 26, 2010
Messages
2,652
Location
New York
Hey all.

I wanted to switch marsh-clearing and wood-chopping to new, other techs that I have created. My code looks as follows:

Code:
<Builds>
		<Update>
			<Set PrereqTech="TECH_FISHING"/>
			<Where Type="BUILD_FISHING_BOATS"/>
		</Update>
		<Update>
			<Set PrereqTech="TECH_WOODWORKING"/>
			<Where Type="BUILD_REMOVE_FOREST"/>
		</Update>
		<Update>
			<Set PrereqTech="TECH_WOODWORKING"/>
			<Where Type="BUILD_REMOVE_JUNGLE"/>
		</Update>
		<Update>
			<Set PrereqTech="TECH_TOOL_CRAFTING"/>
			<Where Type="BUILD_REMOVE_MARSH"/>
		</Update>
	</Builds>

When I go to the technology screen, it looks great! But, when I researched Tool Crafting without Masonry, and I went to clear a marsh, I get an error "Must have researched prerequisite tech (Masonry) before clearing marsh."

Any ideas on what other XMLs I might have to change to get it to work? Thanks!
 
You have to remove the pre-existing PrereqTechs
 
Actually, I think I found the issue.

I was attempting to build a farm on a marsh tile. The XML says
Code:
        <Row>
            <BuildType>BUILD_FARM</BuildType>
            <FeatureType>FEATURE_MARSH</FeatureType>
            <PrereqTech>TECH_MASONRY</PrereqTech>
            <Time>600</Time>
            <Remove>true</Remove>
        </Row>

So I should have to update that as well and I should be good to go...testing time. >.<

Alright, it works! I just had to edit that part above. ;)
 
Back
Top Bottom