|
1 | 1 | --- |
2 | 2 | title: 加入 HMCL 报错崩溃交流群 |
| 3 | +excerpt: HMCL 报错崩溃交流群仅处理游戏报错与崩溃问题 |
3 | 4 | date: 2024-03-05 17:00:00 +0800 |
4 | 5 | author: zkitefly |
5 | 6 | --- |
6 | 7 |
|
7 | | - |
| 8 | +<!----{{'>'}} |
| 9 | +<div id="alert-modal"> |
| 10 | +<div class="notice"> |
| 11 | +{% capture notice %} |
| 12 | +<!----> |
| 13 | +<h1 id="" align="center">加入群聊前请注意</h1> |
8 | 14 |
|
9 | | -如果你遇到了游戏非正常退出问题,欢迎加入报错崩溃交流群咨询解决方案:[Minecraft 报错崩溃交流群 (666546887)](https://qm.qq.com/q/nG0Ti1kJri) |
10 | | - |
11 | | -**本群仅处理游戏报错崩溃问题,无关话题请前往其他群聊讨论。** |
| 15 | +- 游戏非正常退出时,请点击左下角 ![][~/assets/groups/button-1] 按钮(不是 ![][~/assets/groups/button-2] 按钮),并完整发送生成的报错压缩包 |
| 16 | +- 遇到其他问题时,请详细说明情况并提供相关截图,以便我们提供帮助 |
| 17 | +- 使用整合包时,请说明具体的整合包名称与版本 |
| 18 | +- 请保持耐心,群管理和群友会协助解决问题。严禁辱骂、催促他人 |
| 19 | +- 禁止讨论政治、色情、违法、金钱交易等敏感内容,禁止人身攻击、造谣诽谤等行为 |
| 20 | +- 禁止刷屏、灌水、挑起争端、发泄情绪等影响群聊秩序的行为 |
| 21 | +- 禁止使用第三方插件发送特殊消息;禁止讨论多人游戏作弊工具 |
| 22 | +- 本群仅支持 HMCL 启动器相关问题。PCL 启动器用户请加入 978054335 群 |
| 23 | +- 请勿重复发送文件,如需重新获取关注,请引用之前发送的消息 |
| 24 | +- 因人数限制,已解决问题的用户会被移出群聊。如遇新问题可再次加入 |
| 25 | +- 本群仅处理游戏崩溃相关问题,其他话题请到其他群讨论 |
12 | 26 |
|
13 | | -由于加群人数过多,我们会移出问题已解决的用户。如果你在被移出后遇到了新的问题需要求助,你可以再次加群。 |
14 | | - |
15 | | -<script> |
16 | | -document.addEventListener('DOMContentLoaded', function() { |
17 | | - const modal = document.createElement('div'); |
18 | | - modal.style.cssText = ` |
19 | | - position: fixed; |
20 | | - top: 0; |
21 | | - left: 0; |
22 | | - width: 100%; |
23 | | - height: 100%; |
24 | | - background: rgba(0, 0, 0, 0.5); |
25 | | - display: flex; |
26 | | - justify-content: center; |
27 | | - align-items: center; |
28 | | - z-index: 9999; |
29 | | - `; |
| 27 | +--- |
| 28 | +<!--{% comment %}--> |
| 29 | +[~/assets/groups/button-1]: /assets/img/docs/groups/button-1.png "导出游戏崩溃日志" |
| 30 | +[~/assets/groups/button-2]: /assets/img/docs/groups/button-2.png "日志" |
| 31 | +<!--{% endcomment %}--{{'>'}} |
| 32 | +[~/assets/groups/button-1]: {% link /assets/img/docs/groups/button-1.png %} "导出游戏崩溃日志" |
| 33 | +[~/assets/groups/button-2]: {% link /assets/img/docs/groups/button-2.png %} "日志" |
| 34 | +{% endcapture %} |
| 35 | +{{ notice | markdownify }} |
| 36 | +<p class="text-center">请等待 <span id="countdown">5</span> 秒,请认真阅读注意事项</p> |
| 37 | +<button id="close-btn" class="btn align-center" disabled>我已了解</button> |
| 38 | +</div> |
| 39 | +</div> |
| 40 | +<!----> |
30 | 41 |
|
31 | | - const modalContent = document.createElement('div'); |
32 | | - modalContent.style.cssText = ` |
33 | | - background: white; |
34 | | - padding: 20px; |
35 | | - border-radius: 8px; |
36 | | - max-width: 500px; |
37 | | - width: 90%; |
38 | | - max-height: 80vh; |
39 | | - overflow-y: auto; |
40 | | - position: relative; |
41 | | - `; |
| 42 | +如果你遇到了游戏非正常退出问题,欢迎加入报错崩溃交流群咨询解决方案:[Minecraft 报错崩溃交流群 (666546887)](https://qm.qq.com/q/nG0Ti1kJri) |
42 | 43 |
|
43 | | - let timeLeft = 10 ; /* 倒计时秒数 */ |
44 | | - const closeButton = document.createElement('button'); |
45 | | - closeButton.textContent = '我已了解'; |
46 | | - closeButton.style.cssText = ` |
47 | | - display: block; |
48 | | - margin: 15px auto 0; |
49 | | - padding: 8px 20px; |
50 | | - background: #007bff; |
51 | | - color: white; |
52 | | - border: none; |
53 | | - border-radius: 4px; |
54 | | - cursor: not-allowed; |
55 | | - opacity: 0.6; |
56 | | - `; |
57 | | - closeButton.disabled = true; |
| 44 | +![][~/assets/groups/crash] |
58 | 45 |
|
59 | | - modalContent.innerHTML = ` |
60 | | - <h1>⚠️加入群聊前请注意⚠️</h2> |
61 | | - <ul> |
62 | | - <li>游戏非正常退出时,请点击左下角 <img src="/assets/img/docs/groups/button-1.png" style="display: inline; height: 1.5em; vertical-align: middle;" title="导出游戏崩溃日志"> 按钮(不是 <img src="/assets/img/docs/groups/button-2.png" style="display: inline; height: 1.5em; vertical-align: middle;" title="日志"> 按钮),并完整发送生成的报错压缩包</li> |
63 | | - <li>遇到其他问题时,请详细说明情况并提供相关截图,以便我们提供帮助</li> |
64 | | - <li>使用整合包时,请说明具体的整合包名称与版本</li> |
65 | | - <li>请保持耐心,群管理和群友会协助解决问题。严禁辱骂、催促他人</li> |
66 | | - <li>禁止讨论政治、色情、违法、金钱交易等敏感内容,禁止人身攻击、造谣诽谤等行为</li> |
67 | | - <li>禁止刷屏、灌水、挑起争端、发泄情绪等影响群聊秩序的行为</li> |
68 | | - <li>禁止使用第三方插件发送特殊消息;禁止讨论多人游戏作弊工具</li> |
69 | | - <li>本群仅支持 HMCL 启动器相关问题。PCL 启动器用户请加入 978054335 群</li> |
70 | | - <li>请勿重复发送文件,如需重新获取关注,请引用之前发送的消息</li> |
71 | | - <li>因人数限制,已解决问题的用户会被移出群聊。如遇新问题可再次加入</li> |
72 | | - <li>本群仅处理游戏崩溃相关问题,其他话题请到其他群讨论</li> |
73 | | - </ul> |
74 | | - <p style="text-align: center; margin-top: 15px;"> |
75 | | - 请等待 <span id="countdown">${timeLeft}</span> 秒,请认真阅读注意事项 |
76 | | - </p> |
77 | | - `; |
| 46 | +**本群仅处理游戏报错崩溃问题,无关话题请前往其他群聊讨论。** |
78 | 47 |
|
79 | | - modalContent.appendChild(closeButton); |
80 | | - modal.appendChild(modalContent); |
81 | | - document.body.appendChild(modal); |
| 48 | +由于加群人数过多,我们会移出问题已解决的用户。如果你在被移出后遇到了新的问题需要求助,你可以再次加群。 |
82 | 49 |
|
83 | | - /* 倒计时功能 */ |
84 | | - const countdownInterval = setInterval(() => { |
85 | | - timeLeft--; |
86 | | - document.getElementById('countdown').textContent = timeLeft; |
87 | | - if (timeLeft <= 0) { |
88 | | - clearInterval(countdownInterval); |
89 | | - document.getElementById('countdown').parentElement.textContent = '请点击下方按钮关闭'; |
90 | | - closeButton.disabled = false; |
91 | | - closeButton.style.cursor = 'pointer'; |
92 | | - closeButton.style.opacity = '1'; |
93 | | - } |
94 | | - }, 1000); |
| 50 | +<!----{{'>'}} |
| 51 | +<style> |
| 52 | +.initial-content { |
| 53 | + position: relative; |
| 54 | + z-index: 20; |
| 55 | +} |
95 | 56 |
|
96 | | - /* 添加关闭按钮事件 */ |
97 | | - closeButton.addEventListener('click', () => { |
98 | | - if (!closeButton.disabled) { |
99 | | - document.body.removeChild(modal); |
100 | | - } |
101 | | - }); |
| 57 | +#alert-modal { |
| 58 | + position: fixed; |
| 59 | + top: 0; |
| 60 | + left: 0; |
| 61 | + width: 100%; |
| 62 | + height: 100%; |
| 63 | + padding: 1em; |
| 64 | + display: flex; |
| 65 | + background: #00000090; |
| 66 | + justify-content: center; |
| 67 | + align-items: center; |
| 68 | + z-index: 20; |
| 69 | +} |
| 70 | +#alert-modal img { |
| 71 | + display: inline; |
| 72 | + height: 1.5em; |
| 73 | + vertical-align: middle; |
| 74 | +} |
| 75 | +</style> |
| 76 | +<script> |
| 77 | +document.addEventListener("DOMContentLoaded", function () { |
| 78 | + var modal = document.getElementById("alert-modal"); |
| 79 | + var show = localStorage.getItem("crash-support-group.show"); |
| 80 | + if (show === "1") { |
| 81 | + modal.style.display = "none"; |
| 82 | + return; |
| 83 | + } |
| 84 | + var text = document.getElementById("countdown"); |
| 85 | + var btn = document.getElementById("close-btn"); |
| 86 | + var sec = parseInt(text.textContent, 10) || 10; |
| 87 | + var timer = setInterval(function () { |
| 88 | + text.textContent = --sec; |
| 89 | + if (sec <= 0) { |
| 90 | + clearInterval(timer); |
| 91 | + text.parentNode.textContent = "请点击下方按钮关闭"; |
| 92 | + btn.disabled = false; |
| 93 | + } |
| 94 | + }, 1000); |
| 95 | + btn.addEventListener("click", function () { |
| 96 | + localStorage.setItem("crash-support-group.show", "1"); |
| 97 | + modal.style.display = "none"; |
| 98 | + }, false); |
102 | 99 | }); |
103 | 100 | </script> |
| 101 | +
|
| 102 | +<!--{% comment %}--> |
| 103 | +[~/assets/groups/crash]: /assets/img/docs/groups/crash.png |
| 104 | +<!--{% endcomment %}--{{'>'}} |
| 105 | +[~/assets/groups/crash]: {% link /assets/img/docs/groups/crash.png %} |
| 106 | +<!----> |
0 commit comments