首页 > 解决方案 > mod-solo-lfg azerothcore - 错误:没有成员命名

问题描述

我正在尝试安装此模块:https ://github.com/azerothcore/mod-solo-lfg

我在 Debian 10 droplet 上运行服务器。

我将mod放入模块文件夹并做了 git apply lfg-solo.patch

这是我得到的错误:

/home/nori/azerothcore/modules/mod-solo-lfg-master/src/Lfg_Solo.cpp:44:27: error: no member named 'IsSoloLFG' in 'lfg::LFGMgr'
            if (!sLFGMgr->IsSoloLFG())
                 ~~~~~~~  ^

/home/nori/azerothcore/modules/mod-solo-lfg-master/src/Lfg_Solo.cpp:46:22: error: no member named 'ToggleSoloLFG' in 'lfg::LFGMgr'
            sLFGMgr->ToggleSoloLFG();
            ~~~~~~~  ^

2 errors generated.
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/build.make:7792: src/server/scripts/CMakeFiles/scripts.dir/__/__/__/modules/mod                     -solo-lfg-master/src/Lfg_Solo.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1283: src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

https://i.stack.imgur.com/zgKEM.png <- 错误图片

标签: world-of-warcraftazerothcore

解决方案


在 lfg::LFGMgr 中找到的两个成员IsSoloLFG和arent。ToggleSoloLFG

您可以查看服务器源代码以查看补丁是否添加了更新,但似乎没有。

您可以尝试重新应用补丁,也可以手动添加更改。


推荐阅读