Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: strange errorlog about items  (Read 875 times)

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
strange errorlog about items
« on: February 21, 2008, 04:31:00 am »

code:
Unrecognized Item Definition Token: NAME
Unrecognized Item Definition Token: DAMAGE
Unrecognized Item Definition Token: WEIGHT
Unrecognized Item Definition Token: SKILL
Unrecognized Item Definition Token: CRIT_BOOST
Unrecognized Item Definition Token: TWO_HANDED
Unrecognized Item Definition Token: MINIMUM_SIZE
Unrecognized Item Definition Token: MATERIAL_SIZE


I can't understand why... These tokens are usual for an yweapons, why do I get these errors? (I have weapons and armors in 1 file, but I think it's ok).
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Kagus

  • Bay Watcher
  • Olive oil. Don't you?
    • View Profile
Re: strange errorlog about items
« Reply #1 on: February 21, 2008, 06:07:00 am »

Make sure the formatting is the way it should be.  For instance, "name" would be


[NAME:sword:swords]


If there are missing/extra brackets or other seperators, there might be a problem.  Only thing to do is scour recently modded weapons.

Keilden

  • Bay Watcher
  • High Priest of The Endcat
    • View Profile
Re: strange errorlog about items
« Reply #2 on: February 21, 2008, 06:25:00 am »

Post to codes.
Logged
The Endcat will end you and everything you love.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: strange errorlog about items
« Reply #3 on: February 21, 2008, 11:29:00 am »

It's in the one file which was made not by me:

code:

item_orc

[OBJECT:ITEM]

[NAME:claymore sword:claymore swords]
[DAMAGE:160:SLASH]
[WEIGHT:120]
[SKILL:SWORD]
[CRIT_BOOST:1]
[TWO_HANDED:0]
[MINIMUM_SIZE:7]
[MATERIAL_SIZE:7]

[ITEM_WEAPON:ITEM_WEAPON_HUNTING_KNIFE]
[NAME:hunting knife:hunting knives]
[DAMAGE:60:SLASH]
[WEIGHT:10]
[SKILL :DAGGER]
[CRIT_BOOST:1]
[TWO_HANDED:3]
[MINIMUM_SIZE:3]
[MATERIAL_SIZE:1]

[ITEM_WEAPON:ITEM_WEAPON_LONGSPEAR]
[NAME:longspear:longspear]
[DAMAGE:130:PIERCE]
[WEIGHT:80]
[SKILL:PIKE]
[CRIT_BOOST:2]
[TWO_HANDED:7]
[MINIMUM_SIZE:7]
[MATERIAL_SIZE:5]

[ITEM_WEAPON:ITEM_WEAPON_CUTLASS]
[NAME:cutlass:cutlasses]
[DAMAGE:100:SLASH]
[WEIGHT:20]
[SKILL:SWORD]
[CRIT_BOOST:1]
[TWO_HANDED:3]
[MINIMUM_SIZE:3]
[MATERIAL_SIZE:3]

[ITEM_ARMOR:ITEM_ARMOR_BANDED_MAIL]
[NAME:banded mail:banded mail]
[PREPLURAL:suits of]
[WEIGHT:100]
[VALUE:80]
[ARMORLEVEL:2]
[MAINBLOCK:60]
[SECONDBLOCK:40]
[UBSTEP:1]
[LBSTEP:1]
[SHAPED]
[LAYER:ARMOR]
[COVERAGE:100]
[LAYER_SIZE:20]
[LAYER_PERMIT:50]
[MATERIAL_SIZE:7]
[HARD]
[METAL]

[ITEM_ARMOR:ITEM_ARMOR_CHESTPLATE]
[NAME:chestplate:chestplates]
[WEIGHT:30]
[VALUE:30]
[MAINBLOCK:20]
[SECONDBLOCK:8]
[ARMORLEVEL:3]
[UBSTEP:0]
[LBSTEP:0]
[LAYER:ARMOR]
[COVERAGE:50]
[LAYER_SIZE:12]
[LAYER_PERMIT:50]
[MATERIAL_SIZE:4]
[SHAPED]
[METAL]
[HARD]

[ITEM_ARMOR:ITEM_ARMOR_RING_MAIL]
[NAME:ring mail:ring mail]
[PREPLURAL:suits of]
[WEIGHT:60]
[VALUE:40]
[ARMORLEVEL:2]
[MAINBLOCK:35]
[SECONDBLOCK:25]
[UBSTEP:1]
[LBSTEP:1]
[SHAPED]
[LAYER:ARMOR]
[COVERAGE:100]
[LAYER_SIZE:20]
[LAYER_PERMIT:50]
[MATERIAL_SIZE:7]
[HARD]
[METAL]

[ITEM_ARMOR:ITEM_ARMOR_STUDDED_MAIL]
[NAME:studded leather armor:studded leather armor]
[PREPLURAL:suits of]
[WEIGHT:50]
[VALUE:30]
[ARMORLEVEL:2]
[MAINBLOCK:25]
[SECONDBLOCK:25]
[UBSTEP:1]
[LBSTEP:1]
[SHAPED]
[LAYER:ARMOR]
[COVERAGE:100]
[LAYER_SIZE:20]
[LAYER_PERMIT:50]
[MATERIAL_SIZE:7]
[HARD]
[LEATHER]

[ITEM_WEAPON:ITEM_WEAPON_TRIDENT]
[NAME:trident:tridents]
[DAMAGE:150:GORE][CAN_STONE]
[SKILL:SPEAR]
[TWO_HANDED:6]
[MINIMUM_SIZE:6]
[MATERIAL_SIZE:4]
[STICK_CHANCE:20]

[ITEM_WEAPON:ITEM_WEAPON_CLUB_SPIKED]
[NAME:club:clubs][CAN_STONE]
[ADJECTIVE:Spiked]
[DAMAGE:50:BLUDGEON]
[WEIGHT:35]
[SKILL:MACE]
[CRIT_BOOST:1]
[TWO_HANDED:4]
[MINIMUM_SIZE:3]
[MATERIAL_SIZE:2]
[STICK_CHANCE:30]


I used it foe my orc weapons. I'm gonna make my own items so I want to know what's wrong with this one.

Also I know I have some problems with graphics , but I don't know what is the "texture" part. Is it after coordinates? I'll try adding/removing files to know which one causes problems.

Also what's "DIM" in the bmp file definition? (after the path to it), how to use it right? I can't find it in wiki.

[ February 21, 2008: Message edited by: Deon ]

Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Fleeb

  • Bay Watcher
  • The Fleebiest
    • View Profile
Re: strange errorlog about items
« Reply #4 on: February 21, 2008, 11:36:00 am »

Odd, I use those and get no errors.

Dim is dimension of the page, a graphics page consisting of a single square would have "page_dim 1:1"

page_dim rows:columns

a 2 square, side by side graphics page would have dim of 1:2

::edit::

I think I see the problem, need [ITEM_WEAPON:ITEM_WEAPON_SWORD_CLAYMORE] above the claymore bit. I must have miss-copied. Sorry!

[ February 21, 2008: Message edited by: Fleeb ]

Logged
"If you push something hard enough, it will fall over" -Fudds First Law of Opposition
"If it goes in, it must come out" -Teslicles Deviant to Fudds Law

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: strange errorlog about items
« Reply #5 on: February 21, 2008, 03:17:00 pm »

Hey, that's too easy to notice =). Thanks. Now the orcs can use proper weapons.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository