• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

Farm Replacement Won't Show Up!

Murphy613

Prince
Joined
Nov 18, 2012
Messages
483
One of my civs has a Kibbutz as a UI, meant to replace the farm, and use the Farm art defines. My workers can build it, and it can be seen in Strategic View, but you can't see it in regular view.
Also, the civ's Workers can build both the farm and the Kibbutz, which I don't like. Is there any way to make the Farm unbuidable for them, or to give them a unique invisible worker?
 
I don't know anything about creating new UIs, but did you check the Reload Landmark System box within the mod properties? Moving your mouse over it says it's used for resources, improvements and wonders.
 
It still isn't showing up. Here's the full code, in case it helps.
Code:
<GameData>
	<Improvements>
		<Row>
			<Type>IMPROVEMENT_KIBBUTZ</Type>
			<Description>TXT_KEY_IMPROVEMENT_KIBBUTZ</Description>
			<Civilopedia>TXT_KEY_CIV5_IMPROVEMENTS_KIBBUTZ_TEXT</Civilopedia>
			<ArtDefineTag>ART_DEF_IMPROVEMENT_FARM</ArtDefineTag>
			<FreshWaterMakesValid>true</FreshWaterMakesValid>
			<RequiresFlatlandsOrFreshWater>true</RequiresFlatlandsOrFreshWater>
			<DefenseModifier>10</DefenseModifier>
			<SpecificCivRequired>true</SpecificCivRequired>
			<CivilizationType>CIVILIZATION_ISRAEL</CivilizationType>
			<PillageGold>18</PillageGold>
			<PortraitIndex>3</PortraitIndex>
			<IconAtlas>ISRAEL_ICONS</IconAtlas>
		</Row>
	</Improvements>
	<Improvement_Yields>
		<Row>
			<ImprovementType>IMPROVEMENT_KIBBUTZ</ImprovementType>
			<YieldType>YIELD_FOOD</YieldType>
			<Yield>1</Yield>
		</Row>
		<Row>
			<ImprovementType>IMPROVEMENT_KIBBUTZ</ImprovementType>
			<YieldType>YIELD_FAITH</YieldType>
			<Yield>1</Yield>
		</Row>
	</Improvement_Yields>
	<Improvement_ValidTerrains>
		<Row>
			<ImprovementType>IMPROVEMENT_KIBBUTZ</ImprovementType>
			<TerrainType>TERRAIN_GRASS</TerrainType>
		</Row>
		<Row>
			<ImprovementType>IMPROVEMENT_KIBBUTZ</ImprovementType>
			<TerrainType>TERRAIN_PLAINS</TerrainType>
		</Row>
		<Row>
			<ImprovementType>IMPROVEMENT_KIBBUTZ</ImprovementType>
			<TerrainType>TERRAIN_DESERT</TerrainType>
		</Row>
	</Improvement_ValidTerrains>
	<Improvement_ResourceTypes>
		<Row>
			<ImprovementType>IMPROVEMENT_KIBBUTZ</ImprovementType>
			<ResourceType>RESOURCE_WHEAT</ResourceType>
		</Row>
	</Improvement_ResourceTypes>
	<Improvement_TechNoFreshWaterYieldChanges>
		<Row>
			<ImprovementType>IMPROVEMENT_KIBBUTZ</ImprovementType>
			<TechType>TECH_FERTILIZER</TechType>
			<YieldType>YIELD_FOOD</YieldType>
			<Yield>1</Yield>
		</Row>
	</Improvement_TechNoFreshWaterYieldChanges>
	<Improvement_TechFreshWaterYieldChanges>
		<Row>
			<ImprovementType>IMPROVEMENT_KIBBUTZ</ImprovementType>
			<TechType>TECH_CIVIL_SERVICE</TechType>
			<YieldType>YIELD_FOOD</YieldType>
			<Yield>1</Yield>
		</Row>
	</Improvement_TechFreshWaterYieldChanges>
</GameData>
 
Don't know if this helps, but in between <Civilopedia> and <ArtDefineTag>, you're missing <Help>.
Maybe the problem is just with your graphics, but the coding is sound? I believe graphic problems don't show up in the database.log file.
 
Don't know if this helps, but in between <Civilopedia> and <ArtDefineTag>, you're missing <Help>.
Maybe the problem is just with your graphics, but the coding is sound? I believe graphic problems don't show up in the database.log file.

Improvements don't have <Help>.
This is really puzzling. I remember seeing something about a farm bug. Maybe this is related. What was that all about?
 
Improvements don't have <Help>.
This is really puzzling. I remember seeing something about a farm bug. Maybe this is related. What was that all about?

Improvements do have a help column in the DB, but not having a help entry shouldn't cause any issues because a lot of the base game improvements don't have Help entries.
 
The farm bug will finally (supposedly) be fixed in the upcoming Fall patch. It causes a CTD when the "Reload Landmark System" is checked in the mod properties and a farm gets replaced by another improvement. Your farm replacement isn't going to be visible unless Reload LS is checked. There are at least 3 workarounds that people have come up with: using the Polder model instead, using replacement resources (as whoward69 does with his farm replacement mod), or using Leugi's new 3D models (though they can't upgrade at the Industrial era without the farm handler that causes the error).
 
The farm bug will finally (supposedly) be fixed in the upcoming Fall patch. It causes a CTD when the "Reload Landmark System" is checked in the mod properties and a farm gets replaced by another improvement. Your farm replacement isn't going to be visible unless Reload LS is checked. There are at least 3 workarounds that people have come up with: using the Polder model instead, using replacement resources (as whoward69 does with his farm replacement mod), or using Leugi's new 3D models (though they can't upgrade at the Industrial era without the farm handler that causes the error).

The farm crash bug was fixed in the last patch. ;)
 
Well the game isn't crashing - there's just no farm.

Again, you need to check Reload Landmark System.
Never mind, you did...

EDIT: Have you tried making a new ART_DEF entry, and replicating the Farm in the ArtDefine_LandmarkTypes and ArtDefine_Landmarks table?
If that doesn't work, I wonder if Reload Landmark System doesn't let you use the FARM LayoutHandler anymore, and that's part of how they fixed the Farm Crash? You could always use one of the alternatives I list above for your Kibbutz.
 
Again, you need to check Reload Landmark System.
Never mind, you did...

EDIT: Have you tried making a new ART_DEF entry, and replicating the Farm in the ArtDefine_LandmarkTypes and ArtDefine_Landmarks table?
If that doesn't work, I wonder if Reload Landmark System doesn't let you use the FARM LayoutHandler anymore, and that's part of how they fixed the Farm Crash? You could always use one of the alternatives I list above for your Kibbutz.

The new art define idea sounds promising. Where are the art defines for improvements?
 
Now I can't find those files. I searched those names and opened every folder but I don't see them. I have found the expansion versions, but that doesn't help me.
 
Back
Top Bottom