Map Generation Mod?

Started by Kilroy232, April 15, 2014, 03:37:24 PM

Previous topic - Next topic

Kilroy232

So looking at the BaseMapGenerators.xml and trying to figure out how I would go about making it so that the game would spawn Crystal stalagmites inside the rock?


<!-- Place minerals inside the rocks -->
<li Class="Genner_ScatterMinerals">
<thingDefs>
<li>Mineral</li>
</thingDefs>
<chunkSize>29</chunkSize>
<minSpacing>5</minSpacing>
<countPer10kSquaresRange>
<min>10</min>
<max>10</max>
</countPer10kSquaresRange>
<forcedPlaceOffsets>
<li>(-5,0,-11)</li>
</forcedPlaceOffsets>
</li>

<!-- Steam geysers -->
<li Class="Genner_ScatterThings">
<thingDefs>
<li>SteamGeyser</li>
</thingDefs>
<minSpacing>35</minSpacing>
        <buildableAreaOnly>true</buildableAreaOnly>
<countPer10kSquaresRange>
<min>0.7</min>
<max>1.0</max>
</countPer10kSquaresRange>
<clearSpaceSize>30</clearSpaceSize>
<minDistToPlayerStart>15</minDistToPlayerStart>
</li>


So i am wondering specifically what the <thingDefs><li>Mineral</li></thingDefs> references and where that reference can be found so that I can begin making a new one for my purpose

iame6162013

it's the ore called Mineral (the orage thing in the rock that drop's metal ;) )
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Robert J. Hanlon: "Never attribute to malice that which is adequately explained by stupidity."

Kilroy232

Quote from: iame6162013 on April 15, 2014, 04:26:57 PM
it's the ore called Mineral (the orage thing in the rock that drop's metal ;) )

I need to know the specific file I find the referenced thing in though (in this case 'Mineral')

iame6162013

it's in core/Defs/ThingsDef/Buildings_Natural ;)
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Robert J. Hanlon: "Never attribute to malice that which is adequately explained by stupidity."

Kilroy232

Quote from: iame6162013 on April 17, 2014, 05:18:07 PM
it's in core/Defs/ThingsDef/Buildings_Natural ;)

you sir are the best

Tynan

If you ever need to find a def by name, just search the whole directory for <defName>THENAME

You'll find it then!
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Kilroy232

Quote from: Tynan on April 17, 2014, 11:04:54 PM
If you ever need to find a def by name, just search the whole directory for <defName>THENAME

You'll find it then!

Thank you, this is good to know