Bay 12 Games Forum

Please login or register.

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

Author Topic: DFHack 0.34.11 r3  (Read 1444500 times)

peterix

  • Bay Watcher
    • View Profile
    • Dethware
DFHack 0.34.11 r3
« on: August 14, 2011, 08:04:46 pm »

A new thread has been made for dfhack 0.34.11 r5 and newer. (LINK)

DFHack is an attempt to unite the various ways hack tools access DF memory and allow for easier development of new tools (and of course, make the game more enjoyable for players). It comes with some useful tools that can fix your fort and make things easier to handle. DFHack integrates with Dwarf Fortress and extends it with plugins, a command console and a way to bind hotkeys to the commands.

Continued development of DFHack would be impossible without its contributors and definitely isn't a one man show. Check this out!

Some command examples:
'reveal'     - reveals the map or portions of it.
'prospect'   - counts available raw materials - mostly minerals.
'clean'      - removes nasty bloodstains and other such materials from the map, items and creatures.
'cleanowned' - removes ownership of claimed items, solving problems with worn clothing and military starving out the fort.
'stonesense' - an embedded version of the Stonesense isometric visualizer, ready for use.
'dfusion'    - an embedded version of DFusion

And many more...

How to install DFHack:
  • First, get the archive meant for your system. Extract the contents into your DF folder.
  • On Windows, you're ready to use DFHack. An extra command line window should appear when you run DF.
  • On Linux, use the 'dfhack' script from a terminal to run DF with DFHack. If you have stonesense problems, you might have to get your own allegro 5 libraries and delete the ones in stonesense/deplibs.

How to uninstall DFHack:
  • Remove 'stonesense', 'hack' and 'dfusion' folders from your DF.
  • On Windows, remove SDL.dll and rename SDLreal.dll to SDL.dll
  • On Linux, remove the dfhack script.

Read the Readme for the full list of commands, their usage and installation instructions :)

Stonesense has a README file too. Check it out if you don't know all the keys yet.

DFHack for DF 0.34.11 (release 3) (Current):
Windows version
Linux version
OSX version

What's new
  • Internals
    • support for displaying active keybindings properly.
    • support for reusable widgets in lua screen library.
    • Maps::canStepBetween: returns whether you can walk between two tiles in one step.
    • EventManager: monitors various in game events centrally so that individual plugins don't have to monitor the same things redundantly.
    • Now works with OSX 10.6.8
  • Notable bugfixes
    • autobutcher can be re-enabled again after being stopped.
    • stopped Dwarf Manipulator from unmasking vampires.
    • Stonesense is now fixed on OSX
  • Misc improvements
    • fastdwarf: new mode using debug flags, and some internal consistency fixes.
    • added a small stand-alone utility for applying and removing binary patches.
    • removebadthoughts: add --dry-run option.
    • superdwarf: work in adventure mode too.
    • tweak stable-cursor: carries cursor location from/to Build menu.
    • deathcause: allow selection from the unitlist screen.
    • slayrace: allow targetting undeads.
  • New tweaks
    • tweak military-training: speed up melee squad training up to 10x (normally 3-5x).
  • New scripts
    • binpatch: the same as the stand-alone binpatch.exe, but works at runtime.
    • region-pops: displays animal populations of the region and allows tweaking them.
    • lua: lua interpreter front-end converted to a script from a native command.
    • dfusion: misc scripts with a text based menu.
    • embark: lets you embark anywhere.
    • lever: list and pull fort levers from the dfhack console.
    • stripcaged: mark items inside cages for dumping, eg caged goblin weapons.
    • soundsense-season: writes the correct season to gamelog.txt on world load.
    • create-items: spawn items
    • fix/cloth-stockpile: fixes bug 5739; needs to be run after savegame load every time.
  • New GUI scripts
    • gui/guide-path: displays the cached path for minecart Guide orders.
    • gui/workshop-job: displays inputs of a workshop job and allows tweaking them.
    • gui/workflow: a front-end for the workflow plugin (part inspired by falconne).
    • gui/assign-rack: works together with a binary patch to fix weapon racks.
    • gui/gm-editor: an universal editor for lots of dfhack things.
    • gui/companion-order: a adventure mode command interface for your companions.
    • gui/advfort: a way to do jobs with your adventurer (e.g. build fort).
  • New binary patches (for use with binpatch)
    • armorstand-capacity: doubles the capacity of armor stands.
    • custom-reagent-size: lets custom reactions use small amounts of inputs.
    • deconstruct-heapfall: stops some items still falling on head when deconstructing.
    • deconstruct-teleport: stops items from 16x16 block teleporting when deconstructing.
    • hospital-overstocking: stops hospital overstocking with supplies.
    • training-ammo: lets dwarves with quiver full of combat-only ammo train.
    • weaponrack-unassign: fixes bug that negates work done by gui/assign-rack.
  • Workflow plugin
    • properly considers minecarts assigned to routes busy.
    • code for deducing job outputs rewritten in lua for flexibility.
    • logic fix: collecting webs produces silk, and ungathered webs are not thread.
    • items assigned to squads are considered busy, even if not in inventory.
    • shearing and milking jobs are supported, but only with generic MILK or YARN outputs.
    • workflow announces when the stock level gets very low once a season.
  • New Fix Armory plugin
    • Together with a couple of binary patches and the gui/assign-rack script,
          this plugin makes weapon racks, armor stands, chests and cabinets in
          properly designated barracks be used again for storage of squad equipment.
  • New Search plugin by falconne
    • Adds an incremental search function to the Stocks, Trading, Stockpile and Unit List screens.
  • New AutoMaterial plugin by falconne
    • Makes building constructions (walls, floors, fortifications, etc) a little bit easier by
          saving you from having to trawl through long lists of materials each time you place one.
  • Dfusion plugin
    • Reworked to make use of lua modules, now all the scripts can be used from other scripts.
  • New Eventful plugin
    • A collection of lua events, that will allow new ways to interact with df world.
  • Auto syndrome plugin
    • A way of automatically applying boiling rock syndromes and calling dfhack commands controlled by raws.
  • Infinite sky plugin
    • Create new z-levels automatically or on request.
  • True transformation plugin
    • A better way of doing permanent transformations that allows later transformations.
  • Work now plugin
    • Makes the game assign jobs every time you pause.

