mod-playerbots icon indicating copy to clipboard operation
mod-playerbots copied to clipboard

Some thoughts about use existing code from other projects

Open rogerc66 opened this issue 2 years ago • 9 comments

I tried Npcbot and I think playerbot still the best idea of populate server with live bot and the ultimate fun of the way to go, However, the npc fighting and manage scripts are really well implemented, Is it possible to migrate that part of code to playerbot so that it could save so much time for development?

rogerc66 avatar Dec 30 '22 13:12 rogerc66

Probably not, given one uses creatures and the other uses characters as the vessel of bots.

heyitsbench avatar Dec 30 '22 13:12 heyitsbench

I don't think so either. And I also used npc bot, but I think I prefer playerbot.

htc16 avatar Dec 30 '22 14:12 htc16

Guys, I've been testing some things and I even informed Zhang about it. I noticed that in the playerbot source there are many .csv extensions that are not being created automatically.

I even verified that there is already a download for some types of .csv. Here: https://github.com/celguar/mangosbot-bots/blob/878e02b2b612de8cf032fb69d433bbe2cff6b833/playerbot/aiplayerbot.conf.dist.in.wotlk#L520

AiPlayerbot.AllowedLogFiles = "bot_events.csv,bot_movement.csv,bot_pathfinding.csv,creatures.csv,crop.csv,Deaths.csv,gos.csv,load_map_grid.csv,pathfind_attempt.csv,pathfind_attempt_point.csv,pathfind_result.csv,player_location.csv,scan.csv,strategy.csv,travel_map.csv,travelNodes.csv,travelPaths.csv,unload_grid.csv,unload_obj.csv,vmangoslines.csv,zones.csv"

Another point that I noticed, especially the player_location.csv file, it made the bot much more responsive, to the point that I did quests in a party with them.

image

If you can test that too, that would be interesting.

htc16 avatar Dec 30 '22 14:12 htc16

@htc16 very interesting finding, I will try.

rogerc66 avatar Dec 30 '22 14:12 rogerc66

I already have the answer for these .csv files, I'll share it with you!

htc16 avatar Dec 30 '22 14:12 htc16

I just got the answers from the creator of these files I downloaded.

htc16 avatar Dec 30 '22 15:12 htc16

image image (1) image
image (3)
(2) image (4) image (5)

These .csv files just provide information about what is happening with the bots, how many levels the bots are gaining, how hard the server is working, how many bots are online, etc.

they work like metrics! @ZhengPeiRu21

htc16 avatar Dec 30 '22 15:12 htc16

looks really cool

rogerc66 avatar Dec 30 '22 15:12 rogerc66

@rogerc66 please close this issue so we can clean up the high amount of old issues clogging this, I think Bench's answer still stands that they can't copy over the creature combat scripts for the playerbots. If something new comes up we can open up a new issue but for now this discussion is old and done.

Dreathean avatar Sep 15 '23 11:09 Dreathean