Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do I install custom DFhack pluggins (.lua)?  (Read 3820 times)

AnomalyFour

  • Escaped Lunatic
    • View Profile
How do I install custom DFhack pluggins (.lua)?
« on: June 16, 2015, 08:52:51 pm »

Im trying to get DFhack to run this script https://gist.github.com/IndigoFenix/cf358b8c994caa0f93d5#file-timestream-lua

No idea what to do to install it. Its probably simple but im probably an idiot.

How? Thanks.
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: How do I install custom DFhack pluggins (.lua)?
« Reply #1 on: June 16, 2015, 09:03:35 pm »

You're right, it really is. Take this timestream.lua and stuff it in Dwarf Fortress/hack/scripts. Then punch in "timestream" to run it.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: How do I install custom DFhack pluggins (.lua)?
« Reply #2 on: June 17, 2015, 02:27:14 am »

For reference: plugins are .cpp or .so type things and usually compiled with dfhack, they go in /hack/plugins.
Scripts are usually .lua or .rb and go in /hack/scripts or a subfolder in there.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: How do I install custom DFhack pluggins (.lua)?
« Reply #3 on: June 17, 2015, 03:10:07 pm »

In most cases, you can click the "Raw" button to view just the contents of a file on GitHub, then save that wherever you want (make sure to use the proper extension - ".lua" in this case).
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.