You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed an Unzip error when Improvement Mod Launcher.exe is in the update file
Added more log info
Updated from upx-5.0.1-win64 to upx-5.0.2-win64
Updated python
debug("extract_ai_from_zip", f"Permission denied while extracting ImpMod_AIs: {e}")
407
-
add_log("Cannot change AI")
415
+
add_log("Cannot change AI "+str(e))
408
416
exceptOSErrorase: # Handle OS-related errors.
409
417
debug("extract_ai_from_zip", f"OS error has occurred during extraction of ImpMod_AIs: {e}")
410
-
add_log("Cannot change AI")
418
+
add_log("Cannot change AI "+str(e))
411
419
exceptExceptionase: # Catch any other unexpected errors.
412
420
debug("extract_ai_from_zip", f"An unexpected error has occurred of ImpMod_AIs: {e}")
413
-
add_log("Cannot change AI")
421
+
add_log("Cannot change AI "+str(e))
414
422
415
423
defoption_changed(choice) ->None:
416
424
globalgAi_label
@@ -448,7 +456,8 @@ def read_ai_zip() -> None:
448
456
button_image_path=gButtonImageUrl
449
457
try:
450
458
button_image=Image.open(button_image_path)
451
-
exceptFileNotFoundError:
459
+
exceptFileNotFoundErrorase:
460
+
add_log("Cannot read AI file "+str(e))
452
461
sys.exit(1)
453
462
dropButton=ctk.CTkLabel(gApp, image=ctk.CTkImage(light_image=button_image, size=(250, 40)), text="", font=gMain_font) # Create the CTkLabel with the background image
454
463
gInterface_canvas.create_window(20, 180, window=dropButton, anchor="w") # Add the label to the canvas
@@ -501,10 +510,10 @@ def read_ai_zip() -> None:
501
510
add_log("Cannot load AI list")
502
511
exceptOSErrorase: # OSError
503
512
debug(f"read_ai_zip OS error has occurred: {e}", "OSError when reading ImpMod_AIs")
504
-
add_log("Cannot load AI list")
513
+
add_log("Cannot load AI list "+str(e))
505
514
exceptExceptionase: # Exception
506
515
debug(f"read_ai_zip An unexpected error has occurred: {e}", "Exception when reading ImpMod_AIs")
CreateToolTip(gD3D9_checkbox, "Enable the DirectX12 wrapper; when disabled the game will use DirectX9")
841
+
CreateToolTip(gD3D9_checkbox, "When disabled the game will use DirectX9 ; Do not enable the DX12 Wrapper if you are on a laptop or with integrated graphics; only enable if you have a mid to high range GPU")
833
842
834
843
elifos.path.exists("D3D9.dll_Disabled"):
835
844
gD3D9Var_intVar=ctk.IntVar(value=0)
@@ -1059,8 +1068,8 @@ if __name__ == '__main__':
1059
1068
else: # Running as a script
1060
1069
gApp.iconbitmap(r"icon\icon.ico") # Set the path to the icon file for script
1061
1070
1062
-
gVersion:str="1.01"# App version
1063
-
gGitHubVersion:str="version1.01"
1071
+
gVersion:str="1.02"# App version
1072
+
gGitHubVersion:str="version1.02"
1064
1073
1065
1074
gModDownloadUrl:str=""# Hold the URL for the mirror download
1066
1075
gLast_updated:str=""# Stores the last date the file was installed
0 commit comments