Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Grrr Argh! Leather Reaction Sytax Problem  (Read 1522 times)

sunshaker

  • Bay Watcher
    • View Profile
Grrr Argh! Leather Reaction Sytax Problem
« on: January 14, 2010, 09:36:38 am »


Never mind those errors, toys can't be made out of leather, cloth, bone, shells or gems.

This line
Code: [Select]
[PRODUCT:100:1:SKIN_TANNED:NONE:LEATHER:MAMMOTH_WOOLLY]
gives me the error
Code: [Select]
Unrecognized Leather Token: MAMMOTH_WOOLLY
Obviously I'm doing something wrong, it is probably something simple that is staring me in the face (my syntax has to be wrong somehow). None of the searches I've done have shown an alternate code for this. So whats wrong?
« Last Edit: January 14, 2010, 11:10:53 am by sunshaker »
Logged

slink

  • Bay Watcher
  • Crazy Cat Dwarf
    • View Profile
    • Slink's Burrow Online
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #1 on: January 14, 2010, 10:55:36 am »

So I'm trying to do a number of reactions with leather (40d) which use the line

Code: [Select]
[REAGENT:1:TOY:ITEM_TOY_MEDICINE_BAG:LEATHER:NO_MATGLOSS]

or

[REAGENT:1:TOY:ITEM_TOY_MEDICINE_BAG:LEATHER:NO_SUBTYPE]

or

[REAGENT:1:TOY:ITEM_TOY_MEDICINE_BAG:LEATHER:NONE]

and I get the error

Code: [Select]
Unrecognized Leather Token: NO_MATGLOSS or NO_SUBTYPE or NONE
This line
Code: [Select]
[PRODUCT:100:1:SKIN_TANNED:NONE:LEATHER:MAMMOTH_WOOLLY]
gives me the error
Code: [Select]
Unrecognized Leather Token: MAMMOTH_WOOLLY
Obviously I'm doing something wrong, it is probably something simple that is staring me in the face (my syntax has to be wrong somehow). None of the searches I've done have shown an alternate code for this. So whats wrong?

Are you sure wooly is spelled with two "L" in the creature definition?
Logged
There is only one cat, and all cats are that cat.
Almost losing is sometimes fun.

sunshaker

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #2 on: January 14, 2010, 11:04:49 am »

This line
Code: [Select]
[PRODUCT:100:1:SKIN_TANNED:NONE:LEATHER:MAMMOTH_WOOLLY]
gives me the error
Code: [Select]
Unrecognized Leather Token: MAMMOTH_WOOLLY
Obviously I'm doing something wrong, it is probably something simple that is staring me in the face (my syntax has to be wrong somehow). None of the searches I've done have shown an alternate code for this. So whats wrong?

Are you sure wooly is spelled with two "L" in the creature definition?


It is, also the reactions to make MAMMOTH_WOOLLY meat and bones do not generate errors.
Logged

NecroRebel

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #3 on: January 14, 2010, 11:37:57 am »

Do the reactions to produce mammoth meat and bones actually produce mammoth meat and bones? That MAMMOTH_WOOLLY is the only thing I can see that would be problematic. You might want to dig through your raws, find the raw for the woolly mammoth, and check to make absolutely sure that you have your tag right.

Also, you might want to try temporarily switching it to produce for instance fox leathers; something that has a simple tag for that purpose, just so you can check to see if that's the only problem.



