Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: dfhack.init  (Read 2983 times)

sobaman14

  • Bay Watcher
    • View Profile
dfhack.init
« on: August 11, 2013, 12:17:40 pm »

I'm pretty new to dfhack, and I just found out about keybindings.
I would like to activate the ones in dfhack.init-example, and I followed the instruction to drop the "-example" part of the filename.
When I open up dwarf fortress, however, it doe not use the keybindings in dfhack.init. I have to type in the "keybinding add" commands in order to use them.
dfhack.init is still described as an INIT-EXAMPLE file.
Could this be the problem?
Or does dfhack.init have to be in a specific place in the dwarf fortress files?
Thanks
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: dfhack.init
« Reply #1 on: August 11, 2013, 01:27:44 pm »

"dfhack.init" has to be in the same location as "DwarfFortress.exe"

also the insides should look like this:

Code: [Select]
keybinding add Shift-P "lua hack\scripts\heritage.lua"
keybinding set Alt-X "die"
keybinding set Alt-G "quicksave"
keybinding set Ctrl-G "fastdwarf 1"
keybinding add Shift-Ctrl-Z@dwarfmode/Default "stocks show"

saddly I can only confirm that the middle 3 only work for me.
Logged

sobaman14

  • Bay Watcher
    • View Profile
Re: dfhack.init
« Reply #2 on: August 11, 2013, 06:19:13 pm »

Everything looks okay.. But it still doesn't like it.  :-\
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: dfhack.init
« Reply #3 on: August 11, 2013, 06:20:33 pm »

Do you have your file extensions hidden?

Suds Zimmerman

  • Bay Watcher
    • View Profile
Re: dfhack.init
« Reply #4 on: August 11, 2013, 06:23:43 pm »

Everything looks okay.. But it still doesn't like it.  :-\

It's probably the fact that it's still described as an INIT-EXAMPLE file. If you're having trouble, just open it up with Notepad++, copy the contents into a new file and save it as dfhack.init (save as type All types (*.*) (that's not an emoticon.)

That will probably work. Also what Putnam said. Unhiding them will probably be easier.
Logged
You don't need a weatherman to know which way the wind blows
DORFAMUNDA - NECROMUNDA DF MOD

sobaman14

  • Bay Watcher
    • View Profile
Re: dfhack.init
« Reply #5 on: August 11, 2013, 07:20:43 pm »

Yep, that was it. It's up and running now.
Thanks!
Logged