#bot botgroup load problem
I've created a full bot group, but they aren't saving. When I use #bot botgroup load <botgroup name> I am summoning just the leader and no one else. Is this a known problem?
|
I am manually entering the bot groups now, I used Uleat's updated load_bots.sql in my newer DB. I don't know if it's just my server or others.
https://github.com/EQEmu/Server/blob.../load_bots.sql |
Do you see any query errors in your logs?
|
No, I created a whole new group and looked at the logs, nothing. Just a bunch of successful bot creations, nothing about the group from what I can tell. Here is the log text, hopefully this is what you were talking about:
[11.11. - 15:55:42] Saving Currency for character ID: 3, done [11.11. - 15:55:42] ZoneDatabase::SaveCharacterBindPoint for character ID: 3 zone_id: 106 instance_id: 0 x: -189.000000 y: 1027.000000 z: 73.000000 heading: 0.000000 ishome: 0 [11.11. - 15:55:42] ZoneDatabase::SaveCharacterBindPoint for character ID: 3 zone_id: 106 instance_id: 0 x: -189.000000 y: 1027.000000 z: 73.000000 heading: 0.000000 ishome: 1 [11.11. - 15:55:42] ZoneDatabase::SaveCharacterData 3, done... Took 0.006000 seconds [11.11. - 15:55:42] Saving Currency for character ID: 3, done [11.11. - 15:55:42] ZoneDatabase::SaveCharacterBindPoint for character ID: 3 zone_id: 106 instance_id: 0 x: -189.000000 y: 1027.000000 z: 73.000000 heading: 0.000000 ishome: 0 [11.11. - 15:55:42] ZoneDatabase::SaveCharacterBindPoint for character ID: 3 zone_id: 106 instance_id: 0 x: -189.000000 y: 1027.000000 z: 73.000000 heading: 0.000000 ishome: 1 [11.11. - 15:55:42] ZoneDatabase::SaveCharacterData 3, done... Took 0.006000 seconds [11.11. - 15:56:13] Succeeded in setting inventory version to EQClientUnderfoot(5) [11.11. - 15:56:13] Character not in a group: Greenmist [11.11. - 15:57:33] Member Disband Request from Greenmist [11.11. - 15:58:19] Saving Currency for character ID: 3, done [11.11. - 15:58:19] ZoneDatabase::SaveCharacterBindPoint for character ID: 3 zone_id: 106 instance_id: 0 x: -189.000000 y: 1027.000000 z: 73.000000 heading: 0.000000 ishome: 0 [11.11. - 15:58:19] ZoneDatabase::SaveCharacterBindPoint for character ID: 3 zone_id: 106 instance_id: 0 x: -189.000000 y: 1027.000000 z: 73.000000 heading: 0.000000 ishome: 1 [11.11. - 15:58:19] ZoneDatabase::SaveCharacterData 3, done... Took 0.005000 seconds [11.11. - 15:58:19] Saving Currency for character ID: 3, done [11.11. - 15:58:19] ZoneDatabase::SaveCharacterBindPoint for character ID: 3 zone_id: 106 instance_id: 0 x: -189.000000 y: 1027.000000 z: 73.000000 heading: 0.000000 ishome: 0 [11.11. - 15:58:19] ZoneDatabase::SaveCharacterBindPoint for character ID: 3 zone_id: 106 instance_id: 0 x: -189.000000 y: 1027.000000 z: 73.000000 heading: 0.000000 ishome: 1 [11.11. - 15:58:19] ZoneDatabase::SaveCharacterData 3, done... Took 0.006000 seconds |
After you assign a bot leader, then add bots to that group..
..are you saving that group as well? https://github.com/EQEmu/Server/blob...bot.cpp#L13944 |
Yeah, on my first build I was able to successfully build botgroups but for some reason it's not working with my new server, etc. Systematically:
1. #bot spawn bot1, bot2 (etc.) 2. #bot botgroup create bot1 3. #bot botgroup add bot2 bot1 4. #bot botgroup save <name> bot1 5. #bot botgroup load <name> Then only the botgroup leader, bot1, spawns alone. |
Ok, I'll look at that tonight..might have to review all of the bot code for table name and collation issues.
Thanks for the feedback! |
No problem Uleat! And thanks for all your help!
|
I noticed this myself then checked code for Bot::SaveBotGroup and noticed botGroupId always returns 0 then the script exits, so it never gets to the part where it saves the groupmembers.
To fix this bug replace: (in latest source as of 1/24/15) Code:
if(botGroupId == 0) Code:
botGroupId = GetBotGroupIdByBotGroupName(botGroupName.c_str(), errorMessage); Now it will properly check the groupid, then save the members, tested and it works. |
Issue Still Present?
Is this still happening? It appears the code is still the same on GitHub
https://github.com/EQEmu/Server/blob.../bot.cpp#L3483 |
All times are GMT -4. The time now is 01:41 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.