From 774492cb03f0876929d9bd8e3529a6f275ea560d Mon Sep 17 00:00:00 2001 From: Rage Date: Wed, 28 Jun 2023 02:21:08 -0400 Subject: [PATCH 1/3] Added Jurassic World Evolution 2 Support --- games/game_jurassic-world-evolution-2.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 games/game_jurassic-world-evolution-2.py diff --git a/games/game_jurassic-world-evolution-2.py b/games/game_jurassic-world-evolution-2.py new file mode 100644 index 00000000..83069871 --- /dev/null +++ b/games/game_jurassic-world-evolution-2.py @@ -0,0 +1,15 @@ +from PyQt5.QtCore import QDir +from ..basic_game import BasicGame + + +class JurassicWorldEvolution2Game(BasicGame): + + Name = "Jurassic World Evolution 2 Support Plugin" + Author = "Rage" + Version = "1.0.0a" + + GameName = "Jurassic World Evolution 2" + GameShortName = "jurassicworldevolution2" + GameBinary = "JWE2.exe" + GameDataPath = "Win64/ovldata" + GameSteamId = 1244460 From 0ce0d2f636050f7280c60875a13ece0c1502323a Mon Sep 17 00:00:00 2001 From: Rage Date: Wed, 27 Nov 2024 02:18:21 -0500 Subject: [PATCH 2/3] Added Stalker 2 HoC Basic Support --- games/game_stalker2.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 games/game_stalker2.py diff --git a/games/game_stalker2.py b/games/game_stalker2.py new file mode 100644 index 00000000..572d9909 --- /dev/null +++ b/games/game_stalker2.py @@ -0,0 +1,33 @@ +import os +import mobase + +from PyQt6.QtCore import QDir +from ..basic_game import BasicGame + +class Stalker2Game(BasicGame): + + # Open to contribution, take this plugin and expand on it as you please. Consider sharing on the MO2 GitHub if a more advanced version is made. + Name = "S.T.A.L.K.E.R. 2 Heart of Chornobyl Support Plugin" + Author = "MO2" + Version = "0.1.0" + + GameName = "S.T.A.L.K.E.R. 2 Heart of Chornobyl" + GameShortName = "stalker2heartofchornobyl" + GameNexusName = "stalker2heartofchornobyl" + GameBinary = "Stalker2.exe" + GameDataPath = "Stalker2\Content\Paks\~mods" + GameDocumentsDirectory = "%USERPROFILE%\AppData\Local\Stalker2\Saved" + GameSaveExtension = "sav" + GameSteamId = 1643320 + + def savesDirectory(self): + return QDir(self.documentsDirectory().absoluteFilePath("STEAM\SaveGames\Data")) + + # Snippet taken from the Kingdom Come Deliverance plugin + def initializeProfile(self, directory: QDir, settings: mobase.ProfileSetting): + # Create the mods directory if it doesn't exist + modsPath = self.dataDirectory().absolutePath() + if not os.path.exists(modsPath): + os.mkdir(modsPath) + + super().initializeProfile(directory, settings) From 0562a1be3e5bc53d1d783e10bab477c34dff44b9 Mon Sep 17 00:00:00 2001 From: Rage Date: Wed, 27 Nov 2024 02:20:55 -0500 Subject: [PATCH 3/3] Delete games/game_jurassic-world-evolution-2.py --- games/game_jurassic-world-evolution-2.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 games/game_jurassic-world-evolution-2.py diff --git a/games/game_jurassic-world-evolution-2.py b/games/game_jurassic-world-evolution-2.py deleted file mode 100644 index 83069871..00000000 --- a/games/game_jurassic-world-evolution-2.py +++ /dev/null @@ -1,15 +0,0 @@ -from PyQt5.QtCore import QDir -from ..basic_game import BasicGame - - -class JurassicWorldEvolution2Game(BasicGame): - - Name = "Jurassic World Evolution 2 Support Plugin" - Author = "Rage" - Version = "1.0.0a" - - GameName = "Jurassic World Evolution 2" - GameShortName = "jurassicworldevolution2" - GameBinary = "JWE2.exe" - GameDataPath = "Win64/ovldata" - GameSteamId = 1244460