[WIP] Exporting from map editor

I have started working on adding export functionality to the in-game map editor. Basically it will allow one to enter the map editor, target the top-left corner of the region to be exported, and pres the hotkey to dump to file. Right now it only dumps the terrain, walls, windows, doors, and staircases. I’m sure there are more that would be dumped, but I have yet to test this outside the evac shelter. I am hoping to eventually get it to dump furniture. I don’t think I will implement item dumping due to the vast majority of items. Also, I am visualizing this as an in-game content creation tool. Build a new building in-game and dump it straight to json and re-gen the world and your new building would be in there. Obviously, this would require buildings to be pushed to json, but until then I see this being very useful for those with little to no coding skills to push out a building design with ease. Any input, good or bad, would be greatly appreciated.

Walls are dumped with some strange symbols right now, but like the title says, this is a work-in-progress.

Here is the export of the evac shelter ( cursor was on the top-left wall tile of the shelter so it’s not centered ):

EDIT:: Added furniture dumping.

xqqqq"q++q"qqqqx........
x{{{{......#..6x........
x.#.#.#....#...x........
x.#.#.#....#...x........
x.#.#.#....#...x........
".#.#.#........"........
x..............x........
+......>>......+........
+......>>......+........
x..............x........
".#.#.#........"........
x.#.#.#....#...x........
x.#.#.#....#...x........
x.#.#.#....#...x........
x..........#..6x........
xqqqq"q++q"qqqqx........
........................
........................
........................
........................
........................
........................
........................
........................

Also dumps to Unicoded file:

4194424, 4194417, 4194417, 4194417, 4194417, 34, 4194417, 43, 43, 4194417, 34, 4194417, 4194417, 4194417, 4194417, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 123, 123, 123, 123, 46, 46, 46, 46, 46, 46, 35, 46, 46, 54, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 35, 46, 35, 46, 35, 46, 46, 46, 46, 35, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 35, 46, 35, 46, 35, 46, 46, 46, 46, 35, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 35, 46, 35, 46, 35, 46, 46, 46, 46, 35, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 34, 46, 35, 46, 35, 46, 35, 46, 46, 46, 46, 46, 46, 46, 46, 34, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 43, 46, 46, 46, 46, 46, 46, 62, 62, 46, 46, 46, 46, 46, 46, 43, 46, 46, 46, 46, 46, 46, 46, 46, 43, 46, 46, 46, 46, 46, 46, 62, 62, 46, 46, 46, 46, 46, 46, 43, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 34, 46, 35, 46, 35, 46, 35, 46, 46, 46, 46, 46, 46, 46, 46, 34, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 35, 46, 35, 46, 35, 46, 46, 46, 46, 35, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 35, 46, 35, 46, 35, 46, 46, 46, 46, 35, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 35, 46, 35, 46, 35, 46, 46, 46, 46, 35, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 35, 46, 46, 54, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 4194424, 4194417, 4194417, 4194417, 4194417, 34, 4194417, 43, 43, 4194417, 34, 4194417, 4194417, 4194417, 4194417, 4194424, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,

I am working on a stand-alone map editor that will create .json files that can be dropped into the json folder to add buildings to the game. It should be much faster to generate a design than using the in game editor, and plus it handles item/monster spawning as well.

Yeah I don’t see any way to handle item and monster spawns from the in-game editor due to the way they are designated in the building designs. However, I defiantly think using the in-game edit would be more favorable for most due to it already being there without any extra downloads. Not to mention immediate testing of the building design and layout.