diff --git a/blog/V1.11.Minor.md b/blog/V1.11.Minor.md index 5748a10a4..94e9d123a 100644 --- a/blog/V1.11.Minor.md +++ b/blog/V1.11.Minor.md @@ -23,6 +23,9 @@ title: Version 1.11 > Minor This changelog will contain all changes from 1.11.0 onwards before the next major version. !!! +==- Version 1.11.51 +Adjust crack message. Fix main menu update time display. +[!badge variant="dark" text="Tumppi066"] [!badge variant="ghost" text="Backend"] [!badge variant="ghost" text="MainUI"] ==- Version 1.11.50 Add check for a cracked game or DLCs, since the game will refuse to load DLLs in this case. [!badge variant="dark" text="Tumppi066"] [!badge variant="ghost" text="Backend"] diff --git a/changelog.txt b/changelog.txt index aa7e256a7..85f2cf6fd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1 +1,2 @@ -Add check for a cracked game or DLCs, since the game will refuse to load DLLs in this case. \ No newline at end of file +1.11.50: Add check for a cracked game or DLCs, since the game will refuse to load DLLs in this case. +1.11.51: Fix main menu update time display. \ No newline at end of file diff --git a/plugins/MainMenu/main.py b/plugins/MainMenu/main.py index 87b257912..8cfa7e78a 100644 --- a/plugins/MainMenu/main.py +++ b/plugins/MainMenu/main.py @@ -72,10 +72,12 @@ def exampleFunction(self): try: updateTime = str(variables.LASTUPDATE).split(" ") updateTime = updateTime[1:] - months = {"Jan": 1, "Feb": 2, "Mar": 3, "Apr": 4, "May": 5, "June": 6, "July": 7, "Aug": 8, "Sep": 9, "Oct":10, "Nov": 11, "Dec": 12} + months = {"Jan": 1, "Feb": 2, "Mar": 3, "Apr": 4, "May": 5, "Jun": 6, "Jul": 7, "Aug": 8, "Sep": 9, "Oct":10, "Nov": 11, "Dec": 12} updateTime[0] = months[updateTime[0]] updateText = f"{updateTime[1]}.{updateTime[0]}.{updateTime[3]} - {updateTime[2]} " except: + import traceback + traceback.print_exc() updateText = "-- Unknown --" helpers.MakeLabel(self.root, f"Released {updateText}", 0, 1, columnspan=2, pady=0, autoplace=True) diff --git a/src/scsLogReader.py b/src/scsLogReader.py index ad324b665..6dff22f62 100644 --- a/src/scsLogReader.py +++ b/src/scsLogReader.py @@ -7,12 +7,17 @@ ets2FilePath = "C:/Users/" + variables.USERNAME + "/Documents/Euro Truck Simulator 2/game.log.txt" currentFileHash = None currentLines = [] +hasShownCrackError = False def CheckForCrackedGame(data): + global hasShownCrackError crackIdentifier = "0000007E" for line in data["log"]: if crackIdentifier in line: - helpers.ShowFailure("\nThis is most likely because of a cracked game or DLCs.\nYou will have to buy the game / DLCs to continue!", "Error loading required DLLs") + if not hasShownCrackError: + helpers.ShowFailure("\nThis is almost certainly due to a cracked game or DLC. It might just be a broken DLL though.\nIf the app and game works then fine, but if you see this error we will not help with diagnosing the issue.", "DLL load error detected!") + print("Possible cracked game detected.") + hasShownCrackError = True def plugin(data): diff --git a/version.txt b/version.txt index 97679df3d..d76a155a0 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.11.50 \ No newline at end of file +1.11.51 \ No newline at end of file