/dmp_writer version 1.4

Specification


Usage Notes

The /dmp_writer approximates DM's map saving process in order to allow dynamic map saving. To save a map at runtime, create an instance of /dmp_writer, and then call write_map(), which accepts three arguments:

The order in which the turfs are supplied does not matter, the /dmp_writer will determine the grid containing both, in much the same way as DM's block() function. write_dmp() returns a text string representing the map in dmp format, which can then be output to a file:
	var/dmp_file = file("my_map.dmp")
	dmp_file << write_dmp(turf1, turf2, DMP_IGNORE_PLAYERS)
	


Version History