Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: help with df hack  (Read 1359 times)

Morcaster

  • Bay Watcher
    • View Profile
help with df hack
« on: April 17, 2014, 08:03:29 pm »

Just installed Masterwork and learning to use dfhack.
http://dwarffortresswiki.org/index.php/Utility:DFusion

I'am in the "How to" section and i'am deeply confused. How can I edit dwarf stats and whatnot?
I'd like to edit one dwarf in specific.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: help with df hack
« Reply #1 on: April 18, 2014, 11:34:24 pm »

1. highlight your dwarf
2. type "gui/gm-editor"
3. flail wildly as you look for what stats you want to edit (hint: skills and mental attributes are in status->current_soul, physical attributes are in body)

Morcaster

  • Bay Watcher
    • View Profile
Re: help with df hack
« Reply #2 on: April 21, 2014, 01:24:41 am »

I will try that right now, thank you!
Logged

Morcaster

  • Bay Watcher
    • View Profile
Re: help with df hack
« Reply #3 on: April 21, 2014, 01:33:54 am »

Okay I tried that and it's good that df hack understands the command as it told me the command was not invalid. But I highlight dwarf with V or K Correct? I type command and nothing happens, I type once more and I get red letters that say "No valid target found"
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: help with df hack
« Reply #4 on: April 21, 2014, 03:42:20 am »

Try "gui/gm-editor dfhack.gui.getSelectedUnit(true)". Make sure you don't use the quotes in the command line.

Morcaster

  • Bay Watcher
    • View Profile
Re: help with df hack
« Reply #5 on: April 21, 2014, 04:10:43 am »

That did not work to.
I get this.
Posted on facebook.
I don't know how to insert image...

https://www.facebook.com/photo.php?fbid=759878127364671&set=a.453613697991117.108960.100000274713934&type=1&theater

As you can see nothing that you mentioned pops up. just blank.
This when I type again I get the red text.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: help with df hack
« Reply #6 on: April 21, 2014, 12:41:48 pm »

Are you making absolute sure that you have a unit selected? If it's in adventure mode, you have to go into their status screen (by pressing the letter or, for your adventurer, press "z").

Morcaster

  • Bay Watcher
    • View Profile
Re: help with df hack
« Reply #7 on: April 22, 2014, 01:43:12 am »

Playing fortress mode. I tried selecting a dwarf with K or V and I got nothing.
Logged

Morcaster

  • Bay Watcher
    • View Profile
Re: help with df hack
« Reply #8 on: April 22, 2014, 04:32:22 am »

Oh wow i'm hopeless.... I didn't know that the editor popped up on the main game screen! I thought it was sopost to be in hack... WOW. Sorry for wasting your time lol.

Hurrrpppdurrpp
Logged