Skip to content

Commit

Permalink
若干修复和规则添加 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pigeon0v0 committed Aug 14, 2023
1 parent 0e61f61 commit bb455d0
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 3 deletions.
37 changes: 34 additions & 3 deletions docs/.vitepress/theme/components/Analyzer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const ROOT_URL = CUR_URL.substring( // 根网址
const SYSTEM_URL = ROOT_URL + "/client/system.html" // 系统问题
const VANILLA_URL = ROOT_URL + "/client/vanilla.html" // 原版问题
const MODS_URL = ROOT_URL + "/client/mods.html" // Mod 问题
const MIXIN_URL = ROOT_URL + "/mixin.html" // Mod 问题
// 阻止浏览器默认拖拽行为
function handleDragEnter(e) {
Expand Down Expand Up @@ -474,7 +475,10 @@ function LogAnalysis(log) {
// Fabric Mod 缺少前置
} else if (
log.includes("fabric") &&
log.includes("Unmet dependency listing:")
log.includes("Unmet dependency listing:") &&
log.includes("requires") &&
log.includes("which is missing!") &&
log.includes("is incompatible with") == false
) {
showAnalysisResult(
"Success",
Expand All @@ -485,8 +489,9 @@ function LogAnalysis(log) {
// Fabric Mod 冲突
} else if (
log.includes("net.fabricmc.loader.impl.FormattedException: Mod resolution encountered an incompatible mod set!") ||
log.includes("that is compatible with")
log.includes("net.fabricmc.loader.impl.FormattedException: Mod resolution encountered an incompatible mod set!") &&
log.includes("that is compatible with") &&
log.includes("is incompatible with")
) {
showAnalysisResult(
"Success",
Expand All @@ -507,6 +512,20 @@ function LogAnalysis(log) {
"Quilt Mod 缺少前置",
)
// LiteLoader 与 Forge 冲突
} else if (
log.includes("forge") &&
log.includes("liteloader") &&
log.includes("org.spongepowered.asm.service.ServiceInitialisationException: ModLauncher is not available") &&
log.includes("neoforge") == false
) {
showAnalysisResult(
"Success",
"LiteLoader 与 Forge 冲突",
MODS_URL + "#与-forge-冲突",
"LiteLoader 与 Forge 冲突",
)
// OptiFine 无法加载世界
} else if (
log.includes("java.lang.NoSuchMethodError: net.minecraft.world.server.ChunkManager$ProxyTicketManager.shouldForceTicks(J)Z")
Expand Down Expand Up @@ -537,6 +556,18 @@ function LogAnalysis(log) {
"Forge 与 OptiFine 兼容性问题导致的崩溃",
)
// Mixin 注入失败
} else if (
log.includes("Mixin apply for mod") &&
log.includes("failed")
) {
showAnalysisResult(
"Success",
"Mixin 注入失败",
MIXIN_URL + "#mixin-注入失败",
"Mixin 注入失败",
)
// 以上都无
} else {
showAnalysisResult(
Expand Down
1 change: 1 addition & 0 deletions docs/analyzer.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Analyzer from './.vitepress/theme/components/Analyzer.vue'
---

:::tip 帮助
- **分析日志之前请确保你使用的是最新版启动器。**
- 如分析模块长时间未响应请刷新页面重试。
- 如果分析工具提供的解决方案无效,或者本工具还未收录您遇到的错误时,请在页面下方留言。
- 本工具仍在起步阶段,我们会不断优化用户体验。
Expand Down
6 changes: 6 additions & 0 deletions docs/basis.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ A:要对 `Minecraft` 的游戏错误 / 崩溃进行处理,您首先要对游

大部分时候,`Minecraft` 开发者们都会使用这些第三方启动器而不是使用官启,他们提供了更多的调试选项及错误输出为开发者解决问题提供方便。我们也强烈建议您在非必要使用官启的时候使用第三方启动器。

:::warning 警告
除非最新的启动器含有严重 Bug,否则请始终确保你所使用的启动器是最新的。

使用非最新启动器导致的问题均不在本网站解决范围内!
:::

:::tip BakaXL / PCL2 无法使用?
若在启动 BakaXL 或 PCL2 时出现了 .NET Framework 异常,请在 [此处](https://dotnet.microsoft.com/zh-cn/download/dotnet-framework/thank-you/net48-offline-installer) 下载安装 .NET Framework 4.8。
:::
Expand Down
12 changes: 12 additions & 0 deletions docs/client/mods.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,18 @@ which is missing!

根据 Mod 列表的提示,手动删除对应的 Mod。

### 与 Forge 冲突

解释:由于 LiteLoader 与 Forge 冲突,游戏崩溃了。

解决方案:卸载 LiteLoader(重新安装没有 LiteLoader 的实例,然后迁移数据)。

关键词:

```
org.spongepowered.asm.service.ServiceInitialisationException: ModLauncher is not available
```

## OptiFine

#### 无法加载世界
Expand Down
13 changes: 13 additions & 0 deletions docs/mixin.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@

## 常见崩溃实例

### Mixin 注入失败

解释:由于一个或多个 Mod 的 Mixin 注入失败,导致游戏出错。

解决方案:查看日志了解是哪一个或多个 Mod 出错,然后移除它们。

关键词:

```
Mixin apply for mod
failed
```

### Rubidium 与 OptiFine 冲突

若看见了 `OptiFine ZIP file:` ,说明您安装了 OptiFine ,这一行后面是您的 OptiFine 路径
Expand Down

0 comments on commit bb455d0

Please sign in to comment.