-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot questing fixes #416
Bot questing fixes #416
Conversation
This is great. Good job! I haven't tested it yet because I'm working on all the compiler warnings but just that you got so many of them to accept the quest is fantastic. |
There's still so much to do with quests its insane :') |
Awesome stuff! Thank you for your contribution! |
I'm testing it now, will merge your recent commit and reset the bots. They're not talking at all though, not sure why. Anyway, how would you currently enable them to /say what they're doing with quests? Edit: I see, I have to add +debug quest to the playerbots config? |
you need to add them "debug quest" strategy in the cfg yes |
I'm running it now. I also applied my changes to stop them from ever teleporting so I can observe their progress through the levels. |
i've been trying to force them to ONLY do quests but tbh i've no idea itf its even possible |
It has to be. It would be a nice feature to have, although it shouldn't be enabled by default if so because it limits them in other ways. All their actions are pre-determined so telling them to only do quests has to be possible, somehow. |
no not all the time, but for testing so they only make quests |
After letting the server run for a while, this happens. Now the server crashes as soon as the bots log in. I have I'm currently compiling using the same source to gather a list of the warnings, but as soon as it's done I'll compile it again with your changes so I can get a proper crash log. Well, it's still the same source, just cmake arguments were changed so I don't know what it's talking about in that log. |
i havent test bot in groupe and quest sharing This is my settings. I belive the issue is here:
|
Yes but if it's crashing because of it being enabled, as a result of this PR, you have to fix it before it's merged though. |
New commit require core changes to be able to compile |
Can the default conversation language of the robot be controlled through the configuration file? |
Bot default conversation is using the config DBC locale. |
This last commit should be working now without any more crashes. |
Thank you @atidot3. Could you check the warning here liyunfan1223/azerothcore-wotlk#18 (comment) |
I appreciate your effort, but I have to say that these changes involve so much that I can't start a code review. Aside from extensive testing, I can't guarantee they won't break existing functionality. |
No probs, allowing bot to handle quests was indeed going to change alot of thing as the mod/core was missing some implementation and i had to rework some feature as bot questing in group was making few crashes. My dedicated is running this PR for while now and i havent seen ( so far ) any changes in functionnality, been doing BGs and Dungeon / Raid, bot still uses their items move to location randomly kill enemy for grinding etc. The only issue so far i have made is now all bots have full quest log im trying to make a patch to allow them to drop quests that they dont have any interest in anymore |
I'm happy to see new features being added, but as a maintainer it's more important that I make sure existing features don't break or cause additional crashes before I introduce new features. Testing is certainly one method, but testing is not comprehensive, because different people run the server in different ways, and one person's testing cannot cover all situations. We need to "prove" together that it will not introduce new issues. If the scope of the modified code is small and the function is clear, it will be easier to implement, but vice versa is very difficult. |
Yea yea ofc sorry i didnt meant to say like i tested it its working pardon my english ! |
Changes not related to quests should've been their own PR. This is why you don't commit to and PR from the master branch. Separate branches for these changes would've been easier. |
Bot will always try to keep a certain amount of quests in their log grey / green / red but if they have more than 15 quests they will start to cleanup quests based on priority. This action will not be performed automatically if the bot has a master. This should conclude this PR with lots of crash related to group and chatting with bots performing quests action in party. |
A bunch of warnings In file included from /azerothcore/modules/mod-playerbots/src/PlayerbotAI.h:8, |
Edit: chat.h is in core sources i need to update it yes |
Bot should be way more consistent and accurate at doing quests.
Add missing implementation of update kill / update loot on quests.
Add "debug quest" strategy to allow debugging.
Known issue:
Gameobject quest arent functionnal yet
Quest item use on NPC doesnt seem to be implemented