Spellbook got only CLUMSY spells

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 097.
Note: Core 097 is no longer officially supported.

Moderator: POL Developer

Post Reply
JeanLuc
New User
Posts: 10
Joined: Fri Jun 01, 2007 5:45 am

Spellbook got only CLUMSY spells

Post by JeanLuc »

Hi

Ive got another problem with my newest POL 97 version.

I copy the 2 POL packages into each other, use UO Convert, copy UO files to MUL directory, do not change ANY file.

I have a blank new installation. I login with admin / admin.
I open my inventory and have a full spellbook there by default. When I open it, it has ONLY 'CLUMSY' spells at first page, no spells at all other pages.

If I look in my PCEQUIP.TXT, I have all the correct different scrolls in my spellbook container, but its not displayed at the client (v 2.0.0) correctly. It doesnt matter which CLUMSY text I doubleclick, everyone casts CLUMSY spell.

Any help?


Thaaaaaaaaaaanks (again ;))
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Make sure the UOEXpansion (read core-changes) is set correctly for this client version (T2A).

Also, make sure you are not using the AOS Style spellbook settings in the SERVERSPECOPT.CFG file (UOFeatureEnable).
JeanLuc
New User
Posts: 10
Joined: Fri Jun 01, 2007 5:45 am

Post by JeanLuc »

Accounts.txt shows:

UOExpansion T2A


ServerSpecOpt.cfg shows:

UOFeatureEnable=0x00



