BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: darcek on June 17, 2008, 08:04:52 pm

Title: cant start bot
Post by: darcek on June 17, 2008, 08:04:52 pm
Ive installed this bot like 3 times...im getting same error:cant find phpsockets.dll

i have this file..inside the php dll folder..ive copyed it outside to the bot directory nothing helps....same error..any suggestions?
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:06:39 pm
php_sockets.dll and php_mysql.dll go in a subfolder off of the bot called php_extension

This can be customied by the conf file..
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:08:16 pm
correction, customized by the php.ini file...
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:12:28 pm
copy of sample php.ini file:
Quote
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 0
error_log = ./log/php_errors.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; BeBot will normally use about 10-13megs with default
; modules. Default php memory limit is 8megs.
; Raise default on hosts that permitt it.
memory_limit = 128M

; This is needed for bots that will be running large regexs.
pcre.backtrack_limit=1000000

; Mainly for windows where additional modules are always required
extension_dir = ./php_extension/


; Below are extra extensions to PHP.
; The bot should not need these by default, but extra scripts may.
; (Such as the whois-update PHP script.)

; Windows: Uncomment if needed
extension=php_mysql.dll
extension=php_sockets.dll

; Linux: Uncomment if needed
;extension=mysql.so

; Named pipes are a way of connecting to the SQL
; server without using TCP/IP.  This may or may
; not be faster.  Requires Windows NT or higher.
; May require additional setup in the SQL server.
;enable-named-pipe
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:16:30 pm
really at a lose here...i checked the php.ini file it contains one file with gibrish(for me at least :p) along stuff there..theres a refrence to phpsocks.dll what should i do?change the line?copy part of it to the startbot.php? help.. :(
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:20:29 pm
i see the INI file as one long line..not as nicely as youve just shown...what means uncomment if needed? remove the  ";" ?
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:21:06 pm
well that is my php.ini file for my bot...

my directory structure for the bot is
<<root bot folder>>
/conf
/core
/custom
/extra
/log
/main
/modules
/php_extension
/sources
/themes
/txt


inside the root, I Thave the php.exe php.ini php5ts.dll, libmysql.dll
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:21:31 pm
open the file in wordpad, not notepad...it will keep the formatting
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:26:44 pm
lets see im missing the following folders:

/main
/php_extensions

had an extension folder...changed its name to php_extensions...tryed to start the bot..same results

cant find phpsockets.dll
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:31:14 pm
ok, did you put the phpsockets.dll file in the php_extensions folder?
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:31:29 pm
freaky...i added those 2 lines at the bottom of the ini files to the top where the other commands were...not i get this cool grey bar telling me it cant find phpsockets.dll ..well at least the error got better..lol  :o
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:33:26 pm
no need to put anything anywhere...the extension folder named now php_extensions already had in it this file...its a bunce of dlls..
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:35:35 pm
should be two
php_sockets.dll  (although it sounds like it is phpsockets.dll in your case) and
php_mysql.dll
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:37:49 pm
rofl....doh
seems i named the folder as php_extensions insted of extention...now i got a new error woot!

cant connect to mysql server on LocalHost (10061)
hmm
should the sql installed in same dir as the bot also?
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:39:35 pm
no, but you do need to make sure you have sql up and running...make sure you follow through all the instructions here: http://bebot.link/wiki/installation (http://bebot.link/wiki/installation)
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:41:29 pm
i did all of that alreay...ill try doing the phase 3-5 again mayby will help
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:44:02 pm
you have the mysql.conf file set with the right login information?

Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:45:36 pm
well to be honest i did get a couple of errors when i did the password part..and the grant part..dont know why though..did exactly as was written there..
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 08:46:34 pm
don't forget the trailing semi-colon...
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 08:57:02 pm
trailing semi what? ???

in the commands the password one...theres a sign like this ` which didnt work..i tryed this " insed and it accepted it but on the grant all i got an error ...


Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:00:28 pm
semi-colon ====> ;

I didn't have any problem with the single quote marks...but make sure you close the quote at the end with the same mark

'password     BAD
'password'     GOOD

lol

sql requires all commands to end with a semi-colon;
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:05:12 pm
Weird...this time i followed the caps locks etc etc...everyhting went on QUery ok Query ok...last time i did it i dot like this sign after password -->
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:07:09 pm
ok, if you got query ok, then it should be on..
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:10:03 pm
hmm some new problem:

got this error now: Warning: mysql_connect(): Access denied for user 'darcek@localhost doh... :o
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:12:00 pm
you set up user darcek?
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:13:36 pm
nope user i put like it said : "darcek@localhost"
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:17:19 pm
its also stating in the error using password YES...
 :'(
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:18:48 pm
something did not copy over right when you typed the stuff in...if that is the case...hmmm
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:22:44 pm
i would copy the error if i had a  way to upload images here..but alast...seem im cornered...
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:24:44 pm
hmm..it reads : "user 'darcek@localhost'@'localhost' weird..

like its repeting it...mayby i should have entered only darcek..insted of darcek@localhost....
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:26:42 pm
ok, somewhere that user got a little hosed, but you might be able to salvage it, if you configure you mysql.conf to match that....not sure if it will work, but wouldn't be the first time I've taken a sledghammer to a ten-penny nail..
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:32:04 pm
Seems like this can go on for days doh...
after changing user to darcek insted of darcek@localhost i get the following error :

Client does not support authentication protocol requested by the server ;consider upgrading MySQL client ???
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:35:51 pm
lol..ok, well now you are heading into the realms of areas I am not good at...
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:38:46 pm
i dont want realms i just want to activate this bot doh  ::)
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:41:37 pm
lol..hopefully one of the other guys here can lead you a little better from here...sorry I couldn't help more..but I am not familiar with that problem...
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:45:10 pm
also getting MySQL error (#0) on query:Cannot connect to the database server!

other stuff that might went wrong:
this line: Type GRANT ALL on databasename.* TO username@localhost;

i typed: GRANT ALL on ao.* TO darcek@localhost;
does that seem ok?
Title: Re: cant start bot
Post by: darcek on June 17, 2008, 09:46:45 pm
well time to give up i guss...if anyone else have any insights ide appricate it..and thx clashbot for trying to help me...good night
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:48:32 pm
yeah the grants look ok
Title: Re: cant start bot
Post by: clashbot on June 17, 2008, 09:49:15 pm
as long as AO is the database name... and darcek is the user name...
Title: Re: cant start bot
Post by: Temar on June 17, 2008, 11:41:14 pm
wat os?
Title: Re: cant start bot
Post by: Temar on June 17, 2008, 11:43:59 pm
if windows
try putting the files inside php_extensions at c:/php5/
not the folder just the files inside
Title: Re: cant start bot
Post by: darcek on June 18, 2008, 05:35:05 am
thx for the help but now my problem is not the PHP anymore but mysql...

only thing i can think of is mayby the sql version is too new..so will look for an older version.

the os btw is WIN XP SP3
Title: Re: cant start bot
Post by: darcek on June 18, 2008, 06:19:36 am
Amazing..the more i try the more problems show up.... :o
Ive found an earlier version of MySQL v.4.1.9..earlier one i could find atm...started a fresh installation...when writing the line :
CREATE USER darcek@localhost ; ive got an error telling me :ERROR 1064 (42000):you have an error in your SQL syntax;check the manual that corresponds to your MySQL server version for the right syntax to use.
 ???
any ideas?
Title: Re: cant start bot
Post by: Khalem on June 19, 2008, 11:51:51 am
Seems like this can go on for days doh...
after changing user to darcek insted of darcek@localhost i get the following error :

Client does not support authentication protocol requested by the server ;consider upgrading MySQL client ???

This error is caused by the MySQL client (in this case, your PHP MySQL library) not supporting the newer authentication protocol of the MySQL server.

http://dev.mysql.com/doc/refman/5.0/en/old-client.html

If you are going to downgrade the server, downgrade to 4.1.22, not older.

If you are using the PHP files from BeBot's distribution, using MySQL 5.x should not be an issue at all.
Title: Re: cant start bot
Post by: darcek on June 19, 2008, 02:56:17 pm
Thx for the reply Khal...
ok...so ill go back using te newest SQL...
so i actually should use user only without the @local host?
ill check the thread you posted indept when i reach home..im not giving up yet..and mayby with your help ill be able to pull this out...thx again ;D
Will post again with update after i make all the changes..
Title: Re: cant start bot
Post by: Khalem on June 19, 2008, 03:09:49 pm
@localhost is not to be entered anywhere. It is the server designating which host the user is authenticating from as MySQL access is not only user/password based, but also hostname/ip based. You can safely ignore it as far as the bot goes.
Title: Re: cant start bot
Post by: darcek on June 19, 2008, 09:33:53 pm
WOOT! after applieing the changes in the thread you gave me ... aka used old password the bot has loaded and seem online...unfortunatly had to turn him off to go someplace...when i came back and restarted him..he pulls some modules on then get stuck.... :o..after relay_guild module.
If i log on with the bot toon...it crushes giving this error:
Bot is read error :EOF
then getting message bot is restarting...and..Fatal error:Maximum excution time for 30 seconds exceeded in start bot line 74.....   
 ???   ??? 

any ideas what now is wrong?
Title: Re: cant start bot
Post by: darcek on June 19, 2008, 10:26:41 pm
Weird stuff continues:
when i do startbot it get stuck...if i use startdebugbot it start working!!! ???
Going online with bot toon dosent let me "speak" to bot..it like kicks it out..
if i use startbot and go online i get fatal error i discribed above...
if i use debug mod i get bot disconnected..then not connect again..
if i use the bot while toon isnt online from debug mode some stuf work...i tryed downloading stuff like !homer and !beer...only responded to one of them...i also looking for !ding command and !doh...if anyone has those sure would appricate it..also the !title command...

any insightes on this weridness will be appricated thx im so tired of all this errors :'(
Title: Re: cant start bot
Post by: Temar on June 20, 2008, 04:02:08 am
are you trying to run this from a website?
Title: Re: cant start bot
Post by: darcek on June 20, 2008, 04:50:09 am
Web site? what do you mean? i just have an ordinary PC and im trying to run the bot on it...
Title: Re: cant start bot
Post by: Temar on June 20, 2008, 05:33:45 am
i mean like inside apache, some people try this but they can have similar probs with running useing startbot.php etc
this is usually the case with remote hosting not on own comps
Title: Re: cant start bot
Post by: darcek on June 20, 2008, 09:24:31 am
This is just a normal PC with normal installatin..nothing special here except those errors that keep showing up.. :'(
Title: Re: cant start bot
Post by: darcek on June 25, 2008, 08:44:51 am
Update..bot seems fine now..just a bit buggy at times as u can see from my previous posts..

only one thing i need is modules...is there a place where i can find missing modules for my bot? (like the following missing commands and others:DOH,TITLE,DING,DUEL,Also a special afk that times your afk period..saw in org im in)

Edited to remove the shouting - BlueEagle
Title: Re: cant start bot
Post by: clashbot on June 25, 2008, 08:48:16 am
http://bebot.link/bebot-0-5-support/old-social-mod-request/msg9186/#msg9186 (http://bebot.link/bebot-0-5-support/old-social-mod-request/msg9186/#msg9186)


this has a few you are looking for
Title: Re: cant start bot
Post by: darcek on June 25, 2008, 08:49:35 am
thx for the fast reply...yea i saw that post...if you look closly at the modules i asked for youll see none of those are there....so would like ALSO those...
Title: Re: cant start bot
Post by: clashbot on June 25, 2008, 08:53:40 am
these are about it for the socials, not all of the ign and budah socials have been ported, or if they have, I haven't seen them
Title: Re: cant start bot
Post by: Temar on June 25, 2008, 04:49:43 pm
the latest afk module in 0.5 contains lots like time and logging of messages that trigger afk msg. Should work with 0.4 if you use the 0.5_support module
SimplePortal 2.3.7 © 2008-2024, SimplePortal