Custom Crash Headers
一种为崩溃日志添加自定义表头的方法
CCH 的诞生是因为我注意到,对于整合包等实例,没有任何方法可以添加崩溃日志信息来链接到网站/Discord/其他平台以处理支持请求,或说明在特定崩溃情况下该怎么做。
该模组的基本工作原理是混入 crashreport 类,并将你放在实例 /minecraft 文件夹中的 cch.text 文件里的内容添加进去。如果找不到该文件,它会创建一个模板,但由于在游戏真正加载之前就会解析所有内容,因此在游戏过程中、崩溃发生前无法更改文本。
目前只有一个设置可供调整,那就是:
*>Random
这基本上会将崩溃报告转换为 Minecraft 默认使用的格式。当启用时,文件中的每一行(当然排除以 # 和 *> 开头的行)都会作为一个独立的条目,并有随机几率被显示出来。我添加这个功能是因为觉得很有趣且很酷,也可以用来在崩溃表头中放置内部笑话。
任何错误、问题等请前往 GitHub 反馈。
你也可以通过 Discord 联系我,ID 是 brybry154,嗯……我不知道,我没有 Discord 服务器,抱歉。
总之,玩得开心,-Bry
Custom Crash Headers
a way to add custom headers to your crashlog
CCH was created as i had noticed there was no way to add crashlog information for instances like
modpacks to link to a site/discord/whatever to address support requests or information about what to do in certain crash situations.
the mod basically works by mixining into the crashreport class and adds whatever you put into cch.text in your instance's /minecraft folder. it'll create a template if it cant find the file but you cant really change the text midgame before you crash because it parses everything before the game really loads.
atm there is only one setting to fiddle around with, and thats this one:
*>Random
It basically turns the crash reports into the one minecraft uses. when its turned on, every line in the file (excluding #s and *>s ofc) acts as a seperate entry that will have a random chance of getting displayed. I added this because it was fun and neat, and could be fun for having inside jokes as crash headers
any bugs, questions, etc. should probably go to the github
You could also message me on discord at brybry154 ig, idk i dont really have a discord server sorry.
anyways have fun, -Bry
评论 0
登录后参与评分
还没有评论,来抢沙发吧