Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 08-09-2008, 07:24 PM   #1 (permalink)
Forum Expert
 
vermillion2083's Avatar
 
Join Date: Jun 2005
Location: Lansing, MI
Age: 25
Posts: 1,042
Send a message via ICQ to vermillion2083 Send a message via MSN to vermillion2083
Default Client crashes when opening spellbook (client ver. 6.0.9.2)

Good afternoon everyone,

I've noticed a nasty little bug that causes any player on my server client to crash upon opening any spell book. I'm not entirally sure what is causing this, but I know it's a client issue as anyone patched to the highest client version suffers from this bug, but people using clients under 5.0.9.1 don't feel the effects. Anyone have any suggestions on this? Thank you all in advance for your assistance.
__________________
Father Time
Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "Holy Hell......What a ride!!!"

Server: UO: Extinction
ICQ: 146563794
FatherTime@UOExtinction.com
UO: Extinction homepage
UO: Extinction forum
vermillion2083 is offline   Reply With Quote
Old 08-09-2008, 07:59 PM   #2 (permalink)
Forum Novice
 
Tassyon T's Avatar
 
Join Date: Sep 2007
Posts: 367
Default

Quote:
Originally Posted by vermillion2083 View Post
Good afternoon everyone,

I've noticed a nasty little bug that causes any player on my server client to crash upon opening any spell book. I'm not entirally sure what is causing this, but I know it's a client issue as anyone patched to the highest client version suffers from this bug, but people using clients under 5.0.9.1 don't feel the effects. Anyone have any suggestions on this? Thank you all in advance for your assistance.
Hmm. Are mul files updated in a new client release? If some IDs in the files have been deleted, or something strange like that, maybe the spellbook gump is feeding them invalid ItemIDs, GumpIDs, etc? Also, a cliloc might have been moved around? Just thoughts on what it might be...
Tassyon T is offline   Reply With Quote
Old 08-10-2008, 10:41 AM   #3 (permalink)
Forum Novice
 
Karmageddon's Avatar
 
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
Default

I had the same problem on my server if anyone patched above 6.0.1.4 I think it was. Now are you using the AllSpells system? If so you did not update the Spellbook.cs with the new coding for the higher clients. I had the same problem and that is what fixed problem. If you want I could send you the Spellbook.cs I am using.
__________________

Your fate is sealed in the end of Time.....
Karmageddon is offline   Reply With Quote
Old 08-10-2008, 11:49 AM   #4 (permalink)
Forum Novice
 
FingersMcSteal's Avatar
 
Join Date: Mar 2006
Location: North East, England, UK
Posts: 865
Send a message via ICQ to FingersMcSteal Send a message via MSN to FingersMcSteal
Default

This sounds like something that happened a while ago.

This was from a few years ago, same or almost sounds the same error happening...

Spellbook problems

Hope that points you in the right direction.
__________________
We can be found on joinUO.com or listUO.com, come try us out.
FingersMcSteal is offline   Reply With Quote
Old 08-10-2008, 05:24 PM   #5 (permalink)
Forum Novice
 
Tassyon T's Avatar
 
Join Date: Sep 2007
Posts: 367
Default

Quote:
Originally Posted by Tassyon T View Post
Hmm. Are mul files updated in a new client release? If some IDs in the files have been deleted, or something strange like that, maybe the spellbook gump is feeding them invalid ItemIDs, GumpIDs, etc? Also, a cliloc might have been moved around? Just thoughts on what it might be...
You could record the gump IDs and itemIDs and clilocs fed to the clients by looking at the spellbook gump scripts and compare them to the mul IDs using InsideUO. For the clilocs you'd need a cliloc editor.
Tassyon T is offline   Reply With Quote
Old 08-11-2008, 09:55 AM   #6 (permalink)
Forum Expert
 
vermillion2083's Avatar
 
Join Date: Jun 2005
Location: Lansing, MI
Age: 25
Posts: 1,042
Send a message via ICQ to vermillion2083 Send a message via MSN to vermillion2083
Default

Quote:
Originally Posted by Karmageddon View Post
I had the same problem on my server if anyone patched above 6.0.1.4 I think it was. Now are you using the AllSpells system? If so you did not update the Spellbook.cs with the new coding for the higher clients. I had the same problem and that is what fixed problem. If you want I could send you the Spellbook.cs I am using.
I am not running the AllSpells system but I do have 4 custom spell classes that I have created over the last few years, so I'm assuming it's the same problem resulting from my older spellbook.cs. I will go through the newest SVN version of spellbook.cs and try to find the cause of my problem. Thank you all for your advice, I will report back my findings.

