优化文章“加入 HMCL 报错崩溃交流群” (#303)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
neveler 2025-10-23 20:50:22 +08:00 committed by GitHub
parent ecac9c9b64
commit 6ea21f8363
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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