Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 6 7 [8] 9 10

Author Topic: Stacking and Hauling Improvements (optimization)  (Read 31500 times)

Kogut

  • Bay Watcher
  • Next account: Bulwersator
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #105 on: April 04, 2012, 01:39:04 am »

Please, RAWify stockpiles (p menu and settings of stockpiles), I hate disabling seeds, fat and extracts on every single food stockpile in every single game.

Reposted from http://www.bay12forums.com/smf/index.php?topic=104479.0 (as this thread is linked to ESV)
Logged
The worst bug - 34.11 poll
Tired of going decades without goblin sieges? Try The Fortress Defense Mod
Kogut, the Bugfixes apostle of Bay12forum. Every posts he makes he preaches about the evil of Bugs.

NW_Kohaku

  • Bay Watcher
  • [ETHIC:SCIENCE_FOR_FUN: REQUIRED]
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #106 on: April 04, 2012, 05:01:59 pm »

Please, RAWify stockpiles (p menu and settings of stockpiles), I hate disabling seeds, fat and extracts on every single food stockpile in every single game.

Reposted from http://www.bay12forums.com/smf/index.php?topic=104479.0 (as this thread is linked to ESV)

It is?  It is!  Wait, when did my thread get linked to the ESV?

Anyway, what I've always held is that we need not so much a "raw" as we need an "inport/export" function, similar to embark profiles or macros have now.  Functionally, these are somewhat similar in that they are basically just .txt scripts, but RAWs require actually leaving the game to modify, and I'd rather just have the ability to modify stockpiles in-game and then hit "save" and "load" as need be.

Of course, I should also point out that this isn't exactly what this thread is explicitly meant for...
Logged
Personally, I like [DF] because after climbing the damned learning cliff, I'm too elitist to consider not liking it.
"And no Frankenstein-esque body part stitching?"
"Not yet"

Improved Farming
Class Warfare

King Mir

  • Bay Watcher
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #107 on: April 04, 2012, 05:20:02 pm »

There is but it's hard to think of an efficient algorithm to solve a problem we don't understand.  If we accept that the only use of minecarts (And related lifts, etc.) is to move things from one or two specific locations or stockpiles, to a few other specific locations, and we think manual control is tolerable, then that sets some fairly easy limits on what the algorithm is actually expected to cope with.  In this case we don't really have to change the algorithm at all, we just have a minecart that create store jobs like a stockpile.

Well, if we don't understand it, it's time to think about it more until we do.   :P

... OK, that's all that a first-blush look at how to make a minecart path will tell me... so could someone blow this idea up for me so I can try to think of a better way to rebuild it?
If a minecart is an option, a dwarf should probably always choose the minecart. The trickier thing is keeping track of which goods can and cannot go on the cart. If a minecart acts like a stockpile, it needs to be connected to a stockpile to dump things in, and it needs to keep track of wich stockpiles the track is connected to.

I don't think you would necessarily have a single track that winds the full hight of the fortress. You might for mining purposes, but I imagine having issolated tracks carts for different industries, running side by side.

Quote
Gah.. so many people posting in this thread...  7 replies... I need to stop reading books in the middle of posts.
And writing them.  ;)

NW_Kohaku

  • Bay Watcher
  • [ETHIC:SCIENCE_FOR_FUN: REQUIRED]
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #108 on: April 04, 2012, 06:32:55 pm »

Quote
Gah.. so many people posting in this thread...  7 replies... I need to stop reading books in the middle of posts.
And writing them.  ;)

Are you kidding, I barely filled a page with that.  I obviously should have written something more comprehensive.

If a minecart is an option, a dwarf should probably always choose the minecart. The trickier thing is keeping track of which goods can and cannot go on the cart. If a minecart acts like a stockpile, it needs to be connected to a stockpile to dump things in, and it needs to keep track of wich stockpiles the track is connected to.

I don't think you would necessarily have a single track that winds the full hight of the fortress. You might for mining purposes, but I imagine having issolated tracks carts for different industries, running side by side.

Well, no, minecarts can't always be the option, because what if you are, say, looking to bring some food from a farm to a food stockpile, and the food stockpile is 5 tiles away, wheras the nearest mine cart is 100 tiles away, and the tracks don't even lead to anywhere within 60 tiles of the food stockpile, because you've only laid down tracks in the heavy mining segments.  You have to check to see if that's the case before making your decision, of course, but there are reasons not to go there.

As for the tracks and carts for different industries, I was thinking about this when I was talking about the "rollercoaster" aspects of the minecarts in some of the other threads, and an old idea I had about conveyor belts-

