Skip to content

Commit 571ae38

Browse files
committed
Better debuggability for mod installation failures
1 parent 7622bcd commit 571ae38

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

fa_mod_menu.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ def check_for_main_mod():
8585
with mods as mod_manager:
8686
if MOD_NAME in mod_manager.dict:
8787
return
88+
print("It looks like we could not install Factorio access! Try downloading it manually from the mod portal, as well as Kruise Kontrol Remote")
89+
print("So you can troubleshoot, the launcher will now continue, but your game will not have speech")
90+
return
91+
# The following is dead, the idea was that we would let people use the mod portal but in practice that doesn't work
92+
# yet and everyone keeps getting confused. When working on it, comment out the above
8893
if not fa_menu.getAffirmation(("fa-l.install-main-mod",)):
8994
return
9095
print("Installing main mod:", MOD_NAME)

github_mods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def update_if_needed(current_version: str, name: str, user="Factorio-Access"):
3939
return None
4040
print(f"Updating {name} to {latest}")
4141
download(tags[0]["zipball_url"], MODS() / f"{name}_{latest.strip(' v')}.zip")
42-
except urllib.error.URLError:
43-
print(f"Network Error updating: {name}")
42+
except urllib.error.URLError as err:
43+
print(f"Network Error updating: {name}: {err}")
4444
return None
4545
return latest
4646

0 commit comments

Comments
 (0)