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

Title: Starting Bot
Post 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.
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 04:53:46 am
What is the error u get when trying to start?
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 05:24:05 am
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.
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 05:37:51 am
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
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 06:11:52 am
Sweet...now I'm getting Parse error: syntax error, unextpected '/' in C:\bebot\startbot.php on line 64

Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 06:22:27 am
that line in the file should be /*
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 06:33:58 am
How can I find just that line...this is all jumbled together.
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 06:38:20 am
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)
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 06:49:01 am
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.
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 06:55:27 am
like i said above you may have 2 do same as me and move the extensions to c:\php5\
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 07:06:24 am
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
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 07:20:07 am
move the folder php_extensions from your bot folder to c:\ and rename it to php5
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 07:40:35 am
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)

Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 08:06:04 am
check the user exists and password is correct on your mysql database
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 05:20:18 pm
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
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 06:15:53 pm
Btw wat version/were did you download Bebot?
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 07:07:28 pm
0.5.2 got it from the downloads section.
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 07:15:21 pm
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)
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 07:38:20 pm
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
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 07:48:26 pm
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
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 07:54:45 pm
I deleted the file bot.conf and i still get the same error messages
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 08:10:02 pm
strange cuz the latest StartBot.php should do a console setup if the file doesnt exist
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 08:40:46 pm
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?
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 09:05:44 pm
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
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 09:14:06 pm
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
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 10:29:19 pm
already fixed that error wonce do the same again :p
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 10:39:18 pm
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:
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 10:46:05 pm
you want n for new (shoud say what each letter does)
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 10:48:04 pm
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
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 10:58:33 pm
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
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 11:02:30 pm
some server may not have been updated, what server are you trying to connect to and i will verify that server
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 11:06:01 pm
Trying to connect to Thog...i found it in the list of US servers.
Title: Re: Starting Bot
Post by: Temar on November 23, 2008, 11:45:30 pm
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
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 11:52:47 pm
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.
Title: Re: Starting Bot
Post by: Allisande on November 23, 2008, 11:57:42 pm
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?
Title: Re: Starting Bot
Post by: Temar on November 24, 2008, 02:09:08 am
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
Title: Re: Starting Bot
Post by: Allisande on November 24, 2008, 03:31:05 am
Im having trouble finding that...man im worthless lol.  I'm not seeing an option to look at those addresses through my firewall.
Title: Re: Starting Bot
Post by: Temar on November 24, 2008, 03:55:31 am
i use NOD32
Title: Re: Starting Bot
Post by: Allisande on November 26, 2008, 01:35:27 am
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
Title: Re: Starting Bot
Post by: Temar on November 26, 2008, 02:29:24 am
Updated in SVN
Title: Re: Starting Bot
Post by: Allisande on November 27, 2008, 06:25:25 pm
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.
Title: Re: Starting Bot
Post by: Temar on November 27, 2008, 07:23:08 pm
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
Title: Re: Starting Bot
Post by: Allisande on November 27, 2008, 09:29:14 pm
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.
Title: Re: Starting Bot
Post by: Temar on November 27, 2008, 10:32:26 pm
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
Title: Re: Starting Bot
Post by: Allisande on November 27, 2008, 11:22:53 pm
Ho do I drop the AO table? 
Title: Re: Starting Bot
Post by: Allisande on November 27, 2008, 11:28:57 pm
Ok figured that out...I went into my Aqua Data program and dropped the table whois.  Sorry this is all incredibly new.
Title: Re: Starting Bot
Post by: Allisande on November 28, 2008, 06:37:52 am
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.
Title: Re: Starting Bot
Post by: Temar on November 28, 2008, 07:22:17 am
!member list
will show you all members of the bot
Title: Re: Starting Bot
Post by: Allisande on November 28, 2008, 01:08:21 pm
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.
SimplePortal 2.3.7 © 2008-2024, SimplePortal