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 07-20-2006, 11:35 PM   #1 (permalink)
Forum Newbie
 
Join Date: Oct 2005
Posts: 13
Default Im getting this problem on server start

i dont know why but every time i restart my server now im getting this problem


RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...done (cached)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2771 items, 629 mobiles)
ACC Registered: Server.ACC.CM.CentralMemory
Regions: Loading...done
World: Loading...An error was encountered while loading a saved object
- Type: Server.Mobiles.PlayerMobile
- Serial: 0x00000185
Delete the object? (y/n)



If i go to a backup of my mobiles save from about a month ago it works fine but after the next save it seems that if the server resets it doesnt work anymore and gives me the same problem.

I am not really good at scripting yet but i think that is saying theres a problem with the playermobile file so i posted it for everyone to look at and see if i have a problem in it somewhere.
Attached Files
File Type: cs PlayerMobile.cs (103.3 KB, 8 views)
wizardlord is offline   Reply With Quote
Old 07-21-2006, 12:34 AM   #2 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,633
Send a message via Yahoo to Lord_Greywolf
Default

with out even looking at it - you must have made changes to it, and the serial/deserialize methods are either out of sink, or some were removed, etc

there is stuff in the faq section of how to do those routines correctly to TRY to advoid a character wipe - but if it is heavy mods to the playmobile script - then normaly you do not have much choice but to have a character wipe
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is online now   Reply With Quote
Old 07-21-2006, 12:37 AM   #3 (permalink)
Forum Newbie
 
Join Date: Oct 2005
Posts: 13
Default

yeah i have about 5 different systems and things that require playermobile edits but i edited it exactly how thoes systems said to. I did do remove all once before and it reset after it but got stuck at the loading world point endlessly. Thats why im posting here to see if i can get some help fixing the problem.
wizardlord is offline   Reply With Quote
Old 07-21-2006, 03:56 AM   #4 (permalink)
Forum Expert
 
WeEzL's Avatar
 
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
Default

Just at first glance, your Serialize and Deserialize version numbers appear to be the cause of your problem. Other than that though, while I haven't looked at it in depth, the rest of the stuff appears to be OK. But specifically, you Serialize version 27 along with all of your Government system variables and the very first version you Deserialize is 28. I think if you change your Deserialize method thusly:
Code:
switch ( version )
		{
                        case 27:
                        {
                            m_City = (CityManagementStone)reader.ReadItem();
                            m_CityTitle = reader.ReadString();
                            m_ShowCityTitle = reader.ReadBool();
                            m_OwesBackTaxes = reader.ReadBool();
                            m_BackTaxesAmount = reader.ReadInt();
			    
                            m_TamingBOBFilter = new Engines.BulkOrders.TamingBOBFilter( reader );
			    goto case 26;
			}
it should work (though I make no guarantees). Basically, all I'm making you do is move your Government system variables down into case 27 (where it was originally serialized) and get rid of case 28.

My standard disclaimer applies though: This code is untested and is only based on my brief look at your PlayerMobile.cs. If you still encounter problems afterwards, it may be that something more is wrong that I may have missed.
WeEzL is offline   Reply With Quote
Old 07-21-2006, 12:50 PM   #5 (permalink)
Forum Newbie
 
Join Date: Oct 2005
Posts: 13
Default

ok i tryed the fix you stated above but for some reason im still getting this error

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...done (cached)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2771 items, 629 mobiles)
ACC Registered: Server.ACC.CM.CentralMemory
Regions: Loading...done
World: Loading...An error was encountered while loading a saved object
- Type: Server.Mobiles.PlayerMobile
- Serial: 0x00000185
Delete the object? (y/n)

and if i DO press yes it gives me its error and i reset it and it just freezes and doesnt do anything.
wizardlord is offline   Reply With Quote
Old 07-21-2006, 02:09 PM   #6 (permalink)
Forum Expert
 
WeEzL's Avatar
 
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
Default

Can I get ya to post your updated PlayerMobile.cs please? We can go from there and see what else needs to be done.
WeEzL is offline   Reply With Quote
Old 07-21-2006, 02:11 PM   #7 (permalink)
Forum Newbie
 
Join Date: Oct 2005
Posts: 13
Default

k here is what i have after doing what you said.
Attached Files
File Type: cs PlayerMobile.cs (103.3 KB, 6 views)
__________________
Wizardlord - World Of Wizardlord Shard Owner
wizardlord is offline   Reply With Quote
Old 07-21-2006, 02:19 PM   #8 (permalink)
Forum Expert
 
WeEzL's Avatar
 
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
Default

That code does not quite match what I said to do. Please look at the code I posted carefully and compare to what you have. It's not the same. You still have an extra "goto" statement in your case 27 which is now the cause of your problems. If you look at the code snippet I posted and then look at the code you have, it will give you a hint as to what "goto" statement I'm talking about that you will have to remove.
WeEzL is offline   Reply With Quote
Old 07-21-2006, 02:22 PM   #9 (permalink)
Forum Newbie
 
Join Date: Oct 2005
Posts: 13
Default

oh ok oops. so like this then?
Attached Files
File Type: cs PlayerMobile.cs (103.2 KB, 5 views)
__________________
Wizardlord - World Of Wizardlord Shard Owner
wizardlord is offline   Reply With Quote
Old 07-21-2006, 02:31 PM   #10 (permalink)
Forum Expert
 
WeEzL's Avatar
 
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
Default

Did you give that a try?
WeEzL is offline   Reply With Quote
Old 07-21-2006, 03:20 PM   #11 (permalink)
Forum Newbie
 
Join Date: Oct 2005
Posts: 13
Default

yeah i tryed that and got the same results :| it asks me if i want to remove all mobiles and if i say yes it resets server and freezes on loading world
__________________
Wizardlord - World Of Wizardlord Shard Owner
wizardlord is offline   Reply With Quote
Old 07-21-2006, 03:50 PM   #12 (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 wizardlord
yeah i tryed that and got the same results :| it asks me if i want to remove all mobiles and if i say yes it resets server and freezes on loading world
You need to save in the same order as you load, if your getting asked to remove objects then your not saving in the same order as you are trying to load the data.
Phantom is offline   Reply With Quote
Old 07-21-2006, 03:53 PM   #13 (permalink)
Forum Expert
 
WeEzL's Avatar
 
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
Default

I did find another problem, but I need you to help sort something out so I can determine if it is the cause of your problem.

I found in your Serialize function that you are serializing the version number twice like so:
Code:
			writer.Write( (int) 27 ); // version
///////////////////Government Edits//////////////////////
            writer.Write((int)27); // version MUST MATCH YOUR DESERIALIZER
This does not appear in the original PlayerMobile.cs that you first posted in this thread. This is why I need to know, did you add either of the two version number lines when making the initial changes I suggested you make in this thread? Or is this part of what you originally had in your PlayerMobile BEFORE posting in this thread (ie. is the first PlayerMobile.cs file you posted here slightly edited to remove one of these version number lines?)?
WeEzL 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