Skip to content
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

Any suggested way to get a player bots mod working #32

Open
TonyDMorris opened this issue Nov 2, 2023 · 6 comments
Open

Any suggested way to get a player bots mod working #32

TonyDMorris opened this issue Nov 2, 2023 · 6 comments

Comments

@TonyDMorris
Copy link

Hi I have deployed this to my home k8s cluster but would love to get one of the bot add ons working so I can have bots running around, do you have any suggested way to do this or have you done it in the past?
Thanks for all the work.

@StephenSorriaux
Copy link
Owner

Hello,

It seems player bots are activated when building the server (mangosd) : https://github.com/mangoszero/server/blob/093659b4ba2ca0d90e3460d5752c6e51f7371086/CMakeLists.txt#L46

As the settings is off by default, this means you would need to update the Dockerfile and add the -DPLAYERBOTS=1 command line param to the cmake invokation (https://github.com/StephenSorriaux/mangos-docker/blob/master/mangoszero/mangosd/Dockerfile#L12 for MangosZero) and then rebuild the "server" Docker image and use it in your k8s cluster.

I hope it will build without issues as it has been some time since I have done one. Let me know how it goes.

@TonyDMorris
Copy link
Author

Hi thanks for all your help , I managed to get it up and running by rebuilding all 3 images , the mangos server logs that there are 0 bots online but I presume this is config related , eitherway thanks for your help .
image
I just need to know what to set my realmlist too now haha .

@StephenSorriaux
Copy link
Owner

Nice!

Yes you are almost there, I think you just need to make sure the /server/install/etc/aiplayerbot.conf file is present (you can get the default file here https://github.com/mangoszero/server/blob/master/src/modules/Bots/playerbot/aiplayerbot.conf.dist.in) in your "server" container (should be straightforward with a k8s volume).

FWIW, looking at the Mangos source code it is expecting the aiplayerbot.conf to be in the SYSCONFIGDIR folder (https://github.com/mangoszero/server/blob/master/src/modules/Bots/playerbot/PlayerbotAIConfig.cpp#L36), which is set at build time and actually equals the CONF_INSTALL_DIR set in cmake invokation (https://github.com/StephenSorriaux/mangos-docker/blob/master/mangoszero/mangosd/Dockerfile#L12) so that's how I "guessed" the full path (but I might have overlooked something too). Too bad this was not configurable with a mangosd flag.

Let me know if you got it working, would be helpful if someone got stuck on this too!

@TonyDMorris
Copy link
Author

yea I have the server running and at the home of the container i have a conf dir with
image
these files inside but I think you are right the files are the wrong name and in the wrong location so I will have to make a persistent volume and mout it to the correct config location , atleast I can login to the server and make a character in the time being .

@TonyDMorris
Copy link
Author

TonyDMorris commented Nov 5, 2023

yea nearly there i will have to rebuild the image again as the actual ah bot conf is actually configured to be in a non accessible location , did this even work in the first place ?
image

@StephenSorriaux
Copy link
Owner

I do believe it does, for the AH bot you are supposed to add a /mangosconf/ahbot.conf file to your container (https://github.com/StephenSorriaux/mangos-docker/blob/master/launch_mangosd.sh#L30)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants