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

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

Author Topic: StartBot.bat  (Read 8942 times)

0 Members and 1 Guest are viewing this topic.

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
StartBot.bat
« on: July 30, 2009, 06:28:31 pm »
k, well my Php Loading configuration sais C;\php5\php.ini like some tutorials online say. So i do have php5. I got MYSQL working fine and latest version and BeBot latest version 0.64..

Anyway i put in all my mysql info, and put in bot.conf what ever info i had to put there like guild name, character that will to be the bot for my Age of conan guild and username and password for the game.....and well i right click CMD(Command Prompt) and i go the C;\php5\ path... where BeBot is in, and i type in StartBot.bat..it then sais bot.conf does not exist, what do you want to do? R=rety, N=New, C=Create and Q=Quit.. Bot.conf does exist, its in the BeBot directory which i put all in the php5 directory. So idk why i get error.

I choose N=New. Idk if i should have but yea.

Then it asked me for username, didn't know what to put so i put my AoC login. Then asked for password, typed that in too.
Then Bot name, so i wrote Zues(my alt).
Then asked for Server/dimension, guild name and guild leader. I wrote those in too. After the last one(guild leader) i get an error.

PHP Notice: Undefined Variable: guildbot in C:\php5\Sources\Conf.php on line 129
Is this a Guild Bot? (y/yes or n/no)
Guild Bot: Y
Super admins enter nothing when done.
PHP notice: Undefined Variable: sac in C:\php5\Sources\Conf.php on line 145.

What does this all mean and how do i fix it? I'm not good at coding or very familiar with BeBot, PHP, MYSQL, and noob with CMD but so far got everything going well and got this far with tutorials, but have no idea how to fix line 145. Or line 129. Or if it will even fix my problems..Please help i'm a noob with this, Need help ASAP.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: StartBot.bat
« Reply #1 on: July 30, 2009, 06:30:39 pm »
Those notices can safely be ignored.

The conf file needs to go into conf/ and not the main BeBot directory.
BeBot Founder and Fixer Kingpin

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: StartBot.bat
« Reply #2 on: July 30, 2009, 06:32:37 pm »
Jesus and Mary...that was fast reply.. so just put the Conf in the php5 directory or put in conf folder cause it is in Conf folder...Php5 directory has all the php stuff in it then all the folders from BeBot.


Wait hold on, missed an error on the top, it sais

PHP Notice: undefined property: Conf::$cf in C:\php5\Sources\Conf.php on line 70.. then it sais Bot.conf Does not Exist.
« Last Edit: July 30, 2009, 06:34:45 pm by LeonTheTank »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: StartBot.bat
« Reply #3 on: July 30, 2009, 06:35:40 pm »
If it is in the conf directory, make sure you have it named correctly. Bot.conf (the example conf which serves as a template is named Bot.conf.TEMPLATE)

In any case after having run trough the setup like you did, the bot should start properly.

If all else fails, try starting with StartDebugBot.bat and post the full output.

BeBot Founder and Fixer Kingpin

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: StartBot.bat
« Reply #4 on: July 30, 2009, 06:39:43 pm »
well its having problems with the bot file in Sources folder, i see Bot and its a php file. Do i need to rename it to Bot.conf? Even though the file type is php.

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: StartBot.bat
« Reply #5 on: July 30, 2009, 06:44:49 pm »
Sorry that i'm going to do a second post, but here it sais when i run StartDebugBot.bat like you told me


it sais BEBOT in huge ltters.

Then An Anarchy online chat automation and an age of conan chat autoomation. V.0.6.4.dev-PHP 5.2.10
OS: Windows_NT
your operating system is detected as 32bit.
-=======================================
PHP Warning: d:<>: Unable to load dynamic library './php_sockets.dll' - the specified module could not be founnd. In C:\php5\Main.php on line 114

Loading php_sockets.dll failed. Sockets extention required to run this bot C:\php5> Pause

press any key to continue .  .  .

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: StartBot.bat
« Reply #6 on: July 30, 2009, 06:50:13 pm »
No, that is the core Bot.php file which contains the heart of BeBot.

Your Bot.conf should be located in your case in C:\php\conf\ from what i have gathered from your post.

Alternativel what you could try is to start from scratch. Unpack BeBot somewhere on its own.

Then copy the following files from php into the BeBot directory:
libeay32.dll
php.exe
php5.dll
slleay32.dll

Create a directory called: ext
Copy the following files from the php\ext directory
php_curl.dll
php_gmp.dll
php_mbstring.dll
php_mysql.dll
php_mysqli.dll
php_sockets.dll

