Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Choosing Material to build doors with  (Read 2037 times)

The-Moon

  • Bay Watcher
    • View Profile
Choosing Material to build doors with
« on: February 05, 2008, 08:38:00 pm »

I know that this question was answered before, because i saw the answer before in a thread. However i cannot find that thread again and i didn't find nothing with search.

How do i get my dwarfs to build doors or other objects with a certain type of rock.

I'm pretty sure that it had something to do with z > Stone

But looking in stone restrictions doesn't make sense. I have several different types of stone laying around, and the stone mason will use which ever ones he can get his hands on. (In fact thats another problem.... one second)

In stone Restrictions i have all the stones in red aside from marble, but he still uses the other stones even tho there red.

So i don't really get exactally how to get my mason to just use one type of stone.

The other problem i just thought of a second ago. My masons don't seem to use the stones closet to them. Especially for building walls or floors, They will walk 10 times away from where the walls being built, to get a stone to build it with, even tho theres like 200 of that type of stone right near the wall. Those 200 stones are not set to be dumped or forbidden either...

Is this a known bug?

I bet people would experience a lot less lag if the code got cleaned up a bit.

The code should check next to the wall for a stone, and then work outwards in a radius, i can not even imagine how its setup now :-\ (i'm a programmer too so i kinda know these things)

Any help would be appreciated, thank you  :)

Logged
There is absolutely no time, to be taking time for granted. ~Busta Rhymes

THLawrence

  • Bay Watcher
  • Mad Scientest
    • View Profile
Re: Choosing Material to build doors with
« Reply #1 on: February 05, 2008, 08:57:00 pm »

The thing about using the economic stone screen only works for economic stones. There was a mod around here that had a reaction that contained every stone in the game. This would cause every type of stone to become economic and then you can place some controls on what to build with. I can't remember where but someone will point it out soon enough. Someone should put it on the wiki.

The thing with the path finding is it takes the nearest stone by absolute distance. (or was it the x-y distance while ignoring z distance) Not path finding distance. So if there are stone directly underneath them on a lower level they'll go after those first.

Logged

Skanky

  • Bay Watcher
  • I'm building a wagon!
    • View Profile
Re: Choosing Material to build doors with
« Reply #2 on: February 05, 2008, 08:59:00 pm »

There was a mod that changed ALL stone types to economic. This enabled you to disallow all except for one type of stone, meaning that anything built from stone will be of that type. No idea where it is or what it is called, though.
Logged
"Quickly now, the goblins are more devious these days." - Captain Mayday

Earthquake Damage

  • Bay Watcher
    • View Profile
Re: Choosing Material to build doors with
« Reply #3 on: February 05, 2008, 09:01:00 pm »

You'll have to regenerate your world afterward, but throw this in reaction_standard.txt (or create your own reaction file, if you know how to work the raws):

code:
[REACTION:PLACEHOLDER__ECONOMIC_STONE]
   [NAME:]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SANDSTONE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SILTSTONE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:MUDSTONE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SHALE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CLAYSTONE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ROCK_SALT]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:LIMESTONE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CONGLOMERATE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:DOLOMITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:FLINT]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CHERT]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CHALK]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:GRANITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:DIORITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:GABBRO]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:RHYOLITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:BASALT]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ANDESITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:FELSITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:OBSIDIAN]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:QUARTZITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SLATE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:PHYLLITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SCHIST]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:GNEISS]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:MARBLE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:HEMATITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:LIMONITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:MAGNETITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:GARNIERITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:GOLD]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SILVER]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:COPPER]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:MALACHITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:GALENA]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SPHALERITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CASSITERITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:PLATINUM]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:TETRAHEDRITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:BISMUTHINITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ALUMINUM]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:KIMBERLITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:BAUXITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CINNABAR]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:COBALTITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:GYPSUM]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:TALC]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:JET]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:PUDDINGSTONE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:PETRIFIED_WOOD]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:GRAPHITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:BRIMSTONE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:REALGAR]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ORPIMENT]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:STIBNITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:MARCASITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SYLVITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CRYOLITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:PERICLASE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ILMENITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:RUTILE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CHROMITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:PYROLUSITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:PITCHBLENDE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:BORAX]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:OLIVINE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:HORNBLENDE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:KAOLINITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SERPENTINE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ORTHOCLASE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:MICROCLINE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:MICA]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CALCITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SALTPETER]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ALABASTER]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SELENITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SATINSPAR]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ANHYDRITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:ALUNITE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:RAW_ADAMANTINE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:PELAGIC_CLAY]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:CALCAREOUS_OOZE]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:SILICEOUS_OOZE]

If Toady's added more stone types in 38a this'll need to be adjusted, but that should cover it.  I keep modded stones at the end of the reaction so that should only contain ones from the original raws.  Even if it does contain nonexistent stones, all that should do is add a harmless line to the error log.

I really wish "Disable smilies in this post" was enabled by default.

[ February 05, 2008: Message edited by: Earthquake Damage ]

Logged

The-Moon

  • Bay Watcher
    • View Profile
Re: Choosing Material to build doors with
« Reply #4 on: February 05, 2008, 09:24:00 pm »

Okay thank you, that will have to be for my next fortress tho, i'm not starting this one over hehe.

But i was sure someone mentioned something which didn't have to do with editing anything... Maybe not tho.

Logged
There is absolutely no time, to be taking time for granted. ~Busta Rhymes

Metalax

  • Bay Watcher
    • View Profile
    • Steam Profile
Re: Choosing Material to build doors with
« Reply #5 on: February 06, 2008, 12:35:00 am »

One way to get your mason to only use the stone you want is to create a room with a masons shop and a stone stockpile set to only take the stone you want to use. After the stockpile is filled lock your mason in the room and he will use the stone there as it's all he can reach. However this is a fair bit of effort to got to.

As for the problem with building walls or floors, when a wall is queued for construction, a specific stone/item is slated for use in the particular wall/floor/construction. Sometimes this may not be the stone you may assume it would use.

Logged
In the beginning was the word, and the word was "Oops!"

Dasqoot

  • Bay Watcher
  • He-wenching for the cause.
    • View Profile
Re: Choosing Material to build doors with
« Reply #6 on: February 07, 2008, 12:32:00 am »

quote:
The-Moon: My masons don't seem to use the stones closet to them. Especially for building walls or floors, They will walk 10 times away from where the walls being built, to get a stone to build it with, even tho theres like 200 of that type of stone right near the wall. Those 200 stones are not set to be dumped or forbidden either...

My dwarves seem to use the stones closest in z-level, and then farthest in xy but closest in z-. I tested this in recolonized goblin towers as well as small multi-z-level forts and had always seen it in more practical forts. Dwarves will use the closest stones in an up or down z-direction, and then look for the top-leftmost stone of the closest z-level to haul or do workshop orders with.

This is only true for stones not in stockpiles. This is why haulers sometimes actually manage to speed things up.

Often this is less of a problem with multiple stone stockpiles near your newest project, simply restrict (in the stockpile options, not the economic options) any stone but the one you want used and you'll see when selecting your marble or w/e, Marble 1, meaning one square away. They will definitely use the closest stone in that case because you assigned a specific stone in a stockpile for the use. They'll walk to the wall, pick up the stone and place it in seconds.

Most of this problem has to do in how we think about strip mining probably. There is most likely a "best-way" to do this. As it is right now, 99% of my fortress building time is spent in customizing stockpiles to save dwarf-time, but costing 10x more hours to do.

Logged

Quintin Stone

  • Bay Watcher
  • Dwarven Bureaucrat
    • View Profile
    • RPS
Re: Choosing Material to build doors with
« Reply #7 on: February 07, 2008, 03:39:00 pm »

A mason chooses the stone closest to him, not closest to the workshop.  If the dwarf is in the workshop at the time, okay, but when they first get a job to build a door, they may be anywhere in your fortress.  At that point, there's probably no telling which stone they're closest to.

At least, this is what I've seen in practice.

[ February 07, 2008: Message edited by: Quintin Stone ]

Logged

John Johnston

  • Bay Watcher
  • Unrescuable aspie.
    • View Profile
Re: Choosing Material to build doors with
« Reply #8 on: February 08, 2008, 04:18:00 am »

I try to use a combination of two things; 1) have a stone stockpile of the appropriate type next to the workshop and 2) have a magma channel designated as a dump.  The mason ought to build most doors out of the correct material, and any doors made of the wrong stuff get marked for dumping in the magma.  It's slightly wasteful and takes slightly longer, but works pretty well in practice.

(edit)  That is of course assuming that there is magma there.  I guess the chasm would also serve, or just an infinite pile dump.

[ February 08, 2008: Message edited by: John Johnston ]

Logged
Oh
God it's been a lovely day
Everything's been going my way
I had so much fun today
And I'm on fire

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: Choosing Material to build doors with
« Reply #9 on: February 08, 2008, 10:07:00 am »

The mod in question is my Minerals mod that now also includes the manual selection hack. And yes, you need to generate a new world for it to work.

The absolutely best way to set up a workshop to use a specific kind of stone is make a 3x3 stone stockpile right under the workshop, with a staircase right next to it. This guarantees that the crafter will take the stone on the stockpile rather than any other, and you can control, through the stockpile's settings, which stones are being hauled to it.

Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India