XML-based resource placement

PawelS

Ancient Druid
Joined
Dec 11, 2003
Messages
2,811
Location
Poland
Is there a modcomp that places resources automatically based on the values defined in XML (like in Civ4) instead of the methods used in AssignStartingPlots.lua?

If not, I'll have to do it myself for my mod, because I'm going to add some resources, and I don't want to write LUA functions to place all of them individually...
 
AFAIK there's no modcomp doing that, but you can refer to WorldBuilderRandomItems.lua to make one, I don't know if it'll need a lot of work to use it on scripted maps, but this file is used by the random resource placement for WorldBuilder maps and it takes the resources values from the tables defined in the resources XML. I'm using a slightly modified version of this file in YnAEMP to allow random but controlled resources placement on the TSL maps of the mod.
 
Back
Top Bottom