Bay 12 Games Forum

Please login or register.

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

Author Topic: Quantum Plumbing  (Read 7331 times)

Shazbot

  • Bay Watcher
    • View Profile
Quantum Plumbing
« on: June 22, 2015, 10:53:40 am »

Working with mechanisms and levers, I started wondering why pipe sections aren't moving flows across my fortress in about the same way that levers link distant objects.

Take a pipe section and a building material of your choice, then build a floor pipe (like a floor), wall pipe (n/s/e/w) or ceiling pipe ('hangs' from the ceiling). Build another pipe at your destination, then link the two using pipe sections. Pipe sections will be required for every three or five tiles of separation between end points. Once linked, water flows into and out of the pipe structures, depending on the structure's orientation, as if those tiles were adjacent.

For example, a 7/7 tile of water on top of a floor pipe inside checks to flow down into the pipe, obeying pressure rules, to see if it can flow east out of an east wall pipe. If it can, it appears in the tile east of the wall pipe. Once the two have normalized, 4/7 and 3/7 water flows back and forth, normalizing the level. If one pipe entry is higher than the other, water flows down using the normal logic.

A pipe can also be linked to a screw pump to pour water directly into your destination.

The FPS savings for waterworks, water-hauling jobs and pump stacks could be phenomenal.

As an aside, the same distance-for-linkage logic could require levers and their linked mechanism to require chains/ropes.
Logged

Alfrodo

  • Bay Watcher
  • [IS_STUPID]
    • View Profile
Re: Quantum Plumbing
« Reply #1 on: June 22, 2015, 02:04:14 pm »

I like this.  It'd make waterworking much easier, especially upward.

Also, I guess you could combine this with a screw pump to bring water upward...

Although, I do like the idea of a visible flowing system of pipes, so if toady wouldn't want to go the gamey route,  he could use bunch of pipes going from place to place, but still having the water traverse near instantly to lower all the FPS murder.

Also, I'd like to see the water traverse through the pipes if they're made of green glass, should he take route B)


Spoiler (click to show/hide)
« Last Edit: June 22, 2015, 02:08:10 pm by Alfrodo »
Logged
Bins stacked full of mangoes were laid out in rows. On further inspection of the market, Cog came to the realization that everything was mangoes.

NW_Kohaku

  • Bay Watcher
  • [ETHIC:SCIENCE_FOR_FUN: REQUIRED]
    • View Profile
Re: Quantum Plumbing
« Reply #2 on: June 22, 2015, 02:47:09 pm »

On the contrary, I expect quantum mechanisms to be eliminated later on for being too abusive of game mechanics.  The only real reason they work now is that they've been grandfathered in from a more game-y period of time, and because the lack of sub-tile constructions that would make having some sort of rope or chain hanging along the side of the wall that can be tugged to cause something further down the line isn't really feasible yet.

Instead, again, I'd suspect the real solution to this is a reworking of the concept of flows to avoid relying upon brute-force mechanics, and work upon bodies, rather than tiles.
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

Alfrodo

  • Bay Watcher
  • [IS_STUPID]
    • View Profile
Re: Quantum Plumbing
« Reply #3 on: June 22, 2015, 02:58:35 pm »

On the contrary, I expect quantum mechanisms to be eliminated later on for being too abusive of game mechanics.  The only real reason they work now is that they've been grandfathered in from a more game-y period of time, and because the lack of sub-tile constructions that would make having some sort of rope or chain hanging along the side of the wall that can be tugged to cause something further down the line isn't really feasible yet.

That's why I suggested the visible pipes.  I'm not sure if visible pipes would solve the FPS problems... though.
Logged
Bins stacked full of mangoes were laid out in rows. On further inspection of the market, Cog came to the realization that everything was mangoes.

BoredVirulence

  • Bay Watcher
    • View Profile
Re: Quantum Plumbing
« Reply #4 on: June 22, 2015, 02:59:42 pm »

