collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Starting Bot  (Read 24572 times)

0 Members and 1 Guest are viewing this topic.

Offline Allisande

  • BeBot User
  • **
  • Posts: 68
  • Karma: +0/-0
Starting Bot
« 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.  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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Starting Bot
« Reply #1 on: November 23, 2008, 04:53:46 am »
What is the error u get when trying to start?

Offline Allisande

  • BeBot User
  • **
  • Posts: 68
  • Karma: +0/-0
Re: Starting Bot
« Reply #2 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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Starting Bot
« Reply #3 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

and my bot tryed to find the extensions at c:/php5/ so i moved them there

Offline Allisande

  • BeBot User
  • **
  • Posts: 68
  • Karma: +0/-0
Re: Starting Bot
« Reply #4 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


Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Starting Bot
« Reply #5 on: November 23, 2008, 06:22:27 am »
that line in the file should be /*

Offline Allisande

  • BeBot User
  • **
  • Posts: 68
  • Karma: +0/-0
Re: Starting Bot
« Reply #6 on: November 23, 2008, 06:33:58 am »
How can I find just that line...this is all jumbled together.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Starting Bot
« Reply #7 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

Offline Allisande

  • BeBot User
  • **
  • Posts: 68
  • Karma: +0/-0
Re: Starting Bot
« Reply #8 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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Starting Bot
« Reply #9 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\

Offline Allisande

  • BeBot User
  • **
  • Posts: 68
  • Karma: +0/-0
Re: Starting Bot
« Reply #10 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
« Last Edit: November 23, 2008, 07:13:49 am by Allisande »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Starting Bot
« Reply #11 on: November 23, 2008, 07:20:07 am »
move the folder php_extensions from your bot folder to c:\ and rename it to php5

Offline Allisande

  • BeBot User
  • **
  • Posts: 68
  • Karma: +0/-0
Re: Starting Bot
« Reply #12 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)


Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Starting Bot
« Reply #13 on: November 23, 2008, 08:06:04 am »
check the user exists and password is correct on your mysql database

Offline Allisande

  • BeBot User
  • **
  • Posts: 68
  • Karma: +0/-0
Re: Starting Bot
« Reply #14 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
« Last Edit: November 23, 2008, 05:25:12 pm by Allisande »

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 350
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal