How to alter map resources to make them more or less plentiful

Bob Dalton

Chieftain
Joined
Oct 30, 2016
Messages
4
Important note: As always before altering any game file keep a backup of the original in a separate folder so you can quickly restore the file to its original state if things go wrong!

Need to increase or decrease the level of resources on the Civ 6 map?

To do so just go to the \Base\Assets\Gameplay\Data directory and edit the resources.xml file. In an XML editor such as UltraEdit, go to line number 169 where you will find the section where the resources are located. The parameter you want to change is "Frequency=".

FYI strategic resources start on line number 213.

That's all there is to it.

Bob
 
Do you think this simply weights certain resources over others, or does it increase the absolute number of a resource? I turned crab way up as a test and saw lots and lots of crab. But does this come at the expense of other resources?
 
Do you think this simply weights certain resources over others, or does it increase the absolute number of a resource? I turned crab way up as a test and saw lots and lots of crab. But does this come at the expense of other resources?

Sorry, but I haven't tested this much as of yet so cannot tell you at this time with any degree of certainty. An educated guess would be that it is a percentage chance of that item showing up given the frequency numbers I see for various items in that file. I doubt that this penalizes other resources, but I might be wrong.

Bob
 
The code for this can be found in ResourceGenerator.
As far as I can see a function iterates over all possible plots of the map and checks if a given resource is placable on that tile. If so a score of 500 is set, but in the next step divided by a number that is calculated from the number of adjacent resources around that tile. So there more resources already around, the lower the score will be. Interestingly a completely random number (so it seems) is added to the score and the tile inserted into a pool of possible locations, together with its score.
Lastly, a set amount of resources (calculated earlier with the Frequency mentioned by Bob) is placed, beginning with the one with the highest score.

So overall the Frequency seems to only have any effect on how many resources can potentionally be placed, but not how likely it is that a specific plot is assigned a resource.

Really interesting stuff in there.
 
Back
Top Bottom