Caravans and Resources

Does anyone know what file controls how caravans work? I want to get rid of the food bonus and change it to gold bonus. In fact I would like to scrap the whole bonus thing and have caravans transport resources. I figured how to get rid of the Global resources sharing, but can't figure out how to use the caravans to transport resources to cities that need the resources.

6,161 views 7 replies
Reply #1 Top

I couldn't find it. I'd love for caravans to either trade gold or, better yet, share resources between cities. IMO, this would really make caravans more important, meaningful, and make more sense.

Like they say in Alabama, "It just makes sense. Does it to you?".

Reply #2 Top

Been looking in to this as well, but not coming up with any luck so far.

 

CoreResources.xml seems to define whether the Caravans trade anything other then Rations (Food), but messing with the Shared tags doesn't seem to do any difference.

Reply #3 Top

elementaldefs defines how much of a rousource is traded, i've been looking into this too with no luck

Reply #4 Top

It seems obvious enough from the CoreResources.xml file.

 

<Shared>
  Shared resources get hauled in caravans and given bonuses when roads are connected (food).
  Un-shared resources are held within their city, not giving bonuses to friendly cities (population, prestige, etc)

 

Code: xml
  1. &lt;ResourceType InternalName="GoldType01"&gt;
  2.         &lt;DisplayName&gt;Gildar&lt;/DisplayName&gt;
  3.         &lt;Type&gt;Gold&lt;/Type&gt;
  4.         &lt;IconColor&gt;0,0,0&lt;/IconColor&gt;
  5.         &lt;Icon&gt;Gfx//Icons//Res_Icon_Gold.png&lt;/Icon&gt;
  6.         &lt;ClothIcon&gt;gfx\\TacticalIcons\\MetalOre_1.png&lt;/ClothIcon&gt;
  7.         &lt;ModelColor&gt;0,0,0&lt;/ModelColor&gt;
  8.         &lt;Worth&gt;1&lt;/Worth&gt;
  9.         &lt;Global&gt;1&lt;/Global&gt;
  10.         &lt;Rarity&gt;0.0&lt;/Rarity&gt;
  11.         &lt;Shared&gt;0&lt;/Shared&gt;
  12.         &lt;TradedByCaravans&gt;1&lt;/TradedByCaravans&gt;
  13.     &lt;ShownInGlobalDisplay&gt;1&lt;/ShownInGlobalDisplay&gt;
  14.         &lt;Medallions InternalName="Gold_Res_Medallions"&gt;
  15.             &lt;All&gt;Res_Ores_Plains.png&lt;/All&gt;
  16.         &lt;/Medallions&gt;
  17.     &lt;/ResourceType&gt;
  18.     &lt;!-- ************* --&gt;
  19.     &lt;!-- ** Rations ** --&gt;
  20.     &lt;!-- ************* --&gt;
  21.     &lt;ResourceType InternalName="RationsType01"&gt;
  22.         &lt;DisplayName&gt;Food&lt;/DisplayName&gt;
  23.         &lt;Type&gt;Rations&lt;/Type&gt;
  24.         &lt;IconColor&gt;0,0,0&lt;/IconColor&gt;
  25.         &lt;Icon&gt;Gfx//Icons//Res_Icon_Food.png&lt;/Icon&gt;
  26.         &lt;ClothIcon&gt;gfx\\TacticalIcons\\MetalOre_1.png&lt;/ClothIcon&gt;
  27.         &lt;ModelColor&gt;0,0,0&lt;/ModelColor&gt;
  28.         &lt;Worth&gt;5&lt;/Worth&gt;
  29.         &lt;Global&gt;1&lt;/Global&gt;
  30.         &lt;Rarity&gt;0.0&lt;/Rarity&gt;
  31.         &lt;Stored&gt;0&lt;/Stored&gt;
  32.         &lt;TradedByCaravans&gt;0&lt;/TradedByCaravans&gt;
  33.     &lt;ShownInGlobalDisplay&gt;1&lt;/ShownInGlobalDisplay&gt;
  34.     &lt;Medallions InternalName="Ration_Res_Medallions"&gt;
  35.       &lt;All&gt;Res_Ores_Plains.png&lt;/All&gt;
  36.     &lt;/Medallions&gt;
  37.   &lt;/ResourceType&gt;

 

Rations AKA Food is shared by Caravans, and no other resource is. But fiddling with this does nothing to allow Gold to be traded.

Which leads me to believe it's probably hardcoded or something.

Reply #5 Top

Smells like a case of not being able to overwrite the type properly. We can add or alter tags, but how do we remove them?

Reply #6 Top

Out of curiosity, have you tried setting the actual rations to 1 and 0 to see if it has any affect? I don't have the game /code n front of me to test, but it may only allow one variable to pass.

Reply #7 Top

Quoting i3elial, reply 6
Out of curiosity, have you tried setting the actual rations to 1 and 0 to see if it has any affect? I don't have the game /code n front of me to test, but it may only allow one variable to pass.
End of i3elial's quote

 

Yep, and I've tried without a tag, as it shows for Rations by default. It still seems to only trade rations between cities.