/dmp_reader

The /dmp_reader approximates DS's map loading process in order to allow dynamic map loading. The interface is clean and simple, providing one root node, and one public method.

/dmp_writer by IainPeregrine
The /dmp_writer is the reader's sister library. The /dmp_writer approximates DM's map saving process in order to allow dynamic map saving.




The /dmp_reader approximates DS's map loading process in order to allow dynamic map loading.
To load a map at runtime, create an instance of /dmp_reader, and then call load_map() with
a .dmp file as the only argument. The /dmp_reader expands the world's maxx, maxy, and maxz
settings in order to fit the new map file, and loads the map onto new z levels.

The 2.0 release of the reader no longer requires that redefinitions of New() include spawn() statements. The new reader introduces a preloader object, which is passed all atoms at New(), and which sets their attributes to the data stored in the dmp file. However, it is nessesary that all redefinitions of New() call the parent proc "..()". If for whatever reason you cannot call the parent proc, spawning the custom New() commands will allow the library time to do it's work, just like it used to.



Version 2.0

Download
[BYOND Favorite]BYOND Favorite
  • Date Added: 11/26/05

Advertisement