QueQiao icon indicating copy to clipboard operation
QueQiao copied to clipboard

[Version Support]添加对 Forge 服务端,1.12.2 版本的支持

Open Blue-Beaker opened this issue 8 months ago • 17 comments

服务端类型

Forge

服务端版本

1.12.2

其他补充

1.12.2仍有不少活跃的大型整合包
1.12.2的Forge mod开发可以使用CleanroomMC的TemplateDevEnv仓库作为模板, 支持Gradle 8.x+IntelliJ IDEA开发环境, 开发体验与现代版本接近

Blue-Beaker avatar May 13 '25 13:05 Blue-Beaker

感谢补充开发方案,会进行尝试

17TheWord avatar May 14 '25 04:05 17TheWord

QueQiao-forge+1.12.2-0.1.1.zip 1.12.2适配较简陋。 玩家属性字段减少,命令、死亡事件未监听。 保留聊天、加入、退出,暂未支持命令。 暂无法拼接消息组件导致无法广播消息。

17TheWord avatar May 16 '25 13:05 17TheWord

另外1.12.2将不能得到积极的更新

17TheWord avatar May 16 '25 13:05 17TheWord

好的 等1.12.2 forge 分支的源码公开后 我可能会fork下来将未实现的功能补上 在1.12.2实现这些对我来说不难.

Blue-Beaker avatar May 16 '25 14:05 Blue-Beaker

仍有以上问题,如果可以的话请fork并作出修复 https://github.com/17TheWord/QueQiao/tree/forge-1.12.2

17TheWord avatar May 16 '25 15:05 17TheWord

广播消息有问题的话,可以考虑用rcon来广播消息了

17TheWord avatar May 16 '25 23:05 17TheWord

应该有办法能搞定,那些事件只要1.12.2有的应该也都能适配上。我已经将我的分支迁移到基于cleanroomMC的模板,可以用gradle8+idea开发了。

2025年5月17日 07:15:46 17TheWord @.***>:

 [图片]*17TheWord* left a comment (17TheWord/QueQiao#46)[https://github.com/17TheWord/QueQiao/issues/46#issuecomment-2887828383]

广播消息有问题的话,可以考虑用rcon来广播消息了

— Reply to this email directly, view it on GitHub[https://github.com/17TheWord/QueQiao/issues/46#issuecomment-2887828383], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AECSTG4SAGO5OVUPGPGNF3D26ZWR7AVCNFSM6AAAAAB5AS4NHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOBXHAZDQMZYGM]. You are receiving this because you authored the thread. [追踪用途的图像][https://github.com/notifications/beacon/AECSTG2QKTNSNQ5CVMVPWSL26ZWR7A5CNFSM6AAAAAB5AS4NHOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVMEDBZ6.gif]

Blue-Beaker avatar May 17 '25 04:05 Blue-Beaker

应该有办法能搞定,那些事件只要1.12.2有的应该也都能适配上。我已经将我的分支迁移到基于cleanroomMC的模板,可以用gradle8+idea开发了。

2025年5月17日 07:15:46 17TheWord @.***>:

 [图片]*17TheWord* left a comment (17TheWord/QueQiao#46)[https://github.com/17TheWord/QueQiao/issues/46#issuecomment-2887828383]

广播消息有问题的话,可以考虑用rcon来广播消息了

— Reply to this email directly, view it on GitHub[https://github.com/17TheWord/QueQiao/issues/46#issuecomment-2887828383], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AECSTG4SAGO5OVUPGPGNF3D26ZWR7AVCNFSM6AAAAAB5AS4NHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOBXHAZDQMZYGM]. You are receiving this because you authored the thread. [追踪用途的图像][https://github.com/notifications/beacon/AECSTG2QKTNSNQ5CVMVPWSL26ZWR7A5CNFSM6AAAAAB5AS4NHOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVMEDBZ6.gif]

麻烦对剩余功能进行补充了

17TheWord avatar May 17 '25 16:05 17TheWord

已在 forge-1.12.2 分支, v0.1.2 版本添加支持

17TheWord avatar May 18 '25 13:05 17TheWord

在适配命令事件的过程中, 发现1.12.2的命令执行事件只能响应已注册的命令: 所以如果要将/l, /login, /register, /reg这些命令转发给api, 需要在服务端注册相应的空白命令. 另外, 是否需要增加一个配置项, 允许服主自行配置额外需要注册的命令,以便将这些命令转发给api?

Blue-Beaker avatar May 19 '25 07:05 Blue-Beaker

我在代码中是对这类命令过滤了,而不是转发

17TheWord avatar May 19 '25 08:05 17TheWord

好,那么需要自定义新增用于转发的命令的功能吗,还是说只监听已有的命令即可

2025年5月19日 16:36:48 17TheWord @.***>:

 [图片]*17TheWord* left a comment (17TheWord/QueQiao#46)[https://github.com/17TheWord/QueQiao/issues/46#issuecomment-2890130236]

我在代码中是对这类命令过滤了,而不是转发

— Reply to this email directly, view it on GitHub[https://github.com/17TheWord/QueQiao/issues/46#issuecomment-2890130236], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AECSTG3O5RE6XM3K2GWFPWD27GJZ3AVCNFSM6AAAAAB5AS4NHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJQGEZTAMRTGY]. You are receiving this because you authored the thread. [追踪用途的图像][https://github.com/notifications/beacon/AECSTG2G3455VO4RGDWGFTD27GJZ3A5CNFSM6AAAAAB5AS4NHOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVMIPRTY.gif]

Blue-Beaker avatar May 19 '25 08:05 Blue-Beaker

不用了吧,一般能转就转,不能转的也就不转了

17TheWord avatar May 19 '25 10:05 17TheWord

另外我已经完成了对forge 1.12.2的支持,你可以自定义多样化的内容

17TheWord avatar May 19 '25 10:05 17TheWord

我已经在我自己的fork适配了一些功能: https://github.com/Blue-Beaker/QueQiao/issues/1, 我打算把希望适配的功能适配完再开pull request

Blue-Beaker avatar May 19 '25 10:05 Blue-Beaker

Action 不得不说,构建时间很长

17TheWord avatar May 22 '25 14:05 17TheWord

已发布0.1.3正式版https://github.com/17TheWord/QueQiao/actions/runs/15189946022

17TheWord avatar May 22 '25 15:05 17TheWord