Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: how to remove crazy flow  (Read 1661 times)

vadia

  • Bay Watcher
  • tacky picture given the forum; I know.
    • View Profile
how to remove crazy flow
« on: November 19, 2010, 12:38:10 pm »

I have a map that has been low fps from the start, but I have reason to keep going, so when I hit the magma level I found that there was a large section of magma that would flow up then right then down then up and then left I think that may be causing much of the lag
Spoiler (click to show/hide)

How can I remove the crazy flow?
Logged

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: how to remove crazy flow
« Reply #1 on: November 19, 2010, 03:42:24 pm »

Download DFHack.  Unpack it.

Start Dwarf Fortress, load your fort, leave the game paused.

Open the DFHack folder, start dfliquids.exe.

Type this cryptic stuff into the dfliquids window:
Code: [Select]
m
7
f-
s.
block

Go back to Dwarf Fortress, locate the affected magma.  Resume the game for a little bit, mentally note the affected areas of the map, pause the game.

Then repeat these steps:
  • in Dwarf Fortress, move the k cursor close to an affected area.  You don't have to be exact.
  • In the dfliquids window, press Enter.
dfliquids will do its work in 16 by 16 blocks, but you can't choose where the block start.  It's probably best to work around the perimeter of the affected area, then do one or two near the center.

Then resume Dwarf Fortress and see if the problem is gone.

It's possible I missed a step here; if this doesn't work please report what happened including a copy-and-paste of the entire contents of the dfliquids window.
Logged

SquidgyB

  • Bay Watcher
    • View Profile
Re: how to remove crazy flow
« Reply #2 on: November 19, 2010, 10:44:13 pm »

DFLiquids has a range feature now too, so you can easily wipe all the liquid content on an entire Z-level in one go if you want.

Just type "range" and it'll ask you for width/height. iirc 255*255 was enough for a 3x3 embark.
Logged

Syreniac

  • Bay Watcher
    • View Profile
Re: how to remove crazy flow
« Reply #3 on: November 20, 2010, 06:44:25 am »

DFLiquids has a range feature now too, so you can easily wipe all the liquid content on an entire Z-level in one go if you want.

Just type "range" and it'll ask you for width/height. iirc 255*255 was enough for a 3x3 embark.

If your embark is bigger, you can work out the size as each square on the embark location chooser is 48 ingame squares. So a 3x3 embark is 144x144 ingame squares.

SquidgyB

  • Bay Watcher
    • View Profile
Re: how to remove crazy flow
« Reply #4 on: November 20, 2010, 11:01:44 am »

Thanks for that - I was too lazy to do the research/simple maths :)
Logged

vadia

  • Bay Watcher
  • tacky picture given the forum; I know.
    • View Profile
Re: how to remove crazy flow
« Reply #5 on: November 20, 2010, 08:24:31 pm »

DFLiquids has a range feature now too, so you can easily wipe all the liquid content on an entire Z-level in one go if you want.

Just type "range" and it'll ask you for width/height. iirc 255*255 was enough for a 3x3 embark.
At that point I turned a whole layer into magma -- fortunately I have a backup.

Unfortunately, it pushes the folw to the edges.
Logged

Greiger

  • Bay Watcher
  • Reptilian Illuminati member. Keep it secret.
    • View Profile
Re: how to remove crazy flow
« Reply #6 on: November 20, 2010, 08:46:26 pm »

Does tweak's For Each Tile still work?  If I remember it was rather trivial to make an if statement like

If is magma
{
     fluid level == 7
}

(disclaimer: Not actual for each tile code, I forget the syntax)
That would make sure every tile on the map that already has magma would be full without having do find any fancy locations
Logged
Disclaimer: Not responsible for dwarven deaths from the use or misuse of this post.
Quote
I don't need friends!! I've got knives!!!

vadia

  • Bay Watcher
  • tacky picture given the forum; I know.
    • View Profile
Re: how to remove crazy flow
« Reply #7 on: November 20, 2010, 08:56:43 pm »

Does tweak's For Each Tile still work?  If I remember it was rather trivial to make an if statement like

If is magma
{
     fluid level == 7
}

(disclaimer: Not actual for each tile code, I forget the syntax)
That would make sure every tile on the map that already has magma would be full without having do find any fancy locations


I thionk magma is flowing on and off from mostright now I removed the liquid and it still seems to flowe
 directions
Over piles of semi molten mud,  how praytell do I get rid of that without giving up on all water?
Logged

Igfig

  • Bay Watcher
    • View Profile
Re: how to remove crazy flow
« Reply #8 on: November 20, 2010, 11:35:11 pm »

Just so you know, it's a lot more likely that your lag is because of the 1200 Z-levels.

vadia

  • Bay Watcher
  • tacky picture given the forum; I know.
    • View Profile
Re: how to remove crazy flow
« Reply #9 on: November 21, 2010, 11:16:03 pm »

Just so you know, it's a lot more likely that your lag is because of the 1200 Z-levels.

Yeah, it seems to have made only minimal difference.  but after having gotten ride of the majority of flows it might be going faster.
Logged

Kaos

  • Bay Watcher
    • View Profile
Re: how to remove crazy flow
« Reply #10 on: July 20, 2011, 02:50:57 pm »

sorry, posted in wrong thread  :P
« Last Edit: July 20, 2011, 02:53:20 pm by Kaos »
Logged