dmm_suite

by IainPeregrine
[Share] [Zip]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://IainPeregrine.dmm_suite##version=1

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

byond://IainPeregrine.dmm_suite##version=1

300 downloads
Version 1.1
Date added: Jan 30 2011
6 fans
The dmm_suite provides saving and loading of map files in BYOND's native DMM map format. [More]

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.

More Info

New Library: Dmm Suite by IainPeregrine

Advertisement

Comments

IainPeregrine: (Jul 18 2011, 10:30 am)
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).
Phoestre: (Jul 18 2011, 1:35 am)
A bit hard to understand at first. Documentation might be improved? However one of the few good map loader libs.
I-Aryn-I: (Jul 2 2011, 2:48 pm)
Thank goodness for this. I thought I'd never see a good .dmm loader ever since PIF's broke.
D4RK3 54B3R: (May 20 2011, 1:12 am)
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.