Spoiler: quoting myself (click to show/hide)

Basically, if you can create a way to "mechanize" minecart motion by throwing mechanisms under the tracks, and setting up roller-coaster style "acceleration wheels" that are simply wheels that turn due to the torque applied through mechanisms in order to push along a cart that is moving slowly enough through one of the tiles that is mechanized, it will be able to push those carts along a path, or push it up hills so that when it goes down the hills, it can just carry on its own momentum forward. 

If you build a full circuit of mechanized carts, however, you could recreate that conveyor belt approach. 

That is, if a workshop is attended, all "finished products" from a workshop could be offloaded from a workshop into a cart as it passes by, and all "raw materials" that it will need for the queued jobs can be input into the workshop without needing to have a hauling job performed - workers just automatically offload or take in whatever they need as long as they are at the workshop as the cart goes by.

Then, you can have supply chains like sending a cart track on a loop between a farm, the farmer's workshop, the dyer, the loom, the stockpile, and maybe the trade depot.  Minimize your need to actually haul things through automated movement of goods.
Logged
Personally, I like [DF] because after climbing the damned learning cliff, I'm too elitist to consider not liking it.
"And no Frankenstein-esque body part stitching?"
"Not yet"

Improved Farming
Class Warfare

Mike Mayday

  • Bay Watcher
  • gfx whr
    • View Profile
    • Goblinart
Re: Stacking and Hauling Improvements (optimization)
« Reply #109 on: April 04, 2012, 06:38:33 pm »

It is?  It is!  Wait, when did my thread get linked to the ESV?

I asked Draco to link the ESV item to this discussion

:P
« Last Edit: April 04, 2012, 06:40:55 pm by Mike Mayday »
Logged
<3

King Mir

  • Bay Watcher
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #110 on: April 04, 2012, 07:30:37 pm »

If a minecart is an option, a dwarf should probably always choose the minecart. The trickier thing is keeping track of which goods can and cannot go on the cart. If a minecart acts like a stockpile, it needs to be connected to a stockpile to dump things in, and it needs to keep track of wich stockpiles the track is connected to.

I don't think you would necessarily have a single track that winds the full hight of the fortress. You might for mining purposes, but I imagine having issolated tracks carts for different industries, running side by side.

Well, no, minecarts can't always be the option, because what if you are, say, looking to bring some food from a farm to a food stockpile, and the food stockpile is 5 tiles away, wheras the nearest mine cart is 100 tiles away, and the tracks don't even lead to anywhere within 60 tiles of the food stockpile, because you've only laid down tracks in the heavy mining segments.  You have to check to see if that's the case before making your decision, of course, but there are reasons not to go there.
Yeah, you still need the mine cart zones of influence. That can be a breadth first search for tiles within a certain walking distance. It could be displayed in a mannor simmilar to the depot wagon access.

Quote
As for the tracks and carts for different industries, I was thinking about this when I was talking about the "rollercoaster" aspects of the minecarts in some of the other threads, and an old idea I had about conveyor belts-

Spoiler: quoting myself (click to show/hide)

Basically, if you can create a way to "mechanize" minecart motion by throwing mechanisms under the tracks, and setting up roller-coaster style "acceleration wheels" that are simply wheels that turn due to the torque applied through mechanisms in order to push along a cart that is moving slowly enough through one of the tiles that is mechanized, it will be able to push those carts along a path, or push it up hills so that when it goes down the hills, it can just carry on its own momentum forward. 

If you build a full circuit of mechanized carts, however, you could recreate that conveyor belt approach. 

That is, if a workshop is attended, all "finished products" from a workshop could be offloaded from a workshop into a cart as it passes by, and all "raw materials" that it will need for the queued jobs can be input into the workshop without needing to have a hauling job performed - workers just automatically offload or take in whatever they need as long as they are at the workshop as the cart goes by.

Then, you can have supply chains like sending a cart track on a loop between a farm, the farmer's workshop, the dyer, the loom, the stockpile, and maybe the trade depot.  Minimize your need to actually haul things through automated movement of goods.
I'm a little weary of full on converyers in a pre-industrial setting. At some point one starts to ask "If dwarves know this much mechanics, why can't they harness steam already?". I'm not sure exactly where to draw the line, but conveyers are near it.

