ike3 / mangosbot

This is a modification of MaNGOS (Zero, One, R2, Trinity) server which brings a number of bots online and available for any player. Also allows you to use your account/guild characters as bots.
http://ike3.github.io/mangosbot-docs/
GNU General Public License v2.0
182 stars 77 forks source link

Core freeze while generating bots #55

Closed conan513 closed 8 years ago

conan513 commented 8 years ago

I put the characters and world DB on two seperated mysql server and the world db hangs while I clear all bots and waiting for the server to randomize the new bots.

Maybe the AiPlayerbot.RandomBotLoginAtStartup do this, because this setting isn't working yet and I can't set it to zero or false in the source and all bots try to login same time and teleporting to a random place.

ghost commented 8 years ago

Maybe the random bots should have had some kind of sequenced login to avoid blocking the world from loading. Not sure how it should work, maybe there should be some kind of delayed queue system.

conan513 commented 8 years ago

Update: RandomBotLoginAtStartup works fine on linux so again Windows is sux

http://i.imgur.com/bRkJ55b.png 890 bots generated under linux without any issue

conan513 commented 8 years ago

yep it's totally working on linux

http://i.imgur.com/rITX4uc.png 5000~ bots http://take.ms/ynXla

https://www.youtube.com/watch?v=lxPhSn_Lkwc

ghost commented 8 years ago

Hmm. Maybe Windows has a weakness in CPU or process thread handling that Linux don't have, so the code would need some kind of exception or for generating bots and add a FIFO for Windows.

conan513 commented 8 years ago

seems this issue solved