ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
193 stars 93 forks source link

Some thoughts about use existing code from other projects #147

Open rogerc66 opened 1 year ago

rogerc66 commented 1 year ago

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?

heyitsbench commented 1 year ago

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

htc16 commented 1 year ago

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

htc16 commented 1 year ago

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.

rogerc66 commented 1 year ago

@htc16 very interesting finding, I will try.

htc16 commented 1 year ago

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

htc16 commented 1 year ago

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

htc16 commented 1 year ago

image image (1) image
![image (3)](https://user-images.githubusercontent.com/58153179/210084408-f9cfc55a-448f-402b-9ed0-b6b158497ae0.png)
(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

rogerc66 commented 1 year ago

looks really cool

Dreathean commented 10 months ago

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