Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Error throwing up no matter what I try.  (Read 1200 times)

MrLurkety

  • Bay Watcher
  • Bogeymen are tasty. So am I, to the bogeymen.
    • View Profile
Error throwing up no matter what I try.
« on: May 16, 2017, 02:22:41 pm »


I'm making a chew toy item, but it isn't working.




No matter what I try, the game throws up this error:
Code: [Select]
*** Error(s) finalizing the entity MOUNTAIN
Unrecognized entity tool token: ITEM_TOOL_CHEW_TOY


Here is the item:
Code: [Select]
item_draak


[OBJECT:ITEM]


[ITEM_TOOL:ITEM_TOOL_CHEW_TOY]
[NAME:chew toy:chew toys]
[VALUE:5]
[TILE:19]
[LEATHER_MAT]
[SIZE:30]
[DESCRIPTION:A toy for canines while teething, and afterward. It's often shaped like a bone.]
Here is the reaction:
Code: [Select]
reaction_draak


[OBJECT:REACTION]


[REACTION:CRAFT_CHEW_TOY]
[NAME:Make leather chew toy]
[BUILDING:LEATHER:NONE]
[REAGENT:leather:1:ANY_LEATHER_MATERIAL]

[PRODUCT:100:3:ITEM_TOOL_CHEW_TOY:NONE:GET_MATERIAL_FROM_REAGENT:leather:NONE]

[SKILL:LEATHERWORK]
And here is what I added to the dwarf civ:
Code: [Select]
-snip-
[TOOL:ITEM_TOOL_CHEW_TOY]
-snip-
[PERMITTED_REACTION:MAKE_CHEW_TOY]
-snip-
Logged
Bay12 Evo game
-snip-
I'm not an expert on the political climate but I'm pretty sure that politicians don't join armies and invade dwarven fortresses.

scamtank

  • Bay Watcher
    • View Profile
Re: Error throwing up no matter what I try.
« Reply #1 on: May 16, 2017, 02:29:07 pm »

If you stick the tool definition at the end of item_tool.txt instead of its own file, does it get recognized then?
Logged

Dunamisdeos

  • Bay Watcher
  • Duggin was the hero we needed.
    • View Profile
Re: Error throwing up no matter what I try.
« Reply #2 on: May 16, 2017, 03:16:24 pm »

Also doesn't [PERMITTED_REACTION:MAKE_CHEW_TOY] have to match [REACTION:CRAFT_CHEW_TOY] or am I nuts
Logged
FACT I: Post note art is best art.
FACT II: Dunamisdeos is a forum-certified wordsmith.
FACT III: "All life begins with Post-it notes and ends with Post-it notes. This is the truth! This is my belief!...At least for now."
FACT IV: SPEECHO THE TRUSTWORM IS YOUR FRIEND or BEHOLD: THE FRUIT ENGINE 3.0

MrLurkety

  • Bay Watcher
  • Bogeymen are tasty. So am I, to the bogeymen.
    • View Profile
Re: Error throwing up no matter what I try.
« Reply #3 on: May 16, 2017, 03:22:41 pm »

If you stick the tool definition at the end of item_tool.txt instead of its own file, does it get recognized then?
No, same error.
Also doesn't [PERMITTED_REACTION:MAKE_CHEW_TOY] have to match [REACTION:CRAFT_CHEW_TOY] or am I nuts
I just typed it wrong in the post.
Logged
Bay12 Evo game
-snip-
I'm not an expert on the political climate but I'm pretty sure that politicians don't join armies and invade dwarven fortresses.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Error throwing up no matter what I try.
« Reply #4 on: May 16, 2017, 09:09:11 pm »

I just typed it wrong in the post.
Do us all a favor and make sure you copy/paste everything, just to make sure you didn't accidentally fix a typo in the process of posting it here.
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.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Error throwing up no matter what I try.
« Reply #5 on: May 20, 2017, 07:56:37 pm »

You want TOOL:ITEM_TOOL_CHEW_TOY, not ITEM_TOOL_CHEW_TOY:NONE

And, TBH, I'm a little flabbergasted that that wasn't caught earlier by someone else here? It's kind of the first thing anyone ought to check.

But that is a different error, yeah, and you should be copy-pasting rather than retyping everything.
« Last Edit: May 20, 2017, 07:58:25 pm by Putnam »
Logged

MrLurkety

  • Bay Watcher
  • Bogeymen are tasty. So am I, to the bogeymen.
    • View Profile
Re: Error throwing up no matter what I try.
« Reply #6 on: July 25, 2017, 02:30:37 pm »

Still isn't working, so here is everything copy-pasted
Code: [Select]

reaction_draak


[OBJECT:REACTION]


[REACTION:CRAFT_CHEW_TOY]
[NAME:Make leather chew toy]
[BUILDING:LEATHER:NONE]
[REAGENT:leather:1:ANY_LEATHER_MATERIAL]
[PRODUCT:100:3:TOOL:ITEM_TOOL_CHEW_TOY:GET_MATERIAL_FROM_REAGENT:leather:NONE]
[SKILL:LEATHERWORK]
Code: [Select]

item_draak


[OBJECT:ITEM]


[ITEM_TOOL:ITEM_TOOL_CHEW_TOY]
[NAME:chew toy:chew toys]
[VALUE:5]
[TILE:19]
[LEATHER_MAT]
[SIZE:30]
[DESCRIPTION:A toy for canines while teething, and afterward. It's often shaped like a bone.]
Code: [Select]
-snip-

[TOOL:ITEM_TOOL_CHEW_TOY]
-snip-

[PERMITTED_REACTION:CRAFT_CHEW_TOY]
There's nothing in the errorlog, and it shows up in the workshop, it just doesn't make or use anything.
Logged
Bay12 Evo game
-snip-
I'm not an expert on the political climate but I'm pretty sure that politicians don't join armies and invade dwarven fortresses.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Error throwing up no matter what I try.
« Reply #7 on: July 25, 2017, 05:53:23 pm »

ANY_LEATHER_MATERIAL is not... used like that. You probably want [REAGENT:leather:1:SKIN_TANNED:NONE:NONE:NONE][ANY_LEATHER_MATERIAL]

MrLurkety

  • Bay Watcher
  • Bogeymen are tasty. So am I, to the bogeymen.
    • View Profile
Re: Error throwing up no matter what I try.
« Reply #8 on: July 25, 2017, 07:17:06 pm »

Thanks!
Logged
Bay12 Evo game
-snip-
I'm not an expert on the political climate but I'm pretty sure that politicians don't join armies and invade dwarven fortresses.