Is this correct?
These settings have already been set, so your idea didnt helped so far :(
User avatar
CWO
POL Expert
Posts: 1159
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

find your spellbook entry in itemdesc.cfg and change the entry from

Code: Select all

container     0x0EFA
{
to

Code: Select all

Spellbook     0x0EFA
{
also be sure to add within that itemdesc entry

Code: Select all

Spelltype     magic
JeanLuc
New User
Posts: 10
Joined: Fri Jun 01, 2007 5:45 am

Post by JeanLuc »

Yay! That helped!!

THANK YOU
runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Post by runtest »

Same problem with 96 distro, thanks for the fix!
runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Post by runtest »

Now there are no power words displaying when I cast the spell.
User avatar
CWO
POL Expert
Posts: 1159
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

read core-changes.cfg. Going from 095-096 rips out almost all if not all core responsibility for spellcasting. Everything must be scripted now which on the con side, means more work for an established system but on the pro side, means you can customize spells completely to your liking.
runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Post by runtest »

So the 'PowerWords' tag is no longer used in spells.cfg?
User avatar
CWO
POL Expert
Posts: 1159
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

The core won't automatically display them. Instead, now you must put in your scripts SpeakPowerWords(who, spellid); This is defined in uo.em. This function uses the power words defined in spells.cfg.
runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Post by runtest »

Ah, I see, but when will a complete script set come into play and are the new scripts availible for SVN with 96 like the .gmtoolbar or .cmdbar somthing like that command?
dkpat
Apprentice Poster
Posts: 55
Joined: Tue Jul 24, 2007 10:21 am

Post by dkpat »

hey i'm having problems with this. using 095 distro on 096 core ( the one in the downloads section) i did the changes in the itemdesc.cfg but when i go to run POL this is what it says

Code: Select all

Reading data files:
  data/accounts.txt: 5 elements in 171 ms.
  data/pol.txt: 2 elements in 20 ms.
  data/objects.txt: 0 elements in 0 ms.
  data/pcs.txt: 29 elements in 60 ms.
  data/pcequip.txt:Can't add Item 0x6ae0ea54 to container 0x6ae0ea13
Server Shutdown: reading data
Leftover objects in objecthash: 88
Leaking a copy of the objecthash in order to avoid a crash.
Execution aborted due to: Data file error
i know this has to be a spellbook problem it wasn't like this before i changed the spellbook in itemdesc.cfg... can someone help me please?
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Hello dk.

Did you change the item name for spell scrolls from "Item" to "SpellScroll" within the itemdesc.cfg file they are defined?

Example:

Code: Select all

SpellScroll 0x1f2d
{
    Name           reactivearmorscroll
    Desc           Reactive Armor scroll
    Script         spellScroll/use
    Spellid        7
    SpellType		Magic
    VendorBuysFor  6
    VendorSellsFor 12
    Tooltip        Doubleclick to cast a spell, or use Inscription to add this spell to a spellbook
}
That might be the problem. It is possible that the server is trying to insert a scroll with the wrong item type definition (not sure if that's what it's called). It wants "SpellScroll" and is getting "Item" for the type definition of the spell scrolls.

If that doesn't fix it then you can open the pcequip.txt file in \pol\data and search for the serial of the container that is causing the problem to see what it is.
dkpat
Apprentice Poster
Posts: 55
Joined: Tue Jul 24, 2007 10:21 am

Post by dkpat »

If that doesn't fix it then you can open the pcequip.txt file in \pol\data and search for the serial of the container that is causing the problem to see what it is.
... i really wanted to avoid doing that...



ok the item definition has nothing to do with it ( yah i know kinda behind my self)


and as for the items serials .... i don't get much from it...
the thing is the item it says it's trying to insert into the other container... well the container has a container... this might be normal.. i don't know. lol ( i'm not very good with POL distro 095)

so in the end.. i still need help.

oh and hi Yukiko
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

You may not be aware that spellbooks are containers. That is why you will find that they have a container mermber in the pcequip,txt file. When POL starts it scans the spellbook container and makes sure the items in the container are the right kind, scrolls. If the scroll's members are not set correctly or the spellbook members are not set properly then POL will complain that the scrolls don't belong in the spellbook. Since you have the scrolls entered correctly in your itemdesc file, make sure you have all the necessary members set in your spellbook entry in the itemdesc.cfg file.

Here is an example of what a spellbook entry would look like:

Code: Select all

Spellbook 0x0EFA
{
    Name                spellbook
    Desc                spellbook
    Gump                0xFFFF
    MinX                40
    MaxX                60
    MinY                20
    MaxY                80
    Newbie              1
    SpellType		Magic
    BlocksCastingIfInHand 0
    RequiresAttention   0
    VendorSellsFor      22
    VendorBuysFor       11
    weight              1
    canRemoveScript     spellBook/canRemove
}
Your entry might look a bit different in a few places but the important lines are the first one; Spellbook 0x0EFA and SpellType Magic. If those are not set properly then I am pretty sure the core won't handle inserting scrolls properly.
dkpat
Apprentice Poster
Posts: 55
Joined: Tue Jul 24, 2007 10:21 am

Post by dkpat »

that is exactly how my spell book entry is... minus a change in the place of the script it uses. so.... yah
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

dk,

I can't help but wonder if it is something missing in the definitions in the itemdesc files. Post the definition of one of the scrolls and the spellbook definition. Maybe you've overlooked something.
dkpat
Apprentice Poster
Posts: 55
Joined: Tue Jul 24, 2007 10:21 am

Post by dkpat »

ok

Spellbook Definition

Code: Select all

Spellbook 0x0EFA
{
    Name                Spellbook
    desc                spellbook
    OnInsertScript      scrollInsert
    Gump                0xFFFF
    MinX                40
    MaxX                60
    MinY                20
    MaxY                80
    Newbie              1
    BlocksCastingIfInHand 0
    RequiresAttention   0
    VendorSellsFor      22
    VendorBuysFor       11
    weight              1
    CanInsertScript     ::canInsert
    OnInsertScript      ::onInsert
    CanRemoveScript     ::canRemove
    OnRemoveScript      ::onRemove
    Spelltype     magic
}

Reactive Armor Scroll Definition

Code: Select all

Scroll 0x1f2d
{
    Name           reactivearmorscroll
    Desc           Reactive Armor scroll
    Script         scroll
    Spellid        7
    VendorBuysFor  6
    VendorSellsFor 12
    Tooltip        Doubleclick to cast a spell, or use Inscription to add this spell to a spellbook
}
ok here is one of each. can somebody please help out.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

dk,

Here is the sample spellscroll definition I posted earlier:

Code: Select all

SpellScroll 0x1f2d 
{ 
    Name           reactivearmorscroll 
    Desc           Reactive Armor scroll 
    Script         spellScroll/use 
    Spellid        7 
    SpellType      Magic 
    VendorBuysFor  6 
    VendorSellsFor 12 
    Tooltip        Doubleclick to cast a spell, or use Inscription to add this spell to a spellbook 
}
You need the SpellType member in the scroll definitions as well. That is required in order for the core to know that the scroll contained in the spellbook is of the right type. According to the core chamges file There are six types of magic now, Magic (the standard one we all know and love), Necro, Paladin, Bushido, Ninjitsu and Spellweaving. I am not sure if the member names are case sensitive either so I use them with the first letter in uppercase.

Hope that fixes the problem.
dkpat
Apprentice Poster
Posts: 55
Joined: Tue Jul 24, 2007 10:21 am

Post by dkpat »

well thanks yukiko but it doesn't do anything different. i can just erase that in pcequip right... i'm thinking now that where i changed those files it can't figure out what item it is on the character. so getting rid of those items would fix it right?
dkpat
Apprentice Poster
Posts: 55
Joined: Tue Jul 24, 2007 10:21 am

Post by dkpat »

i was right. lol i got on and deleted all spellbooks and scrolls from people and it fixed it after i rehanged the files. it now displays all of the spells. THANK YOU SO MUCH YUKIKO!!!
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

No problem. Glad I was able to help.
Post Reply