I'd rather have supplies moved to a nearby stockpile than dirrectly into a workshop. This avoids clutter. In addition it's more realistic and detailed. A workshop is not a building; it is perhalps a table and a few other machines that may eventually be split into individually placeable objects. The pile of raw materials doesn't need to be part of that; it can already be split off in a natual way. The ability to customize the size and raw contents of a stockpile realistically model how materials are stored near a workshop. This is not to say that job orders should not also specify material or that the take-from system does not need improvement. 

I'm not sure that I agree that hauling should be minimised as a rule. Hauling should be realistic, nothing more.

NW_Kohaku

  • Bay Watcher
  • [ETHIC:SCIENCE_FOR_FUN: REQUIRED]
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #111 on: April 04, 2012, 08:55:28 pm »

Waterwheels turning belts that ran powered looms existed before steam did.  They were basically big wheels that had a long leather loop that ran between them, and that's basically all you need to make a conveyor belt. 

If you have all this mechanical power and drawbridges that raise up from water hitting a pressure plate, and mine carts that can be sent along, then just putting something on top of the leather belts running the power down the line in order to send it down the line for you is a simple task that takes no more technological progress than what we already are working with.

As for workshops, I'm simply picturing them as having some sort of bin or something next to the counter, where they store all the junk they've finished making but haven't sent off to the stockpile yet.  Workshops we have now get cluttered with all the stone doors and stuff we've built and are waiting for hauling.  This just lets the craftsdwarf toss that bin's contents into the minecart when it trundles by.

The important part is the bit about being able to set up a fortress that runs more-or-less on its own, with the ability to just tell the clothier at the loom to just keep weaving socks as long as dyed cloth keeps coming down the line.

It's also a thing about "look how cool my fortress is that it has this automated delivery system".  Sort of like the people who want to make minecart rides for "dwarven rollercoasters".
Logged
Personally, I like [DF] because after climbing the damned learning cliff, I'm too elitist to consider not liking it.
"And no Frankenstein-esque body part stitching?"
"Not yet"

Improved Farming
Class Warfare

Tierre

  • Bay Watcher
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #112 on: May 21, 2012, 08:21:07 am »

Just wanted to reviwe a thread as it is in ESV. So it is here we need to discuss implemented carts and wheelbarrows and speak of what is left to do.

For hauling improvements - i think bin and barrel jobs have a lot of work in polishing to do. Like stuck dwarfes and taking barrel to get 1 plump helmet.

