From 1d0b766b26fbc18eaa3e918e31ca1dfbf307b5af Mon Sep 17 00:00:00 2001 From: Xander <68935972+Bladehawke@users.noreply.github.com> Date: Wed, 25 Nov 2026 03:02:42 -0600 Subject: [PATCH 1/2] Add Star Wars Outlaws plugin - Initial version I posted on Discord worked fine except it required mod loader plugins (Raindrop or Snowdrop) to be installed manually. - Current version allows them to be installed as mods leaving the game directory clean --- games/game_starwarsoutlaws.py | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 games/game_starwarsoutlaws.py diff --git a/games/game_starwarsoutlaws.py b/games/game_starwarsoutlaws.py new file mode 100644 index 00000000..838897f1 --- /dev/null +++ b/games/game_starwarsoutlaws.py @@ -0,0 +1,47 @@ +""" + This plugin references the correct Steam ID. I do not have the game on Steam, + I have it on Ubi Connect, and it will silently fail to launch if the Ubi + launcher is not open when you press Play in MO +""" + +import mobase + +from ..basic_game import BasicGame +from pathlib import Path + + +class StarWarsOutlawsGame(BasicGame): + Name = "Star Wars Outlaws" + Author = "Bladehawke" + Version = "1.1.0" + + GameName = "Star Wars Outlaws" + GameShortName = "StarWarsOutlaws" + GameNexusName = "starwarsoutlaws" + GameSteamId = 2842040 + GameBinary = "Outlaws.exe" + GameDataPath = "" + GameSupportURL = ( + r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/" + "Game:-Star-Wars-Outlaws" + ) + + _forced_libraries = ["version.dll", "dinput8.dll"] # Snowdrop and Raindrop mod loaders (Do *NOT* use both at the same time) + + def executables(self) -> list[mobase.ExecutableInfo]: + game_name = self.gameName() + game_dir = self.gameDirectory() + bin_path = game_dir.absoluteFilePath(self.binaryName()) + return [ + mobase.ExecutableInfo( + game_name, + bin_path, + ) + ] + + def executableForcedLoads(self) -> list[mobase.ExecutableForcedLoadSetting]: + exe = Path(self.binaryName()).name + return [ + mobase.ExecutableForcedLoadSetting(exe, lib).withEnabled(True) + for lib in self._forced_libraries + ] \ No newline at end of file From 87bbf45ab22eabf0cffe0f5e40205b167eb85627 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 09:05:09 +0000 Subject: [PATCH 2/2] [pre-commit.ci] Auto fixes from pre-commit.com hooks. --- games/game_starwarsoutlaws.py | 98 ++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 47 deletions(-) diff --git a/games/game_starwarsoutlaws.py b/games/game_starwarsoutlaws.py index 838897f1..f6ba86a8 100644 --- a/games/game_starwarsoutlaws.py +++ b/games/game_starwarsoutlaws.py @@ -1,47 +1,51 @@ -""" - This plugin references the correct Steam ID. I do not have the game on Steam, - I have it on Ubi Connect, and it will silently fail to launch if the Ubi - launcher is not open when you press Play in MO -""" - -import mobase - -from ..basic_game import BasicGame -from pathlib import Path - - -class StarWarsOutlawsGame(BasicGame): - Name = "Star Wars Outlaws" - Author = "Bladehawke" - Version = "1.1.0" - - GameName = "Star Wars Outlaws" - GameShortName = "StarWarsOutlaws" - GameNexusName = "starwarsoutlaws" - GameSteamId = 2842040 - GameBinary = "Outlaws.exe" - GameDataPath = "" - GameSupportURL = ( - r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/" - "Game:-Star-Wars-Outlaws" - ) - - _forced_libraries = ["version.dll", "dinput8.dll"] # Snowdrop and Raindrop mod loaders (Do *NOT* use both at the same time) - - def executables(self) -> list[mobase.ExecutableInfo]: - game_name = self.gameName() - game_dir = self.gameDirectory() - bin_path = game_dir.absoluteFilePath(self.binaryName()) - return [ - mobase.ExecutableInfo( - game_name, - bin_path, - ) - ] - - def executableForcedLoads(self) -> list[mobase.ExecutableForcedLoadSetting]: - exe = Path(self.binaryName()).name - return [ - mobase.ExecutableForcedLoadSetting(exe, lib).withEnabled(True) - for lib in self._forced_libraries - ] \ No newline at end of file +""" +This plugin references the correct Steam ID. I do not have the game on Steam, +I have it on Ubi Connect, and it will silently fail to launch if the Ubi +launcher is not open when you press Play in MO +""" + +from pathlib import Path + +import mobase + +from ..basic_game import BasicGame + + +class StarWarsOutlawsGame(BasicGame): + Name = "Star Wars Outlaws" + Author = "Bladehawke" + Version = "1.1.0" + + GameName = "Star Wars Outlaws" + GameShortName = "StarWarsOutlaws" + GameNexusName = "starwarsoutlaws" + GameSteamId = 2842040 + GameBinary = "Outlaws.exe" + GameDataPath = "" + GameSupportURL = ( + r"https://github.com/ModOrganizer2/modorganizer-basic_games/wiki/" + "Game:-Star-Wars-Outlaws" + ) + + _forced_libraries = [ + "version.dll", + "dinput8.dll", + ] # Snowdrop and Raindrop mod loaders (Do *NOT* use both at the same time) + + def executables(self) -> list[mobase.ExecutableInfo]: + game_name = self.gameName() + game_dir = self.gameDirectory() + bin_path = game_dir.absoluteFilePath(self.binaryName()) + return [ + mobase.ExecutableInfo( + game_name, + bin_path, + ) + ] + + def executableForcedLoads(self) -> list[mobase.ExecutableForcedLoadSetting]: + exe = Path(self.binaryName()).name + return [ + mobase.ExecutableForcedLoadSetting(exe, lib).withEnabled(True) + for lib in self._forced_libraries + ]