debumori-osc / Another-Mirai-Native

来了,又是一个酷Q兼容项目
20 stars 2 forks source link

貌似无法兼容cpp的cq插件 #21

Closed Alnnt closed 3 weeks ago

Alnnt commented 3 weeks ago

当我尝试把我曾经的一个插件移植到这个版本的mirai-native时出现报错。这是我尝试移植的那个插件的仓库地址:https://github.com/lsjspl/CQDouDiZhu (请注意,需要使用Win32兼容性才能够正常编译)

Hellobaka commented 3 weeks ago

请提供错误日志以便分析

Hellobaka commented 3 weeks ago

image

我加载了编译结果,没有发现异常,请详细描述出现的问题

Alnnt commented 3 weeks ago

image 这是加载这个DLL时候的报错内容,我选择了“忽略本次错误”,随即系统右下角会不断反复弹窗插件模块处理中。 这是随dll同时提供的doudizhu.json文件

{"ret":1,"apiver":"9","name":"doudizhu","version":"1.0.0","version_id":28,"author":"Alnnt","description":"斗地主","event":[{"id":1,"type":21,"name":"私聊消息处理","function":"_eventPrivateMsg","priority":30000},{"id":2,"type":2,"name":"群消息处理","function":"_eventGroupMsg","priority":30000},{"id":3,"type":4,"name":"讨论组消息处理","function":"_eventDiscussMsg","priority":30000},{"id":4,"type":11,"name":"群文件上传事件处理","function":"_eventGroupUpload","priority":30000},{"id":5,"type":101,"name":"群管理变动事件处理","function":"_eventSystem_GroupAdmin","priority":30000},{"id":6,"type":102,"name":"群成员减少事件处理","function":"_eventSystem_GroupMemberDecrease","priority":30000},{"id":7,"type":103,"name":"群成员增加事件处理","function":"_eventSystem_GroupMemberIncrease","priority":30000},{"id":8,"type":104,"name":"群禁言事件处理","function":"_eventSystem_GroupBan","priority":30000},{"id":10,"type":201,"name":"好友已添加事件处理","function":"_eventFriend_Add","priority":30000},{"id":11,"type":301,"name":"好友添加请求处理","function":"_eventRequest_AddFriend","priority":30000},{"id":12,"type":302,"name":"群添加请求处理","function":"_eventRequest_AddGroup","priority":30000},{"id":1001,"type":1001,"name":"酷Q启动事件","priority":30000,"function":"_eventStartup"},{"id":1002,"type":1002,"name":"酷Q关闭事件","priority":30000,"function":"_eventExit"},{"id":1003,"type":1003,"name":"应用已被启用","priority":30000,"function":"_eventEnable"},{"id":1004,"type":1004,"name":"应用将被停用","priority":30000,"function":"_eventDisable"}],"menu":[{"name":"设置","function":"_menuA"},{"name":"关于作者","function":"_menuB"}],"status":[],"auth":[20,30,101,103,106,110,120,121,122,123,124,125,126,127,128,130,131,132,140,150,151,160,161,162,180]}
Hellobaka commented 3 weeks ago

https://github.com/Hellobaka/Another-Mirai-Native2 建议使用这个框架再试试

Alnnt commented 3 weeks ago

感谢,在你提供的新框架中已经没有这个问题了。