ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
193 stars 93 forks source link

大神同胞请教下为啥playerbot在VS里面变量全都找不到定义 #142

Open TzehoMar opened 1 year ago

TzehoMar commented 1 year ago

首先,感谢大神为我们提供这么牛的mod!! 目前我为这个问题折腾了快20个小时了,百度搜类似的问题也找不到合理的解释,明明包含再项目中的代码,转到定义,查看定义全都失效了。

我目前把VS2022社区版,专业版都试过了,都不行 正常不是VS会自动把项目里面包含的文件全部扫一遍嘛,这个到底是什么鬼……

AZ端用的你改过的AZ端,然后加的playerbot,全都git到了合理的目录 G:\azerothcore-wotlk\modules\mod-playerbots

难道是环境问题?

GitHubDesktop boost_1_78_0 OpenSSL-3_0_7 cmake-3.25.1 mysql-8.0.31

请大神帮帮忙啊 如图 https://uiwow.com/thread-15722-1-1.html

TzehoMar commented 1 year ago

大神你好,我把你的代码按内容查找了一遍,你改的AZ端和playerbot里面,确实找不到 PlayerbotsDatabase PlayerbotsDatabasePreparedStatement 有哪里声明这两个类,求解决啊

TzehoMar commented 1 year ago

自己已经解决了!原来是github自己的客户端太辣鸡,必须用git 用命令行来clone项目才行,不然会缺少文件 缺三个文件,分别是 \azerothcore-wotlk\src\server\database\Database\DatabaseEnvFwd.h \azerothcore-wotlk\src\server\database\Database\Implementation\PlayerbotsDatabase.cpp \azerothcore-wotlk\src\server\database\Database\Implementation\PlayerbotsDatabase.h 几把的,github自己的客户端咋能这么垃圾,难怪AZ官方教程都让用git gui来clone项目,妈的蛋,浪费我20个小时。

谢谢大神开发这么好的mod!辛苦了

damangguomoniqi commented 1 year ago

牛逼