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 165: Line 165:
  
 
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 171:
 
[[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 177:
 
[[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====
Line 183: Line 183:
 
[[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====
 
====listobituary====
Line 200: Line 200:
  
 
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.
 
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.
 +
 +
====zoomToStop====
 +
 +
A lua [[User:Fleeting_Frames/zoomToStop|script]] to enable player to zoom to stop or cart of a hauling route, as well as indicator for the same. Tested in 43.03; works off keybinds and dwarfmode.lua. For latter, [https://i.imgur.com/6EK5Sh7.png example ss].
  
 
===Bugfixing scripts===
 
===Bugfixing scripts===
  
These scripts are intended to fix various bugs. To use these scripts save them as ``.lua`` files in ``hack/scripts/fix`` folder.
+
These scripts go into hack/scripts/fix folder and are intended to fix various bugs.
  
 
=====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 229:
 
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 militarygearclaims''. (Or could also use months instead of days).
 
 
 
 
===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===
 
===Script modifications===
Line 259: Line 240:
  
 
[[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/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)