Oh, and for the "medicine bag" reagents, the leather token ANY should work to make the reaction take any leather medicine bag (though of course as you mentioned such things don't, by default, exist).
Logged
A Better Magma Pump Stack: For all your high-FPS surface-level magma installation needs!

sunshaker

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #4 on: January 14, 2010, 11:43:30 am »

Do the reactions to produce mammoth meat and bones actually produce mammoth meat and bones? That MAMMOTH_WOOLLY is the only thing I can see that would be problematic. You might want to dig through your raws, find the raw for the woolly mammoth, and check to make absolutely sure that you have your tag right.

Also, you might want to try temporarily switching it to produce for instance fox leathers; something that has a simple tag for that purpose, just so you can check to see if that's the only problem.

For Stuff like this I cut and paste to make sure I have it right. And yes it is correct.

Quote
Oh, and for the "medicine bag" reagents, the leather token ANY should work to make the reaction take any leather medicine bag (though of course as you mentioned such things don't, by default, exist).

Noted.
Logged

sunshaker

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #5 on: January 14, 2010, 12:07:30 pm »

This does not work

Code: [Select]
[REACTION:BED_LEATHER]
[NAME:make leather bedding]
[SMELTER]
[REAGENT:2:SKIN_TANNED:NO_SUBTYPE:LEATHER:ANY]
[PRODUCT:100:1:BED:NO_SUBTYPE:LEATHER:COW]

This does

Code: [Select]
[REACTION:BED_LEATHER_CAT]
[NAME:make cat leather bedding]
[SMELTER]
[REAGENT:3:SKIN_TANNED:NO_SUBTYPE:LEATHER:CAT]
[PRODUCT:100:1:BED:NO_SUBTYPE:LEATHER:CAT]

Hmm...
Logged

slink

  • Bay Watcher
  • Crazy Cat Dwarf
    • View Profile
    • Slink's Burrow Online
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #6 on: January 14, 2010, 01:36:41 pm »

I think maybe you want "NO_SUBTYPE" instead of "ANY"?
Logged
There is only one cat, and all cats are that cat.
Almost losing is sometimes fun.

sunshaker

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #7 on: January 14, 2010, 03:12:20 pm »

It doesn't matter what I use it doesn't work. I've tried NONE, NO_MAT_GLOSS, ANY, STANDARD and NO_SUBTYPE.
Logged

nicholasneko

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #8 on: January 14, 2010, 04:25:45 pm »

just tested it by adjusting a reaction i already had. this worked just fine. watched the guy grab 4 different kinds of leather, work, and poof. a fox bed from lizard, cat, elephant, and ox leather pieces.

[REACTION:BED_LEATHER_FOX]
[NAME:make fox leather bedding]
[SMELTER]
[REAGENT:4:SKIN_TANNED:NO_SUBTYPE:LEATHER:NO_MATGLOSS]
[PRODUCT:100:1:BED:NO_SUBTYPE:LEATHER:FOX]
« Last Edit: January 14, 2010, 04:27:28 pm by nicholasneko »
Logged

sunshaker

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #9 on: January 14, 2010, 05:00:56 pm »

Ok that one works. ?!?! Not sure why mine didn't. *sigh*

[Edit]Thats odd. It works if I stick it in reaction_standard but doesn't work if I stick it in any other reaction file.  ???
« Last Edit: January 14, 2010, 07:32:46 pm by sunshaker »
Logged

slink

  • Bay Watcher
  • Crazy Cat Dwarf
    • View Profile
    • Slink's Burrow Online
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #10 on: January 14, 2010, 08:19:06 pm »

Try sticking your wool(l)y mammoth skin reaction into reaction_standard.  Maybe there's a problem with your custom files.
Logged
There is only one cat, and all cats are that cat.
Almost losing is sometimes fun.

sunshaker

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #11 on: January 14, 2010, 09:28:14 pm »

Well something is buggered thats for sure (and I've had issues with my files before but that was them not being used, no entries showing up in the game, this is way different than that). It is possible that I have got hidden characters in one or more of the files and that they are causing the problem. I'll let it be until Monday when I have some time to work on it (I'll be gone Fri, Sat, Sun). If I figure out what it was I'll post to this thread.

Today was meant to be my error correcting day (usually my reactions are relatively error free and the error correction is a snap). Today with ~50 errors was more than I was expecting and very annoying (some of them weren't even mine *shakes fist at modders who's awesome work I borrow that don't error correct*). I learned many new things today.

Incidentally stone tokens appear to be valid (well don't generate errors in the errorlog anyways) when put on gems (I used REACTION_CLASS, but I suspect that ORE and SHARP will also work, this of course means that I need to try the [GLASS] token from CRYSTAL_ROCK on some stones, which will semi-ruin the purpose of my REACTION_CLASS:QUARTZ).
Logged

nicholasneko

  • Bay Watcher
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #12 on: January 14, 2010, 11:13:50 pm »

hay if you want to e-mail the files over i could take a look at em. i made a few little mods for DF so i'm sure i could do some error checking for ya. nicholasneko@yahoo.com
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #13 on: January 15, 2010, 04:48:40 am »

Show your woolly mammoth creature entry please.

Also it should be:
[PRODUCT:100:1:SKIN_TANNED:NO_SUBTYPE:LEATHER:MAMMOTH_WOOLLY]
« Last Edit: January 15, 2010, 04:51:10 am by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

slink

  • Bay Watcher
  • Crazy Cat Dwarf
    • View Profile
    • Slink's Burrow Online
Re: Grrr Argh! Leather Reaction Sytax Problem
« Reply #14 on: January 15, 2010, 10:27:18 am »

The problems I have had with my raws files are:

1.  Filename not exactly the same as the name at the top of the inside of the file.  I have been caught by plurals, for example.

2.  Forgot the [OBJECT:THINGY] statement.

3.  Filename not one that DF understands.  This one is a very subtle error because DF will compile such a file into the data/objects directory.  It just does nothing with the information afterward.  It only seems to understand filenames starting with "creature", "matgloss", "item", "reaction", "entity", and any other beginning to a vanilla raws filename that I have forgotten.  I found this out when I tried to start mine with "ring", eg ring_reaction.txt.  DF ignored the contents even though it compiled the files.  It should work because the header statement says what kinds of objects are inside the file, but it seems that the code that handles the raws isn't quite polished yet.   :D
Logged
There is only one cat, and all cats are that cat.
Almost losing is sometimes fun.
Pages: [1] 2