Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
half-drop opened this issue Oct 7, 2024 · 4 comments
Open
Assignees
Labels
version support Support a certain version

Comments

@half-drop
Copy link

服务端类型

Forge

服务端版本

1.7.10

其他补充

1.7.10 Forge 的模组社区十分庞大,但将1.7.10模组服务器接入 Velocity 又非常困难。因此希望能够添加对 1.7.10 Forge 的支持
@half-drop half-drop added the version support Support a certain version label Oct 7, 2024
@17TheWord
Copy link
Owner

开的是Forge端还是混合端啊?插件方面实现起来会比mod方便。

@half-drop
Copy link
Author

开的是Forge端还是混合端啊?插件方面实现起来会比mod方便。

Forge端。
大型模组包只能用原版forge端开,混合端存在难以察觉的兼容性问题。

@17TheWord
Copy link
Owner

如果你有能力的话可以先pr,最近有点小忙

@17TheWord
Copy link
Owner

由于 1.7.10 过于久远,暂未实现对应的Mod。你可以使用经过小重构的 日志读取程序

  • 支持自定义正则规则,可以匹配加入离开聊天三种信息
  • 支持多种 chat/join/quit 匹配
  • 自定义玩家名、信息索引

配置文件示例

log_path: ".\\logs\\latest.log"

# 以下正则均为原版示例

chat_regex:
  - regex: "(.*)]:(.*)<(.*)> (.*)"
    player_group: 3
    message_group: 4

join_regex:
  - regex: "Server thread/INFO]: (.*) joined the game"
    player_group: 1

quit_regex:
  - regex: "Server thread/INFO]: (.*) left the game"
    player_group: 1

获取

Action: https://github.com/17TheWord/QueQiao/actions/runs/11515656094
下载:https://github.com/17TheWord/QueQiao/actions/runs/11515656094/artifacts/2103325596

使用

启动:java -jar QueQiao-minecraft+origin-0.0.5.jar
连接 mc-pluginnonebot-plugin-mcqq

配置文件

  • ./config/QueQiao/regex.yml
  • ./config/QueQiao/config.yml

已知问题

  • 开启程序后,第一批读到的消息长度为 日志开始第一条符合正则的消息,消息过长不易判断,所以不做处理,后续符合的消息正常发送。
  • 未知……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version support Support a certain version
Projects
None yet
Development

No branches or pull requests

2 participants