[Help] XML effects and language not working

HorseshoeHermit

20% accurate as usual, Morty
Joined
Apr 5, 2013
Messages
1,466
Location
Canada
I have this mod, it's not doing what it should. I can't figure out the problem.

I expect it to do this:
Change Exploration to have the following structure:
Maritime Infrastructure -> Treasure Fleets
Navigation School -> Merchant Navy -> Naval Tradition Naval Tradition -> Merchant Navy

Change the name shown on Naval Tradition to be Cartography, and have that policy do nothing.
Change the name shown on Merchant Navy to be Expeditions, and have that policy reveal the hidden antiquity sites.

Change Treasure Fleets to give +1 Happy on Lighthouses and Harbors, and +1 Culture on Markets, Lighthouses, and Harbors.
Change the exploration finisher to not reveal the hidden antiquity sites.

Change the texts on the policies to say what they do, and change the placement of policies to suit the prerequisites.

Instead it just changes the prereqs, moves them correctly, and makes Naval Tradition show Cartography. I didn't bother testing if the hidden antiquity sites work correctly.


You may notice the mod has a modified DLL, but doesn't use it. This is because this mod is the basis for a larger mod I have which I want to be compatible, but I want this mod to stand alone, too.
Thank you for any clarity you can lend.
 

Attachments

  • SoPolMod - ExplorationRevamp.zip
    4.1 MB · Views: 29
Logs showed I used a nonexistent table tag, Policy_BuildingYieldChanges. After correcting it everything in that file worked. Thanks!
 
Yes, you want <Policy_BuildingClassYieldChanges>, as in something like this, if I were adding a new building that had enhanced yields from adopting policies:
Code:
<Policy_BuildingClassYieldChanges>
	<Row>
		<PolicyType>POLICY_ORGANIZED_RELIGION</PolicyType>
		<BuildingClassType>BUILDINGCLASS_NEW_BUILDING</BuildingClassType>
		<YieldType>YIELD_FAITH</YieldType>
		<YieldChange>1</YieldChange>
	</Row>
	<Row>
		<PolicyType>POLICY_MERCANTILISM</PolicyType>
		<BuildingClassType>BUILDINGCLASS_NEW_BUILDING</BuildingClassType>
		<YieldType>YIELD_SCIENCE</YieldType>
		<YieldChange>1</YieldChange>
	</Row>
	<Row>
		<PolicyType>POLICY_MERCHANT_NAVY</PolicyType>
		<BuildingClassType>BUILDINGCLASS_NEW_BUILDING</BuildingClassType>
		<YieldType>YIELD_GOLD</YieldType>
		<YieldChange>1</YieldChange>
	</Row>
</Policy_BuildingClassYieldChanges>
 
Top Bottom