Some kind of element error

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Post Reply
Kieeps
New User
Posts: 6
Joined: Sat Aug 12, 2006 12:01 am

Some kind of element error

Post by Kieeps »

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: Select all

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: Select all

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: Select all

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: Select all

Attribute MaceFighting
{
	AttributeType	Skill
	DisplayName	Mace Fighting
	SkillId		41
	Title		Armsman
	
	StatCheck	Dexterity	100	1d2
	StatCheck	Strength	100	1d4+30
}
Attributes.inc

Code: Select all

const ATTRIBUTEID_MACEFIGHTING     := "macefighting";
It would be SO great if someone knew what was wrong 'cus i'm going mad on this.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Here is what the entry should look like for POL weapons:

Code: Select all

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.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Seems like you are trying to upgrade, a very very old version of scripts? If so, core-changes.txt may be your best friend ;)
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

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*
Kieeps
New User
Posts: 6
Joined: Sat Aug 12, 2006 12:01 am

Post by Kieeps »

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
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

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.
Kieeps
New User
Posts: 6
Joined: Sat Aug 12, 2006 12:01 am

Post by Kieeps »

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? :)
Kieeps
New User
Posts: 6
Joined: Sat Aug 12, 2006 12:01 am

Post by Kieeps »

...... 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: Select all

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
Post Reply