/dmp_reader

by IainPeregrine
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. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://IainPeregrine.dmp_reader##version=10

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://IainPeregrine.dmp_reader##version=10

299 downloads
Version 2.0
Date added: Nov 25 2005
Last updated: Jan 30 2011
4 fans

/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.