Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]

Author Topic: Automatic mining: Is it possible and has it been done?  (Read 7059 times)

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: Automatic mining: Is it possible and has it been done?
« Reply #30 on: February 01, 2010, 11:24:07 am »

Bah there was no flag, had to test liquid level. Can someone test this? Have no suitable fort.
File here
Logged

dephelis

  • Bay Watcher
  • Fear It
    • View Profile
Re: Automatic mining: Is it possible and has it been done?
« Reply #31 on: February 01, 2010, 12:26:56 pm »

Fantastic util.

Just downloaded it and gave it a test run.

The water and magma on my current map are currently isolated with nearby veins already dug out so I wasn't able to test that.

I did notice that Urist McMiner stopped digging twice on my test vein of copper. Tiles were designated but weren't dug. I had to manually redesignate one of the tiles for it get going again.

The halts were accompanied by the following message:
Urist McMiner Geologist cancels Dig: Inappropriate dig square

I think both times it was when a single available tile being dug revealed 2 diggable tiles behind it. Something like this:

Code: [Select]
--oo--
--O---

- = ordinary rock
O = exposed ore (initial designation point)
o = hidden ore designated by DiggersDream

I'll load up a seasonal save later and test it out on an ore vein that runs into my lake and magmapipe.

Cheers
Logged

Eagle0600

  • Bay Watcher
  • Highly Confused
    • View Profile
Re: Automatic mining: Is it possible and has it been done?
« Reply #32 on: February 01, 2010, 11:17:28 pm »

Yeah, I noticed that happening, but I figured it was because a tile was getting designated at the same time as it got revealed, or something.
Logged
GENERATION 21:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

dephelis

  • Bay Watcher
  • Fear It
    • View Profile
Re: Automatic mining: Is it possible and has it been done?
« Reply #33 on: February 02, 2010, 07:00:03 am »

Just carried out a wet/hot test. Wet test was an ore vein that passed under two lakes. Hot test was digging out a 12 tile vein situated next to a narrowing of the magma pipe to half the width of the above z-level.

The hot and wet tiles were still designated and dug.

A few more examples of where tiles were designated but not dug:

Code: [Select]
-o-     ---
-O-     oo-
-.-     oO.
        ---

. = floor
- = ordinary rock
O = exposed ore (initial designation point)
o = hidden ore designated by DiggersDream but not dug

The example on the left was not accompanied by the "Inappropriate dig square." message, the example on the right was.

Edit:
I'll see if I can make a movie to show the digging process whn it errors.

I've uploaded a movie to DFMA.

http://mkv25.net/dfma/movie-1960-diggersdreamtest

00:24: you can see the miner stop digging despite there being two tiles designated.
02:41: miner starts digging out the wet tiles.
« Last Edit: February 02, 2010, 08:48:09 am by dephelis »
Logged

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: Automatic mining: Is it possible and has it been done?
« Reply #34 on: February 02, 2010, 02:02:43 pm »

Updated with fix for damp walls (didn't check the up z level) also made an alternative designation mode. file with _exp at the end is with that mode. Highly experimental should work more like mouse designation, but could crash DF.
Logged

dephelis

  • Bay Watcher
  • Fear It
    • View Profile
Re: Automatic mining: Is it possible and has it been done?
« Reply #35 on: February 02, 2010, 04:56:38 pm »

Updated with fix for damp walls (didn't check the up z level) also made an alternative designation mode. file with _exp at the end is with that mode. Highly experimental should work more like mouse designation, but could crash DF.

Ah. sorry I didn't realise that there was a distinction between wet and damp walls. I reran my test with a copper vein on the same level as the water in an underground river and it worked perfectly.

I've tried the new experimental mode and on the few tests I've performed it worked almost perfectly. All designated tiles were mined without odd stops. There was one issue however. It appears that when the end of the vein is reached some tiles are not revealed correctly.

Code: [Select]
----        - or + Revealed natural wall
-..---x     .     Dug out section
-....+X     X or x Unrevealed natural wall
----..x
  --.+X
  -...X
 ---..X
 -....X
-....-x

I've identified that this is happening at the boundary between the 48x48 embark tile. All those xs and Xs are on the 49th tile from the map edge.

If I then designate the natural walls marked + to be dug, then the unrevealed X tiles are revealed although the diagonal x tiles are not still not revealed, although they can be designated for digging.

I haven't tried the new regular file as yet.

It might be an idea to include a config file or config settings within the console window so that checking for damp or wet tiles can be toggled.

I can see situations where I would want wet tiles not dug but to have damp tiles dug and others where I want both not dug.
« Last Edit: February 02, 2010, 04:58:24 pm by dephelis »
Logged

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: Automatic mining: Is it possible and has it been done?
« Reply #36 on: February 02, 2010, 05:20:02 pm »

Yeah I had this boundary problem before. It's because designating does not allocate new chunks of map. I hoped that experimental would do this... but workaround is to designate lowest level for mining and then remove designation. That way all map is allocated.
Logged
Re: Automatic mining: Is it possible and has it been done?
« Reply #37 on: February 03, 2010, 11:32:54 pm »

Edit: I am a tremendous moron who posts without reading threads. :P
« Last Edit: February 04, 2010, 12:21:28 am by Sir Reginald Bathwater »
Logged

Jhoosier

  • Bay Watcher
    • View Profile
    • http://wilcotangofoxtrot.blogspot.com
Re: Automatic mining: Is it possible and has it been done?
« Reply #38 on: April 18, 2010, 05:48:48 pm »

I don't suppose there's a chance of resurrecting this for .31?  There are so many ore/coal veins now, it would be nice to dig them out automatically.
Logged

Nabobalis

  • Bay Watcher
    • View Profile
Re: Automatic mining: Is it possible and has it been done?
« Reply #39 on: April 18, 2010, 06:30:04 pm »

Look for dfhack thread on the general discussion sub board. It has what you want.
Logged

forsaken1111

  • Bay Watcher
    • View Profile
    • TTB Twitch
Re: Automatic mining: Is it possible and has it been done?
« Reply #40 on: April 18, 2010, 11:18:13 pm »

Least you could do is provide a link...
Logged

Jhoosier

  • Bay Watcher
    • View Profile
    • http://wilcotangofoxtrot.blogspot.com
Re: Automatic mining: Is it possible and has it been done?
« Reply #41 on: April 19, 2010, 01:34:53 am »

Danke.  I'd seen it before somewhere while searching for something else but didn't remember where.  Much obliged.
Logged

forsaken1111

  • Bay Watcher
    • View Profile
    • TTB Twitch
Re: Automatic mining: Is it possible and has it been done?
« Reply #42 on: April 19, 2010, 06:35:31 am »

No problem. The vein tool works pretty well.
Logged
Pages: 1 2 [3]