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.

Reply
 
Thread Tools Display Modes
Old 11-16-2004, 08:29 PM   #1 (permalink)
Not a Lurker
 
Suffering's Avatar
 
Join Date: Jun 2004
Location: USA
Age: 34
Posts: 63
Default Help, Bad Serialize on Creatures

I don't know what caused this, I added the script "valor" rebooted, it was working fine...rebooted later tonight and I started getting this error on EVERY creature.....Please HELP



Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (3352 items, 800 mobiles)
World: Loading...An error was encountered while loading a saved object
- Type: Server.Mobiles.Troll
- Serial: 0x0000A6AB
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.Troll, serial=0x0000A6AB) ---> System.Exception: ****
* Bad serialize on Server.Mobiles.Troll *****
at Server.World.Load()
--- End of inner exception stack trace ---
at Server.World.Load()
at Server.ScriptCompiler.Compile(Boolean debug)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
__________________
Quote:
"If you want to build a ship, don't herd people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea." --Antoine de Saint-Exupery
Suffering is offline   Reply With Quote
Old 11-16-2004, 09:17 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

So clearly the problem is the script you added.

Just because it loaded, doesn't mean there as a problem.

This is why you TEST scripts before you use them.
Phantom is offline   Reply With Quote
Old 11-17-2004, 12:03 AM   #3 (permalink)
Not a Lurker
 
Suffering's Avatar
 
Join Date: Jun 2004
Location: USA
Age: 34
Posts: 63
Default

WOW thanks for your help
__________________
Quote:
"If you want to build a ship, don't herd people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea." --Antoine de Saint-Exupery
Suffering is offline   Reply With Quote
Old 11-17-2004, 05:29 AM   #4 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

your serialization and deserialization methods dont match, so while it appeared to be running fine, it was actually saving information through your Serialize method that it was going to be unable to read later on when you restarted. This is because you are writing something out in a writer.Write call in your Serialize that doesnt have a corresponding reader.Read-type call in your Deserialize method. Compare your Serialize and Deserialize methods and make sure that everything you write out, you read in again in exactly the same order and with the proper type (if you write out an int, then read it in as an int).
__________________
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   Reply With Quote
Old 11-17-2004, 02:22 PM   #5 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Suffering
WOW thanks for your help
Your welcome Mr. Sarcastic.
Phantom is offline   Reply With Quote
Old 11-17-2004, 03:22 PM   #6 (permalink)
Not a Lurker
 
Suffering's Avatar
 
Join Date: Jun 2004
Location: USA
Age: 34
Posts: 63
Default

Quote:
Originally Posted by Phantom
Your welcome Mr. Sarcastic.


I am female


At least I left it at that and didn't act like a child. So be nice MR RUDE MAN
__________________
Quote:
"If you want to build a ship, don't herd people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea." --Antoine de Saint-Exupery
Suffering is offline   Reply With Quote
Old 11-18-2004, 05:49 AM   #7 (permalink)
Not a Lurker
 
Suffering's Avatar
 
Join Date: Jun 2004
Location: USA
Age: 34
Posts: 63
Default

Quote:
Originally Posted by ArteGordon
your serialization and deserialization methods dont match, so while it appeared to be running fine, it was actually saving information through your Serialize method that it was going to be unable to read later on when you restarted. This is because you are writing something out in a writer.Write call in your Serialize that doesnt have a corresponding reader.Read-type call in your Deserialize method. Compare your Serialize and Deserialize methods and make sure that everything you write out, you read in again in exactly the same order and with the proper type (if you write out an int, then read it in as an int).


Thank You, ArteGordon. That was a very clear answer, at least now I know where to start to fix the problem on my "TEST" server so I can make the script available on my main server. Very rarely do I get and/or see an answer that has some merit. It's people like you that make all the difference in the community.
Yea, some our "knowledgeable", but their bed side manner stinks and is hurtful to people trying to learn. Thanks for answering my post, it's much appreciated.
__________________
Quote:
"If you want to build a ship, don't herd people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea." --Antoine de Saint-Exupery
Suffering 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