AssignStartingPlots.lua Help.

Horem

Emperor
Joined
Apr 1, 2010
Messages
1,721
Location
Wales, UK
Hello,

I have unofficaly been helping out with Community Call to Power. We have had problems with the new resources appearing on all map types(Conitinets, Four Corners, Fractal ext). CCTP currently uses Resource Generator v4 and we are limited too Pagnae and Continents map types only(All the others load but with 0 resources). So I took it upon myself to try and rectify this issue by following this awsome guide. Now it all seems to work okay, all 12 extra resources apear on the maps, apart from ALL resources only have a quantity of 1, New and Vanilla. I was under the impression that Resource Quantities were set in the XML, like so :-
Spoiler :
<Resource_QuantityTypes>
<Row>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
<Quantity>2</Quantity>
</Row>
</Resource_QuantityTypes>


This is were I get a bit stuck :). I can not seem to figure out where in the AssignStartingPlots.lua that it sets the Quantity for each resource placed. Any help on this would be greatfull. Sry my lua experience and skills are next to nothing. I'll attach the edited lua to this post so you can have a look at what I added/changed.

Sorry it just occured to me you may nee dto see the new resources xml :)
Spoiler :
<GameData>

<Resources>
<Row>
<Type>RESOURCE_ALLIGATOR</Type>
<TechCityTrade>TECH_TRAPPING</TechCityTrade>
<Description>TXT_KEY_RESOURCE_ALLIGATOR</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_ALLIGATOR_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_ALLIGATOR_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_DEER</ArtDefineTag>
<ArtDefineTagHeavy>ART_DEF_RESOURCE_DEER</ArtDefineTagHeavy>
<AltArtDefineTag>ART_DEF_RESOURCE_DEER</AltArtDefineTag>
<AltArtDefineTagHeavy>ART_DEF_RESOURCE_DEER</AltArtDefineTagHeavy>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Player>100</Player>
<Flatlands>true</Flatlands>
<IconString>[ICON_RES_ALLIGATOR]</IconString>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_COFFEE</Type>
<TechReveal>TECH_COFFEE_TRADE</TechReveal>
<TechCityTrade>TECH_COFFEE_TRADE</TechCityTrade>
<Description>TXT_KEY_RESOURCE_COFFEE</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_COFFEE_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_COFFEE_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_SPICE</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>70</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Player>100</Player>
<Hills>true</Hills>
<NoRiverSide>false</NoRiverSide>
<IconString>[ICON_RES_COFFEE]</IconString>
<PortraitIndex>1</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_COPPER</Type>
<TechCityTrade>TECH_BRONZE_WORKING</TechCityTrade>
<Description>TXT_KEY_RESOURCE_COPPER</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_COPPER_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_COPPER_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_URANIUM</ArtDefineTag>
<ArtDefineTagHeavy>ART_DEF_RESOURCE_URANIUM</ArtDefineTagHeavy>
<AltArtDefineTag>ART_DEF_RESOURCE_URANIUM</AltArtDefineTag>
<AltArtDefineTagHeavy>ART_DEF_RESOURCE_URANIUM</AltArtDefineTagHeavy>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>10</RandApp1>
<RandApp2>10</RandApp2>
<Player>100</Player>
<NoRiverSide>false</NoRiverSide>
<IconString>[ICON_RES_COPPER]</IconString>
<PortraitIndex>2</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_CORN</Type>
<Description>TXT_KEY_RESOURCE_CORN</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_CORN_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_CORN_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_WHEAT</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Flatlands>true</Flatlands>
<IconString>[ICON_RES_CORN]</IconString>
<PortraitIndex>3</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_CRAB</Type>
<TechCityTrade>TECH_SAILING</TechCityTrade>
<Description>TXT_KEY_RESOURCE_CRAB</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_CRAB_TEXT</Civilopedia>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_FISH</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>10</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>14</RandApp1>
<RandApp2>14</RandApp2>
<Player>67</Player>
<GroupRange>2</GroupRange>
<GroupRand>15</GroupRand>
<IconString>[ICON_RES_CRAB]</IconString>
<PortraitIndex>4</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_POPPY</Type>
<TechReveal>TECH_DRUGS</TechReveal>
<TechCityTrade>TECH_DRUGS</TechCityTrade>
<Description>TXT_KEY_RESOURCE_POPPY</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_POPPY_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_POPPY_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_BANANA</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Flatlands>true</Flatlands>
<IconString>[ICON_RES_POPPY]</IconString>
<PortraitIndex>6</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_RARE_EARTHS</Type>
<TechReveal>TECH_COMPUTERS</TechReveal>
<TechCityTrade>TECH_COMPUTERS</TechCityTrade>
<Description>TXT_KEY_RESOURCE_RARE_EARTHS</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_RARE_EARTHS_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_RARE_EARTHS_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_SILVER</ArtDefineTag>
<ArtDefineTagHeavy>ART_DEF_RESOURCE_SILVER</ArtDefineTagHeavy>
<AltArtDefineTag>ART_DEF_RESOURCE_SILVER</AltArtDefineTag>
<AltArtDefineTagHeavy>ART_DEF_RESOURCE_SILVER</AltArtDefineTagHeavy>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>10</RandApp1>
<RandApp2>10</RandApp2>
<Player>100</Player>
<Hills>true</Hills>
<NoRiverSide>false</NoRiverSide>
<IconString>[ICON_RES_RARE_EARTHS]</IconString>
<PortraitIndex>7</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_RICE</Type>
<Description>TXT_KEY_RESOURCE_RICE</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_RICE_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_RICE_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_WHEAT</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Flatlands>true</Flatlands>
<IconString>[ICON_RES_RICE]</IconString>
<PortraitIndex>8</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_SOYBEANS</Type>
<Description>TXT_KEY_RESOURCE_SOYBEANS</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_SOYBEANS_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_SOYBEANS_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_WHEAT</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Flatlands>true</Flatlands>
<IconString>[ICON_RES_SOYBEANS]</IconString>
<PortraitIndex>9</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_TEA</Type>
<Description>TXT_KEY_RESOURCE_TEA</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_TEA_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_TEA_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_WINE</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>70</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Player>100</Player>
<Hills>true</Hills>
<NoRiverSide>false</NoRiverSide>
<IconString>[ICON_RES_TEA]</IconString>
<PortraitIndex>10</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_TITANIUM</Type>
<TechReveal>TECH_ADVANCED_FLIGHT</TechReveal>
<TechCityTrade>TECH_ADVANCED_FLIGHT</TechCityTrade>
<Description>TXT_KEY_RESOURCE_TITANIUM</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_TITANIUM_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_TITANIUM_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_COAL</ArtDefineTag>
<ArtDefineTagHeavy>ART_DEF_RESOURCE_COAL</ArtDefineTagHeavy>
<AltArtDefineTag>ART_DEF_RESOURCE_COAL</AltArtDefineTag>
<AltArtDefineTagHeavy>ART_DEF_RESOURCE_COAL</AltArtDefineTagHeavy>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MinAreaSize>3</MinAreaSize>
<MaxLatitude>90</MaxLatitude>
<RandApp1>10</RandApp1>
<RandApp2>10</RandApp2>
<Player>100</Player>
<Hills>true</Hills>
<NoRiverSide>false</NoRiverSide>
<IconString>[ICON_RES_TITANIUM]</IconString>
<PortraitIndex>11</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_TOBACCO</Type>
<TechReveal>TECH_DRUGS</TechReveal>
<TechCityTrade>TECH_DRUGS</TechCityTrade>
<Description>TXT_KEY_RESOURCE_TOBACCO</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_TOBACCO_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_TOBACCO_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_SILK</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MaxLatitude>70</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Player>100</Player>
<Flatlands>true</Flatlands>
<NoRiverSide>false</NoRiverSide>
<IconString>[ICON_RES_TOBACCO]</IconString>
<PortraitIndex>12</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>
<Row>
<Type>RESOURCE_COCOA</Type>
<Description>TXT_KEY_RESOURCE_COCOA</Description>
<Civilopedia>TXT_KEY_CIV5_RESOURCE_COCOA_TEXT</Civilopedia>
<Help>TXT_KEY_RESOURCE_COCOA_HELP</Help>
<ResourceClassType>RESOURCECLASS_RUSH</ResourceClassType>
<ArtDefineTag>ART_DEF_RESOURCE_BANANA</ArtDefineTag>
<AITradeModifier>10</AITradeModifier>
<ResourceUsage>1</ResourceUsage>
<AIObjective>1</AIObjective>
<ConstAppearance>100</ConstAppearance>
<MaxLatitude>70</MaxLatitude>
<RandApp1>20</RandApp1>
<RandApp2>20</RandApp2>
<Player>100</Player>
<NoRiverSide>false</NoRiverSide>
<IconString>[ICON_RES_COCOA]</IconString>
<PortraitIndex>13</PortraitIndex>
<IconAtlas>RESOURCE_ATLAS_2</IconAtlas>
<!--ResourceUsage 0= bonus, 1 = strategic 2 = luxury-->

