Increase resource density?

Stangle Khan

Warlord
Joined
Jan 26, 2015
Messages
137
Location
Texas
So I've been fiddling with a few files and trying to increase the number of resources in a given map, mostly due to how horribly resource density scales with map size. Small maps have high resource density but large ones tend to be rather sparse.

I've tried editing GameInfo.Maps[Map.GetMapSize()].DefaultPlayers * 2; from the Resource Generator but that doesn't seem to do it. What files and values would increase the number of resources if changed?

I know YNAEMP does this pretty well but it's tied to a ruleset which removes any capabilities to work with other mods' rulesets.
 
Try changing these values in the

ResourceGenerator.lua (found in Maps\Utility)

Code:
        iTargetPercentage   = 28;
        iStandardPercentage = 28;
        iLuxuryPercentage   = 20;
        iStrategicPercentage   = 21;
        iOccurencesPerFrequency = 0;
        iLuxuriesPerRegion = 4;

They determine how many tiles can have a resource.
 
I tried editing them and it doesn't seem to have an affect at all really. Going so far as to quadruple it without any visible effect. For good measure I turned them all to 0 and it also had no effect so far as I could tell.
 
On which map type did you try? It must be a map script that actually uses the ResourceGenerator.lua (one of the official ones, not Earth and not Balanced)
 
Top Bottom