Dwarf Fortress > DF Modding
A new stone layer?
StagnantSoul:
I really want to make a stone layer filled with precious and rare gems, lined with platinum, silver, and gold, with hematite and dolomite veins through it. How would I do this? If it would require tons of work, like more than making a new creature from a blank document, I could settle for adding gems and ores to the sedimentary layers.
gentgeen:
This is a multi-step process. First, you will need to decide if you will either a) add your new stone layer to inorganic_stone_layer.txt, or b) create a new file in the raws folder named something like inorganic_stone_layer_StagnantSout.txt (or any file name you like). If you do the latter, the first line of the text file must be the name of the file without the ".txt", and the next needs to be [OBJECT:INORGANIC]. The second option is generally considered cleaner.
Then you'll need to define your layer stone. Give it a name, like "Sillystone", and change the raws of an existing stone to describe its color, tile, physical properties, etc. Note, you must define the stone layer as one of [METAMORPHIC], [SEDIMENTARY], [IGNEOUS_INTRUSIVE], or [IGNEOUS_EXTRUSIVE]. This is necessary for the game to understand the inorganic being described is a stone layer, but will cause problems for your next step.
Finally, you need to go into the raws of all the minerals, gems, etc, that you want to appear in your layer and add an [ENVIRONMENT_SPEC] tag to each of them to appear in Sillystone, for example: Native Gold would be modded to include [ENVIRONMENT_SPEC:SILLYSTONE:VEIN:100], which will make veins of native gold appear in sillystone. Your choices to replace "VEIN" are VEIN, CLUSTER, CLUSTER_SMALL, and CLUSTER_ONE.
Now, there is where your problems lie. Some minerals and gems are set to appear in all stones of a layer, not specific stones. For example, cinnabar (which is not particularly useful in game) appears as veins in all igneous extrusive layers. You could conceivably go through every mineral and gem and change their raws so that they will not appear in the layer type unless they're a mineral/gem you'd want, but that'll be a lot of effort; although, as you're already going to need to go through all the raws anyway, it might not be as much extramwork as I'm thinking.
StagnantSoul:
Thanks! I'll get working on that tomorrow. Is there a way to make it so it's not super thick? I want it to be like a huge-ish reward, but not guaranteed.
Quietust:
--- Quote from: StagnantSoul on October 26, 2014, 06:24:25 pm ---Is there a way to make it so it's not super thick?
--- End quote ---
Nope - it will be exactly as thick as any other stone layer, and it will also be exactly as common as any other stone layer, provided it's capable of appearing underground - Igneous Extrusive and Sedimentary stones will only appear on the topmost layer of a given biome, and everything else underneath will be either Igneous Intrusive or Metamorphic.
GavJ:
Thickness you can't control, but you can actually change how common it is by making redundant entries for the other layer stones
So instead of ingeous intrusive being granite, gabbro, sillystone or whatever, you make it:
granite1, granite2, granite3, gabbro1, gabbro2, gabbro3, sillystone (all the granites still have just "granite" as the in-game name, which is separate from the code name)
Thus, sillystone has a 1/7 chance of showing up, instead of a 1/3 chance. As a side effect, it's also more likely to get more than one granite layer in a row or something, but that's not a big deal. It's actually more realistic than vanilla, in fact! Different types of intrusive stone with different chemistries (like gabbro and granite) would rarely be on top of one another anyway, so not a big deal if you increase the chance of uniformity across the non-sillystone types.
Navigation
[0] Message Index
[#] Next page
Go to full version