I wouldn't mind having pipes behave realistically, while reducing the calculations. Like an optimization. Instead of water actually flowing through a pipe, make it behave like a queue, where for each tile in length it has an extra space in the queue. That would keep the propagation delay of moving liquids without actually moving them. Homogenize the temperature calculations to the whole of the pipe section based on something such as the average of the temperature of the liquids inside the pipe.

Its an optimization, but it should maintain the same gameplay properties, but it eliminates some of the calculations.
Logged

NW_Kohaku

  • Bay Watcher
  • [ETHIC:SCIENCE_FOR_FUN: REQUIRED]
    • View Profile
Re: Quantum Plumbing
« Reply #5 on: June 22, 2015, 04:01:40 pm »

Well, we should have pipes, no question about it, and I would like to see them as part of an irrigation system.  Pipes which have holes in them to drip-water tiles would let water be doled out in controlled fashion, rather than full 1/7ths, the way that thread in hospitals doesn't have to use a whole thread unit.  That is, pipes are for smaller volumes of water than a full flooded tile. 

I'm just saying it's not a replacement for working on optimizing fluids, so that players can actually enjoy ocean embarks. 
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

Shazbot

  • Bay Watcher
    • View Profile
Re: Quantum Plumbing
« Reply #6 on: June 23, 2015, 10:44:08 am »

Could move 1/7 of water every twenty ticks or something slow like that. I'd still prefer the pipes abstracted "into the walls" to reduce how cluttered the fort is. Big canals and reservoirs will still be needed for moving large volumes of water quickly, so you might feed a flooding trap's cistern with a pipe but then actually drain it through a floodgate.

Speaking of floodgates, I can already think of numerous dwarfy-looking valve arrangements using floodgates.
Logged

King Mir

  • Bay Watcher
    • View Profile
Re: Quantum Plumbing
« Reply #7 on: June 24, 2015, 07:14:25 pm »

I suspect the biggest trouble with plumbing is getting it to link up and in generated forts.

AceSV

  • Bay Watcher
  • [SUPER_VILLAIN]
    • View Profile
Re: Quantum Plumbing
« Reply #8 on: June 25, 2015, 11:40:31 am »

Well, we should have pipes, no question about it, and I would like to see them as part of an irrigation system.  Pipes which have holes in them to drip-water tiles would let water be doled out in controlled fashion, rather than full 1/7ths, the way that thread in hospitals doesn't have to use a whole thread unit.  That is, pipes are for smaller volumes of water than a full flooded tile. 

I'm just saying it's not a replacement for working on optimizing fluids, so that players can actually enjoy ocean embarks.

Maybe you could build some sort of device that controls the water flow.  Either a permanent device where you decide the water flow before building it (1/7, 2/7, 3/7, etc) or something like a lever where you can manually crank up the flow when you need to. 
Logged
Quote
could God in fact send a kea to steal Excalibur and thereby usurp the throne of the Britons? 
Furry Fortress 3 The third saga unfurls.  Now with Ninja Frogs and Dogfish Pirates.

Zarathustra30

  • Bay Watcher
    • View Profile
Re: Quantum Plumbing
« Reply #9 on: June 26, 2015, 12:57:48 am »

The best funest way to control water flow is through pressure/head. High head => high flow. There would be devices that reduce head (valves), but the only real way to increase it is through a pump stack, unless there is some new technology.

I think this is the way that water currently works, allowing u-bends and such, but I don't think lag is an issue, because the way I hear it, fluid lag comes from constantly recalculating pathing, not anything with 1/7ths moving around. As long as the water is in pipes, paths don't need to be recalculated.
Logged
How did we pass from inns with merry songs and happy music to temples of doom and medieval torture with so much easiness and eagerness??

taptap

  • Bay Watcher
    • View Profile
Re: Quantum Plumbing
« Reply #10 on: June 30, 2015, 03:02:17 am »

I like this.  It'd make waterworking much easier, especially upward.

