From e609ad273f59fed3e69c51178fbb8a43eb9661eb Mon Sep 17 00:00:00 2001 From: dekart811 Date: Wed, 24 Nov 2021 18:32:40 +0100 Subject: [PATCH 1/8] Fix typo in Subnautica plugin --- games/game_subnautica.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/game_subnautica.py b/games/game_subnautica.py index 408fcb5..17e6733 100644 --- a/games/game_subnautica.py +++ b/games/game_subnautica.py @@ -9,7 +9,7 @@ class SubnauticaGame(BasicGame): GameName = "Subnautica" GameShortName = "subnautica" - GaneNexusHame = "subnautica" + GameNexusHame = "subnautica" GameSteamId = 264710 GameBinary = "Subnautica.exe" GameDataPath = "QMods" From 348f0abef2424a7173d198867e4f5847b92e0c12 Mon Sep 17 00:00:00 2001 From: dekart811 Date: Wed, 24 Nov 2021 18:32:58 +0100 Subject: [PATCH 2/8] Fix typo in Subnautica: Below Zero plugin --- games/game_subnautica-below-zero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/game_subnautica-below-zero.py b/games/game_subnautica-below-zero.py index 3595a5a..be71f24 100644 --- a/games/game_subnautica-below-zero.py +++ b/games/game_subnautica-below-zero.py @@ -9,7 +9,7 @@ class SubnauticaGame(BasicGame): GameName = "Subnautica: Below Zero" GameShortName = "subnauticabelowzero" - GaneNexusHame = "subnauticabelowzero" + GameNexusHame = "subnauticabelowzero" GameSteamId = 848450 GameBinary = "SubnauticaZero.exe" GameDataPath = "QMods" From f05e017a615c9f883bb9303ea8e7d4c43504d2fd Mon Sep 17 00:00:00 2001 From: dekart811 Date: Wed, 24 Nov 2021 18:33:51 +0100 Subject: [PATCH 3/8] Add support for Grand Theft Auto III - Definitive Edition --- games/game_gta-3-de.py | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 games/game_gta-3-de.py diff --git a/games/game_gta-3-de.py b/games/game_gta-3-de.py new file mode 100644 index 0000000..5266c4b --- /dev/null +++ b/games/game_gta-3-de.py @@ -0,0 +1,48 @@ +import os + +from PyQt5.QtCore import QDir +from PyQt5.QtCore import QFileInfo + +from typing import List, Optional + +import mobase + +from ..basic_game import BasicGame + +class GTA3DefinitiveEditionGame(BasicGame): + + Name = "Grand Theft Auto III - Definitive Edition Support Plugin" + Author = "dekart811" + Version = "1.0" + + GameName = "GTA III - Definitive Edition" + GameShortName = "grandtheftautothetrilogy" + GameNexusHame = "grandtheftautothetrilogy" + GameBinary = "Gameface/Binaries/Win64/LibertyCity.exe" + GameDataPath = "Gameface/Content/Paks/~mods" + GameDocumentsDirectory = "%USERPROFILE%/Documents/Rockstar Games/GTA III Definitive Edition/Config/WindowsNoEditor" + GameSavesDirectory = "%GAME_DOCUMENTS%/../../SaveGames" + GameSaveExtension = "sav" + + def executables(self): + return [ + mobase.ExecutableInfo( + "GTA III - Definitive Edition", + QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())), + ), + mobase.ExecutableInfo( + "GTA III - Definitive Edition (DirectX 12)", + QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())), + ).withArgument("-dx12"), + ] + + def iniFiles(self): + return ["GameUserSettings.ini", "CustomSettings.ini"] + + def initializeProfile(self, path: QDir, settings: int): + # Create the mods directory if it doesn't exist + modsPath = self.dataDirectory().absolutePath() + if not os.path.exists(modsPath): + os.mkdir(modsPath) + + super().initializeProfile(path, settings) \ No newline at end of file From c2de4ff6c185bedc1dcaf8991d2314fd6cd5c6b2 Mon Sep 17 00:00:00 2001 From: dekart811 Date: Wed, 24 Nov 2021 18:34:43 +0100 Subject: [PATCH 4/8] Add support for Grand Theft Auto: Vice CIty - Definitive Edition --- games/game_gta-vice-city-de.py | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 games/game_gta-vice-city-de.py diff --git a/games/game_gta-vice-city-de.py b/games/game_gta-vice-city-de.py new file mode 100644 index 0000000..aa3079e --- /dev/null +++ b/games/game_gta-vice-city-de.py @@ -0,0 +1,48 @@ +import os + +from PyQt5.QtCore import QDir +from PyQt5.QtCore import QFileInfo + +from typing import List, Optional + +import mobase + +from ..basic_game import BasicGame + +class GTASanAndreasDefinitiveEditionGame(BasicGame): + + Name = "Grand Theft Auto: Vice City - Definitive Edition Support Plugin" + Author = "dekart811" + Version = "1.0" + + GameName = "GTA: Vice City - Definitive Edition" + GameShortName = "grandtheftautothetrilogy" + GameNexusHame = "grandtheftautothetrilogy" + GameBinary = "Gameface/Binaries/Win64/ViceCity.exe" + GameDataPath = "Gameface/Content/Paks/~mods" + GameDocumentsDirectory = "%USERPROFILE%/Documents/Rockstar Games/GTA Vice City Definitive Edition/Config/WindowsNoEditor" + GameSavesDirectory = "%GAME_DOCUMENTS%/../../SaveGames" + GameSaveExtension = "sav" + + def executables(self): + return [ + mobase.ExecutableInfo( + "GTA: Vice City - Definitive Edition", + QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())), + ), + mobase.ExecutableInfo( + "GTA: Vice City - Definitive Edition (DirectX 12)", + QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())), + ).withArgument("-dx12"), + ] + + def iniFiles(self): + return ["GameUserSettings.ini", "CustomSettings.ini"] + + def initializeProfile(self, path: QDir, settings: int): + # Create the mods directory if it doesn't exist + modsPath = self.dataDirectory().absolutePath() + if not os.path.exists(modsPath): + os.mkdir(modsPath) + + super().initializeProfile(path, settings) \ No newline at end of file From c8ee47b22c13a9dad4e4695b51a745ed338f9356 Mon Sep 17 00:00:00 2001 From: dekart811 Date: Wed, 24 Nov 2021 18:35:17 +0100 Subject: [PATCH 5/8] Add support for Grand Theft Auto: San Andreas - Definitive Edition --- games/game_gta-san-andreas-de.py | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 games/game_gta-san-andreas-de.py diff --git a/games/game_gta-san-andreas-de.py b/games/game_gta-san-andreas-de.py new file mode 100644 index 0000000..17b77e1 --- /dev/null +++ b/games/game_gta-san-andreas-de.py @@ -0,0 +1,48 @@ +import os + +from PyQt5.QtCore import QDir +from PyQt5.QtCore import QFileInfo + +from typing import List, Optional + +import mobase + +from ..basic_game import BasicGame + +class GTASanAndreasDefinitiveEditionGame(BasicGame): + + Name = "Grand Theft Auto: San Andreas - Definitive Edition Support Plugin" + Author = "dekart811" + Version = "1.0" + + GameName = "GTA: San Andreas - Definitive Edition" + GameShortName = "grandtheftautothetrilogy" + GameNexusHame = "grandtheftautothetrilogy" + GameBinary = "Gameface/Binaries/Win64/SanAndreas.exe" + GameDataPath = "Gameface/Content/Paks/~mods" + GameDocumentsDirectory = "%USERPROFILE%/Documents/Rockstar Games/GTA San Andreas Definitive Edition/Config/WindowsNoEditor" + GameSavesDirectory = "%GAME_DOCUMENTS%/../../SaveGames" + GameSaveExtension = "sav" + + def executables(self): + return [ + mobase.ExecutableInfo( + "GTA: San Andreas - Definitive Edition", + QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())), + ), + mobase.ExecutableInfo( + "GTA: San Andreas - Definitive Edition (DirectX 12)", + QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())), + ).withArgument("-dx12"), + ] + + def iniFiles(self): + return ["GameUserSettings.ini", "CustomSettings.ini"] + + def initializeProfile(self, path: QDir, settings: int): + # Create the mods directory if it doesn't exist + modsPath = self.dataDirectory().absolutePath() + if not os.path.exists(modsPath): + os.mkdir(modsPath) + + super().initializeProfile(path, settings) \ No newline at end of file From e69fd2793f04313653541c4ca4f8653a591e3c0e Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Wed, 24 Nov 2021 15:00:15 -0700 Subject: [PATCH 6/8] Make tox happy (1) --- games/game_gta-3-de.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/games/game_gta-3-de.py b/games/game_gta-3-de.py index 5266c4b..8f44651 100644 --- a/games/game_gta-3-de.py +++ b/games/game_gta-3-de.py @@ -9,6 +9,7 @@ import mobase from ..basic_game import BasicGame + class GTA3DefinitiveEditionGame(BasicGame): Name = "Grand Theft Auto III - Definitive Edition Support Plugin" @@ -45,4 +46,4 @@ class GTA3DefinitiveEditionGame(BasicGame): if not os.path.exists(modsPath): os.mkdir(modsPath) - super().initializeProfile(path, settings) \ No newline at end of file + super().initializeProfile(path, settings) From e4fe2969cd698e2af291326e45bf5afa5cdb05ac Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Wed, 24 Nov 2021 15:00:31 -0700 Subject: [PATCH 7/8] Make tox happy (2) --- games/game_gta-san-andreas-de.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/games/game_gta-san-andreas-de.py b/games/game_gta-san-andreas-de.py index 17b77e1..e3e1d49 100644 --- a/games/game_gta-san-andreas-de.py +++ b/games/game_gta-san-andreas-de.py @@ -9,6 +9,7 @@ import mobase from ..basic_game import BasicGame + class GTASanAndreasDefinitiveEditionGame(BasicGame): Name = "Grand Theft Auto: San Andreas - Definitive Edition Support Plugin" @@ -45,4 +46,4 @@ class GTASanAndreasDefinitiveEditionGame(BasicGame): if not os.path.exists(modsPath): os.mkdir(modsPath) - super().initializeProfile(path, settings) \ No newline at end of file + super().initializeProfile(path, settings) From 15eb4fbea01fde935ff78047a5c42f7c7745879f Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Wed, 24 Nov 2021 15:00:47 -0700 Subject: [PATCH 8/8] Make tox happy (3) --- games/game_gta-vice-city-de.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/games/game_gta-vice-city-de.py b/games/game_gta-vice-city-de.py index aa3079e..5728e8a 100644 --- a/games/game_gta-vice-city-de.py +++ b/games/game_gta-vice-city-de.py @@ -9,6 +9,7 @@ import mobase from ..basic_game import BasicGame + class GTASanAndreasDefinitiveEditionGame(BasicGame): Name = "Grand Theft Auto: Vice City - Definitive Edition Support Plugin" @@ -45,4 +46,4 @@ class GTASanAndreasDefinitiveEditionGame(BasicGame): if not os.path.exists(modsPath): os.mkdir(modsPath) - super().initializeProfile(path, settings) \ No newline at end of file + super().initializeProfile(path, settings)