ike3 / mangosbot

This is a modification of MaNGOS (Zero, One, R2, Trinity) server which brings a number of bots online and available for any player. Also allows you to use your account/guild characters as bots.
http://ike3.github.io/mangosbot-docs/
GNU General Public License v2.0
183 stars 78 forks source link

Unable to open configuration file ahbot.conf and aiplayerbot.conf #45

Open SoulEater opened 8 years ago

SoulEater commented 8 years ago

Under Linux, conf file can't be load.

Initializing AuctionHouseBot... Initializing AhBot by ike3 AhBot is Disabled. Unable to open configuration file ahbot.conf Initializing AI Playerbot by ike3, based on the original Playerbot by blueboy AI Playerbot is Disabled. Unable to open configuration file aiplayerbot.conf

SoulEater commented 8 years ago

bin and etc folder also has the config file.

drwxr-xr-x 5 root root 4096 Oct 14 11:59 /home/wow/server -rw-r--r-- 1 root root 6015 Oct 14 11:58 /home/wow/server/ahbot.conf -rw-r--r-- 1 root root 5769 Oct 14 11:59 /home/wow/server/aiplayerbot.conf drwxr-xr-x 2 root root 4096 Oct 14 12:46 /home/wow/server/bin -rw-r--r-- 1 root root 6015 Oct 14 12:46 /home/wow/server/bin/ahbot.conf -rw-r--r-- 1 root root 5769 Oct 14 12:46 /home/wow/server/bin/aiplayerbot.conf

drwxr-xr-x 2 root root 4096 Oct 14 10:16 /home/wow/server/etc -rw-r--r-- 1 root root 6015 Oct 14 10:41 /home/wow/server/etc/ahbot.conf -rw-r--r-- 1 root root 6015 Mar 9 2015 /home/wow/server/etc/ahbot.conf.dist.in -rw-r--r-- 1 root root 5769 Oct 14 10:41 /home/wow/server/etc/aiplayerbot.conf -rw-r--r-- 1 root root 5829 Mar 9 2015 /home/wow/server/etc/aiplayerbot.conf.dist.in -rw-r--r-- 1 root root 8975 Oct 13 11:16 /home/wow/server/etc/authserver.conf -rw-r--r-- 1 root root 8975 Mar 9 2015 /home/wow/server/etc/authserver.conf.dist -rw-r--r-- 1 root root 115598 Oct 14 10:41 /home/wow/server/etc/worldserver.conf -rw-r--r-- 1 root root 107053 Mar 9 2015 /home/wow/server/etc/worldserver.conf.dist

Talmeron commented 8 years ago

You need to put them in your bin folder. Or in windows your EXE location....for some dumb reason.

ghost commented 8 years ago

Well, the "dumb" reason is that unless configured otherwise, the binaries authserver + worldserver will look for their respective .conf files in the same folder. On Linux, that usually means in the /bin folder, because that seems to be how the TC source has defined the location of the binaries, but on Windows it does not matter which folder, as long as it is the same folder as authserver.exe and worldserver.exe .

If you want to enable finding them in other folders as well, you will need to modify the source to support additional path settings to be searched in, to find the conf files in other folders than the core folder.

Talmeron commented 8 years ago

It was fixed at one point in LP's commits and then got lost. But either way, I just put them in both spots anymore. Not like the kb's will be missed.

LordPsyan commented 8 years ago

my "fix" didn't really work... if I remember correctly, it worked only on 1 OS (either debian or windows. can't remember) but not on the other. I may combine the aiplayerbot.conf file with worldserver.conf file to resolve this issue. Waiting on more input to see if people would want this.

chakuze commented 8 years ago

I'm on Mac and the worldserver does not find:

AhBot is Disabled. Unable to open configuration file ahbot.conf Initializing AI Playerbot by ike3, based on the original Playerbot by blueboy AI Playerbot is Disabled. Unable to open configuration file aiplayerbot.conf

I put the necessary files -both- in /etc/ and in /bin/ folder; so I've duplicates! I tried to just use one directory and empty the other one as it may have caused trouble but it also didn't work out.

How can I get this running? Please help.

edit. I checked also my access permissions, but read and write is set for everyone for every file in my folder...

ghost commented 8 years ago

Check the TrinityCore wiki guide for how the source is set up under OSX to see if you can find a solution.

chakuze commented 8 years ago

I know how to set-up the source. I've done it a couple times with multiple realm running - the problem is, that the LordPsyan source (with the bots) simply doesn't find the config file and I have no idea where to put it, because I already put it in every place I can imagine...

ghost commented 8 years ago

ping @LordPsyan for comment on that issue. I don't know since it seems to work OK on Windows.

chakuze commented 8 years ago

I took a look at this old issue: https://bitbucket.org/lordpsyan/trinitycore-patches/issues/313/ike3-playerbots-playerbot-system-is Open my configuration file and hardcoded my complete path inside like /Users/username/server-directory/bin/aiplayerbot.conf And now it seems to work. My worldserver is processing the bots right now...

ghost commented 8 years ago

OK, good job. Thanks for checking it out and reporting back. :+1: