Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Force events ( Caravan) DFHACK dfhack-dfhack-0.44.12-alpha1-Windows-64  (Read 240 times)

ALT255

  • Escaped Lunatic
    • View Profile

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?
Logged

lethosor

  • Bay Watcher
    • View Profile

It's a bug. It's fixed in the next version.

Edit: actually, it's fixed in 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.
« Last Edit: July 23, 2018, 06:15:35 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.