Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: Lesseps on March 29, 2018, 09:24:40 am

Title: DFHack create-items command shuts the game instantly
Post by: Lesseps on March 29, 2018, 09:24:40 am
So I'm trying to create logs of wood somewhere on the ground, and using "create-items log chestnut 20" command. Prior to doing so I have cursor positioned onto one of the grass floor tiles above ground. When I hit "Enter", the game and DFHack window is closed instantly, reverting to previous save as if I force-closed it.

I'm using the latest Masterwork DF pack available on this forum and DFHack comes as a part of it. Any ideas?
Thanks in advance for your help.
Title: Re: DFHack create-items command shuts the game instantly
Post by: Quietust on March 30, 2018, 10:48:08 am
"Latest Masterwork DF pack" isn't meaningful - you need to state the actual version number of Dwarf Fortress+DFHack.
Title: Re: DFHack create-items command shuts the game instantly
Post by: Lesseps on March 30, 2018, 05:24:24 pm
Sure, sorry.

MWDF is v. 1.29
DFhack is v. 0.43.05-r1 (release) on x86_64
DF is v. 43.05 x64
Title: Re: DFHack create-items command shuts the game instantly
Post by: Quietust on March 30, 2018, 06:41:23 pm
You should probably upgrade your DFHack to version 0.43.05-r3.1 (https://github.com/DFHack/dfhack/releases/tag/0.43.05-r3) - though there's no guarantee that it will fix your particular problem, it's newer than what you're using (and is the final version that will ever support Dwarf Fortress v0.43.05).
Title: Re: DFHack create-items command shuts the game instantly
Post by: lethosor on March 30, 2018, 09:36:14 pm
Note that r3.1 will report itself as r3. But since your output (which I assume you copied from the console) says r1, you may as well upgrade.

You could also try the "createitem" command, which is different and supports more things, or "gui/create-item".

Also, "crash" is the most accurate and concise description of what you're seeing. Sometimes Windows doesn't display the obvious message telling you that DF crashed, but when a program does that, it's virtually always because it crashed, not because it closed itself intentionally without warning.