Vorspire
Knight
[RUO 1.0 FINAL] Region Tracker
RunUO Versions: 1.0 Final
COMPATIBLE WITH RUNUO 1.0 VERSIONS ONLY
--------------------
Updates
{
--------------------
I have noticed, that with Regions in RunUO 1.0, they are very hard to work with, since they are individually re-registered at run-time, losing all settings and reverting back to their base settings... How annoying!
So I came up with this simple solution...
//////////////////////////////////////////////////////////////////////////
/////
///// License: GNU/GPL
///// Free to edit and distribute as you see fit.
///// All credit notes to remain intact.
/////
///// Region Tracker By Vorspire
/////
///// Email: [email protected]
/////
///// Created: 25th May, 2008 :: 16:06
/////
///// Updated: 26th May, 2008 :: 19:07
/////
///// For: Rhovanion-PK :: Rhovanion-PK - Ultima Online Free-Shard - RunUO
/////
///// Description:
/////
///// This script will automaticlly serialize/deserialize
///// EVERY region on your server with it's own unique binary file.
///// It utilizes the basic overridable Serialize/Deserialize methods
///// located in the core Region class.
/////
///// With this, you can add custom properties as you would with any item,
///// override Serialize/Deserialize as you would with any item,
///// containing your custom variables to save/load.
/////
///// The save-file format is consistent, meaning the region saved will
///// ALWAYS be the region loaded, and vice-versa. Regions binary files are
///// saved in Saves/Regions/Tracker/(Name)(MD5Rects)*.bin --> Where '(<Name>)'
///// is the Region's Name and '(MD5Rects)*' are the exact region Rects,
///// formatted with MD5-Hash - To prevent long path errors.
///// -(Done for consistency)
/////
///// Regions without names still get saved and loaded, and are assigned
///// a special file name "(0)(MD5Rects).bin" -> Where '(0)' is the UId and
///// '(MD5Rects)' are the region co-ordinates in MD5-Hash Format.
///// -(Done for consistency)
/////
///// There is now an option to Load/Save House Regions!
/////
///// This system applies to ALL Sub-Classes of "Region", so it will even
///// Save and Load your regions created with Custom Regions In A Box!
/////
///// The script has been supplied as-is, with a simple
///// configuration. All configuration options have been annotated
///// to help the user understand better as to what each part of
///// the script does.
/////
///// Known Bugs:
/////
///// None.
/////
///// Note From The Creator:
/////
///// I hope you enjoy using, editing and reading this script
///// as much as I did writing and testing it
/////
///// Please leave this credit note intact!
/////
///// Best regards,
///// Vorspire
/////
//////////////////////////////////////////////////////////////////////////
RunUO Versions: 1.0 Final
COMPATIBLE WITH RUNUO 1.0 VERSIONS ONLY
--------------------
Updates
{
- 26th May, 2008
{- Instead of saving with "(Rects)", the Tracker now MD5-Hashes the '(Rects)' string.
- 25th May, 2008
{- Option to Save/Load Housing regions - This will benefit those using Town House systems.
- No-Named regions now save as their UId ( "(UId)(Rects).bin" ).
--------------------
I have noticed, that with Regions in RunUO 1.0, they are very hard to work with, since they are individually re-registered at run-time, losing all settings and reverting back to their base settings... How annoying!
So I came up with this simple solution...
//////////////////////////////////////////////////////////////////////////
/////
///// License: GNU/GPL
///// Free to edit and distribute as you see fit.
///// All credit notes to remain intact.
/////
///// Region Tracker By Vorspire
/////
///// Email: [email protected]
/////
///// Created: 25th May, 2008 :: 16:06
/////
///// Updated: 26th May, 2008 :: 19:07
/////
///// For: Rhovanion-PK :: Rhovanion-PK - Ultima Online Free-Shard - RunUO
/////
///// Description:
/////
///// This script will automaticlly serialize/deserialize
///// EVERY region on your server with it's own unique binary file.
///// It utilizes the basic overridable Serialize/Deserialize methods
///// located in the core Region class.
/////
///// With this, you can add custom properties as you would with any item,
///// override Serialize/Deserialize as you would with any item,
///// containing your custom variables to save/load.
/////
///// The save-file format is consistent, meaning the region saved will
///// ALWAYS be the region loaded, and vice-versa. Regions binary files are
///// saved in Saves/Regions/Tracker/(Name)(MD5Rects)*.bin --> Where '(<Name>)'
///// is the Region's Name and '(MD5Rects)*' are the exact region Rects,
///// formatted with MD5-Hash - To prevent long path errors.
///// -(Done for consistency)
/////
///// Regions without names still get saved and loaded, and are assigned
///// a special file name "(0)(MD5Rects).bin" -> Where '(0)' is the UId and
///// '(MD5Rects)' are the region co-ordinates in MD5-Hash Format.
///// -(Done for consistency)
/////
///// There is now an option to Load/Save House Regions!
/////
///// This system applies to ALL Sub-Classes of "Region", so it will even
///// Save and Load your regions created with Custom Regions In A Box!
/////
///// The script has been supplied as-is, with a simple
///// configuration. All configuration options have been annotated
///// to help the user understand better as to what each part of
///// the script does.
/////
///// Known Bugs:
/////
///// None.
/////
///// Note From The Creator:
/////
///// I hope you enjoy using, editing and reading this script
///// as much as I did writing and testing it
/////
///// Please leave this credit note intact!
/////
///// Best regards,
///// Vorspire
/////
//////////////////////////////////////////////////////////////////////////