p.s. Does anyone have the newest SVN version of SpellBook.cs that is unmodified? It would save me some time. Thank you greatly in advance for your assistance.
__________________
Father Time
Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "Holy Hell......What a ride!!!"

Server: UO: Extinction
ICQ: 146563794
FatherTime@UOExtinction.com
UO: Extinction homepage
UO: Extinction forum
vermillion2083 is offline   Reply With Quote
Old 08-11-2008, 04:20 PM   #7 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,372
Default

Here it is.
Attached Files
File Type: cs Spellbook.cs (21.9 KB, 1 views)
__________________
HellRazor is offline   Reply With Quote
Old 08-11-2008, 09:51 PM   #8 (permalink)
Forum Expert
 
vermillion2083's Avatar
 
Join Date: Jun 2005
Location: Lansing, MI
Age: 25
Posts: 1,042
Send a message via ICQ to vermillion2083 Send a message via MSN to vermillion2083
Default

Thanks a million HellRazor.
__________________
Father Time
Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "Holy Hell......What a ride!!!"

Server: UO: Extinction
ICQ: 146563794
FatherTime@UOExtinction.com
UO: Extinction homepage
UO: Extinction forum
vermillion2083 is offline   Reply With Quote
Old 08-12-2008, 09:33 AM   #9 (permalink)
Forum Expert
 
vermillion2083's Avatar
 
Join Date: Jun 2005
Location: Lansing, MI
Age: 25
Posts: 1,042
Send a message via ICQ to vermillion2083 Send a message via MSN to vermillion2083
Default

Good morning everyone,

I was able to resolve my issue, and I thought I would share my findings with everyone just in case anyone else runs into this problem. The problem lied in the DisplayTo method in SpellBook.cs:

Code:
		public void DisplayTo( Mobile to )
		{
			// The client must know about the spellbook or it will crash!

			if ( Parent == null )
			{
				to.Send( this.WorldPacket );
			}
			else if ( Parent is Item )
			{
				if ( to.NetState == null )
					return;

				// What will happen if the client doesn't know about our parent?
				if ( to.NetState.IsPost6017 )
					to.Send( new ContainerContentUpdate6017( this ) );
				else
					to.Send( new ContainerContentUpdate( this ) );
			}
			else if ( Parent is Mobile )
			{
				// What will happen if the client doesn't know about our parent?
				to.Send( new EquipUpdate( this ) );
			}

			to.Send( new DisplaySpellbook( this ) );

			if ( to.NetState == null )
				return;

			if ( Core.AOS ) {
				if ( to.NetState.Version != null && to.NetState.Version >= Version_400a ) {
					to.Send( new NewSpellbookContent( this, ItemID, BookOffset + 1, m_Content ) );
				} else {
					to.Send( new SpellbookContent( m_Count, BookOffset + 1, m_Content, this ) );
				}
			}
			else {
				if ( to.NetState.IsPost6017 ) {
					to.Send( new SpellbookContent6017( m_Count, BookOffset + 1, m_Content, this ) );
				} else {
					to.Send( new SpellbookContent( m_Count, BookOffset + 1, m_Content, this ) );
				}
			}
		}
The non highlighted section of code was how my Spellbook.cs appeared before, and the red code is what needed to be added to make the spell book function with a client version higher then 6.0.1.0. Hope this helps!
__________________
Father Time
Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "Holy Hell......What a ride!!!"

Server: UO: Extinction
ICQ: 146563794
FatherTime@UOExtinction.com
UO: Extinction homepage
UO: Extinction forum
vermillion2083 is offline   Reply With Quote
Old 08-12-2008, 12:24 PM   #10 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,372
Default

Just to clarify, those changes are already in the RUO SVN. So I think you only need to make these changes if you're not using the SVN.
__________________
HellRazor is offline   Reply With Quote
Old 08-12-2008, 01:01 PM   #11 (permalink)
Forum Expert
 
vermillion2083's Avatar
 
Join Date: Jun 2005
Location: Lansing, MI
Age: 25
Posts: 1,042
Send a message via ICQ to vermillion2083 Send a message via MSN to vermillion2083
Default

Quote:
Originally Posted by HellRazor View Post
Just to clarify, those changes are already in the RUO SVN. So I think you only need to make these changes if you're not using the SVN.
This is true, I have custom spell classes that required modifications to spellbook.cs. Since my spell classes are quite old the spellbook.cs script has not been updated for some time.
__________________
Father Time
Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "Holy Hell......What a ride!!!"

Server: UO: Extinction
ICQ: 146563794
FatherTime@UOExtinction.com
UO: Extinction homepage
UO: Extinction forum
vermillion2083 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5