BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Archange on November 12, 2005, 08:24:50 am

Title: Problem with ringbot
Post by: Archange on November 12, 2005, 08:24:50 am
Hello,

I got some problems with Zacix's modules,
When i try to start bot, i get an error about some unexpected variables (T_STRING, T_OLD_FUNCTION, T_FUNCTION, T_VAR) on line 73 of bot.php

Someone know what can be responsible of that ?
Title: Problem with ringbot
Post by: Zacix on November 14, 2005, 11:09:28 am
Did you download my bot.php or are you using bot.php from BeBot? If you use any files from BeBot, you should replace them with the ones from RINGBot (http://www.sourceforge.net/projects/ringbot) site. What is on line 73 in bot.php? You also need to run with PHP5...you can't use the PHP4 version provided with BeBot. Contact me ingame again if you still have problems ^^
Title: Problem with ringbot
Post by: Archange on November 14, 2005, 01:25:16 pm
ok it seem that the problem is that i'm still running bot on PhP4.4...

Note that i'm runnng bot on linux

I changed Start.php to run on PhP5 and am starting bot with /usr/local/php5/bin/php start.php

Problem is that bot still see me as running on PhP4 version

maybe i have made a mistake in my PhP5 compiling but i don't find where...

Anyone have suggestion ?
Title: Problem with ringbot
Post by: Blondengy on November 14, 2005, 02:27:42 pm
if
Code: [Select]
/usr/local/php5/bin/php -v comes up with PHP 5.x then there definatly shouldn't be any version problems... AOChat.php has known issues with php5 though... not sure if Zacix took care of those since I haven't really looked into ringbot (and don't intend to either ;)).
Title: Problem with ringbot
Post by: Zacix on November 14, 2005, 02:49:10 pm
Quote from: "Blondengy"
if
Code: [Select]
/usr/local/php5/bin/php -v comes up with PHP 5.x then there definatly shouldn't be any version problems... AOChat.php has known issues with php5 though... not sure if Zacix took care of those since I haven't really looked into ringbot (and don't intend to either ;)).


I've also heard that AOChat.php has some problems with PHP5, but I never encountered them with the version I use (v5.0.4 I think and AOChat v1.17). Doesn't mean there could be potentially problems though. Also, as mentioned to Archange ingame, use the source which is here (http://cvs.sourceforge.net/viewcvs.py/ringbot/RINGBot/) and not the one posted on forums ^^
Title: Problem with ringbot
Post by: Evereane on December 02, 2005, 07:36:04 pm
Just to update people if they encouter a similar problem. AOChat.php does indeed have issues with PHP 5.0.5. THis is specific to a way PHP 5.0.5 handles function calls.

Basically, you will need to find any location of unpack(...) and change it to $unpack=unpack(...).

Maybe not the best way... or cleanest, but it works.

This may have been changed in 1.19 of AOChat.php, but this is what I needed to edit in order to get it to run with PHP 5.0.5.
Title: Problem with ringbot
Post by: Akarah on December 02, 2005, 08:03:02 pm
as a side note, 5.1.1 appears to be the latest php5.

5.0.x isn't even on the downloads page anymore.. ;p

http://www.php.net/downloads.php
SimplePortal 2.3.7 © 2008-2024, SimplePortal