PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Some kind of element error

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
Kieeps



Joined: 12 Aug 2006
Posts: 9
Location: Sweden

PostPosted: Mon Aug 14, 2006 10:30 pm    Post subject: Some kind of element error Reply with quote

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.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Mon Aug 14, 2006 11:47 pm    Post subject: Reply with quote

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.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Tue Aug 15, 2006 12:29 am    Post subject: Reply with quote

Seems like you are trying to upgrade, a very very old version of scripts? If so, core-changes.txt may be your best friend Wink

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Tue Aug 15, 2006 2:54 am    Post subject: Reply with quote

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*

Author Message
Kieeps



Joined: 12 Aug 2006
Posts: 9
Location: Sweden

PostPosted: Tue Aug 15, 2006 6:38 am    Post subject: Reply with quote

Haha ;D yes thanks alot for the fast responce, i'm trying to convert the old zhs files to 096 frustrated 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 Very Happy

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Tue Aug 15, 2006 5:53 pm    Post subject: Reply with quote

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.

Author Message
Kieeps



Joined: 12 Aug 2006
Posts: 9
Location: Sweden

PostPosted: Wed Aug 16, 2006 8:47 pm    Post subject: Reply with quote

i think it's even WAY to much :X it would help if i knew just a lil bit of programing Very Happy 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? Smile

Author Message
Kieeps



Joined: 12 Aug 2006
Posts: 9
Location: Sweden

PostPosted: Wed Aug 16, 2006 9:19 pm    Post subject: Reply with quote

...... 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 Smile

Thanks for all the help though Very Happy

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty