From 47d62a1fa497445406dbf6e914317ae32cbd28ac Mon Sep 17 00:00:00 2001 From: maskers <97827489+mskrss@users.noreply.github.com> Date: Sat, 17 May 2025 20:26:13 +0300 Subject: [PATCH] update offline response --- src/handlers/event/analyze_logs/issues.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/handlers/event/analyze_logs/issues.rs b/src/handlers/event/analyze_logs/issues.rs index 47dec19..d61d003 100644 --- a/src/handlers/event/analyze_logs/issues.rs +++ b/src/handlers/event/analyze_logs/issues.rs @@ -33,6 +33,7 @@ pub async fn find(log: &str, data: &Data) -> Result> { intermediary_mappings, old_forge_new_java, checksum_mismatch, + nvidia_linux, ]; let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect(); @@ -331,7 +332,8 @@ fn offline_launch(log: &str) -> Issue { let issue = ( "Missing Libraries".to_string(), "You seem to be missing libraries. This is usually caused by launching offline before they can be downloaded. - To fix this, first ensure you are connected to the internet. Then, try selecting Edit > Version > Download All and launching your instance again." + To fix this, first ensure you are connected to the internet. Then, try selecting Edit > Version > Download All and launching your instance again. + If Minecraft is getting launched offline by default, it's possible your token got expired. To fix this, remove and add back your Microsoft account." .to_string(), ); @@ -416,11 +418,11 @@ fn checksum_mismatch(log: &str) -> Issue { fn nvidia_linux(log: &str) -> Issue { let issue = ( - "Nvidia drivers on Linux".to_string(), - "Nvidia drivers will often cause crashes on Linux. + "Nvidia drivers on Linux".to_string(), + "Nvidia drivers will often cause crashes on Linux. To fix it, go to Settings ⟶ Enviroment variables and set `__GL_THREADED_OPTIMIZATIONS` to `0`." - .to_string(), - ); + .to_string(), + ); let found = log.contains("[libnvidia-glcore.so"); found.then_some(issue)