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 04-03-2003, 11:00 PM   #1 (permalink)
 
Join Date: Mar 2003
Posts: 13
Default Upgrade probs, Serious ones

Error: Type 'Server.Items.GrizzlyBearRugEastAddon' was not found. Delete all of
those types? (y/n)
y
World: Loading...failed
Error: Type 'Server.Items.PolarBearRugSouthAddon' was not found. Delete all of t
hose types? (y/n)
y
World: Loading...failed
Error: Type 'Server.Items.PolarBearRugEastAddon' was not found. Delete all of th
ose types? (y/n)
y
World: Loading...An error was encountered while loading a saved object
- Type: Server.Mobiles.PlayerMobile
- Serial: 0x00000E7B
Delete the object? (y/n)
n
After pressing return an exception will be thrown and the server will terminate


******************



False, type=Server.Mobiles.PlayerMobile, serial=0x00000E7B) ---> System.Exceptio
n: ***** Bad serialize on Server.Mobiles.PlayerMobile *****
at Server.World.Load()
--- End of inner exception stack trace ---
at Server.World.Load()
at Server.ScriptCompiler.Compile()
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit




Ok what went wrong I copied the saves folder to beta 23 from beta 22. Is this a wrong move or do I have to start world over?

Im miffed here.
oracle is offline   Reply With Quote
Old 04-03-2003, 11:16 PM   #2 (permalink)
 
Join Date: Oct 2002
Posts: 53
Default

Did you copy any custom scripts you're using from your beta22\scripts folder to beta 23 folder? Polar rugs :shock: (ok was typo fixed and sorry) aren't part of the standard script set
Veldrin is offline   Reply With Quote
Old 04-03-2003, 11:20 PM   #3 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Quote:
Polar bugs aren't part of the standard script set
But watch out for those Non-Polar bugs...
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 04-03-2003, 11:27 PM   #4 (permalink)
 
Join Date: Oct 2002
Posts: 53
Default

boom boom
my typing skills compare with my scripting ability
Veldrin is offline   Reply With Quote
Old 04-03-2003, 11:30 PM   #5 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

... but your thought was sound...
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 04-04-2003, 01:00 AM   #6 (permalink)
 
Join Date: Mar 2003
Posts: 13
Default

We're trying to upgrade to Beta-23 and keep our world files. In the SAVES directory it seems that the MOBILES subdirectory is causing the problem.

We created the RunUO-Beta-23 directory. Then copied the ACCOUNTS directory from the Beta-22 directory along with the GUILDS, ITEMS, MOBILES and REGIONS. Is that how to upgrade to a new version while still keeping the world we've created?

If it is, then why do we keep having problems with the PlayerMobile.sc script when we copy our MOBILES directory into the Beta-23 directory?
oracle is offline   Reply With Quote
Old 04-04-2003, 01:11 AM   #7 (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

Because the Dev Team adds stuff to the Player Mobile, on some things. You will have to fix the serilzation of your mobile.

Yes thats the corect way. There isnt really alot to upgrading as long as use the same classes and those types have the same serilzation has whats saved.

Otherwise you have to fix your version'ing
Phantom is offline   Reply With Quote
Old 04-04-2003, 01:27 AM   #8 (permalink)
 
Join Date: Mar 2003
Posts: 13
Default

Okay another question. How do we re-serialize? Is there software we need and can you direct us to where to get it (and how to use it if it needs instructions)?

Thanks.
oracle is offline   Reply With Quote
Old 04-04-2003, 09:44 AM   #9 (permalink)
churchmi
Guest
 
Posts: n/a
Default Here is what I did because I didn't know c-sharp that well

I had the same (well, almost the same) problem. Here is how I fixed it - it may be that you do not want to fix it the same way since my way is cheesy to some degree - but I had a few users immesurably mad at me and wanting the server up NOW. I had added in some race gates I think it was and then the player mobile file changed, oh well.... No matter what I tried it threw out an exception. Sooooo....