</Row>

</Resources>


<Resource_YieldChanges>
<Row>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
<YieldType>YIELD_GOLD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<YieldType>YIELD_GOLD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_CORN</ResourceType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_CRAB</ResourceType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_POPPY</ResourceType>
<YieldType>YIELD_GOLD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_RARE_EARTHS</ResourceType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_RICE</ResourceType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_SOYBEANS</ResourceType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_TEA</ResourceType>
<YieldType>YIELD_GOLD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_TITANIUM</ResourceType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_TOBACCO</ResourceType>
<YieldType>YIELD_GOLD</YieldType>
<Yield>5</Yield>
</Row>
<Row>
<ResourceType>RESOURCE_COCOA</ResourceType>
<YieldType>YIELD_GOLD</YieldType>
<Yield>5</Yield>
</Row>
</Resource_YieldChanges>

<Resource_TerrainBooleans>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<TerrainType>TERRAIN_DESERT</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<TerrainType>TERRAIN_HILL</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<TerrainType>TERRAIN_HILL</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_CORN</ResourceType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_CORN</ResourceType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_CRAB</ResourceType>
<TerrainType>TERRAIN_COAST</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_POPPY</ResourceType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_POPPY</ResourceType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_RARE_EARTHS</ResourceType>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_RARE_EARTHS</ResourceType>
<TerrainType>TERRAIN_DESERT</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_RARE_EARTHS</ResourceType>
<TerrainType>TERRAIN_HILL</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_RICE</ResourceType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_SOYBEANS</ResourceType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_TEA</ResourceType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_TEA</ResourceType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_TEA</ResourceType>
<TerrainType>TERRAIN_HILL</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_TITANIUM</ResourceType>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_TITANIUM</ResourceType>
<TerrainType>TERRAIN_DESERT</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_TITANIUM</ResourceType>
<TerrainType>TERRAIN_HILL</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_TOBACCO</ResourceType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_TOBACCO</ResourceType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>

