diff --git a/Scenes/CfgLoader.gd b/Scenes/CfgLoader.gd index 9908b0a9..bd8496f1 100644 --- a/Scenes/CfgLoader.gd +++ b/Scenes/CfgLoader.gd @@ -287,7 +287,7 @@ func get_sprite(newName, animID): func load_campaign_boss_file(mapPath): var levelsDirPath = mapPath.get_base_dir().get_base_dir() var parentDirFolderName = levelsDirPath.get_file() - if parentDirFolderName != "levels" and parentDirFolderName != "campgns": + if parentDirFolderName != "levels" and parentDirFolderName != "campgns" and parentDirFolderName != "multiplayer": oConfigFileManager.current_mappack_cfg_filename = "" return {} var list_of_main_campaign_files = Utils.get_filetype_in_directory(levelsDirPath, "cfg") diff --git a/Scenes/FileDialogSaveAs.gd b/Scenes/FileDialogSaveAs.gd index 2efae80d..2ed29a4c 100644 --- a/Scenes/FileDialogSaveAs.gd +++ b/Scenes/FileDialogSaveAs.gd @@ -86,7 +86,7 @@ func _process(delta): saveInstruction.text = "Must save in a sub directory. (KeeperFX)" if dir.ends_with("/CAMPGNS"): saveInstruction.text = "Must save in a sub directory. (KeeperFX)" - if dir.get_base_dir().ends_with("/LEVELS") or dir.get_base_dir().ends_with("/CAMPGNS"): + if dir.get_base_dir().ends_with("/LEVELS") or dir.get_base_dir().ends_with("/CAMPGNS") or dir.get_base_dir().ends_with("/MULTIPLAYER"): saveInstruction.text = "Map playable from this directory. (KeeperFX)" saveInstruction.set("custom_colors/font_color", Color(0.5,1.0,0.5,1)) else: diff --git a/Scenes/Menu.gd b/Scenes/Menu.gd index 601db41a..ffc20f34 100644 --- a/Scenes/Menu.gd +++ b/Scenes/Menu.gd @@ -215,7 +215,7 @@ func constantly_monitor_play_button_state(): var mapIsInCorrectDirectory = false if oGame.keeperfx_is_installed() == true: - if parentDirectory.ends_with("/LEVELS") or parentDirectory.ends_with("/CAMPGNS"): + if parentDirectory.ends_with("/LEVELS") or parentDirectory.ends_with("/CAMPGNS") or parentDirectory.ends_with("/MULTIPLAYER"): mapIsInCorrectDirectory = true else: if currentDirectory.ends_with("/LEVELS"): diff --git a/Scenes/SourceMapTree.gd b/Scenes/SourceMapTree.gd index 18cc99f0..4b823509 100644 --- a/Scenes/SourceMapTree.gd +++ b/Scenes/SourceMapTree.gd @@ -26,6 +26,9 @@ func update_source_tree(): # Call this whenever there's an update to the filesys path = oGame.GAME_DIRECTORY.plus_file("campgns") var campgnsTreeItem = add_tree_dir(self, self, path) deep_scan(path, campgnsTreeItem) + path = oGame.GAME_DIRECTORY.plus_file("multiplayer") + var multiplayerTreeItem = add_tree_dir(self, self, path) + deep_scan(path, multiplayerTreeItem) # For the remaining items without lif names for BASENAME in treeItemsThatWantNames: