BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: Allisande on November 23, 2008, 02:20:43 am
-
Hello everyone...got a couple questions. I have been through these forums trying to figure out what I have done wrong and haven't been able to find what I need. May not be looking hard enough. Anyway...I am getting stuck on Starting the Bot (http://bebot.link/wiki/0.6.x-installation#starting_the_bot). I can't figure out why it won't start. I have Apache, Bebot, MySQL all in the C: and PHP in the Bebot folder. Where do i need to put stuff if this isn't correct.
Help me ObiWan Kenobi...you're my only hope.
-
What is the error u get when trying to start?
-
I type "php start.php" at the C: prompt per the guide and I get 'php' is not recognized as an internal or external command, operable program or batch file.
I'm a complete newb on this. I have php, bebot, and mysql all on the c: drive now as seperate folders. As far as I can see I have all the paths correct.
-
i have the php.exe and other stuff from the php download here extracted into the bot root folder
and its
php StartBot.php <optional:botname>
php package (http://bebot.link/tpmod/?dl=item9)
and my bot tryed to find the extensions at c:/php5/ so i moved them there
-
Sweet...now I'm getting Parse error: syntax error, unextpected '/' in C:\bebot\startbot.php on line 64
-
that line in the file should be /*
-
How can I find just that line...this is all jumbled together.
-
Ok redownload the file(link below) then replace the old 1 with it
Right click and save as .. StartBot.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/StartBot.php?revision=1554)
-
Thank you so much for helping me out. Now I get a repeated message
warning: dl(): Unable to load dynamic library 'c:\php5\php_sockets.dll' - The specified module could bot be found. in c:\bebot\main.php on line 91 Loading php_sockets.dll failed. Socketes extention required to run this bot.
-
like i said above you may have 2 do same as me and move the extensions to c:\php5\
-
I'm missing something...how do I do that? I know I did something with extensions when I was setting things up...for the life of me I can't find it now.
I think I found it in the apache/conf/htdocs/httpd file
I have LoadModule php5_module c:/bebot/php/php5apache2_2.dll
-
move the folder php_extensions from your bot folder to c:\ and rename it to php5
-
Ok doing that gave me
Warning:mysql_connect(): access denied for user 'allisande'@'localhost' (using password: yes) in c:\bebot\sources\mysql.php on line 124
mysql error (# 0) on query: cannot connect to the database server! access denied for user 'allisande'@'localhost' (using password: yes)
-
check the user exists and password is correct on your mysql database
-
Ok got all that fixed and was able to get as far as:
Warning! could not connect to AO chat server (208.82.194.7:7006) No connection could be made because the target machine actively refused it. in c:\bebot\sources\aochat.php on line 197
conn error cant connect to server
Is there somewhere where I can find links to the Clean Codes like you posted for Bot.php? The ones I have are a complete mess and I can't read them well enough to try to figure out what I need to fix.
sorry for the trouble and THANKS very much for the help
-
Btw wat version/were did you download Bebot?
-
0.5.2 got it from the downloads section.
-
thats OLD and that why u cant connect
as alot of AoC server have changed details
Bebot 0.5.5 (http://www.m8y.de/ao/bebot/0.5.5.zip)
-
Ok now im getting the error
require_once(./conf/bot.conf) failed to open stream: no such file or directory in c:\bebot\main.php on line 143
and
fatal error: require_once(): failed opening required 'conf\bot.conf'(include_path=' .c:php5\pear') in c:\bebot\main.php on line 143
-
strange it should use the Bot.conf you have in the /conf/ folder and if doesnt exists it should ask you for the setting in console
try deleteing/renameing the bot.conf file and then run bot
-
I deleted the file bot.conf and i still get the same error messages
-
strange cuz the latest StartBot.php should do a console setup if the file doesnt exist
-
not sure whats going on now...
now it wont even load up...just flashes the cmd prompt
I completely removed all the files from the Bebot folder and replaced them with the new 5.5 download...went through bot.conf and mysql.conf and put the info in there...am i forgetting something?
-
in a Clean 0.5.5 download u can simple run with out putting stuff into a bot.conf, this is done by the bot now useing an interactive setup in console
-
lol...ok so i went and did another clean install...all i adjusted was the mysql.php to go to my db but now when i do a php startbot.php i get the 'php' is not recognized error...but i havent changed anything except bebot so i dont know whats up
-
already fixed that error wonce do the same again :p
-
Sorry..im an idiot. Fixed that...i think
now when i run startbot.php i get
bot.conf does not exist
what do you want to do?
r, n, c, q
select:
-
you want n for new (shoud say what each letter does)
-
it should of said
What do you want to do?
(r=Retry, n=new, c=Change, q=quit)
Select:
and you want n to create a .conf
it will then ask you your acc details etc
-
Now that all that is cleared up and i was jumping for joy...
warning could not connect to the aoc chat server (208.82.194.7:7006): no connection could be made because the target machine actively refused it. in c:\bebot\sources\aochat.php on line 220
i looked in that folder but not sure what i should be looking for
-
some server may not have been updated, what server are you trying to connect to and i will verify that server
-
Trying to connect to Thog...i found it in the list of US servers.
-
bah sorry im unable to Check it the Account i had access to no longer has any empty char slot and he doesnt have a char on the server u want, my account is EU and doesnt have access to US
-
Its ok...we are checking with another guild to see what they are using. They have this same program and theirs is working.
Thank you so very much for your patience with me.
-
Im looking in the source folder bot.php and thog has the same ip as wiccana both with 208.82.194.7 ahh wait the ports are different 7006 and 7007 respecively.
where can i find the IP of my server?
-
what i do is connect with the game and then look at my firewall to see the current connections and get ip/port from it
once you got the Details Post here so i can update bot :D
-
Im having trouble finding that...man im worthless lol. I'm not seeing an option to look at those addresses through my firewall.
-
i use NOD32
-
Ok I've verified with someone who is able to get the bot working on the Thog server and the IP they use is the one currently in the script is correct.
It's working now.
Never mind....here is the correct address.208.82.194.6:7006
-
Updated in SVN
-
Ok the Bot is working wonderful and I truly appreciate your help Temar. But I am having trouble with some of the modules. Particularly the Whois mod. Here is the error I'm getting:
MySQL error (#0) on query: INSERT INTO whois (id, nickname, level, class, craft1, craft2, location, online, updated) VALUES ('100800831', 'Allisande', '46', 'Assassin', '', '', 1227805395, 0, '1227805397') ON DUPLICATE KEY UPDATE id = VALUES(id), level = VALUES(level), class = VALUES(class), craft1 = VALUES(craft1), craft2 = VALUES(craft2), online = VALUES(online), location = VALUES(location), updated = VALUES(updated)
Unknown column 'class' in 'field list'
some of the numbers may be off for the class as I put my own info in there instead of someone elses.
-
looks like ur whois is AO version, AO and AOC Database sharing is NOT recommended
iver run your Bot in dif Database , or if you dont have an AO bot drop the whois Table and restart your bot
-
Ok...so how can I take out the AO part and still use the AoC aspect of the mod? It seems to have all the parts for AoC as well. There is also no way to do a set in the whois mod I have.
-
the bot will only load the AoC version of whois
the Bot determins the game based on the dimension, so your bot which as you say seem to be setup right so it running AoC
but the whois table is already AO version, If you dont have AO bots then drop the table and restart the bot and you will get a new table made for AoC
-
Ho do I drop the AO table?
-
Ok figured that out...I went into my Aqua Data program and dropped the table whois. Sorry this is all incredibly new.
-
Ok...yet another couple questions.
I am trying to find a way to display the Roster. I would like to be able to see something similar to the !online display where it lists the member and any/all alts of that toon. Is this possible? I have searched through code...even tho I don't know what I'm looking for...and searched the forums. So I came here and am asking directly.
Also...when I do !online I get a call to img I'm not sure what that is or how to fix/remove it. Any advice?
Thanks again for all your help.
-
!member list
will show you all members of the bot
-
Excellent. Now is there a way to get a list of Mains? Similar to the Details page? or even similar to the !online page? I have too many damn questions...I'm truly sorry.