I am in the process of upgrading an older script from RunUO 1 to RunUO 2. I have worked through all of the errors except for this last one which is boggling me.

It has an error for the Serialize and Deserialize methods. I compared them and they are exactly the same as the other script files and I don't think I am missing any of the 'using' statements to include a needed file.

Capture of the error and the offending file are attached.

Thanks for any advice and insight into this issue.
 

Attachments

  • tavregions_error.png
    tavregions_error.png
    4.7 KB · Views: 5
  • tavregions.cs
    7.2 KB · Views: 1
Regions can't override serialize/deserialize methods.

Or create virtual/new methods for baseregion/yourCustomregion. Or remove this methods and create controller(item) with next property:
Code:
        private bool m_NoPD = false;
        private bool m_Dungeon = false;
        private int m_SpawnLevel = 1;
        private int m_MaxResourceLevel = -1;
        private SpawnTypes m_SpawnType = SpawnTypes.None;
and save it.
 
Thanks for the info. I don't really understand it all; but I can figure it out.
I am wondering what changed from version 1 to version 2 though, as this is an existing script in a package and worked fine in version 1.
 
Back