|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Newbie
Join Date: Oct 2005
Posts: 13
|
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. |
|
|
|
|
|
#2 (permalink) |
|
Forum Master
|
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 ..... :) |
|
|
|
|
|
#3 (permalink) |
|
Forum Newbie
Join Date: Oct 2005
Posts: 13
|
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.
|
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
|
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;
}
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. |
|
|
|
|
|
#5 (permalink) |
|
Forum Newbie
Join Date: Oct 2005
Posts: 13
|
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. |
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
|
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.
|
|
|
|
|
|
#12 (permalink) | |
|
Account Terminated
|
Quote:
|
|
|
|
|
|
|
#13 (permalink) |
|
Forum Expert
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
|
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
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|