Skip to content

Commit 1fff6d4

Browse files
authored
Add support for Test Drive Unlimited 2 (#147)
* Add TDU2 Support --------- Co-authored-by: uwx <uwx@users.noreply.github.com>
1 parent 07a941c commit 1fff6d4

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ You can rename `modorganizer-basic_games-xxx` to whatever you want (e.g., `basic
7171
| Train Simulator Classic — [STEAM](https://store.steampowered.com/app/24010/) | [Ryan Young](https://github.com/YoRyan) | [game_trainsimulator.py](games/game_trainsimulator.py) | |
7272
| 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> |
7373
| Test Drive Unlimited | [uwx](https://github.com/uwx) | [game_tdu.py](games/game_tdu.py) | |
74+
| Test Drive Unlimited 2 — [STEAM](https://steamcommunity.com/app/9930/) | [uwx](https://github.com/uwx) | [game_tdu2.py](games/game_tdu2.py) | |
7475
| 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> |
7576
| 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> |
7677
| Tony Hawk's Pro Skater 3 | [uwx](https://github.com/uwx) | [game_thps3.py](games/game_thps3.py) | |

games/game_tdu2.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- encoding: utf-8 -*-
2+
3+
import mobase
4+
from PyQt6.QtCore import QFileInfo
5+
6+
from ..basic_game import BasicGame
7+
8+
9+
class TDU2Game(BasicGame):
10+
11+
Name = "Test Drive Unlimited 2 Support Plugin"
12+
Author = "uwx"
13+
Version = "1.0.0"
14+
15+
GameName = "Test Drive Unlimited 2"
16+
GameShortName = "tdu2"
17+
GameNexusName = "testdriveunlimited2"
18+
GameNexusId = 2353
19+
GameSteamId = 9930
20+
GameBinary = "UpLauncher.exe"
21+
GameDataPath = ""
22+
23+
def executables(self):
24+
return [
25+
mobase.ExecutableInfo(
26+
"Test Drive Unlimited 2",
27+
QFileInfo(self.gameDirectory().absoluteFilePath(self.binaryName())),
28+
),
29+
mobase.ExecutableInfo(
30+
"TDU2 Universal Launcher",
31+
QFileInfo(
32+
self.gameDirectory().absoluteFilePath("TDU2_Universal_Launcher.exe")
33+
),
34+
),
35+
]

0 commit comments

Comments
 (0)