DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.86k stars 471 forks source link

Autobutcher in Linux 64bit DF Hack alpha3 not working. #1053

Closed Castaras closed 7 years ago

Castaras commented 7 years ago

Pressing shift and B in the animal menu causes the following error to appear in the DF Hack console.


...Dwarf Fortress/df_linux/hack/scripts/gui/autobutcher.lua:163: attempt to call a nil value (field 'autobutcher_getSettings')

stack traceback:

    ...Dwarf Fortress/df_linux/hack/scripts/gui/autobutcher.lua:163: in method 'initListChoices'

    ...Dwarf Fortress/df_linux/hack/scripts/gui/autobutcher.lua:97: in local 'fun'

    ./hack/lua/class.lua:98: in upvalue 'invoke_after_rec'

    ./hack/lua/class.lua:127: in global 'WatchList'

    ...Dwarf Fortress/df_linux/hack/scripts/gui/autobutcher.lua:662: in local 'script_code'

    ./hack/lua/dfhack.lua:562: in function 'dfhack.run_script_with_env'

    (...tail calls...)

Using Ubuntu Mate, 64bit version X(can't remember exact name), with 64bit DFHack 43.05alpha3.

ab9rf commented 7 years ago

It should be noted that this is solely a bug in the autobutcher Lua GUI script. The autobutcher plugin itself works just fine.

lethosor commented 7 years ago

What's the status of the zone plugin? (Run plug zone)

gui/autobutcher uses the zone plugin under the hood, and that plugin could have failed to load due to a couple missing globals on 64-bit Linux.

ab9rf commented 7 years ago

Additional information: the autobutcher gui works in Windows 64 bit, which is additional evidence for @lethosor's conclusion that this is due to missing globals on 64-bit Linux.

lethosor commented 7 years ago

If you run load zone, you should get a list of the specific ones zone needs that are missing.

Castaras commented 7 years ago

Plugin zone is missing required globals: ui_building_assign_type, ui_building_assign_is_marked, ui_building_assign_units, ui_building_assign_items

                 Name      State Cmds  Enabled
                 zone   unloaded    0      n/a
lethosor commented 7 years ago

Works for me after d18beb8.