ID:113469
 
dmm_suite by IainPeregrine
The dmm_suite provides saving and loading of map files in BYOND's native DMM map format.
7 fans · Created Jan 30 2011

Specification

  • Released January 30th, 2011.
  • Defines the object dmm_suite
    • Provides the proc load_map()
      • Loads the specified map file onto the specified z-level.
    • Provides the proc write_map()
      • Returns a text string of the map in dmm format ready for output to a file.
    • Provides the proc save_map()
      • Returns a .dmm file if map is saved
      • Returns FALSE if map fails to save
      • Automatically Saves the .dmm file in the world's directory
        • Note: Because of this behavior, save_map() is being phased out, it is suggested that you use write_map() instead.

The dmm_suite provides saving and loading of map files in BYOND's native DMM map format. It approximates the map saving and loading processes of the Dream Maker and Dream Seeker programs so as to allow editing, saving, and loading of maps at runtime.


Version History

  • 1.0
    • Released January 30th, 2011
    • Combined the /dmp_reader and /dmp_writer libraries, and rebranded as the dmm_suite.
    • Added an extra argument to the load_map() proc so as to allow maps to be loaded on any z-level.
Works well when icons generated at runtime are not involved. Otherwise, it will fail to write coherent data.

I would like there to be a way to specify variables for the dmm writing processes to ignore.
Thank goodness for this. I thought I'd never see a good .dmm loader ever since PIF's broke.
A bit hard to understand at first. Documentation might be improved? However one of the few good map loader libs.
Phoestre wrote:
A bit hard to understand at first. Documentation might be improved?

Sure. Tell me what you're having problems with, and I'll address it. I just reread the documentation and aside from a typo (dmp instead of dmm in one spot) I don't see anything to improve. To save a map, call write_map(turf1,turf2). To load a map, call load_map(map_file).