v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing User:Fleeting Frames

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
 
====Repeaters====
 
====Repeaters====
  
=====5-tile 4-cart bumper=====
+
:5-tile 4-cart bumper:
  
 
{{diagram|spaces=yes|\
 
{{diagram|spaces=yes|\
Line 53: Line 53:
  
  
=====Weight-adjustable two-cart repeaters=====
+
: Weight-adjustable two-cart repeaters
  
 
Idea is simple: A light cart delivers periodic impacts to heavy cart on a track stop, only moving a bit. Once the heavy cart goes over the tile, it does a small ring over a pressure plate and returns to start.
 
Idea is simple: A light cart delivers periodic impacts to heavy cart on a track stop, only moving a bit. Once the heavy cart goes over the tile, it does a small ring over a pressure plate and returns to start.
Line 94: Line 94:
  
  
=====1-cart 1200 (1 day) step repeater=====
+
: 1-cart 1200 (1 day) step repeater
  
  
Line 110: Line 110:
 
Of course, one could also easily rig 48 or 50-step repeater to 24/25 step counter, and possibly more compactly.
 
Of course, one could also easily rig 48 or 50-step repeater to 24/25 step counter, and possibly more compactly.
  
=====Simple powerless ternary counter=====
+
: Simple powerless ternary counter
  
 
{{diagram|spaces=yes|\
 
{{diagram|spaces=yes|\
Line 131: Line 131:
 
Relaying from a signal from this is a bit troublesome, though - one could link ╚ to a door and ╗ to a floodgate so that both are only open simultaneously for a time when one cart is keeping the door open, thus preventing it from closing before floodgate opens.
 
Relaying from a signal from this is a bit troublesome, though - one could link ╚ to a door and ╗ to a floodgate so that both are only open simultaneously for a time when one cart is keeping the door open, thus preventing it from closing before floodgate opens.
  
====Searcher====
+
====Scripts====
 +
 
 +
=====Searcher=====
  
 
HTML 5-tile 4 cart exhaustive searcher for above: https://pastebin.com/Yfik6tF2
 
HTML 5-tile 4 cart exhaustive searcher for above: https://pastebin.com/Yfik6tF2
Line 138: Line 140:
  
 
Can only expect relative accuracy (exact or off-by-as-much-as-six, depending on build order) for inelastic collisions. Since carts, notably the corner cart, can have remaining slow speed, this means using carts whose weight ratio is more than 2. On the other hand, looking only them is much faster.
 
Can only expect relative accuracy (exact or off-by-as-much-as-six, depending on build order) for inelastic collisions. Since carts, notably the corner cart, can have remaining slow speed, this means using carts whose weight ratio is more than 2. On the other hand, looking only them is much faster.
 
===Configs===
 
 
====Announcement Window====
 
 
Lovely utility, but the defaults are not quite to my taste.
 
 
[https://i.imgur.com/Y6jmqGx.png So here's a change].
 
 
Setup: [[User:Fleeting_Frames/filterstxt|Filters.txt]] & [[User:Fleeting_Frames/filtersdat|Filters.dat]].
 
 
 
===Scripts===
 
 
=====Constructmultiz=====
 
 
[[User:Fleeting_Frames/constructmultiz|An older lua script]] for helping placing irregularly-shaped constructions. Requires [http://www.bay12forums.com/smf/index.php?topic=167495.0 gui/indicator-screen], many changes could be made for improvements. [http://www.bay12forums.com/smf/index.php?topic=167598.0 Forum thread] has shots and details.
 
  
 
=====Copystockpilelinks=====
 
=====Copystockpilelinks=====
Line 165: Line 150:
  
 
With no arguments, it waits until cart moves off the tile, then pauses the game and tells you which cart moved.
 
With no arguments, it waits until cart moves off the tile, then pauses the game and tells you which cart moved.
With ``cposchange flip`` it waits until the cart returns to the tile.
+
With `cposchange flip` it waits until the cart returns to the tile.
  
 
=====UnsuspendSelectedBuilding=====
 
=====UnsuspendSelectedBuilding=====
Line 171: Line 156:
 
[[User:Fleeting_Frames/UnsuspendSelectedBuilding|UnsuspendSelectedBuilding.lua]] is a script that applies the idea of autounsuspend to single building selected;  
 
[[User:Fleeting_Frames/UnsuspendSelectedBuilding|UnsuspendSelectedBuilding.lua]] is a script that applies the idea of autounsuspend to single building selected;  
  
giving an announcement on start, stop and completion; Intended to be used with keybinds such as ``keybinding add Alt-S@dwarfmode/QueryBuilding/Some UnsuspendSelectedBuilding``
+
giving an announcement on start, stop and completion; Intended to be used with keybinds such as ''keybinding add Alt-S@dwarfmode/QueryBuilding/Some UnsuspendSelectedBuilding''
  
 
=====setwarning=====
 
=====setwarning=====
Line 177: Line 162:
 
[[User:Fleeting_Frames/setwarning|setwarning.lua]] is a script for helping to save-scum migrants, caravans as well as catch other events (presently, gremlins and werebeasts, on account of not seeing any).
 
[[User:Fleeting_Frames/setwarning|setwarning.lua]] is a script for helping to save-scum migrants, caravans as well as catch other events (presently, gremlins and werebeasts, on account of not seeing any).
  
As I play more than once a season, I set it to simply run once in ``onMapLoad.init``.  
+
As I play more than once a season, I set it to simply run once in onMapLoad.init.  
  
====listexoticpreferences====
+
=====listexoticpreferences=====
  
 
[[User:Fleeting_Frames/listexoticpreferences|lep.lua]] goes well with above, listing the names of all units who likes a whip, morningstar, longsword, two-handed sword, pike or great axe, for the purpose of weaponsmithing moods.
 
[[User:Fleeting_Frames/listexoticpreferences|lep.lua]] goes well with above, listing the names of all units who likes a whip, morningstar, longsword, two-handed sword, pike or great axe, for the purpose of weaponsmithing moods.
  
Usage is slightly eased by having a command like ``:lua dfhack.timeout(30, 'frames', function() if (#(dfhack.run_command_silent('lep'))<123) then dfhack.run_command('die') else print("Found mooddorf") df.global.pause_state = true end end)`` in ``onMapLoad.init``, where 123 would be number 1 greater than the current length of lep's output.
+
Usage is slightly eased by having a command like '':lua dfhack.timeout(30, 'frames', function() if (#(dfhack.run_command_silent('lep'))<123) then dfhack.run_command('die') else print("Found mooddorf") df.global.pause_state = true end end)'' in onMapLoad.init, where 123 would be number 1 greater than the current length of lep's output.
 
 
====listobituary====
 
 
 
[[User:Fleeting_Frames/listobituary|listobituary.lua]] - allows displaying and exporting csv of death dates. Requires gui/indicator-screen. [https://i.imgur.com/OffHH7j.png Example image made using csv].
 
 
 
====assigndeathdate====
 
 
 
[[User:Fleeting_Frames/assigndeathdate|assigndeathdate.lua]] - allows assigning butchered deathdate to a unit who doesn't have death record. Will crash on save.
 
 
 
====order_takeout====
 
 
 
Companion [[User:Fleeting_Frames/order_takeout|script]] to [http://www.bay12forums.com/smf/index.php?topic=171185.msg7839072#msg7839072 buy_food_needs]; allows ordering foods somebody wants to eat when diplomat asks what you want to order. (Doesn't work for ordering tree growths yet.)
 
 
 
====selectSquads====
 
 
 
A lua [[User:Fleeting_Frames/selectSquads|script]] to select individuals with metal weapon (or bolts, when passed R as parameter) in squad menu. Future changes tbc.
 
 
 
===Bugfixing scripts===
 
 
 
These scripts are intended to fix various bugs. To use these scripts save them as ``.lua`` files in ``hack/scripts/fix`` folder.
 
  
 
=====fix/wheelbarrow-stuckinside=====
 
=====fix/wheelbarrow-stuckinside=====
  
[[User:Fleeting_Frames/wheelbarrow-stuckinside|wheelbarrow-stuckinside.lua]] is a script for solving {{Bug|6074}} (Wheelbarrows accumulate items from incomplete hauling jobs).
+
[[User:Fleeting_Frames/wheelbarrow-stuckinside|wheelbarrow-stuckinside.lua]] is a script for solving {{Bug|6074}}.
  
Runs once, to use add this line of code to ``onMapLoad.init``: ``repeat -time 1 -timeUnits days -command [ fix/wheelbarrow-stuckinside ] -name wheelbarrowstuckinside``
+
Runs once, I apply with ''repeat -time 1 -timeUnits days -command [ fix/wheelbarrow-stuckinside ] -name wheelbarrowstuckinside'' in onMapLoad.init
  
 
=====fix/pathchain=====
 
=====fix/pathchain=====
  
[[User:Fleeting_Frames/pathchain|pathchain.lua]] is a script for solving {{Bug|10564}} (Pathing from chained or pitted animals causing lag and crashes).
+
[[User:Fleeting_Frames/pathchain|pathchain.lua]] is a script for solving {{Bug|10564}}.
  
Runs once, to use add this line of code to ``onLoad.init``: ``repeat -time 1 -timeUnits days -command [ fix/pathchain ] -name pathchain``
+
Like above, runs once, for use ''repeat -time 1 -timeUnits days -command [ fix/pathchain ] -name pathchain''
  
 
=====fix/militarygearclaims=====
 
=====fix/militarygearclaims=====
Line 225: Line 190:
 
Unlike above, has many options, including removing forbidden items from inventory as well as just text output or targeting one unit.
 
Unlike above, has many options, including removing forbidden items from inventory as well as just text output or targeting one unit.
  
Like above, it runs once, intended to use with ``repeat -time 1 -timeUnits days -command [ fix/militarygearclaims -textlessifempty ] -name militarygearclaims``. Or could also use months instead of days.
+
Like above, runs once, intended to use with ''repeat -time 1 -timeUnits days -command [ fix/militarygearclaims -textlessifempty ] -name pathchain''.
 
 
 
 
===Dwarfmonitor extensions===
 
 
 
These are scripts that can use patching dfhack-config/dwarfmonitor.json and /hack/lua/plugins/dwarfmonitor.lua. They're tested in 43.03 only at present, though should likely work in other versions.
 
 
 
====zoomToStop====
 
 
 
[[User:Fleeting_Frames/zoomToStop|zoomToStop.lua]] - A lua script to enable player to zoom to stop or cart of a hauling route.
 
 
 
It provides for this commands, keybindings and automatically patching dwarfmonitor for small image reminder:  [https://i.imgur.com/6EK5Sh7.png example screenshot].
 
 
 
Possible arguments are (no arguments), cart, bind, unbind, patch.
 
 
 
====itemage====
 
 
 
[[User:Fleeting_Frames/itemage|itemage.lua]] is a script that does two things:
 
 
 
1: Called with item selected or item id provided, it prints the item creation time and age.
 
 
 
2. Patched into dwarfmonitor, it'll display the age of items in loo'k' menu view, with ages called as items are selected.
 
 
 
Details of how to add inside link.
 
 
 
===Script modifications===
 
 
 
[[User:Fleeting_Frames/deathcause|deathcause.rb]] - lists death date for more units
 
 
 
[[User:Fleeting_Frames/sort-units|units.lua]] - allows sorting units by death date for sort-units
 
 
 
[[User:Fleeting_Frames/max-wave|max-wave.lua]] - limits migrant wave size, now with counting residents.
 
 
 
[[User:Fleeting_Frames/librarian|librarian.lua]] - edited to convert int to bitfield so it can work in 43.03 (higher game versions should use [https://github.com/PatrikLundell/scripts/blob/own_scripts/librarian.lua PatrikLundell's original])
 
 
 
[[User:Fleeting_Frames/buy_food_needs|buy_food_needs.lua]] - now also buys food in trade caravan whose products are preferred to eat by somebody, to cover things like wheat flour
 
 
 
[[User:Fleeting_Frames/inject-raws|devel/inject-raws.lua]] - now also permits injecting colors.
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)