SilenceXX
Member
I have a bit problem with implemnting PvM PvP system.
It compiles normaly, but after shard restart it gives out deserialize exception in playermobile.
Deserialize part:
Serialize part:
Other stuff in playermobile related:
and
+ Exception it did throw:
It compiles normaly, but after shard restart it gives out deserialize exception in playermobile.
Deserialize part:
Code:
case 32:
{
m_NONPK = (NONPK)reader.ReadInt();
goto case 31;
}
Code:
writer.Write((int)m_NONPK);
Code:
public enum NONPK
{
Null,
NONPK,
NONPKinEvent,
PK
}
Code:
private NONPK m_NONPK;
Code:
Error:
System.Exception: Load failed (items=False, mobiles=True, guilds=False, data=False, type=Server.Mobiles.PlayerMobile, serial=0x00000001) ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Mobiles.PlayerMobile.Deserialize(GenericReader reader)
at Server.World.Load() in c:\ServUO2\Server\World.cs:line 595
--- End of inner exception stack trace ---
at Server.World.Load() in c:\ServUO2\Server\World.cs:line 328
at Server.Core.Main(String[] args) in c:\ServUO2\Server\Main.cs:line 539
This exception is fatal, press return to exit