feat: Vulkan Crash 扫描

close: https://github.com/StarCitizenToolBox/app/issues/43
This commit is contained in:
xkeyC 2024-07-21 17:07:19 +08:00
parent 53e44db817
commit 44ec80cc73
8 changed files with 48 additions and 2 deletions

View File

@ -191,6 +191,11 @@ class SCLoggerHelper {
return MapEntry(S.current.doctor_game_error_low_gpu_memory,
S.current.doctor_game_error_low_gpu_memory_info);
}
if (line.contains(
"try disabling with r_vulkanDisableLayers = 1 in your user.cfg")) {
return MapEntry(S.current.doctor_game_error_gpu_vulkan_crash,
S.current.doctor_game_error_gpu_vulkan_crash_info);
}
/// Unknown
if (line.contains("network.replicatedEntityHandle")) {

View File

@ -332,6 +332,11 @@ class MessageLookup extends MessageLookupByLibrary {
"The game triggered a generic crash, please check the trouble shooting guide"),
"doctor_game_error_gpu_crash": MessageLookupByLibrary.simpleMessage(
"Your graphics card crashes! Please check the barrier guide"),
"doctor_game_error_gpu_vulkan_crash":
MessageLookupByLibrary.simpleMessage("GPU Vulkan Crash"),
"doctor_game_error_gpu_vulkan_crash_info":
MessageLookupByLibrary.simpleMessage(
"Vulkan Crash! This may be the problem of driving version or game engine, please try to update the GPU driver or use the color cleaner function to return to DX11"),
"doctor_game_error_low_gpu_memory":
MessageLookupByLibrary.simpleMessage("Insufficient VRAM"),
"doctor_game_error_low_gpu_memory_info":

View File

@ -297,6 +297,11 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("游戏触发了最为广泛的崩溃问题,请查看排障指南"),
"doctor_game_error_gpu_crash":
MessageLookupByLibrary.simpleMessage("您的显卡崩溃啦!请查看排障指南"),
"doctor_game_error_gpu_vulkan_crash":
MessageLookupByLibrary.simpleMessage("GPU Vulkan 崩溃"),
"doctor_game_error_gpu_vulkan_crash_info":
MessageLookupByLibrary.simpleMessage(
"Vulkan 崩溃!这可能是驱动版本或游戏引擎问题,请尝试更新 GPU 驱动 或 使用清理着色器功能为您回退到 DX11"),
"doctor_game_error_low_gpu_memory":
MessageLookupByLibrary.simpleMessage("可用显存不足"),
"doctor_game_error_low_gpu_memory_info":

View File

@ -296,6 +296,11 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("遊戲觸發了最為廣泛的崩潰問題,請查看除錯指南"),
"doctor_game_error_gpu_crash":
MessageLookupByLibrary.simpleMessage("您的顯示卡已崩潰,請查看除錯指南"),
"doctor_game_error_gpu_vulkan_crash":
MessageLookupByLibrary.simpleMessage("GPU Vulkan 崩潰"),
"doctor_game_error_gpu_vulkan_crash_info":
MessageLookupByLibrary.simpleMessage(
"Vulkan 崩潰!這可能是驅動版本或遊戲引擎問題,請嘗試更新 GPU 驅動 或 使用清理著色器功能為您回退到 DX11"),
"doctor_game_error_low_gpu_memory":
MessageLookupByLibrary.simpleMessage("可用 VRAM 不足"),
"doctor_game_error_low_gpu_memory_info":

View File

@ -4853,6 +4853,26 @@ class S {
args: [],
);
}
/// `GPU Vulkan Crash`
String get doctor_game_error_gpu_vulkan_crash {
return Intl.message(
'GPU Vulkan Crash',
name: 'doctor_game_error_gpu_vulkan_crash',
desc: '',
args: [],
);
}
/// `Vulkan Crash! This may be the problem of driving version or game engine, please try to update the GPU driver or use the color cleaner function to return to DX11`
String get doctor_game_error_gpu_vulkan_crash_info {
return Intl.message(
'Vulkan Crash! This may be the problem of driving version or game engine, please try to update the GPU driver or use the color cleaner function to return to DX11',
name: 'doctor_game_error_gpu_vulkan_crash_info',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {

View File

@ -959,5 +959,7 @@
"@tools_unp4k_missing_runtime_info": {},
"tools_unp4k_missing_runtime_action_install": "Install the runtime",
"@tools_unp4k_missing_runtime_action_install": {},
"home_localization_action_rsi_launcher_no_game_path_msg": "You are not currently installed in the game body or the game installation directory is not selected, and you can only use the promoter Chinese function. Please make sure the game is installed or adds the game installation directory in the box settings."
"home_localization_action_rsi_launcher_no_game_path_msg": "You are not currently installed in the game body or the game installation directory is not selected, and you can only use the promoter Chinese function. Please make sure the game is installed or adds the game installation directory in the box settings.",
"doctor_game_error_gpu_vulkan_crash": "GPU Vulkan Crash",
"doctor_game_error_gpu_vulkan_crash_info": "Vulkan Crash! This may be the problem of driving version or game engine, please try to update the GPU driver or use the color cleaner function to return to DX11"
}

View File

@ -652,6 +652,8 @@
"doctor_game_error_game_damaged_p4k_file_info": "请尝试删除 Data.p4k 文件 并在启动器校验 或 使用盒子分流。",
"doctor_game_error_low_gpu_memory": "可用显存不足",
"doctor_game_error_low_gpu_memory_info": "请不要在后台运行其他高显卡占用的 游戏/应用,或更换显卡。",
"doctor_game_error_gpu_vulkan_crash": "GPU Vulkan 崩溃",
"doctor_game_error_gpu_vulkan_crash_info": "Vulkan 崩溃!这可能是驱动版本或游戏引擎问题,请尝试更新 GPU 驱动 或 使用清理着色器功能为您回退到 DX11",
"app_common_error_info": "出现错误: {v0}",
"app_common_tip": "提示",
"app_common_tip_i_know": "我知道了",

View File

@ -795,5 +795,7 @@
"tools_rsi_launcher_enhance_action_expand": "展開額外功能",
"tools_unp4k_missing_runtime": "缺少運行庫",
"tools_unp4k_missing_runtime_info": "使用此功能需安裝 .NET8 運行庫,請點擊下方按鈕下載安裝,安裝成功後重新打開此頁面即可繼續使用。",
"tools_unp4k_missing_runtime_action_install": "安裝運行庫"
"tools_unp4k_missing_runtime_action_install": "安裝運行庫",
"doctor_game_error_gpu_vulkan_crash": "GPU Vulkan 崩潰",
"doctor_game_error_gpu_vulkan_crash_info": "Vulkan 崩潰!這可能是驅動版本或遊戲引擎問題,請嘗試更新 GPU 驅動 或 使用清理著色器功能為您回退到 DX11"
}