</Resource_TerrainBooleans>

<Resource_FeatureBooleans>
<Row>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
<FeatureType>FEATURE_FLOOD_PLAINS</FeatureType>
</Row>
<Row>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
<FeatureType>FEATURE_MARSH</FeatureType>
</Row>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<FeatureType>FEATURE_JUNGLE</FeatureType>
</Row>
<Row>
<ResourceType>RESOURCE_RICE</ResourceType>
<FeatureType>FEATURE_FLOOD_PLAINS</FeatureType>
</Row>
<Row>
<ResourceType>RESOURCE_COCOA</ResourceType>
<FeatureType>FEATURE_JUNGLE</FeatureType>
</Row>
</Resource_FeatureBooleans>

<Resource_FeatureTerrainBooleans>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_COCOA</ResourceType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ResourceType>RESOURCE_COCOA</ResourceType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>
</Resource_FeatureTerrainBooleans>

<Resource_QuantityTypes>
<Row>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<Quantity>6</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_CORN</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_CORN</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_CRAB</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_CRAB</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_POPPY</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_POPPY</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_RARE_EARTHS</ResourceType>
<Quantity>6</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_RARE_EARTHS</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_RICE</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_RICE</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_SOYBEANS</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_SOYBEANS</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_TEA</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_TEA</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_TITANIUM</ResourceType>
<Quantity>6</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_TITANIUM</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_TOBACCO</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_TOBACCO</ResourceType>
<Quantity>1</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_COCOA</ResourceType>
<Quantity>2</Quantity>
</Row>
<Row>
<ResourceType>RESOURCE_COCOA</ResourceType>
<Quantity>1</Quantity>
</Row>
</Resource_QuantityTypes>
<Improvement_ResourceTypes>
<Row>
<ImprovementType>IMPROVEMENT_CAMP</ImprovementType>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_MINE</ImprovementType>
<ResourceType>RESOURCE_COPPER</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_PLANTATION</ImprovementType>
<ResourceType>RESOURCE_COFFEE</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_FARM</ImprovementType>
<ResourceType>RESOURCE_CORN</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_FISHING_BOATS</ImprovementType>
<ResourceType>RESOURCE_CRAB</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_FARM</ImprovementType>
<ResourceType>RESOURCE_POPPY</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_MINE</ImprovementType>
<ResourceType>RESOURCE_RARE_EARTHS</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_FARM</ImprovementType>
<ResourceType>RESOURCE_RICE</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_FARM</ImprovementType>
<ResourceType>RESOURCE_SOYBEANS</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_PLANTATION</ImprovementType>
<ResourceType>RESOURCE_TEA</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_MINE</ImprovementType>
<ResourceType>RESOURCE_TITANIUM</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_PLANTATION</ImprovementType>
<ResourceType>RESOURCE_TOBACCO</ResourceType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_PLANTATION</ImprovementType>
<ResourceType>RESOURCE_COCOA</ResourceType>
</Row>

