Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Closed Thread
 
Thread Tools Display Modes
Old 02-03-2005, 09:27 PM   #1 (permalink)
Forum Newbie
 
Join Date: Nov 2003
Posts: 78
Default World: Loading...An error was encountered

Quote:
"It used to work, now it doesn't..."
After upgrading from an older version of RunUO, I am greeted with the following error:

Code:
An error was encountered while loading a saved object
 - Type: Server.Items.MetalGoldenChest
 - Serial: 0x4000E113
After deleting the errorous object and all of its kin, I encounter the following:

Code:
An error was encountered while loading a saved object
 - Type: Server.Items.BarredMetalDoor2
 - Serial: 0x4000E0FA
and:

Code:
Error:
System.Exception: Load failed (items=True, mobiles=False, guilds=False, regions=False, type=Server.Items.BarredMetalDoor2, serial=0x4000E0FA) ---> System.Exception: ***** Bad serialize on Server.Items.BarredMetalDoor2 *****
   at Server.World.Load() in xxx\RunUO\RunUO\World.cs:line 728
   --- End of inner exception stack trace ---
   at Server.World.Load() in xxx\RunUO\RunUO\World.cs:line 883
   at Server.ScriptCompiler.Compile(Boolean debug) in xxx\RunUO\RunUO\ScriptCompiler.cs:line 290
   at Server.Core.Main(String[] args) in xxx\RunUO\RunUO\Main.cs:line 331
Now although I admit that I have not gone through every errorous item, I have gone through enough to be able to convince myself that every item will be deleted before its satisfied.

I have been unable to find anything wrong with the serialization or deserialization code of any of these objects, as they are just the standard code:

Code:
public override void Serialize( GenericWriter writer )
{
	base.Serialize( writer );

	writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
	base.Deserialize( reader );

	int version = reader.ReadInt();
}
Further troubleshooting led me to modifying the World.cs in the source to put in Console.WriteLine's at various points in the script, and I have discovered that Server.Items.MetalGoldenChest is the first item to be Deserialized (read from Items.bin), thus no item before it could have messed up the save.

I am completely out of ideas. If anyone has one, I'd apreciate some help.
Drauka36s is offline  
Old 02-25-2005, 02:09 AM   #2 (permalink)
 
Join Date: Aug 2004
Age: 34
Posts: 31
Default Same Issue

Ok i have these errors on ALL mobile and ALL items ....


World: Loading...An error was encountered while loading a saved object
- Type: Server.Mobiles.Wyvern
- Serial: 0x0000A95E
Delete the object? (y/n)
y
Delete all objects of that type? (y/n)
y
After pressing return an exception will be thrown and the server will terminate

Error:
System.Exception: Load failed (items=False, mobiles=True, guilds=False, regions=
False, type=Server.Mobiles.Wyvern, serial=0x0000A95E) ---> System.Exception: ***
** Bad serialize on Server.Mobiles.Wyvern *****
at Server.World.Load()
--- End of inner exception stack trace ---
at Server.World.Load()
at Server.ScriptCompiler.Invoke()
at Server.ScriptCompiler.Compile(Boolean debug)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit

I understand that this is in Serialization BUT it is in base items and mobiles, what changed and how to fix?
The 1.0.0 Distro is awsome, thanx for all the hard work, however, I also read that there would be NO LOSS, so there must be a way, what are we missing? PLEASE HELP ... thax
Theron Of SOJ is offline  
Old 02-25-2005, 02:23 AM   #3 (permalink)
Master of the Internet
 
Quantos's Avatar
 
Join Date: Apr 2003
Location: Edmonton, AB
Age: 41
Posts: 6,867
Send a message via ICQ to Quantos Send a message via AIM to Quantos Send a message via MSN to Quantos Send a message via Yahoo to Quantos
Default

Quote:
Originally Posted by Theron Of SOJ
The 1.0.0 Distro is awsome, thanx for all the hard work, however, I also read that there would be NO LOSS, so there must be a way, what are we missing? PLEASE HELP ... thax
There is no loss, assuming of course that your custom scripts are not buggy, and that you have actually merged the files properly.

