ID:165369
 
I'm working on an RPG for BYOND, and I was wondering:

Q: Is there any way to load a map in game, rather than loading it with the resources? I would like to have the world map (300 x 300) load with resources, then when you enter a town, temple, dungeon, etc., it loads the map for that area, to reduce download time.
The client doesn't download the map. It just gets the 10x10 or 20x20 or etc (depending on your view settings) bits that the server sends it as the player moves around. The client only gets the area immediately around the player.
Look for the swapmaps libary by lummox jr :D

Allows you to load maps when they are needed, theres also documentation for it on digitalbyond under articles
You can use Lummox's SwapMaps library, IainPeregrine's /dmp_reader and /dmp_writer, or my pif_MapLoader. I'd suggest the first two (mainly /dmp_reader and /dmp_writer, because you don't have to convert to savefiles), becasue mine still has a few bugs (it's in beta still).