DFHack for DF 0.34.08 - 0.34.11 (release 2) (older):
Spoiler (click to show/hide)

DFHack for DF 0.34.08 - 0.34.11 (release 1) (older):
Spoiler (click to show/hide)

DFHack for DF 0.34.08, 0.34.09 and 0.34.10 (older):
Spoiler (click to show/hide)

DFHack for DF 0.34.06 and 0.34.07 (older):
Spoiler (click to show/hide)

DFHack for DF 0.34.05 (older):
Spoiler (click to show/hide)

DFHack for DF 0.34.03 and 0.34.04 (older):
Spoiler (click to show/hide)

DFHack for DF 0.34.02 (older):
Spoiler (click to show/hide)

DFHack for DF 0.31.25 (older):
Spoiler (click to show/hide)

DFHack for DF 40dxx (ancient):
See the thread for legacy DFHack: here.

Bugs should be reported here: Issues tracker.

There's an IRC channel on freenode: #dfhack (irc://irc.freenode.net/dfhack or web client)


The source code is available from github, please read the Compile document before building.

Full list of downloadable versions can be found here: http://dethware.org/dfhack/download/
« Last Edit: June 20, 2014, 12:41:36 pm by peterix »
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.31.25 (current)
« Reply #1 on: August 14, 2011, 08:05:48 pm »

History:
Spoiler (click to show/hide)
« Last Edit: February 13, 2013, 12:40:22 pm by peterix »
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #2 on: August 14, 2011, 11:09:05 pm »

Wootwoot!
Logged

strich

  • Bay Watcher
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #3 on: August 14, 2011, 11:25:12 pm »

Love your work Peterix, as always. ;)
Logged

Artanis00

  • Bay Watcher
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #4 on: August 15, 2011, 12:16:12 am »

Looking good. First time looking at this.

One minor quibble, though: better plugin loading error messages. I can't try to fix it if I don't even know whats going wrong.

$ ./dfhack
dfhack: hooking successful
Dynamically loading the OpenAL library failed, disabling sound
Initializing OpenAL failed, no sound will be played
Loading bindings from data/init/interface.txt
New window size: 640x300
Font size: 8x12
Resizing grid to 80x25
Resizing font to 8x12

Resetting textures
Can't load plugin ./hack/plugins/stonesense.plug.so
DFHack is ready. Have a nice day!
Type in '?' or 'help' for general help, 'ls' to see all commands.
[DFHack]#

It looks like allegro 5 doesn't have Debian packages at the moment (if I'm wrong, disregard and let me know), which means it's probably dependency problems. The build process for allegro seems easy enough... cmake is not seeing libxcursor, why?

For now, README should probably note that it's not in the package manager.
Logged
Git - fast, efficient, distributed version control system
Github - Free public repositories, issue tracking, wikis, downloads...

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.31.25 r1 (current)
« Reply #5 on: August 15, 2011, 12:19:03 am »

