Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 11 12 [13]

Author Topic: Kloker was Cavern Keeper was Manipulator. Detailed and automatic labor control.  (Read 44142 times)

Jazz Cat

  • Bay Watcher
  • Adept stringed instrumentalist
    • View Profile

I'm unfamiliar with GBD, but it crashes when I move the cursor over specific dwarves (I have them nicknamed `CRASH ALERT'). Both problem dwarves right now were children when they came to my fort, although one is now 13 and has grown into a peasant.

I'm using DFHack 0.47.04-r1, if that helps.
Logged
Give your dwarves a pet
My holiday mod (only offensive to elves)
The check-laundry script

Quote
Just give the Crossbow weapon the [AMMO:CROSSBOW] tag in the raws. You can make a crossbow that shoots crossbows.

lethosor

  • Bay Watcher
    • View Profile

Interesting. By "cursor" are you referring to the selected dwarf in the Kloker screen, the 'v' cursor in the main fortress mode screen, or something else? If it's outside of the Kloker screen, does the issue persist if you unload the plugin with "unload kloker"?
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.

Jazz Cat

  • Bay Watcher
  • Adept stringed instrumentalist
    • View Profile

Within the Kloker screen, I mean. The 'highlighted' dwarf.
Logged
Give your dwarves a pet
My holiday mod (only offensive to elves)
The check-laundry script

Quote
Just give the Crossbow weapon the [AMMO:CROSSBOW] tag in the raws. You can make a crossbow that shoots crossbows.

Blazeguard

  • Escaped Lunatic
    • View Profile

I just stumbled across this mod.  Any chance that it will be updated for the latest release 47.04 r10?
Logged

otrapersona

  • Escaped Lunatic
    • View Profile

it'd be nice if more updates were provided for people who can't computer (and compile it) like me, this seems excellent, I don't enjoy alt-tabbing to the therapist
Logged

Jazz Cat

  • Bay Watcher
  • Adept stringed instrumentalist
    • View Profile

Strainer's usually pretty good about updating this, they're probably locked down somewhere they can't compile it.
Logged
Give your dwarves a pet
My holiday mod (only offensive to elves)
The check-laundry script

Quote
Just give the Crossbow weapon the [AMMO:CROSSBOW] tag in the raws. You can make a crossbow that shoots crossbows.

bwbill

  • Bay Watcher
    • View Profile

I've gotten kloker compiled on linux using  McArcady's lnp-forge: https://github.com/McArcady/lnp-forge

It is pretty straightforward:

1. Get lnp-forge working and producing a build
2. Download kloker.cpp from github and place it in .build/src/dfhack/plugins (starting from your lnp-forge folder).
3. Edit .build/src/dfhack-0.47.04-r1/plugins/CMakeLists.custom.txt, and add the line
Code: [Select]
dfhack_plugin(kloker kloker.cpp)4. Run ./bin/lnp-forge build again
5. Download dfkeeper_pallete.txt from the kloker github into .build/src/lnp-0.14a/df_47_04_linux
6. Delete the file
Code: [Select]
.build/src/lnp-0.14a/df_47_04_linux/hack/plugins/manipulator.plug.so7. Run the pack from .build/src/lnp-0.14a/startlnp.sh .. open a game
8. Open units menu 'u' -> 'k' for kloker

I'm back! What a long road it's been, but I achieved my goal finally today, and Kloker is working on 0.47.05-r1.

Addenda to the steps above, from my lessons learned:
  • 1a. install Linux Dwarf Pack .deb to get many dependencies
  • 1b. endless hangups and timeouts on git cloning? (I have a poor internet connection) no need to rebuild git with openssl or mess with the postBuffer setting, just make a key for github so you can use SSH for all downloads via git config --global url."git@github.com:".insteadOf "https://github.com/"
  • 1c. run lnp-forge from its root directory -- do NOT run from lnp-forge/bin
  • 2a. add #include "df/historical_figure_relationships.h" to kloker.cpp
  • 6a. change "enable manipulator" to "enable kloker" in dfhack.init
Thanks again, rmblr and project contributors! Happy here.
« Last Edit: April 02, 2021, 05:53:15 pm by bwbill »
Logged

McArcady

  • Bay Watcher
  • working on a mysterious construction
    • View Profile
    • LinuxDwarfPack - a ready-to-play pack for Linux

I'm unfamiliar with GBD, but it crashes when I move the cursor over specific dwarves (I have them nicknamed `CRASH ALERT'). Both problem dwarves right now were children when they came to my fort, although one is now 13 and has grown into a peasant.
I'm using DFHack 0.47.04-r1, if that helps.

Bug reproduced with DFHack 0.47.05-r1 debug symbols:
Code: [Select]
[DFHack]#
          Thread 3 "Dwarf_Fortress" received signal SIGABRT, Aborted.
                                                                     [Switching to Thread 0x7ffff158a700 (LWP 704)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff67487bb in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff6733535 in __GI_abort () at abort.c:79
#2  0x00007ffff6cf9983 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff6cff8c6 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff6cff901 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff6cffb34 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff6cfb845 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007ffff6d3f028 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x00007ffff08594e0 in std::string::resize(unsigned long) (__n=18446744073709551569, this=0x7ffff15874b8)
    at /usr/include/c++/8/bits/basic_string.h:3873
#9  0x00007ffff08594e0 in viewscreen_unitklokerst::printScripts(UnitInfo*) (this=<optimized out>, cur=<optimized out>)
    at ../plugins/kloker.cpp:6172
#10 0x00007ffff085f438 in viewscreen_unitklokerst::render() (this=0x7fffed628760) at ../plugins/kloker.cpp:5856
#11 0x00007ffff6e4b2f6 in render_things() () at /tmp/lnp-iDtrcA/df_47_05_linux/libs/libgraphics.so
#12 0x00007ffff6e3a407 in enablerst::async_loop() () at /tmp/lnp-iDtrcA/df_47_05_linux/libs/libgraphics.so
#13 0x00007ffff6e3a4e0 in call_loop(void*) () at /tmp/lnp-iDtrcA/df_47_05_linux/libs/libgraphics.so
#14 0x00007ffff744af28 in  () at /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#15 0x00007ffff748a0d9 in  () at /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#16 0x00007ffff6661fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#17 0x00007ffff680a4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)

[EDIT] bugfix available in my DFHack fork, branch kloker-for-0-47-05-r1
« Last Edit: April 05, 2021, 03:59:16 pm by McArcady »
Logged
Pages: 1 ... 11 12 [13]