Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I'm a Cheaty Dwarf trying to learn DFHACk's createitem  (Read 3087 times)

Kraiger

  • Bay Watcher
    • View Profile
I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« on: February 20, 2015, 05:35:26 pm »

...and I can't figure out how to spawn an iron bar. I've tried
Code: [Select]
createitem METAL:IRON 1 but it hasn't done me any good.

Any and all help would be appreciated.
Logged
This is a masterful image of Machunguroho, Torchsilver, the alicorn, a dark iron bastard sword, a volcanic aurum battle axe, a felsteel heater shield, and an emerald golem. The golem has been struck down. Torchsilver is making a triumphant pose.

4maskwolf

  • Bay Watcher
  • 4mask always angle, do figure theirs!
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #1 on: February 20, 2015, 05:36:31 pm »

NOPE!
« Last Edit: February 20, 2015, 05:51:05 pm by 4maskwolf »
Logged

Kraiger

  • Bay Watcher
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #2 on: February 20, 2015, 05:39:36 pm »

That didn't work unfortunately. I got the same error
Code: [Select]
You must specify a valid item type to create!
Logged
This is a masterful image of Machunguroho, Torchsilver, the alicorn, a dark iron bastard sword, a volcanic aurum battle axe, a felsteel heater shield, and an emerald golem. The golem has been struck down. Torchsilver is making a triumphant pose.

4maskwolf

  • Bay Watcher
  • 4mask always angle, do figure theirs!
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #3 on: February 20, 2015, 05:42:25 pm »

NOPE!
« Last Edit: February 20, 2015, 05:50:48 pm by 4maskwolf »
Logged

Kraiger

  • Bay Watcher
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #4 on: February 20, 2015, 05:43:53 pm »

Same issue.  :(
Logged
This is a masterful image of Machunguroho, Torchsilver, the alicorn, a dark iron bastard sword, a volcanic aurum battle axe, a felsteel heater shield, and an emerald golem. The golem has been struck down. Torchsilver is making a triumphant pose.

4maskwolf

  • Bay Watcher
  • 4mask always angle, do figure theirs!
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #5 on: February 20, 2015, 05:48:09 pm »

NOPE!
« Last Edit: February 20, 2015, 05:50:52 pm by 4maskwolf »
Logged

4maskwolf

  • Bay Watcher
  • 4mask always angle, do figure theirs!
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #6 on: February 20, 2015, 05:49:12 pm »

NOPE!

BAR:NO_SUBTYPE:METAL:IRON?

or

BAR:NONE:METAL:IRON?

Kraiger

  • Bay Watcher
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #7 on: February 20, 2015, 05:52:50 pm »

Thank you for your suggestions, but I'm still getting the same issue.
Logged
This is a masterful image of Machunguroho, Torchsilver, the alicorn, a dark iron bastard sword, a volcanic aurum battle axe, a felsteel heater shield, and an emerald golem. The golem has been struck down. Torchsilver is making a triumphant pose.

4maskwolf

  • Bay Watcher
  • 4mask always angle, do figure theirs!
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #8 on: February 20, 2015, 05:55:40 pm »

What in all flavor of damnation...

I'm used every single definition I know, and it's not working?

Ask in the modding section, they will know.

Kraiger

  • Bay Watcher
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #9 on: February 20, 2015, 05:59:47 pm »

I'll go look there then.

Thank you for helping!  :D
Logged
This is a masterful image of Machunguroho, Torchsilver, the alicorn, a dark iron bastard sword, a volcanic aurum battle axe, a felsteel heater shield, and an emerald golem. The golem has been struck down. Torchsilver is making a triumphant pose.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #10 on: February 20, 2015, 08:36:20 pm »

BAR:NO_SUBTYPE:METAL:IRON?
DFHack doesn't recognize NO_SUBTYPE as an item subtype - you need to use NONE.

BAR:NONE:METAL:IRON?
Getting warmer. DF itself will recognize METAL as an alias for INORGANIC, but DFHack does not.

There's also the issue that you need to specify the item and the material separately - "createitem BAR:NONE INORGANIC:IRON" is what you want.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

4maskwolf

  • Bay Watcher
  • 4mask always angle, do figure theirs!
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #11 on: February 20, 2015, 08:37:41 pm »

Yeah, he figured that out over on the modding subsection.  It's been so long since I've used DFHack I forgot how to do stuff like that.

lethosor

  • Bay Watcher
    • View Profile
Re: I'm a Cheaty Dwarf trying to learn DFHACk's createitem
« Reply #12 on: February 20, 2015, 08:54:30 pm »

That's what the createitem documentation is for (there's also a page on the wiki, but it's not very well publicized). No matter what you pass as the first argument to createitem, it will fail if the second argument is not present (or is a number).
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.