cameron1900
Member
Hello, I've added in a few variables into the PlayerMobile.cs file. I'm having issues with the Serialization or Deserialization of the variables I guess?
Error..
An error was encountered while loading a saved object
- Type: Server.Mobiles.PlayerMobile
- Serial: 0x000003C3
Delete the object? (y/n)
Delete all objects of that type? (y/n)
After pressing return an exception will be thrown and the server will terminate.
yyfdghbfgdh\
Error:
System.Exception: Load failed (items=False, mobiles=True, guilds=False, data=False, type=Server.Mobiles.PlayerMobile, serial=0x000003C3) ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadBoolean()
at Server.Mobiles.PlayerMobile.Deserialize(GenericReader reader)
at Server.World.Load() in c:\Users\lisa\Downloads\ServUO-master\ServUO-master\Server\World.cs:line 595
--- End of inner exception stack trace ---
at Server.World.Load() in c:\Users\lisa\Downloads\ServUO-master\ServUO-master\Server\World.cs:line 328
at Server.Core.Main(String[] args) in c:\Users\lisa\Downloads\ServUO-master\ServUO-master\Server\Main.cs:line 545
This exception is fatal, press return to exit
I've tried multiple different ways of serializing and deserializing nothing seems to work. So If someone can take a few moments look over this script and explain what I'm doing wrong I would really be thankful!
Error..
An error was encountered while loading a saved object
- Type: Server.Mobiles.PlayerMobile
- Serial: 0x000003C3
Delete the object? (y/n)
Delete all objects of that type? (y/n)
After pressing return an exception will be thrown and the server will terminate.
yyfdghbfgdh\
Error:
System.Exception: Load failed (items=False, mobiles=True, guilds=False, data=False, type=Server.Mobiles.PlayerMobile, serial=0x000003C3) ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadBoolean()
at Server.Mobiles.PlayerMobile.Deserialize(GenericReader reader)
at Server.World.Load() in c:\Users\lisa\Downloads\ServUO-master\ServUO-master\Server\World.cs:line 595
--- End of inner exception stack trace ---
at Server.World.Load() in c:\Users\lisa\Downloads\ServUO-master\ServUO-master\Server\World.cs:line 328
at Server.Core.Main(String[] args) in c:\Users\lisa\Downloads\ServUO-master\ServUO-master\Server\Main.cs:line 545
This exception is fatal, press return to exit
I've tried multiple different ways of serializing and deserializing nothing seems to work. So If someone can take a few moments look over this script and explain what I'm doing wrong I would really be thankful!