Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 120 121 [122] 123 124 ... 360

Author Topic: DFHack 0.43.03-r1  (Read 1083427 times)

Baffler

  • Bay Watcher
  • Caveat Lector.
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1815 on: January 06, 2015, 03:04:08 pm »

How do I add new scripts to DFHack? Do I just need to move the .lua file into the folder with all the others, or do I need to do something special to let it recognize it?
Logged
Quote from: Helgoland
Even if you found a suitable opening, I doubt it would prove all too satisfying. And it might leave some nasty wounds, depending on the moral high ground's geology.
Location subject to periodic change.
Baffler likes silver, walnut trees, the color green, tanzanite, and dogs for their loyalty. When possible he prefers to consume beef, iced tea, and cornbread. He absolutely detests ticks.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1816 on: January 06, 2015, 03:05:13 pm »

Just put the .lua file into the scripts folder, yeah.

Baffler

  • Bay Watcher
  • Caveat Lector.
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1817 on: January 06, 2015, 03:06:13 pm »

Awesome, thanks.
Logged
Quote from: Helgoland
Even if you found a suitable opening, I doubt it would prove all too satisfying. And it might leave some nasty wounds, depending on the moral high ground's geology.
Location subject to periodic change.
Baffler likes silver, walnut trees, the color green, tanzanite, and dogs for their loyalty. When possible he prefers to consume beef, iced tea, and cornbread. He absolutely detests ticks.

Badger Storm

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1818 on: January 07, 2015, 03:52:06 pm »

Is the Darwin version the one for OSX?
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1819 on: January 07, 2015, 03:54:03 pm »

Yes.
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.

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1820 on: January 07, 2015, 03:56:43 pm »

Does anyone have a way of getting properties of the hotkeys?  I'm working on a script to print the name and location of each, but without getting data all I can do is print placeholder info...

Code: (hotkey-notes.lua) [Select]
-- prints info on assigned hotkeys to the console

local hotkeys = {'F1 ', 'F2 ', 'F3 ', 'F4 ', 'F5 ', 'F6 ',
                 'F7 ', 'F8 ', 'F9 ', 'F10', 'F11', 'F12'}

for i=1, #hotkeys do
    local hk = hotkeys[i]
    hk = {id=hk}
    -- PLACEHOLDER PROPERTIES ONLY!
    hk.name = '_name'
    hk.x = df.global.window_x
    hk.y = df.global.window_y
    hk.z = df.global.window_z

    print(hk.id..'  '..hk.name..'    X= '..hk.x..',  Y= '..hk.y..',  Z= '..hk.z)
end
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1821 on: January 07, 2015, 03:59:20 pm »

Take a look at df.global.ui.main.hotkeys
Also, there is no "F9" hotkey by default - the default keybindings use F1-F8 and Shift+F1-F8.
Edit: In case you didn't know, you can use string formatting instead of concatenating if you like:
Code: [Select]
print(('%i  %i  X=%i  Y=%i Z=%i'):format(hk.id, hk.name, hk.x, hk.y, hk.z))
(The parentheses around the string are only necessary for string literals.)
« Last Edit: January 07, 2015, 04:06:33 pm by lethosor »
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.

Badger Storm

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1822 on: January 07, 2015, 04:04:20 pm »

I've forgotten how to install DFHack on OSX.  Can someone please give me a quick run-down?
Logged

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1823 on: January 07, 2015, 04:05:10 pm »

Take a look at df.global.ui.main.hotkeys
Also, there is no "F9" hotkey by default - the default keybindings use F1-F8 and Shift+F1-F8.

Thanks!
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1824 on: January 07, 2015, 04:07:42 pm »

I've forgotten how to install DFHack on OSX.  Can someone please give me a quick run-down?
Same as other platforms - copy all files/folders from the archive into your DF folder.
On OS X (and Linux), you'll want to run the "dfhack" script instead of "df" (which launches DF without DFHack).
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.

danaris

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1825 on: January 07, 2015, 04:08:16 pm »

I've forgotten how to install DFHack on OSX.  Can someone please give me a quick run-down?

Just unzip the downloaded file and place everything that comes out of it (not the dfhack or dfhack-0 folder, but the contents of that folder) in your DF folder.
Logged

Badger Storm

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1826 on: January 07, 2015, 04:09:27 pm »

That's what I did, but I got this:

Last login: Wed Jan  7 16:06:07 on ttys000
/Applications/Dwarf\ Fortress\ 40.23/dfhack ; exit;
computer:~ emans002$ /Applications/Dwarf\ Fortress\ 40.23/dfhack ; exit;
terminate called after throwing an instance of '__gnu_cxx::__concurrence_lock_error'
  what():  __gnu_cxx::__concurrence_lock_error
/Applications/Dwarf Fortress 40.23/dfhack: line 15: 14370 Abort trap              DYLD_INSERT_LIBRARIES=./hack/libdfhack.dylib ./dwarfort.exe "$@"

logout

[Process completed]


I tried re-copying and re-pasting, but to no avail.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1827 on: January 07, 2015, 04:11:15 pm »

Are you using OS X 10.6?
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.

Badger Storm

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1828 on: January 07, 2015, 04:12:26 pm »

10.6.8, yeah.  Does that mean it won't work and I can't use DFHack anymore?
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.23-r1
« Reply #1829 on: January 07, 2015, 04:17:29 pm »

Try deleting hack/libstdc++.6.dylib. That's there to fix a bunch of Lua-related crashes that occur with DF's libstdc++ (in libs/), but I doubt it works on 10.6. I could try adjusting some more GCC build flags, I suppose.
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.
Pages: 1 ... 120 121 [122] 123 124 ... 360