Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Modding Stone Layers to drop fewer stones when mined.  (Read 774 times)

Truean

  • Bay Watcher
  • Ok.... [sigh] It froze over....
    • View Profile
Modding Stone Layers to drop fewer stones when mined.
« on: September 10, 2009, 10:13:04 am »

Well, I, like all of you, have wayy too much stone lying around. There are many backend solutions: dwarven atom smasher, stonecrafting, etc. I would like to propose a frontend solution: modding.

Is it possible to mod stone layers to not drop as many stones when they are mined or is this hard coded?

I realize that mining skill plays a role in how many stones are produced by a given mining dwarf (can be confirmed through experiments using DF companion to mod skills and attributes and mining out 10x10 areas with dwarves of differently edited skill sets/attributes), but is that all there is to it?

Any thoughts?
Logged
The kinda human wreckage that you love

Current Spare Time Fiction Project: (C) 2010 http://www.bay12forums.com/smf/index.php?topic=63660.0
Disclaimer: I never take cases online for ethical reasons. If you require an attorney; you need to find one licensed to practice in your jurisdiction. Never take anything online as legal advice, because each case is different and one size does not fit all. Wants nothing at all to do with law.

Please don't quote me.

Haspen

  • Bay Watcher
  • Cthuwu
    • View Profile
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #1 on: September 10, 2009, 10:29:17 am »

Weeeell, you can erase all the non-economic, non-layer stones and leave just few of them in the raws.

When it comes to stones like that:
[ENVIRONMENT:SEDIMENTARY:CLUSTER:100]
Just change it to:
[ENVIRONMENT:SEDIMENTARY:CLUSTER:1]
So it will happen very seldom.

You can also make some fun and add [SOIL] to the stones :P
Logged
SigFlags!
Quote from: Draignean@Spamkingdom+
Truly, we have the most uniquely talented spy network in all existence.
Quote from: mightymushroom@Spamkingdom#
Please tell me the Royal Physician didn't go to the same college as the Spymaster.

Blargityblarg

  • Bay Watcher
  • rolypolyrolypolyrolypoly
    • View Profile
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #2 on: September 11, 2009, 03:49:04 am »

Haspen, I think he's complaining about all stone, not just non-layer stone.

I don't believe there's a modding workaround. Sorry.
Logged
Blossom of orange
Shit, nothing rhymes with orange
Wait, haikus don't rhyme

Rvlion

  • Bay Watcher
    • View Profile
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #3 on: September 11, 2009, 05:51:27 am »

Weeeell, you can erase all the non-economic, non-layer stones and leave just few of them in the raws.

When it comes to stones like that:
[ENVIRONMENT:SEDIMENTARY:CLUSTER:100]
Just change it to:
[ENVIRONMENT:SEDIMENTARY:CLUSTER:1]
So it will happen very seldom.

You can also make some fun and add [SOIL] to the stones :P
De best possible solution is indeed to turn all layers into soil.  ;D
Logged

forsaken1111

  • Bay Watcher
    • View Profile
    • TTB Twitch
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #4 on: September 11, 2009, 11:14:44 pm »

Complex solution which should sorta work:

Duplicate all stone layers. Make the duplicate a soil layer (so it drops no stones) and make the original stone only show up in clusters of the soil-stone.

You'd have to do some modding of gems and ore and the like as well, to make them show up correctly.
Logged

KFD

  • Bay Watcher
    • View Profile
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #5 on: September 12, 2009, 07:48:04 pm »

Your overthinking the solution, instead of editing every single stone types raws, edit the dwarves. Make the chance of legendary miners to find stone 20%(or whatever you want), lke the lower skilled miners, instead of the 100% legendary miners have by default.
Logged

SimRobert2001

  • Bay Watcher
    • View Profile
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #6 on: September 12, 2009, 08:06:38 pm »

won't that also affect how much ore is dropped as well?

things like gold, aluminum, gems should be affected as well, if i'm not mistaken.
Logged

tefalo

  • Bay Watcher
  • Priest of Syrinx
    • View Profile
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #7 on: September 12, 2009, 09:00:29 pm »

Are you insinuating that you don't want microcline?
Logged

forsaken1111

  • Bay Watcher
    • View Profile
    • TTB Twitch
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #8 on: September 12, 2009, 09:39:24 pm »

Your overthinking the solution, instead of editing every single stone types raws, edit the dwarves. Make the chance of legendary miners to find stone 20%(or whatever you want), lke the lower skilled miners, instead of the 100% legendary miners have by default.

And where is this edited?
Logged

Keuran

  • Bay Watcher
  • not made of spiders
    • View Profile
Re: Modding Stone Layers to drop fewer stones when mined.
« Reply #9 on: September 12, 2009, 10:06:52 pm »

The miner skill->stone% is hardcoded, but you could give the common layer stones, like basalt the [BOILING_POINT:10018] tag, so they just dissolve into mist, but make sure not to set it too low or your dwarves will freeze to death while digging it out.
Logged