Then create a php.ini file in your BeBot directory containing the following
Code: [Select]
;;;;;;;;;;;;;;;;;
; BeBot php.ini ;
;;;;;;;;;;;;;;;;;

memory_limit = 30M

error_reporting = E_ERROR

display_errors = On
log_errors = On
error_log = log/php_errors.log
extension_dir = "ext"

I also suggest you download http://windows.php.net/downloads/releases/php-5.3.0-Win32-VC9-x86.zip and grab the php files you need from there.
BeBot Founder and Fixer Kingpin

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: StartBot.bat
« Reply #7 on: July 30, 2009, 06:56:20 pm »
strange, i couldnt find php.exe and the other 2, only Libeay32.dll.. havent checked the Ext folder in php yet. But those other 2 files i need. And to make a php.ini file i just copy and paste that in to a notepad document and name it php.ini?


ahh..ill check the link thank you. Please don't go afk :)

if anything goes wrong. Promised my guild something awesome and its been a while. hehe.


EDIT:  Are you sure its slleay32 and not ssleay32? And the closest thing to php5.dll i found in both the link you gave me and my own php directory, was php5ts.dll
« Last Edit: July 30, 2009, 07:01:06 pm by LeonTheTank »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: StartBot.bat
« Reply #8 on: July 30, 2009, 07:02:23 pm »
And to make a php.ini file i just copy and paste that in to a notepad document and name it php.ini?
Correct

Quote
EDIT:  Are you sure its slleay32 and not ssleay32?

That was a typo yes. Its ssleay32.dll

Please note that you cannot mix and match files from different releases of php just as a heads up. Grab all the files from the 5.3 zip.

BeBot Founder and Fixer Kingpin

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: StartBot.bat
« Reply #9 on: July 30, 2009, 07:04:35 pm »
And to make a php.ini file i just copy and paste that in to a notepad document and name it php.ini?
Correct

Quote
EDIT:  Are you sure its slleay32 and not ssleay32?

That was a typo yes. Its ssleay32.dll

Please note that you cannot mix and match files from different releases of php just as a heads up. Grab all the files from the 5.3 zip.


Gotcha. I'm only taking stuff from the 5.3 zip. Just can't find php5.dll thats all. And you said to create a directory named Ext. Do i make that directory in C:\  
along where Php5 directory and my new Bebot directory is? And you said to copy files from a folder called ext which is found in php5 directory..my guess is you want me to take those files out of the 5.3 zip as well and drop it in the new ext directory. Or do you want me to put the Ext directory right inside my new Bebot driectory and then drop the ext files in the ext folder in the bebot directory...bleh feels like a tounge twister.

so question is, keep Ext Directory and BeBot directory seperate is basically what im asking.
« Last Edit: July 30, 2009, 07:11:52 pm by LeonTheTank »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: StartBot.bat
« Reply #10 on: July 30, 2009, 07:06:17 pm »
My fault. In the thread safe version of PHP is its indeed named php5ts.dll
BeBot Founder and Fixer Kingpin

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: StartBot.bat
« Reply #11 on: July 30, 2009, 07:14:50 pm »
My fault. In the thread safe version of PHP is its indeed named php5ts.dll

np. now just need to make sure with the above post what you meant about ext dir.

okay so i was guessing you wanted the Ext directory seperate from the new BeBot directory..i did everything you said. Now what?
« Last Edit: July 30, 2009, 07:20:07 pm by LeonTheTank »

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: StartBot.bat
« Reply #12 on: July 30, 2009, 07:31:37 pm »
I did everything you did and changed the path to my new bebot directory. And i tried to run StartDebugBot.bat
Now it just says php_sockets.dll failed, sockets extention required to run this bot. Bot paused.

Did i have to put the new Ext directory inside the new BeBot directory by the way? I didn't do that but just asking..

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: StartBot.bat
« Reply #13 on: July 30, 2009, 07:39:45 pm »
The ext directory needs to be inside the BeBot directory yes.
BeBot Founder and Fixer Kingpin

Offline LeonTheTank

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: StartBot.bat
« Reply #14 on: July 30, 2009, 07:44:25 pm »
okay so when i start the Debugbot, what happens, when the bot starts in game how do i know it starts..i mean besides the CMD prompt..will it automatically tell me what lvl peopel are and stuff when they log on and off? Or do i gotta do some fiddling with the codes to make it so that it does stuff as detailed as that

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 772
  • 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