Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question about custom weapons  (Read 1009 times)

kurto321

  • Escaped Lunatic
    • View Profile
Question about custom weapons
« on: June 07, 2016, 08:10:06 am »

I decided to try modding in a custom weapon for the first time, and it almost works. Upon generating a world and testing, My dwarf will take the bar and coke to the workshop, and make the weapon, but the moment construction (of the weapon) finishes the game crashes. I figure I must have gotten something wrong in the raws.

So, Urists, what have I done wrong? What am I missing? I tried following the modding guide on the wiki as closely as possible, but there were a couple things I couldn't quite wrap my head around. Because of that I either winged it (after failing to google a better explanation of what to do) or used other things I could find in the raws as a guideline.

To clarify, I'm just looking for what I've done wrong that makes the game crash, and how to fix it. That's all.

My custom weapon, as seen in the raws - http://imgur.com/a/4lxIT
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Question about custom weapons
« Reply #1 on: June 07, 2016, 09:53:21 am »

Missing "WEAPON" token in the product line (PRODUCT:100:1:WEAPON:etc)

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Question about custom weapons
« Reply #2 on: June 07, 2016, 09:59:00 am »

More accurately, I should say
WEAPON:ITEM_WEAPON_GAUNTLET_BLADE_HIDDEN
together make up the item token, and you left out the first part. 

The first word in the item token has to come strictly from this list
http://dwarffortresswiki.org/index.php/DF2014:Item_token