Skip to content

Commit

Permalink
Add support for Test Drive Unlimited 2 (ModOrganizer2#147)
Browse files Browse the repository at this point in the history
* Add TDU2 Support

---------

Co-authored-by: uwx <uwx@users.noreply.github.com>
  • Loading branch information
uwx and uwx committed Apr 13, 2024
1 parent 07a941c commit 1fff6d4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ You can rename `modorganizer-basic_games-xxx` to whatever you want (e.g., `basic
| Train Simulator Classic — [STEAM](https://store.steampowered.com/app/24010/) | [Ryan Young](https://github.com/YoRyan) | [game_trainsimulator.py](games/game_trainsimulator.py) | |
| Valheim — [STEAM](https://store.steampowered.com/app/892970/Valheim/) | [Zash](https://github.com/ZashIn) | [game_valheim.py](games/game_valheim.py) | <ul><li>mod data checker</li><li>overwrite config sync</li><li>save game support (no preview)</li></ul> |
| Test Drive Unlimited | [uwx](https://github.com/uwx) | [game_tdu.py](games/game_tdu.py) | |
| Test Drive Unlimited 2 — [STEAM](https://steamcommunity.com/app/9930/) | [uwx](https://github.com/uwx) | [game_tdu2.py](games/game_tdu2.py) | |
| The Witcher: Enhanced Edition - [GOG](https://www.gog.com/game/the_witcher) / [STEAM](https://store.steampowered.com/app/20900/The_Witcher_Enhanced_Edition_Directors_Cut/) | [erri120](https://github.com/erri120) | [game_witcher1.py](games/game_witcher1.py) | <ul><li>save game parsing (no preview)</li></ul> |
| The Witcher 3: Wild Hunt — [GOG](https://www.gog.com/game/the_witcher_3_wild_hunt) / [STEAM](https://store.steampowered.com/app/292030/The_Witcher_3_Wild_Hunt/) | [Holt59](https://github.com/holt59/) | [game_witcher3.py](games/game_witcher3.py) | <ul><li>save game preview</li></ul> |
| Tony Hawk's Pro Skater 3 | [uwx](https://github.com/uwx) | [game_thps3.py](games/game_thps3.py) | |
Expand Down
35 changes: 35 additions & 0 deletions games/game_tdu2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# -*- encoding: utf-8 -*-

import mobase
from PyQt6.QtCore import QFileInfo

from ..basic_game import BasicGame


class TDU2Game(BasicGame):

Name = "Test Drive Unlimited 2 Support Plugin"
Author = "uwx"
Version = "1.0.0"

GameName = "Test Drive Unlimited 2"
GameShortName = "tdu2"
GameNexusName = "testdriveunlimited2"
GameNexusId = 2353
GameSteamId = 9930
GameBinary = "UpLauncher.exe"
GameDataPath = ""

def executables(self):
return [
mobase.ExecutableInfo(
"Test Drive Unlimited 2",
QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())),
),
mobase.ExecutableInfo(
"TDU2 Universal Launcher",
QFileInfo(
self.gameDirectory().absoluteFilePath("TDU2_Universal_Launcher.exe")
),
),
]

0 comments on commit 1fff6d4

Please sign in to comment.