1. I asked all my players to put there items in a box in their homes. If they did not have a home, I created a non-movable box next to britain bank and locked it for them. They put everything they wanted to keep in the boxes (either in home or the boxes I gave them).
2. I then deleted the mobiles file in the save directory and copied a fresh set of files from the distribution into that folder (so you would have a clean database with no mobiles. I also deleted the accounts xml as there is an issue with saying there are no saved mobiles and then in accounts saying that there are actual characters attached to the account. (what this will do is cause the game to pick a random npc and say - hey that must be your character). So - put a fresh file from the distribution into the accounts folder as well.
3. Make sure that extra scripts that you added are in the items/custom/whichever folder you put in (like polarbear rugs and stuff)
Read carefully the changelog for the server so that you don't put back in scripts for say glass bottles if the dev team has included glass bottles for this release.
4. Start the server, create a server admin account and make sure everything runs and is the way you want it.
5. Create your players accounts or let them login to autoregister. Drag them to their house and transfer ownership back to them. Or give them their box of special stuff.
6. Set any skills that they had. Or leave it in test and let them set skills.

last but not least, if you are having problems with C-Sharp and coding, swear to yourself that you will not add anything in that will change the base files. Although limiting yourself to items scripts and perhaps a couple mobiles, you won't have an issue upgrading.

Now the sad thing is, I figured out serialization about 2 hours after I had accomplished all of this stuff above to fix it all.

Argh.
  Reply With Quote
Old 04-04-2003, 02:05 PM   #10 (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 oracle
Okay another question. How do we re-serialize? Is there software we need and can you direct us to where to get it (and how to use it if it needs instructions)?

Thanks.
Learn C# and how to do a switch case on the serilzation using version'ing

case 0:
{

goto case 1;
}
case 1:
{
break;
}

That code is not correct but give you the general idea, actually start with 1 then 0 :-)
Phantom is offline   Reply With Quote
Old 04-04-2003, 03:11 PM   #11 (permalink)
 
Join Date: Mar 2003
Posts: 13
Default

Okay please bear with me...I know COBOL, BASIC, Pascal and Oracle PL/SQL but no experience with c# (yet).

What file do I modify? For mobiles I only have 3 files in the directory with extensions of .BIN, .IDX and .TDB.

I also downloaded something called RESET - can that be used to do it?

Thanks a lot for bearing with my 'newbie' questions.
oracle is offline   Reply With Quote
Old 04-04-2003, 03:24 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

You have to edit the class, those save files are in binary format, and they are not the problem. The problem is from compiling a newer version of the class and loading those items/mobile/what ever and not being the "same" version.

You can find a switch case on deserilzation function in almost any script.

Check out baseweapon or Basearmor.cs for a complex example.
Phantom is offline   Reply With Quote
Old 04-04-2003, 05:02 PM   #13 (permalink)
 
Join Date: Sep 2002
Posts: 100
Send a message via ICQ to psykotik Send a message via AIM to psykotik Send a message via Yahoo to psykotik
Default

In short you your version of the mobile does not have the stuff the devs added to playermobile.cs so when it compiles its not deserialzing correctly. To fix this you need to add whatever the devs have in their playermobile.cs into your playermobile.cs and then do some versoining in your player mobile script.
psykotik is offline   Reply With Quote
Old 04-04-2003, 06:39 PM   #14 (permalink)
 
Join Date: Mar 2003
Posts: 13
Default

I still do not understand anything much of what I'm being told. I'm being told WHAT to do but I need to know HOW to do it.

I unzipped the RunUO-Beta-23r2 into it's own directory. Then I copied my SAVES directory under the main Beta-23r2 directory. When I try to start RunUO using the PlayerMobile.cs that is in Beta-23r2 I get the error.

I need to somehow synchronize my data files I copied over from Beta-22 with the new upgrade...but HOW? Is there a utility that will do this for me? I don't understand c# so I'm probably frustrating everybody with all my stupid questions
oracle is offline   Reply With Quote
Old 04-04-2003, 06:48 PM   #15 (permalink)
 
Join Date: Mar 2003
Posts: 13
Default Confused here?

if all I am doing is copying the saves directory over to the new beta I still need to deserialize?

Let me regroup here. To upgarde from 22 to 23 all I have to do is copy the saves directory over to the new beta right? or is this wrong and I should only copy specific files from the saves dir?
oracle 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