zhengpeiru21 / mod-playerbots Goto Github PK
View Code? Open in Web Editor NEWAzerothCore Playerbots Module
License: MIT License
AzerothCore Playerbots Module
License: MIT License
It can be ported easier
https://github.com/mthsena/trinitycore_scripts/tree/master/scripts/C%2B%2B/NPC_Bots
Loading world information...
RealmID: 1
Version DB world: ACDB 335.7-dev
Will clearlogs
table of entries older than 1209600 seconds every 10 minutes.
Using DataDir /home/wow/azeroth-server/data/
WORLD: VMap support included. LineOfSight:true, getHeight:true, indoorCheck:true PetLOS:true
VMap file '/home/wow/azeroth-server/data/vmaps/000.vmtree' couldn't be loaded
This is because the version of the VMap file and the version of this module are different, please re-extract the maps with the tools compiled with this module.
启动worldserver报错 我尝试使用了https://github.com/wowgaming/client-data/releases/ 里面的各种版本都起不来。请指点
After learning the skill. using the spells command will crash directly, and using the summon command will crash directly when teleporting to the dungeon.
one interesting thing observed, sometimes after a decent combat, bot low on health, they will recover themself by consuming food, after fully recovered, they will standing still forever, although they still say their lines to respond your commands, but they wont move at all.
I left my server running for over 26 hrs and it crashed with Segment fault, Core dumped
error.
I found there is no error log in server directory, I guess it might be an outcome of out of memory of my virtual machine since Playerbots took ton of memory to running good, although I have assigned 4G of memory plus 5G of swap, but the performance still not rubust enough to support 100 bots simultaneously. anyone else have any idea to optimize? or I have to upgrade hardware to assign more memory to virtual machine.
Thank you.
the latest commit with the latest azerothcore playerbot branch was built successfully but the worldserver ended up boot loops
DBerrors
[1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'acore_world.c.map' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Unhandled MySQL errno 1055. Unexpected behaviour possible.
[1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'acore_world.c.map' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Unhandled MySQL errno 1055. Unexpected behaviour possible.
[1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'acore_world.c.map' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Unhandled MySQL errno 1055. Unexpected behaviour possible.
[1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'acore_world.c.map' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Unhandled MySQL errno 1055. Unexpected behaviour possible.
[1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'acore_world.c.map' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Unhandled MySQL errno 1055. Unexpected behaviour possible.
[1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'acore_world.c.map' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Unhandled MySQL errno 1055. Unexpected behaviour possible.
[1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'acore_world.c.map' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Unhandled MySQL errno 1055. Unexpected behaviour possible.
Server logs
AzerothCore rev. 68d3ec7d77ac 2022-04-04 07:53:51 -0600 (Playerbot branch) (Unix, Release, Static) (worldserver-daemon)
to stop.
█████╗ ███████╗███████╗██████╗ ██████╗ ████████╗██╗ ██╗
██╔══██╗╚══███╔╝██╔════╝██╔══██╗██╔═══██╗╚══██╔══╝██║ ██║
███████║ ███╔╝ █████╗ ██████╔╝██║ ██║ ██║ ███████║
██╔══██║ ███╔╝ ██╔══╝ ██╔══██╗██║ ██║ ██║ ██╔══██║
██║ ██║███████╗███████╗██║ ██║╚██████╔╝ ██║ ██║ ██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
██████╗ ██████╗ ██████╗ ███████╗
██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║ ██║ ██║██████╔╝█████╗
██║ ██║ ██║██╔══██╗██╔══╝
╚██████╗╚██████╔╝██║ ██║███████╗
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
AzerothCore 3.3.5a - www.azerothcore.org
Using configuration file /root/azerothcore-wotlk/env/dist/etc/worldserver.conf
Using SSL version: OpenSSL 1.1.1f 31 Mar 2020 (library: OpenSSL 1.1.1f 31 Mar 2020)
Using Boost version: 1.71.0
Process priority class set to -15
Loading modules configuration...
Using modules configuration:
mod_ahbot.conf
character_tools.conf.dist
mod_congratsonlevel.conf
mod_customlogin.conf
npc_allmounts.conf
playerbots.conf
reward_system.conf
WorldChat.conf
Initializing Scripts...
Loading C++ scripts
Opening DatabasePool 'acore_auth'. Asynchronous connections: 1, synchronous connections: 1.
DatabasePool 'acore_auth' opened successfully. 2 total connections running.
Opening DatabasePool 'acore_characters'. Asynchronous connections: 1, synchronous connections: 2.
DatabasePool 'acore_characters' opened successfully. 3 total connections running.
Opening DatabasePool 'acore_world'. Asynchronous connections: 1, synchronous connections: 1.
DatabasePool 'acore_world' opened successfully. 2 total connections running.
Updating Auth database...
Auth database is up-to-date! Containing 1 new and 28 archived updates.
Updating Character database...
Character database is up-to-date! Containing 4 new and 48 archived updates.
Updating World database...
World database is up-to-date! Containing 275 new and 2512 archived updates.
Opening DatabasePool 'acore_playerbots'. Asynchronous connections: 1, synchronous connections: 1.
DatabasePool 'acore_playerbots' opened successfully. 2 total connections running.
Updating Playerbots database...
DBUpdater: Given update include directory "/root/azerothcore-wotlk/modules/mod-playerbots/sql/playerbots/archive" does not exist, skipped!
Playerbots database is up-to-date! Containing 0 new and 0 archived updates.
Loading world information...
RealmID: 1
Version DB world: ACDB 335.6-dev
Will clearlogs
table of entries older than 1209600 seconds every 10 minutes.
Using DataDir ./
WORLD: VMap support included. LineOfSight:true, getHeight:true, indoorCheck:true PetLOS:true
Loading acore strings...
Loaded 1151 acore strings in 27 ms
Initialize data stores...
Initialized 107 data stores in 1251 ms
Using enUS DBC Locale as default. All available DBC locales: enUS
Loading Cinematic Camera files
Loaded 14 cinematic waypoint sets in 3 ms
Loading IP Location Database...
Loading Game Graveyard...
Loaded 685 graveyard in 5 ms
Initializing PlayerDump tables...
Initialized tables for PlayerDump in 167 ms.
Loading SpellInfo store...
Loaded spell custom attributes in 90 ms
Loading SpellInfo data corrections...
Loading spell dbc data corrections in 5 ms
Loading Spell Rank Data...
Loaded 3502 spell rank records in 32 ms
Loading Spell Specific And Aura State...
Loaded spell specific and aura state in 4 ms
Loading SkillLineAbilityMultiMap Data...
Loaded 10219 SkillLineAbility MultiMap Data in 1 ms
Loading SpellInfo custom attributes...
Loaded 255 spell custom attributes from DB in 21 ms
Loaded SpellInfo custom attributes in 33 ms
Loading GameObject models...
Loaded 2324 GameObject models in 2 ms
Loading Script Names...
Loaded 2741 ScriptNames in 2337 ms
Loading Instance Template...
Loaded 85 instance templates in 2 ms
Load Character Cache...
Loaded character infos for 2048 characters in 7 ms
Loading instances...
Loaded instances and binds in 30 ms
Loading Broadcast texts...
Loaded 73039 Broadcast texts in 788 ms
我觉得少了类PlayerbotsDatabase 能麻烦上传一下么?
I think without the class playerbotsdatabase, can you please upload it?
/home/bladnir/azerothcore/modules/mod-playerbots-AzerothCore/src/GuildTaskMgr.cpp:504:5: fatal error: unknown type name 'PlayerbotsDatabasePreparedStatement'; did you mean 'CharacterDatabasePreparedStatement'?
PlayerbotsDatabasePreparedStatement* stmt = PlayerbotsDatabase.GetPreparedStatement(PLAYERBOTS_SEL_GUILD_TASKS_BY_VALUE);
Also looks like a certain command ended up crashing my worldserver, don't know which one though as I didn't notice until it was too late.
Crashes.zip
lots of errors durning compile of mod
After a normal player goes online, after he logs out the character it still remains as online in the table.
In file included from /acsource/modules/mod-playerbots/src/strategy/Action.h:11,
from /acsource/modules/mod-playerbots/src/strategy/Strategy.h:8,
from /acsource/modules/mod-playerbots/src/strategy/AiObjectContext.h:11,
from /acsource/modules/mod-playerbots/src/Playerbots.h:8,
from /acsource/modules/mod-playerbots/src/ChatFilter.cpp:7:
/acsource/modules/mod-playerbots/src/strategy/Value.h: In member function ‘T CalculatedValue::Get()’:
/acsource/modules/mod-playerbots/src/strategy/Value.h:58:142: warning: invalid use of incomplete type ‘class AiObjectContext’
58 | tart(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr);
| ^~
In file included from /acsource/modules/mod-playerbots/src/strategy/Action.h:8,
from /acsource/modules/mod-playerbots/src/strategy/Strategy.h:8,
from /acsource/modules/mod-playerbots/src/strategy/AiObjectContext.h:11,
from /acsource/modules/mod-playerbots/src/Playerbots.h:8,
from /acsource/modules/mod-playerbots/src/ChatFilter.cpp:7:
/acsource/modules/mod-playerbots/src/strategy/AiObject.h:11:7: note: forward declaration of ‘class AiObjectContext’
11 | class AiObjectContext;
| ^~~~~~~~~~~~~~~
/acsource/modules/mod-playerbots/src/ChatFilter.cpp: In member function ‘virtual const string RtiChatFilter::Filter(std::string&)’:
/acsource/modules/mod-playerbots/src/ChatFilter.cpp:166:47: error: ‘class Group’ has no member named ‘GetTargetIcon’; did you mean ‘SetTargetIcon’?
166 | ObjectGuid rtiTarget = group->GetTargetIcon(RtiTargetValue::GetRtiIndex(rti.substr(1)));
| ^~~~~~~~~~~~~
| SetTargetIcon
make[2]: *** [modules/CMakeFiles/modules.dir/build.make:934: modules/CMakeFiles/modules.dir/mod-playerbots/src/ChatFilter.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1237: modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
HI, @ZhengPeiRu21 , thanks for your hard work.
This is the result of today's compilation: Compilation failed
Hey, you can easily add this repository to the AzerothCore catalogue, adding the github topic "azerothcore-module".
The worldserver starts with all these errors
Rhodope: items could not be enchanted, wrong item type equipped
Rhodope: items could not be enchanted, wrong item type equipped
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No leaders for random guilds available
No random guilds available
No captains for random arena teams available
No captains for random arena teams available
No captains for random arena teams available
No captains for random arena teams available
A 80 lv paladin with full wlk items only has 6xxx hp and no talent point at all
If it's not a problem, I'll open an issue in your mod, so the message doesn't get lost in the other topic azerothcore/azerothcore-wotlk#2159
Successfully compiled and entered the game.
The following problems occur:
1.The worldserver process is terminated within a very short time (5min) after it is started.
2.There are many high-level playerbots in the birthplace, it is recommended to be distributed in the matching area according to the level.
[1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'acore_world.c.map' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Unhandled MySQL errno 1055. Unexpected behaviour possible.
worldserver 启动之后 报大量上述的重复错误,没有任何人类账号登陆就报错了
When I add a bot and setup a group, I relize that bots do things with a very long interval, so, they are just standing still and idle for may be 10 sec to 20 sec before carry out next move or instructions.
Is there any setting to make them more pro-active?
Below is a snippet of where the latest workflow (at the time of writing) fails.
[ 73%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/World/world_script_loader.cpp.o
[ 74%] Linking CXX static library libscripts.a
[ 74%] Built target scripts
make: *** [Makefile:146: all] Error 2
Upon closer inspection, it seems like every workflow has failed on the build step.
I encountered this exact issue while attempting to setup a compilation environment using Docker. I ended up switching to developing on Windows where this error does not occur.
lastest playerbot azerothcore branch and mod-playerbots
win11 wsl ubuntu 20.04
azerothcore-wotlk/modules/mod-playerbots/src/GuildTaskMgr.cpp:504:5: fatal error: unkn own type name 'PlayerbotsDatabasePreparedStatement'; did you mean 'CharacterDatabasePrepared Statement'?
PlayerbotsDatabasePreparedStatement* stmt = PlayerbotsDatabase.GetPreparedStatement(PLAY ERBOTS_SEL_GUILD_TASKS_BY_VALUE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CharacterDatabasePreparedStatement
/azerothcore-wotlk/modules/mod-playerbots/src/PlayerbotDbStore.cpp:14:5: fatal error: u nknown type name 'PlayerbotsDatabasePreparedStatement'; did you mean 'CharacterDatabasePrepa redStatement'?
PlayerbotsDatabasePreparedStatement* stmt = PlayerbotsDatabase.GetPreparedStatement(PLAY ERBOTS_SEL_DB_STORE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CharacterDatabasePreparedStatement
[ 74%] Linking CXX static library libscripts.a
[ 74%] Built target scripts
make: *** [Makefile:130: all] Error 2
real 9m54.473s
user 45m47.109s
sys 27m10.750s
Player::_LoadInventory: player (GUID Full: 0x0000000000000001 Type: Player Low: 1, name: 'Rosa') has item (GUID Full: 0x4000000000018a1d Type: Item Low: 100893, entry: 38480) which can't be loaded into inventory (Bag GUID: 0, slot: 16) by reason 20. Item will be sent by mail.
SQL(p): INSERT INTO character_spell (guid, spell, specMask) VALUES (109, 697, 255)
[ERROR]: [1062] Duplicate entry '109-697' for key 'character_spell.PRIMARY'
Clara: items could not be enchanted, wrong item type equipped
Clara: items could not be enchanted, wrong item type equipped
SQL(p): INSERT INTO character_spell (guid, spell, specMask) VALUES (109, 32244, 255)
[ERROR]: [1062] Duplicate entry '109-32244' for key 'character_spell.PRIMARY'
worldserver启动后,没有任何人类账户登录,报大量上述错误。
Which version of Azeroth Core-Wotlk is required for this model Can be used normally, can you provide a core link.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.