When you upgraded, did you modify the distribution files, or did you replace them with your custom files?
__________________
Paranoia is what happens when you finally have all of the facts.
Quantos is offline  
Old 02-25-2005, 03:22 AM   #4 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

As Theron points out, these errors arise from serialization/deserialization errors in either the classes themselves or the base classes of objects that get reported.
In Theron's case it is not the core Mobile class that is creating problems but probably the BaseCreature class.
In Drauka's case I would check the base class scripts for the items that are being deleted such as BaseDoor.cs and Container.cs. In particular, check for any changes in the serialization/deserialization methods between the old and new versions.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline  
Old 02-25-2005, 01:00 PM   #5 (permalink)
 
Join Date: Aug 2004
Age: 34
Posts: 31
Default Edited

Quote:
Originally Posted by Quantos
There is no loss, assuming of course that your custom scripts are not buggy, and that you have actually merged the files properly.

When you upgraded, did you modify the distribution files, or did you replace them with your custom files?

I did edit BaseCreature for craft, all i added to it was this for daat99 craft;

public enum HideType
{
Regular,
Spined,
Horned,
Barbed,
Polar,
Synthetic,
Daemonic,
Shadow,
Frost,
Ethereal
}

public enum ScaleType
{
Red,
Yellow,
Black,
Green,
White,
Blue,
Copper,
Silver,
Gold,
All
}

As i didnt change anything for serialization, i realy dont think it is me adding these to BaseCreature.... and to once again say, the items it wants to delete are BASE UO Mobiles & Items. Still trying tho, just looking for some help. Thanx all of you!
Theron Of SOJ is offline  
Old 02-25-2005, 01:36 PM   #6 (permalink)
 
Join Date: Aug 2004
Age: 34
Posts: 31
Default Win Merge

Getting Win Merge to compair, be sure i didnt scrw up somthing, re adding all my scripts 1 by 1, will reply if i have issues still and will watch topic for assistance thanx again....
Theron Of SOJ is offline  
Old 02-25-2005, 05:08 PM   #7 (permalink)
 
Join Date: Aug 2004
Age: 34
Posts: 31
Default Corrected

I was able to correct my serialization issue but now i go on with things like
Toll
"error Loading Saved Objects" once again ALL base creatures
"End Of Inner Exception Stack Trace" some direction here is appriciated thanx.
Theron Of SOJ is offline  
Old 03-18-2005, 02:28 PM   #8 (permalink)
Forum Novice
 
Miles84's Avatar
 
Join Date: Aug 2004
Age: 24
Posts: 170
Thumbs down

well theron maybe you should try using runuo 1.0 instead of the illegal russian runuo 1.6.whatever...i cannot believe you asked help here for that...oh wait thats the kind of person you are...if only all these people knew...i imagine you would be banned from these forums and would not receive any help from them...
Miles84 is offline  
Old 03-18-2005, 07:06 PM   #9 (permalink)
Master of the Internet
 
Quantos's Avatar
 
Join Date: Apr 2003
Location: Edmonton, AB
Age: 41
Posts: 6,867
Send a message via ICQ to Quantos Send a message via AIM to Quantos Send a message via MSN to Quantos Send a message via Yahoo to Quantos
Default

Quote:
Originally Posted by Miles84
well theron maybe you should try using runuo 1.0 instead of the illegal russian runuo 1.6.whatever...i cannot believe you asked help here for that...oh wait thats the kind of person you are...if only all these people knew...i imagine you would be banned from these forums and would not receive any help from them...
Do you have any idea of what you are talking about? Can you not read?


Quote:
Originally Posted by Theron Of SOJ
I understand that this is in Serialization BUT it is in base items and mobiles, what changed and how to fix?
The 1.0.0 Distro is awsome, thanx for all the hard work, however, I also read that there would be NO LOSS, so there must be a way, what are we missing? PLEASE HELP ... thax
*Thread Closed.*
__________________
Paranoia is what happens when you finally have all of the facts.
Quantos is offline  
Closed Thread

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