Is there any reason to move water upward in game? Isn't your water source usually higher than the fort (surface water or aquifer)? Most of the things wished for in this thread can already be achieved with in game means. You can move small to medium amounts with minecarts, large amounts with pumps, you can build elaborate measuring / regulating devices...

As for realism long pipes used to pump water vertically are way more unrealistic than pump stacks or minecart based systems (water pressure was a major headache in waterworks long after the supposed technological cut-off of DF, well into 18th century), at least I wouldn't want 19th century hydraulic engineering in a game that doesn't dare to include 15th century technology.
« Last Edit: June 30, 2015, 03:08:07 am by taptap »
Logged

karhell

  • Bay Watcher
  • [IS_A_MOLPY]
    • View Profile
Re: Quantum Plumbing
« Reply #11 on: June 30, 2015, 07:28:54 am »

I like this.  It'd make waterworking much easier, especially upward.

Is there any reason to move water upward in game? Isn't your water source usually higher than the fort (surface water or aquifer)? Most of the things wished for in this thread can already be achieved with in game means. You can move small to medium amounts with minecarts, large amounts with pumps, you can build elaborate measuring / regulating devices...
A desert embark, taking water from the caves ?
Creating an above-ground waterfall ?
Just satisfying that Dwarven ego, with improbably complex water/magmaworks ?
Logged

taptap

  • Bay Watcher
    • View Profile
Re: Quantum Plumbing
« Reply #12 on: June 30, 2015, 08:40:04 am »

I like this.  It'd make waterworking much easier, especially upward.

Is there any reason to move water upward in game? Isn't your water source usually higher than the fort (surface water or aquifer)? Most of the things wished for in this thread can already be achieved with in game means. You can move small to medium amounts with minecarts, large amounts with pumps, you can build elaborate measuring / regulating devices...

Just satisfying that Dwarven ego, with improbably complex water/magmaworks ?

Isn't the dwarven ego better served with the more complex setups like minecarts or pumpstacks existing now?  ;D

AceSV

  • Bay Watcher
  • [SUPER_VILLAIN]
    • View Profile
Re: Quantum Plumbing
« Reply #13 on: June 30, 2015, 11:32:27 pm »

I like this.  It'd make waterworking much easier, especially upward.

Is there any reason to move water upward in game? Isn't your water source usually higher than the fort (surface water or aquifer)? Most of the things wished for in this thread can already be achieved with in game means. You can move small to medium amounts with minecarts, large amounts with pumps, you can build elaborate measuring / regulating devices...

As for realism long pipes used to pump water vertically are way more unrealistic than pump stacks or minecart based systems (water pressure was a major headache in waterworks long after the supposed technological cut-off of DF, well into 18th century), at least I wouldn't want 19th century hydraulic engineering in a game that doesn't dare to include 15th century technology.

It can't be that much harder to move water vertically.  The hittites and romans had plumbing, if not modern plumbing, dwarves should be able to come up with something.  Off the top of my head, you should at least be able to use something like a still to move water upward by turning it into steam and letting it condense back to water at a higher point.  Once water is in the water tower, it can be moved around with pressure. 
Logged
Quote
could God in fact send a kea to steal Excalibur and thereby usurp the throne of the Britons? 
Furry Fortress 3 The third saga unfurls.  Now with Ninja Frogs and Dogfish Pirates.

taptap

  • Bay Watcher
    • View Profile
Re: Quantum Plumbing
« Reply #14 on: July 01, 2015, 03:49:26 am »

It can't be that much harder to move water vertically.  The hittites and romans had plumbing, ...

Roman waterworks were built the way they were for a reason - the reason being precisely that lifting water is not easy - and both aqueduct bridges and even inverted siphoning around obstacles (transporting water through u-bends) are within current DF means. Ppl play DF in many different ways, but for the more engineering inclined this proposal reads somewhat like "let us get rid of the silly overcomplicated combat system and go to a simple hitpoint system" might for you. Fluid lifting (though mostly magma) / proper plumbing throughout the fortress is one of the few engineering projects fortresses encounter, don't remove the fun.
Pages: [1] 2