</Improvement_ResourceTypes>

<Language_en_US>
<Row Tag="TXT_KEY_RESOURCE_ALLIGATOR">
<Text>Alligator</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_ALLIGATOR_HELP">
<Text>Exotic meat and leather sought out by the wealthy.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_COFFEE">
<Text>Coffee</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_COFFEE_HELP">
<Text>Aromatic beans coveted by many.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_COPPER">
<Text>Copper</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_COPPER_HELP">
<Text>Metal used in a vast number of processes.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_CORN">
<Text>Corn</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_CORN_HELP">
<Text>Stape food originally from the Americas.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_CRAB">
<Text>Crab</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_CRAB_HELP">
<Text>Succulent food from the depths of the sea.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_POPPY">
<Text>Poppy</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_POPPY_HELP">
<Text>Both vital Medicine and Addictive Drug.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_RARE_EARTHS">
<Text>Rare Earths</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_RARE_EARTHS_HELP">
<Text>Key group of resources needed for many post modern technologies.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_RICE">
<Text>Rice</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_RICE_HELP">
<Text>Staple food originally from Asia.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_SOYBEANS">
<Text>Soybeans</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_SOYBEANS_HELP">
<Text>High protein staple food.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_TEA">
<Text>Tea</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_TEA_HELP">
<Text>Herbal drink favored in many cultures.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_TITANIUM">
<Text>Titanium</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_TITANIUM_HELP">
<Text>Valuable metal prized in the Aerospace Industry.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_TOBACCO">
<Text>Tobacco</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_TOBACCO_HELP">
<Text>Commodity that is smoked or chewed.</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_COCOA">
<Text>Cocoa</Text>
</Row>
<Row Tag="TXT_KEY_RESOURCE_COCOA_HELP">
<Text>Highly valued for the making of Chocolate and other sweeteners..</Text>
</Row>
</Language_en_US>
<Resource_Flavors>
<Row>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_ALLIGATOR</ResourceType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>0</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_COPPER</ResourceType>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_COFFEE</ResourceType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_CORN</ResourceType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_CRAB</ResourceType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_CRAB</ResourceType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_POPPY</ResourceType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>2</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_POPPY</ResourceType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_POPPY</ResourceType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_RARE_EARTHS</ResourceType>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_RICE</ResourceType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_SOYBEANS</ResourceType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_TEA</ResourceType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_TEA</ResourceType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_TITANIUM</ResourceType>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_TOBACCO</ResourceType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_TOBACCO</ResourceType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_COCOA</ResourceType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<ResourceType>RESOURCE_COCOA</ResourceType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
</Resource_Flavors>
<!--<IconFontMapping> not working
<Row>
<IconName>ICON_RES_ALLIGATOR</IconName>
<IconMapping>79</IconMapping>
</Row>
</IconFontMapping>-->
<!--<ArtDefine_StrategicView> not working
<Row>
<StrategicViewType>ART_DEF_RESOURCE_ALLIGATOR</StrategicViewType>
<TileType>Resource</TileType>
<Asset>sv_tradecitystate.dds</Asset>
</Row>
</ArtDefine_StrategicView>-->
</GameData>
 
you should start looking at GetMajorStrategicResourceQuantityValues(), good luck...

I don't know what they thought when they made this file :-/
 
This method is used for Luxuries
Ive figured it out since I first posted, its all about this function:- PlaceSpecificNumberOfResources
and what it calls for the stuff in brackets after it in this line:- PlaceSpecificNumberOfResources(use_this_ID, 1, 1, 1, -1, 0, 0, shuf_list)

The Number in Bold is the Quantity to place, ie 1, change it to 2 and you get 2 :)

This is used for Strategic Resources as far as I can tell.
Its also possible to set it its call from somthing else form the quantity like this line :- PlaceSpecificNumberOfResources(self.copper_ID, copper_amt, 1, 1, -1, 0, 0, shuf_list)

Where copper_amt is set elese where and looks like :- local uran_amt, horse_amt, oil_amt, iron_amt, coal_amt, alum_amt, copper_amt, titanium_amt, earths_amt, alligator_amt, coffee_amt, corn_amt, poppy_amt, rice_amt, beans_amt, tea_amt, tobacco_amt, cocoa_amt = 4, 4, 7, 6, 7, 8, 8, 6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4;

where the numbers are the values to place.

This Method is used for bonus resources.
For some reason the bonus resoruces are much smaller lines of code:-
local resources_to_place = {
{self.wheat_ID, 3, 100, 2, 3} };

The bold number been the quantity.
 
Back
Top Bottom