Looking good. First time looking at this.
It looks like allegro 5 doesn't have Debian packages at the moment (if I'm wrong, disregard and let me know), which means it's probably dependency problems. The build process for allegro seems easy enough... cmake is not seeing libxcursor, why?

For now, README should probably note that it's not in the package manager.
You don't need allegro. It's statically linked to the stonesense plugin. You need libjpeg8 AFAIK.

The errors are dumped into stderr.log - you can see what happened there.
EDIT: I added some info about the log files into the Readme doc.
« Last Edit: August 15, 2011, 12:48:13 am by peterix »
Logged

Artanis00

  • Bay Watcher
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #6 on: August 15, 2011, 01:15:25 am »

Looking good. First time looking at this.
It looks like allegro 5 doesn't have Debian packages at the moment (if I'm wrong, disregard and let me know), which means it's probably dependency problems. The build process for allegro seems easy enough... cmake is not seeing libxcursor, why?

For now, README should probably note that it's not in the package manager.
You don't need allegro. It's statically linked to the stonesense plugin. You need libjpeg8 AFAIK.

The errors are dumped into stderr.log - you can see what happened there.
EDIT: I added some info about the log files into the Readme doc.

Ok. README says allegro 5 is a dependency, so if it's statically linked there's probably no need to mention that (and mentioning libjpeg8 would be better; I have no idea why that one isn't installed by default).

As far as logs go, noting them in the README is a great idea. On that vein, is the stonesense plugin writing a log anywhere? There's nothing in the error log, and stonesense is bringing everything down when I run it.
Logged
Git - fast, efficient, distributed version control system
Github - Free public repositories, issue tracking, wikis, downloads...

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #7 on: August 15, 2011, 01:22:26 am »

So the entire DFhack replaces the SDL with a modified version?
This means I have to stick multiple versions of the same DFhack-r1 for each 31.25 Dwarf fortress causing me to be either stuck to one type of Dwarf fortress or constantly updating, copying each DF 31.25 I have.
Oh well I might as well use DFhackr1's Dfusion for helping modders to add extra touch to their Mods and not for personal matters.
how Dfusion set up using dfusion on the start menu will cause Dwarf fortress to freeze. so will there be a unfreeze command or could there be a leave Df running command for the entire Dfusion section?
« Last Edit: August 15, 2011, 03:46:04 am by Rumrusher »
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

Aerval

  • Bay Watcher
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #8 on: August 15, 2011, 03:39:50 am »

Wow, this is pretty cool. Thanks a lot petrix.
Logged

Mikey

  • Bay Watcher
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #9 on: August 15, 2011, 04:23:36 am »

This is excellent.

Would it be possible to insert some new hotkey definitions into DF itself for triggering specific plugins?  Being able to call cleanmap and such via in-game hotkey would be amazingly convenient.
Logged

Sentenza

  • Bay Watcher
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #10 on: August 15, 2011, 04:37:29 am »

Just had a chance to give it a try, and have to say it's super sweet! :)
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.31.25 r1 (current)
« Reply #11 on: August 15, 2011, 04:40:55 am »

Ok. README says allegro 5 is a dependency, so if it's statically linked there's probably no need to mention that (and mentioning libjpeg8 would be better; I have no idea why that one isn't installed by default).

As far as logs go, noting them in the README is a great idea. On that vein, is the stonesense plugin writing a log anywhere? There's nothing in the error log, and stonesense is bringing everything down when I run it.
Right. Looks like something went wrong with that 'static linking' plan then. I have it working on my linux machine, but it seems it's not working on others... hmm.

I'll see what can be done with it... there's a reason why I've been avoiding external dependencies on linux like the plague before :)

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.31.25 r1 (current)
« Reply #12 on: August 15, 2011, 04:42:21 am »

This is excellent.

Would it be possible to insert some new hotkey definitions into DF itself for triggering specific plugins?  Being able to call cleanmap and such via in-game hotkey would be amazingly convenient.
DFhack reuses the normal F1-F8/Shift F1-F8 hotkeys. Open up the menu with 'h', pick one hotkey, name it 'cleanmap' and there you go :)

Kaelem Gaen

  • Bay Watcher
  • And then it appeared the most terrifying creature
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #13 on: August 15, 2011, 05:08:46 am »

This is cool and all, it'll be really useful, but I don't Always  use it/keep it open (on the older versions) and chance you'll be releasing a stand alone version?  I already have one CMD prompt pop up through soundsense and really dislike having another that I won't be using very often.

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: DFHack 0.31.25 r1 (current)
« Reply #14 on: August 15, 2011, 05:30:02 am »

I suggest hide/show and then use it by binding F8= toggledfhack in DF.
Logged
Pages: [1] 2 3 ... 373