451
DF Suggestions / Re: Rock beds
« on: October 03, 2009, 09:12:12 am »Could someone at least tell me how do I add rock beds to my game then? Please?
That is not possible yet ...
Not quite true.
You can make a custom reaction at the smelter. For instance:
Code: [Select]
[REACTION:BED_GLASS_GREEN]
[NAME:make green glass bed]
[SMELTER]
[REAGENT:3:ROUGH:NO_SUBTYPE:GLASS_GREEN:NO_MATGLOSS]
[PRODUCT:100:1:BED:NO_SUBTYPE:GLASS_GREEN:NO_MATGLOSS]
[FUEL]This is from the "glass fortress" mod, slightly modified by me(the original form used blocks). The reaction takes three units of raw glass, at a smelter, either using fuel or powered by magma, and produces a green glass bed which is then used as normal.
However, you can't just drop this into an existing fortress. Making a new reaction in the raw/objects/reaction_standard.txt file requires a new world gen.
You could cannibalize an existing reaction, if you were sure you didn't want to use it. Let us take, for example, the reaction to make billon bars, using a bar of silver and a bar of copper. I rarely use this; silver is more valuable on its own, but the reaction DOES allow you to make the most of tetrahedrite and galena, which otherwise have less than 100% returns for silver. (With tetrahedrite, a single rock can spit out two bars, so that's almost a cheat, but I think it's the same reason making pig iron and steel at a regular smelter doesn't need any refined coal beyond the fuel; the same ingredient satisfies both slots. So there's no way to bring that in line without nerfing the use of other ores.)
Within reaction_standard.txt there is:
Code: [Select]
[REACTION:BILLON_MAKING2]
[NAME:make billon bars (use bars)]
[SMELTER]
[REAGENT:1:BAR:NO_SUBTYPE:METAL:SILVER]
[REAGENT:1:BAR:NO_SUBTYPE:METAL:COPPER]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:BILLON]
[FUEL]Now, so long as you leave the first tag alone, you can gut the rest:
Code: [Select]
[REACTION:BILLON_MAKING2]
[NAME:make rock bed]
[SMELTER]
[REAGENT:5:STONE:NO_SUBTYPE:STONE:ORTHOCLASE]
[PRODUCT:100:1:BED:NO_SUBTYPE:STONE:ORTHOCLASE]
Here I have changed the name shown in game, dropped one reagent entirely, and changed the other to use five units of orthoclase and turn it into a single orthoclase bed, which functions normally(but is, of course, heavier to move and install); this reaction needs no fuel. Replace orthoclase with whatever rock is horribly common on your map - check the matgloss_stone_layer and matgloss_stone_mineral files to make sure the name is correct(the bit in ALLCAPS needs to match exactly, or you get an extremely heavy, worthless, nondisplaying "generic rock").
If you have thousands of that rock, you could even up the number used to 10 or more, but if you do, make sure the smelter doing it is near your stone dump.
Also, note well - this reaction takes place at a smelter, not a mason's shop as you might think. Until custom workshops are in, that's the best we can do; all custom and/or editable reactions are at the smelter. If you're using the manager to issue smelt orders, this could cause problems if you make a (non-magma) smelter specifically to churn out custom reactions; the smelt orders will pop up there as well. If your others are all normal smelters, this means your furnace operators and metal haulers will be running to a different place than normal, which might be bad enough; if you are using magma buildings, this will either use up refined coal on those smelt jobs, or generate job cancel spam due to your lack of coal(or use all your coal and then spam).