GithubHelp home page GithubHelp logo

mod-playerbots's People

Contributors

alvinzhu avatar bogir avatar embracefate989 avatar hongyiqin avatar htc16 avatar liyunfan1223 avatar qudzy avatar ultranix avatar whipowill avatar zhengpeiru21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mod-playerbots's Issues

2022/4/22

Compilation succeeded but unable to start server.
image

New BG crash

the bots do not enter the BG and after a while the server goes down

image
image
image
image

Bot stop move bug

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.

Online Players

After a normal player goes online, after he logs out the character it still remains as online in the table.

Compilation error in docker setup

Gave this mod a whirl today, got 2 build errors on Linux:

image

image

Let me know if there's more information I can provide or further steps to assist debugging.

fourth fall

First time
image
image
image

Second time
image
image
image
image

I left the server on and went to sleep and got this Crash log
Screenshot_2022-03-24-07-05-53-989_com server auditor ssh client
Screenshot_2022-03-24-07-06-07-279_com server auditor ssh client
Screenshot_2022-03-24-07-06-24-756_com server auditor ssh client
Screenshot_2022-03-24-07-06-39-332_com server auditor ssh client
Screenshot_2022-03-24-07-06-50-971_com server auditor ssh client
Screenshot_2022-03-24-07-07-00-873_com server auditor ssh client

note: crashes have been slower to happen.

Runtime Exception

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启动后,没有任何人类账户登录,报大量上述错误。

CI builds fail

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.

Segment fault core dumped

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.

start server error

Loading world information...

RealmID: 1
Version DB world: ACDB 335.7-dev
Will clear logs 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/ 里面的各种版本都起不来。请指点

Character spell loop errors

Screen Shot 2022-04-25 at 4 27 52 PM

Does anyone know where those sql could be located in source? I think use REPLACE instead of INSERT might solve those spams.

And one more thing, all bots are running around with talent points unspent, does anyone has the same problem?

bots' stats is wrong

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
WoWScrnShot_040222_234612_cr
WoWScrnShot_040222_234845_cr

error: ‘class Group’ has no member named ‘GetTargetIcon’; did you mean ‘SetTargetIcon’?

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

Complie errors

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

Second Crash

Hello, by cell phone I updated the mod and presented me with a new crash then

Screenshot_2022-03-23-14-25-25-422_com server auditor ssh client

If the photos don't help with the size, as soon as I get home I'll upload a larger photo.

Note: I didn't update the font, is it necessary?

The worldserver boot loops

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 clear logs 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

third crash

image

Note: I still have the outdated font, I just updated the mod.

Runtime Exception

[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 启动之后 报大量上述的重复错误,没有任何人类账号登陆就报错了

Bot idle time optimization

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?

2022/04/06 progress

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.
image

2.There are many high-level playerbots in the birthplace, it is recommended to be distributed in the matching area according to the level.

Some problems in the process of playing the game

  1. The playerbot does not seem to know to turn around, even if it is being attacked.
    2022-03-24_194541
  2. The playerbot seems to rarely attack actively, mostly standing and making different expressions.
    2022-03-24_200726
  3. An error is displayed when talking to the playerbot.
    2022-03-24_200814

compile error

我觉得少了类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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.