Add bapi-dmm to reduce startup time by... a lot (#16148)

* Add bapi-dmm, a rust maploader that goes BRRRRRRR

* A few more maps switched away from file paths

* Update to include 48f4879d8704cb057a (better path error handling)
This commit is contained in:
ShadowLarkens
2024-10-26 13:32:41 +02:00
committed by GitHub
parent 1375d4c23b
commit a8affbd4ae
68 changed files with 1224 additions and 2936 deletions
+16 -16
View File
@@ -7,7 +7,7 @@
/datum/map_template/tether_lateload/tether_centcom
name = "Tether - Centcom"
desc = "Central Command lives here!"
mappath = 'tether_centcom.dmm'
mappath = "maps/tether/submaps/tether_centcom.dmm"
associated_map_datum = /datum/map_z_level/tether_lateload/centcom
@@ -20,7 +20,7 @@
/datum/map_template/tether_lateload/tether_misc
name = "Tether - Misc"
desc = "Misc areas, like some transit areas, holodecks, merc area."
mappath = 'tether_misc.dmm'
mappath = "maps/tether/submaps/tether_misc.dmm"
associated_map_datum = /datum/map_z_level/tether_lateload/misc
@@ -34,7 +34,7 @@
/datum/map_template/tether_lateload/tether_underdark
name = "Tether - Underdark"
desc = "Mining, but harder."
mappath = 'tether_underdark.dmm'
mappath = "maps/tether/submaps/tether_underdark.dmm"
associated_map_datum = /datum/map_z_level/tether_lateload/underdark
@@ -56,7 +56,7 @@
/datum/map_template/tether_lateload/tether_plains
name = "Tether - Plains"
desc = "The Virgo 3B away mission."
mappath = 'tether_plains.dmm'
mappath = "maps/tether/submaps/tether_plains.dmm"
associated_map_datum = /datum/map_z_level/tether_lateload/tether_plains
/datum/map_z_level/tether_lateload/tether_plains
@@ -79,42 +79,42 @@
/datum/map_template/admin_use/ert
name = "Special Area - ERT"
desc = "It's the ERT ship! Lorge."
mappath = 'maps/submaps/admin_use_vr/ert.dmm'
mappath = "maps/submaps/admin_use_vr/ert.dmm"
/datum/map_template/admin_use/trader
name = "Special Area - Trader"
desc = "Big trader ship."
mappath = 'maps/submaps/admin_use_vr/tradeship.dmm'
mappath = "maps/submaps/admin_use_vr/tradeship.dmm"
/datum/map_template/admin_use/salamander_trader
name = "Special Area - Salamander Trader"
desc = "Modest trader ship."
mappath = 'maps/submaps/admin_use_vr/salamander_trader.dmm'
mappath = "maps/submaps/admin_use_vr/salamander_trader.dmm"
/datum/map_template/admin_use/mercenary
name = "Special Area - Merc Ship"
desc = "Prepare tae be boarded, arr!"
mappath = 'maps/submaps/admin_use_vr/kk_mercship.dmm'
mappath = "maps/submaps/admin_use_vr/kk_mercship.dmm"
/datum/map_template/admin_use/skipjack
name = "Special Area - Skipjack Base"
desc = "Stinky!"
mappath = 'maps/submaps/admin_use_vr/skipjack.dmm'
mappath = "maps/submaps/admin_use_vr/skipjack.dmm"
/datum/map_template/admin_use/thunderdome
name = "Special Area - Thunderdome"
desc = "Thunderrrrdomeee"
mappath = 'maps/submaps/admin_use_vr/thunderdome.dmm'
mappath = "maps/submaps/admin_use_vr/thunderdome.dmm"
/datum/map_template/admin_use/wizardbase
name = "Special Area - Wizard Base"
desc = "Wingardium Levosia"
mappath = 'maps/submaps/admin_use_vr/wizard.dmm'
mappath = "maps/submaps/admin_use_vr/wizard.dmm"
/datum/map_template/admin_use/dojo
name = "Special Area - Ninja Dojo"
desc = "Sneaky"
mappath = 'maps/submaps/admin_use_vr/dojo.dmm'
mappath = "maps/submaps/admin_use_vr/dojo.dmm"
//////////////////////////////////////////////////////////////////////////////
//Rogue Mines Stuff
@@ -122,7 +122,7 @@
/datum/map_template/tether_lateload/tether_roguemines1
name = "Asteroid Belt 1"
desc = "Mining, but rogue. Zone 1"
mappath = 'maps/submaps/rogue_mines_vr/rogue_mine1.dmm'
mappath = "maps/submaps/rogue_mines_vr/rogue_mine1.dmm"
associated_map_datum = /datum/map_z_level/tether_lateload/roguemines1
@@ -134,7 +134,7 @@
/datum/map_template/tether_lateload/tether_roguemines2
name = "Asteroid Belt 2"
desc = "Mining, but rogue. Zone 2"
mappath = 'maps/submaps/rogue_mines_vr/rogue_mine2.dmm'
mappath = "maps/submaps/rogue_mines_vr/rogue_mine2.dmm"
associated_map_datum = /datum/map_z_level/tether_lateload/roguemines2
@@ -206,7 +206,7 @@
/datum/map_template/tether_lateload/away_aerostat
name = "Remmi Aerostat - Z1 Aerostat"
desc = "The Virgo 2 Aerostat away mission."
mappath = 'maps/expedition_vr/aerostat/aerostat.dmm'
mappath = "maps/expedition_vr/aerostat/aerostat.dmm"
associated_map_datum = /datum/map_z_level/tether_lateload/away_aerostat
/datum/map_z_level/tether_lateload/away_aerostat
@@ -217,7 +217,7 @@
/datum/map_template/tether_lateload/away_aerostat_surface
name = "Remmi Aerostat - Z2 Surface"
desc = "The surface from the Virgo 2 Aerostat."
mappath = 'maps/expedition_vr/aerostat/surface.dmm'
mappath = "maps/expedition_vr/aerostat/surface.dmm"
associated_map_datum = /datum/map_z_level/tether_lateload/away_aerostat_surface
/datum/map_template/tether_lateload/away_aerostat_surface/on_map_loaded(z)
@@ -5,171 +5,171 @@
/datum/map_template/underdark/normal_mob
name = "Underdark Normal Mob Spawn"
mappath = 'normal_mob.dmm'
mappath = "maps/tether/submaps/underdark_pois/normal_mob.dmm"
cost = 5
/datum/map_template/underdark/hard_mob
name = "Underdark Hard Mob Spawn"
mappath = 'hard_mob.dmm'
mappath = "maps/tether/submaps/underdark_pois/hard_mob.dmm"
cost = 15
/datum/map_template/underdark/vault1
name = "Underdark Vault 1"
mappath = 'vault1.dmm'
mappath = "maps/tether/submaps/underdark_pois/vault1.dmm"
cost = 10
/datum/map_template/underdark/vault2
name = "Underdark Vault 2"
mappath = 'vault2.dmm'
mappath = "maps/tether/submaps/underdark_pois/vault2.dmm"
cost = 15
/datum/map_template/underdark/vault3
name = "Underdark Vault 3"
mappath = 'vault3.dmm'
mappath = "maps/tether/submaps/underdark_pois/vault3.dmm"
cost = 10
/datum/map_template/underdark/guardedloot_normal
name = "Underdark Guarded Loot Normal"
mappath = 'guardedloot_normal.dmm'
mappath = "maps/tether/submaps/underdark_pois/guardedloot_normal.dmm"
cost = 10
/datum/map_template/underdark/guardedloot_hard
name = "Underdark Guarded Loot Hard"
mappath = 'guardedloot_hard.dmm'
mappath = "maps/tether/submaps/underdark_pois/guardedloot_hard.dmm"
cost = 15
/datum/map_template/underdark/guardedsample_normal
name = "Underdark Guarded Sample Normal" //2x common-or-uncommon
mappath = 'guardedsample_normal.dmm'
mappath = "maps/tether/submaps/underdark_pois/guardedsample_normal.dmm"
cost = 10
/datum/map_template/underdark/guardedsample_hard
name = "Underdark Guarded Sample Hard" //uncommon-or-rare
mappath = 'guardedsample_hard.dmm'
mappath = "maps/tether/submaps/underdark_pois/guardedsample_hard.dmm"
cost = 15
/datum/map_template/underdark/blaster
name = "Underdark Blaster"
mappath = 'blaster.dmm'
mappath = "maps/tether/submaps/underdark_pois/blaster.dmm"
cost = 10
/datum/map_template/underdark/mechwreck
name = "Underdark Mech Wreck"
mappath = 'mechwreck.dmm'
mappath = "maps/tether/submaps/underdark_pois/mechwreck.dmm"
cost = 15
allow_duplicates = FALSE
/datum/map_template/underdark/abandonedshelter
name = "Underdark Abandoned Shelter"
mappath = 'abandonedshelter.dmm'
mappath = "maps/tether/submaps/underdark_pois/abandonedshelter.dmm"
cost = 15
allow_duplicates = FALSE
/datum/map_template/underdark/deadminer
name = "Underdark Dead Miner"
mappath = 'deadminer.dmm'
mappath = "maps/tether/submaps/underdark_pois/deadminer.dmm"
cost = 15
allow_duplicates = FALSE
/datum/map_template/underdark/underhall
name = "Underdark Golden Hall"
mappath = 'goldhall.dmm'
mappath = "maps/tether/submaps/underdark_pois/goldhall.dmm"
cost = 20
allow_duplicates = FALSE
/datum/map_template/underdark/mechbay
name = "Underdark Mech Bay"
mappath = 'mechbay.dmm'
mappath = "maps/tether/submaps/underdark_pois/mechbay.dmm"
cost = 25
allow_duplicates = FALSE
/datum/map_template/underdark/testsite
name = "Underdark Test Site"
mappath = 'testsite.dmm'
mappath = "maps/tether/submaps/underdark_pois/testsite.dmm"
cost = 20
allow_duplicates = FALSE
/datum/map_template/underdark/corridor // Bob was a derp
name = "Underdark Corridor"
mappath = 'Corridor.dmm'
mappath = "maps/tether/submaps/underdark_pois/Corridor.dmm"
cost = 5
allow_duplicates = FALSE
/datum/map_template/underdark/old_drone_hive
name = "Underdark Old Drone Hive"
mappath = 'old_drone_hive.dmm'
mappath = "maps/tether/submaps/underdark_pois/old_drone_hive.dmm"
cost = 15
/datum/map_template/underdark/phoron_rat_den
name = "Underdark Phoron Rat Den"
mappath = 'phoron_rat_den.dmm'
mappath = "maps/tether/submaps/underdark_pois/phoron_rat_den.dmm"
cost = 25
allow_duplicates = FALSE
/datum/map_template/underdark/subterranean_lake
name = "Underdark Underground Lake"
mappath = 'subterranean_lake.dmm'
mappath = "maps/tether/submaps/underdark_pois/subterranean_lake.dmm"
cost = 5
/datum/map_template/underdark/spider_nest
name = "Underdark Spider Nest"
mappath = 'spider_nest.dmm'
mappath = "maps/tether/submaps/underdark_pois/spider_nest.dmm"
cost = 15
/datum/map_template/underdark/rykka_easter_egg // bark bark Rykka was here. <3
name = "Underdark GSD"
mappath = 'rykka_easter_egg.dmm'
mappath = "maps/tether/submaps/underdark_pois/rykka_easter_egg.dmm"
cost = 5
allow_duplicates = FALSE
/datum/map_template/underdark/tree_shrine
name = "Underdark Tree"
mappath = 'tree_shrine.dmm'
mappath = "maps/tether/submaps/underdark_pois/tree_shrine.dmm"
cost = 10
allow_duplicates = FALSE
/datum/map_template/underdark/abandoned_outpost
name = "Underdark Abandonded Outpost"
mappath = 'abandonded_outpost.dmm'
mappath = "maps/tether/submaps/underdark_pois/abandonded_outpost.dmm"
cost = 45
allow_duplicates = FALSE
discard_prob = 35
/datum/map_template/underdark/mimicry
name = "Underdark Mimic Death"
mappath = 'mimicry.dmm'
mappath = "maps/tether/submaps/underdark_pois/mimicry.dmm"
cost = 15
/datum/map_template/underdark/wolf_den
name = "Underdark Wolf Den"
mappath = 'wolf_den.dmm'
mappath = "maps/tether/submaps/underdark_pois/wolf_den.dmm"
cost = 15
/datum/map_template/underdark/puzzle_corridor
name = "Underdark Puzzle Corridor"
mappath = 'puzzle_corridor.dmm'
mappath = "maps/tether/submaps/underdark_pois/puzzle_corridor.dmm"
cost = 10
/*
// Comment out unfinished/unbalanced POI's here
/datum/map_template/underdark/rad_threat
name = "Underdark Rad Threat"
mappath = 'rad_threat.dmm'
mappath = "maps/tether/submaps/underdark_pois/rad_threat.dmm"
cost = 10
/datum/map_template/underdark/broken_engine
name = "Underdark Broken Twin Engine"
mappath = 'broken_engine.dmm'
mappath = "maps/tether/submaps/underdark_pois/broken_engine.dmm"
cost = 10
/datum/map_template/underdark/boss_mob
name = "Underdark Boss Mob Spawn"
mappath = 'boss_mob.dmm'
mappath = "maps/tether/submaps/underdark_pois/boss_mob.dmm"
cost = 60
allow_duplicates = FALSE
/datum/map_template/underdark/whatever_treasure
name = "Some Kinda Treasure" //A name, only visible to admins
mappath = 'hard_mob.dmm' //The .dmm file for this template (in this folder)
mappath = "maps/tether/submaps/underdark_pois/hard_mob.dmm" //The .dmm file for this template (in this folder"
cost = 10 //How 'valuable' this template is
*/