Having problems since implementing FS-ATS

Midget

Member
Feb 11, 2020
5
0
I'm running Windows 10 and the Latest Download of ServUO

Error on world load:
Error:
System.Exception: Load failed (items=False, mobiles=True, guilds=False, data=False, type=Server.Mobiles.SeaMarketOfficer, serial=0x00000001) ---> System.Exception: ***** Bad serialize on Server.Mobiles.SeaMarketOfficer *****
   at Server.World.Load() in C:\Users\Emma\Desktop\ServUO-master2\ServUO-master\Server\World.cs:line 623
   --- End of inner exception stack trace ---
   at Server.World.Load() in C:\Users\Emma\Desktop\ServUO-master2\ServUO-master\Server\World.cs:line 878
   at Server.Core.Main(String[] args) in C:\Users\Emma\Desktop\ServUO-master2\ServUO-master\Server\Main.cs:line 640
This exception is fatal, press return to exit
I think it'll be to do with my playermobile edits.
(I don't want someone to tell me a fix I want guidance on what i did wrong preferably. No otherway to learn!)
 

Attachments

PyrO

Well-Known Member
Jan 27, 2015
1,219
118
Yea the order of what you write does not add up to how you read it.

Like the Gem of salvation (and other) stuff is written first, then your fsats edits.
but the deserialize first does the fsats then the gem stuff
 

Midget

Member
Feb 11, 2020
5
0
this is now right at the top.
C#:
            // Version 40
            m_TamingBOBFilter.Serialize( writer );
            // Version 39
            writer.Write( m_Bioenginer );
            writer.Write( NextTamingBulkOrder );
            
            writer.Write((DateTime)NextGemOfSalvationUse);

            writer.Write((int)m_ExtendedFlags);
SO I'm pretty sure i've fixed that, but still having the same issue.

*On a side note Do i have to delete my mobile save every time i want to test? Or will the load fix itself?

Also @PyrO you're going to regret trying to help me! o_O *Evil laugh*
 

PyrO

Well-Known Member
Jan 27, 2015
1,219
118
well if you already were running the server with the wrong order and saved, then you would need to adjust the reading to have the other order.

Save comes first, then the reading. And we will see about the regretting part :D
 

Midget

Member
Feb 11, 2020
5
0
Okay so i deleted my save, and tried have the exact same issue.
So i went and got a new Playermobile and done the edits on that.
Still the same thing.


C#:
System.Exception: Load failed (items=False, mobiles=True, guilds=False, data=False, type=Server.Mobiles.SeaMarketOfficer, serial=0x00000001) ---> System.Exception: ***** Bad serialize on Server.Mobiles.SeaMarketOfficer *****
   at Server.World.Load() in C:\Users\Emma\Desktop\ServUO-master2\ServUO-master\Server\World.cs:line 623
   --- End of inner exception stack trace ---
   at Server.World.Load() in C:\Users\Emma\Desktop\ServUO-master2\ServUO-master\Server\World.cs:line 878
   at Server.Core.Main(String[] args) in C:\Users\Emma\Desktop\ServUO-master2\ServUO-master\Server\Main.cs:line 640
This exception is fatal, press return to exit
Could it be because, I'm using goto case 38 instead of 40?
I thought because they were blank i could skip 40 and 39?
C#:
                case 41:{
                        m_Bioenginer = reader.ReadBool();
                        NextTamingBulkOrder = reader.ReadTimeSpan();
                        goto case 38;
                         }

                case 40: // Version 40, moved gauntlet points, virtua artys and TOT turn ins to PointsSystem

                case 39: // Version 39, removed ML quest save/load
                case 38:
                    NextGemOfSalvationUse = reader.ReadDateTime();
                        goto case 37;
 

Attachments

PyrO

Well-Known Member
Jan 27, 2015
1,219
118
looks fine now, but I guess your basecreature.cs isnt. Since it crashes on SeaMarketOfficer, wich I guess is not a player
 

Midget

Member
Feb 11, 2020
5
0
looks fine now, but I guess your basecreature.cs isnt. Since it crashes on SeaMarketOfficer, wich I guess is not a player
Yes! you was right, I assumed that it was a player mobile as it has a playermobile when you click it?
aha my bad. Fixed it in there and it's all working now. Thank you so much! :)