PenUltima Online

It is currently Sun Sep 07, 2008 3:10 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Some kind of element error
PostPosted: Mon Aug 14, 2006 6:30 pm 
Offline

Joined: Sat Aug 12, 2006 12:01 am
Posts: 9
Location: Sweden
Whe i start the server up i get this error. yes i did some modificatiosn since i'm using a non-standard script pack for this pol096 core. but i would realy be happy if someone could help me out what this means:
Code:
Warning reading configuration file pkg/std/blacksmithy/itemdesc.cfg:
        Element specifies a SkillID instead of an Attribute
        Element: Weapon 0x13e3, found on line 1
Warning reading configuration file pkg/std/carpentry/itemdesc.cfg:
        Element specifies a SkillID instead of an Attribute
        Element: Weapon 0x0df0, found on line 214
Error reading configuration file pkg/std/carpentry/itemdesc.cfg:
        Attribute Mace not found
        Element: Weapon 0x0df0, found on line 214
Server Shutdown: load_itemdesc


The parts that the error doesn't like is:
Code:
Weapon   0x13e3
{
   Name      SmithyHammer
   Desc      Smithy's Hammer
   Default      1
   Speed      30
   Damage      2d5
   SkillId      MaceFighting
   MaxHP      60
   Script      make_blacksmith_items
   HitSound   0x13C
   MissSound   0x234
   VendorSellsFor   36
   VendorBuysFor   18
   equipscript   ::skilladvancerequip
   unequipscript   ::skilladvancerunequip
   DestroyScript   ::maindestroy
   CProp   SpecMult   i3
   CProp   AvailSkills   a1:i7
}


and

Code:
Weapon 0x0df0
{
   Name      BlackStaff
   Default      1
   Desc      Black Staff
   Speed      40
   Damage      4d5+1
   SkillId      MaceFighting
   HitSound   0x13C
   MissSound   0x234
   MaxHP      80
   VendorSellsFor   27
   VendorBuysFor   24
   TwoHanded   1
   BlocksCastingIfInHand   0
   strrequired   35
   Anim      0x000d
   Hitscript   :combat:mainhit
   equipscript   ::skilladvancerequip
   unequipscript   ::skilladvancerunequip
   DestroyScript   ::maindestroy
   Controlscript   ::applyhitscript
}


and MaceFighting is defined in the attributes file:
Attributes.cfg:
Code:
Attribute MaceFighting
{
   AttributeType   Skill
   DisplayName   Mace Fighting
   SkillId      41
   Title      Armsman
   
   StatCheck   Dexterity   100   1d2
   StatCheck   Strength   100   1d4+30
}


Attributes.inc
Code:
const ATTRIBUTEID_MACEFIGHTING     := "macefighting";


It would be SO great if someone knew what was wrong 'cus i'm going mad on this.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 14, 2006 7:47 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1129
Location: Southern Central USA
Here is what the entry should look like for POL weapons:

Code:
Weapon 0x13e4
{
    Name            smithyhammer2
    Default         1
    Speed           30
    Damage          6d3
    Attribute       Mace
    Anim            0x000b
    MaxHP           60
    Script          :blacksmithy:makeBlacksmithItems
    HitSound        0x13C
    MissSound       0x234
    VendorSellsFor  24
    VendorBuysFor   12
    equipscript     :combat:equip
    unequipscript   :combat:unequip
    controlscript   :combat:itemControl
    destroyscript   :combat:destroy
   CProp           OnHit a1:S15::combat:maceHit
}


Note the difference, 'Attribute' instead of SkillID.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 14, 2006 8:29 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 836
Location: Indiana, USA
Seems like you are trying to upgrade, a very very old version of scripts? If so, core-changes.txt may be your best friend ;)

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 14, 2006 10:54 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1129
Location: Southern Central USA
I would recommend preparing for such an upgrade by having on hand a fifth of 12 year old whiskey and consuming it liberally so you can atleast enjoy the time you'll be doing the upgrade. That is ofcourse if you are of the age to legally consume such beverages. If not then we don't want to know.

*smiles*

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 2:38 am 
Offline

Joined: Sat Aug 12, 2006 12:01 am
Posts: 9
Location: Sweden
Haha ;D yes thanks alot for the fast responce, i'm trying to convert the old zhs files to 096 >_< i', acctualy starting to think i might have been a bit to over confident when it comes to doing stuff like this ;d but i think i acctualy might be going in the right direction ;D

And yes i am old enought for drinking...just a bit to poor :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 1:53 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1129
Location: Southern Central USA
I know how you feel. I am attempting to convert from POL 95 to POL 96/97 including converting to use the skill gain system as Austin has it in POL 97.

*looks for more whiskey*

Have fun.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 16, 2006 4:47 pm 
Offline

Joined: Sat Aug 12, 2006 12:01 am
Posts: 9
Location: Sweden
i think it's even WAY to much :X it would help if i knew just a lil bit of programing :D all scripting/programing i know i know from last time i put up a shard...and thats not much.

But a friend of mine told me about zhs-core096 allready being out roaming the world wide web like a drunken sailor on the waves of ones and zeroes... A wild shot here...no one would happen to have this dist? :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 16, 2006 5:19 pm 
Offline

Joined: Sat Aug 12, 2006 12:01 am
Posts: 9
Location: Sweden
...... my god...ye wanna know what i found? i gave it a shot and started the un-converted version to see if that ran. it did...and in the console i found a lil tesxt that said:
Code:
System Message:    About
    POL:           POL093-2001-07-22
    Designer:      Syzygy
    Email          syzygy@pobox.com
    Last Updated:  Jul 22 2001 10:57:43


i will NOT even TRY to covert from 093 to 096 ;D project closed :)

Thanks for all the help though :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl