Subnautica Below Zero update: based on Subnautica

This commit is contained in:
Zash
2022-05-18 19:00:38 +02:00
parent 6f8033e1b2
commit b341f3a573
+21 -7
View File
@@ -1,23 +1,37 @@
from ..basic_game import BasicGame
from __future__ import annotations
import mobase
from . import game_subnautica # namespace to not load SubnauticaGame here, too!
class SubnauticaGame(BasicGame):
class SubnauticaBelowZeroGame(game_subnautica.SubnauticaGame):
Name = "Subnautica Below Zero Support Plugin"
Author = "dekart811"
Version = "1.0"
Author = "dekart811, Zash"
Version = "2.0"
GameName = "Subnautica: Below Zero"
GameShortName = "subnauticabelowzero"
GameNexusName = "subnauticabelowzero"
GameSteamId = 848450
GameBinary = "SubnauticaZero.exe"
GameDataPath = "QMods"
GameDataPath = ""
GameDocumentsDirectory = "%GAME_PATH%"
GameSupportURL = (
r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/"
"Game:-Subnautica:-Below-Zero"
)
GameSavesDirectory = r"%GAME_PATH%\SNAppData\SavedGames"
def iniFiles(self):
return ["doorstop_config.ini"]
_game_extra_save_paths = [
r"%USERPROFILE%\Appdata\LocalLow\Unknown Worlds"
r"\Subnautica Below Zero\SubnauticaZero\SavedGames"
]
def init(self, organizer: mobase.IOrganizer) -> bool:
super().init(organizer)
checker = game_subnautica.SubnauticaModDataChecker()
checker.update_patterns({"unfold": ["BepInExPack_BelowZero"]})
self._featureMap[mobase.ModDataChecker] = checker
return True