diff --git a/_maps/_basemap.dm b/_maps/_basemap.dm new file mode 100644 index 0000000000..f522d569c1 --- /dev/null +++ b/_maps/_basemap.dm @@ -0,0 +1,25 @@ +//#define LOWMEMORYMODE //uncomment this to load centcom and runtime station and thats it. + +#include "map_files\generic\CentCom.dmm" +#include "map_files\generic\SpaceStation.dmm" + +#ifndef LOWMEMORYMODE + + #include "map_files\generic\Space.dmm" + #include "map_files\generic\SpaceDock.dmm" + #include "map_files\Mining\Lavaland.dmm" + #include "map_files\generic\City_of_Cogs.dmm" + + #ifdef ALL_MAPS + #include "map_files\debug\runtimestation.dmm" + #include "cit_map_files\Deltastation\DeltaStation2.dmm" + #include "cit_map_files\MetaStation\MetaStation.dmm" + #include "cit_map_files\OmegaStation\OmegaStation.dmm" + #include "cit_map_files\PubbyStation\PubbyStation.dmm" + #include "cit_map_files\BoxStation\BoxStation.dmm" + + #ifdef TRAVISBUILDING + #include "templates.dm" + #endif + #endif +#endif diff --git a/code/_compile_options.dm b/code/_compile_options.dm index c0985281c5..5e2cca0cc9 100644 --- a/code/_compile_options.dm +++ b/code/_compile_options.dm @@ -18,6 +18,9 @@ #endif // 1 to use the default behaviour; // 2 for preloading absolutely everything; +#ifdef LOWMEMORYMODE +#define FORCE_MAP "_maps/runtimestation.json" +#endif #define BACKGROUND_ENABLED 0 // The default value for all uses of set background. Set background can cause gradual lag and is recommended you only turn this on if necessary. // 1 will enable set background. 0 will disable set background. diff --git a/code/controllers/subsystem/mapping.dm b/code/controllers/subsystem/mapping.dm index 8046dab41e..90f3380b81 100644 --- a/code/controllers/subsystem/mapping.dm +++ b/code/controllers/subsystem/mapping.dm @@ -42,7 +42,7 @@ SUBSYSTEM_DEF(mapping) repopulate_sorted_areas() process_teleport_locs() //Sets up the wizard teleport locations preloadTemplates() - +#ifndef LOWMEMORYMODE // Create space levels for(var/I in 1 to ZLEVEL_SPACE_RUIN_COUNT) add_new_zlevel("Empty Area [2 + I]", CROSSLINKED, list(ZTRAIT_SPACE_RUINS = TRUE)) @@ -67,7 +67,7 @@ SUBSYSTEM_DEF(mapping) if (space_ruins.len) seedRuins(space_ruins, CONFIG_GET(number/space_budget), /area/space, space_ruins_templates) loading_ruins = FALSE - +#endif repopulate_sorted_areas() // Set up Z-level transitions. setup_map_transitions() diff --git a/tgstation.dme b/tgstation.dme index 48f6d1694a..e644d1792d 100755 --- a/tgstation.dme +++ b/tgstation.dme @@ -13,7 +13,7 @@ // END_PREFERENCES // BEGIN_INCLUDE -#include "_maps\basemap.dm" +#include "_maps\_basemap.dm" #include "code\_compile_options.dm" #include "code\world.dm" #include "code\__DATASTRUCTURES\globals.dm"