Wheelbarrows and minecarts are prety good (i don't have enough time to see if they have any major problems in them).

Also stacking is what everybody still wants (in my opinion at least).
Logged

therealmarauder

  • Bay Watcher
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #113 on: May 21, 2012, 10:15:14 am »

I've been using minecarts as actual minecarts, moving heavy ores to my dump chute. I do that by making a stockpile over the ores and taking from that stockpile, so the dwarves don't do something dumb like walking to my ore dump location and taking the ores from there, hauling them up 60 flights of stairs and 200 tiles to my cart, then putting them in the cart that'll dump them down the shaft.

The problem I see is that it acts exactly like dumping. Instead of the sane thing to do, which is having one dwarf and ONLY one dwarf doing hauling tasks to or from a mine cart, five dwarves come down from the fortress into the mines and each hauls a single ore into the stockpile. This is horrible for me! It ties up six dwarves and they spend maybe 5% of time actually working.

Therefore, I'd like to see minecarts act more like workshops in this regard. I think it's reasonable for one dwarf to operate a minecart at a time. Dwarves do that with wheelbarrows, but not the carts. If only one dwarf were allowed to work on the cart at a time, then ores would be moved one at a time, slowly, from a distance of at most 20 steps, and this would happen five times, with all of that time spent working and none of it walking to and from the fortress. Then the single dwarf would be able to push the cart to the chute and back, which would be much faster.

Can we put a cap on the number of haulers? Maybe wheelbarrows can be added to cart stops. The sanest thing for dwarves to do would be to leave one wheelbarrow at the loading point, and have one dwarf move ores to the cart with the wheelbarrow, which would improve ore hauling efficiency at least 20x over the current method, but would not alter the power of minecarts.
Logged

therealmarauder

  • Bay Watcher
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #114 on: May 22, 2012, 08:52:25 pm »

I'm surprised this thread's buried.

It seems like mine carts could be integrated into pathing more strongly. This might belong to another post altogether, but pathing should allow for automation which is specified to dwarves. A dwarven highway could easily exist using rollers to quickly zip dwarves around the fortress, but those dwarves can't path using the highway. If dwarves can be allowed to path through mine cart systems, pathing to a mine cart then placing it on any route and using the route to move, dwarves could automatically use the mine cart system, especially if pathing with a rock cost more than pathing with a mine cart on a track. Using tools to reduce pathing costs would give an alternative to tying them to buildings or stockpiles, since dwarves could automatically use tools when they're beneficial.

Then again, simply modifying the mine carts to be used by one user at a time would make quite a difference in how effective they are. Many of the issues in hauling behavior lie in lack of job clustering, which is accomplished by workshops in other systems. No one washes one dish and then drives to work to reply to one email and then drives to the store five times to get five different things. Dwarves should grab tasks near where they are and they should grab small clusters of jobs when they grab a job. This applies generally to hauling, but also to lever-pulling and other jobs, like mining, where huge jumps are common when digging in multiple locations.
Logged

Sowelu

  • Bay Watcher
  • I am offishially a penguin.
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #115 on: May 23, 2012, 04:08:28 pm »

The highway idea might have issues if more than one dwarf wants to use the same highway.  Boom.
Logged
Some things were made for one thing, for me / that one thing is the sea~
His servers are going to be powered by goat blood and moonlight.
Oh, a biomass/24 hour solar facility. How green!

Andeerz

  • Bay Watcher
  • ...likes cows for their haunting moos.
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #116 on: May 23, 2012, 05:24:55 pm »

In response to NW_Kohaku and anyone else that might be interested, things akin to conveyor belts certainly existed way before 1400... chain pumps come to mind!
Logged

Silverionmox

  • Bay Watcher
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #117 on: May 24, 2012, 05:29:08 pm »

In response to NW_Kohaku and anyone else that might be interested, things akin to conveyor belts certainly existed way before 1400... chain pumps come to mind!
Well, something like a steam engine existed too, but it's mostly a matter of atmosphere. In addition, mass production would upset the economics of the world, and consequently everything else.
Logged
Dwarf Fortress cured my savescumming.

Andeerz

  • Bay Watcher
  • ...likes cows for their haunting moos.
    • View Profile
Re: Stacking and Hauling Improvements (optimization)
« Reply #118 on: May 24, 2012, 06:05:07 pm »

But keep in mind... mass production isn't as much about technology available as availability of labor, raw materials, and need for products (though, arguably, the "need" for products could be "invented" too!).

I say, go ahead with whatever tech before 1400 or whatever, even if it is something that would allow for mass production kind of stuff.  I think so long as time, labor, and raw material  requirements and the like are well modeled for whatever economic activity, the economics and medieval-esque fantasy setting will not be disturbed...

EDIT: Maybe steam engines should be out... unless something like a system of knowledge spread and technological development were implemented in a realistic way, though how that would be possible might require stuff way beyond what this game is intending to do or what computers are able to handle (though I just found a pretty neat branch of mathematical sciences dealing with technological progression and its modeling!!!  Perhaps more will come later...) 

Anyway, the reason I say this is that, yeah, the aelopile or whatever existed and all that, and it probably wouldn't have been beyond the comprehension of those ancient inventors to see the possibilities of steam power, but I believe that what probably kept people from developing effective steam engines before the 1700's or whatever was a slow rate of communication, sharing of ideas and designs, exacerbated by lack of literacy, social mobility, and a whole host of other factors... including availability of raw materials, sophistication of metalworking techniques, yadda yadda yadda... and they are all interconnected.  I really want to develop an idea for technological progression and/or knowledge spread and/or designs and stuff that would incorporate stuff like NW_Kohaku's Class Warfare ideas that I think would be absolutely key... and such a model would be necessary to have steam power have the possibility of making it into the game without it upsetting the economics of the world, the medieval fell, and whatever.
« Last Edit: May 24, 2012, 06:38:24 pm by Andeerz »
Logged

kaenneth

  • Bay Watcher
  • Catching fish
    • View Profile
    • Terrible Web Site
Re: Stacking and Hauling Improvements (optimization)
« Reply #119 on: May 24, 2012, 06:17:18 pm »

Do you think it would be difficult to add a "Profile" setting to Stockpiles/Cart Stops like for Workshops, to be able to restrict who/how many haulers work of bringing items to it?
Logged
Quote from: Karnewarrior
Jeeze. Any time I want to be sigged I may as well just post in this thread.
Quote from: Darvi
That is an application of trigonometry that never occurred to me.
Quote from: PTTG??
I'm getting cake.
Don't tell anyone that you can see their shadows. If they hear you telling anyone, if you let them know that you know of them, they will get you.
Pages: 1 ... 6 7 [8] 9 10