Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: ALT255 on July 23, 2018, 07:18:23 am

Title: Force events ( Caravan) DFHACK dfhack-dfhack-0.44.12-alpha1-Windows-64
Post by: ALT255 on July 23, 2018, 07:18:23 am
I just added the latest Dwarf Hack, and was unable to force a Caravan for much need food.
DFHACk command says to use force -events [event] -civ[civ id]
so I've tried the following:

force Caravan MOUNTAIN

Her's some attempts:


[DFHack]# force caravan MOUNTAIN

modtools/force
==============
This tool triggers events like megabeasts, caravans, and migrants.

Usage::

    -eventType event
        specify the type of the event to trigger
        examples:
            MegaBeast
            Migrants
            Caravan
            Diplomat
            WildlifeCurious
            WildlifeMischievous
            WildlifeFlier
            NightCreature
    -civ entity
        specify the civ of the event, if applicable
        examples:
            player
            MOUNTAIN
            EVIL
            28


force: -eventType [Megabeast, Migrants, Caravan, Diplomat, WildlifeCurious, Wild
lifeMischievous, WildlifeFlier, NightCreature] -civ [player,ENTITY_ID]

[DFHack]# force -eventType Caravan MOUNTAIN
force: unknown event type: -eventType

[DFHack]# force -Caravan -civ MOUNTAIN
force: unknown event type: -Caravan
[DFHack]# force Caravan -civ MOUNTAIN

...spy\Desktop\Masterwork\Dwarf Fortress\hack\lua\utils.lua:601: duplicate arg:
4: civ
stack traceback:
        [C]: in function 'error'
        ...spy\Desktop\Masterwork\Dwarf Fortress\hack\lua\utils.lua:601: in func
tion 'utils.processArgs'
        ...asterwork\Dwarf Fortress/hack/scripts/modtools/force.lua:51: in local
 'script_code'
        ...py\Desktop\Masterwork\Dwarf Fortress\hack\lua\dfhack.lua:680: in func
tion 'dfhack.run_script_with_env'
        (...tail calls...)
        ...Desktop\Masterwork\Dwarf Fortress/hack/scripts/force.lua:44: in local
 'script_code'
        ...py\Desktop\Masterwork\Dwarf Fortress\hack\lua\dfhack.lua:680: in func
tion 'dfhack.run_script_with_env'
        (...tail calls...)
[DFHack]#

Maybe I installed DFHACK wrong?
Title: Re: Force events ( Caravan) DFHACK dfhack-dfhack-0.44.12-alpha1-Windows-64
Post by: lethosor on July 23, 2018, 06:13:07 pm
It's a bug. It's fixed in the next version.

Edit: actually, it's fixed in 0.44.12-r1 (https://dfhack.readthedocs.io/en/latest/docs/NEWS.html#dfhack-0-44-12-r1). The version in your post title (0.44.12-alpha1) is not the latest version - there are two newer versions. This is why you shouldn't say you're using the "latest" version of something in general - it's possible that you missed upgrades.