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: AOkex  (Read 7120 times)

0 Members and 1 Guest are viewing this topic.

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #15 on: February 07, 2007, 09:30:06 pm »
I double checked that i had "dl("aokex.so");" in AOChat.php and i didnt..

I added it at the top like it says but it still is not working

Code: [Select]
   * You should have received a copy of the GNU General Public License
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
   * USA
   */
  dl("aokex.so");
  if((float)phpversion() < 4.2)
  {
    die("AOChat class needs PHP version >= 4.2.0 to work.\n");
  }
 
  if(!extension_loaded("sockets"))
  {
    die("AOChat class needs the Sockets extension to work.\n");
  }

  if(!extension_loaded("gmp") &&
     !extension_loaded("bcmath") &&
     !extension_loaded("aokex"))
  {
    die("AOChat class needs either AOkex, GMP or BCMath extension to work.\n");
  }

When dl("aokex.so"); is in AOChat.php i get the following error according to where in the file i place it

Warning: Function registration failed - duplicate name - aokex_login_key in AOChat.php on line ***

The line number is where dl("aokex.so"); is
« Last Edit: February 07, 2007, 09:46:21 pm by Keepbrave »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOkex
« Reply #16 on: February 07, 2007, 10:10:11 pm »
dl("aokex.so"); should already have happened in Main.php. Also you are seeing the message that AOChat.php is using AOKex to generate the login key which means it works and it's using it.

Unfortunately it appears that AOKex is generating an invalid key on your system for some reason :(
Make absolutely certain that you have entered the correct username and password for the account in Bot.conf.

We really need to find a good way to get php based key generation working reliably again across all platforms :(

On a side note, this is a problem that affects ALL php based bots, so we are all in the same boat until we find a way to generate keys reliably again.

Could you post the output from "uname -a" ?
BeBot Founder and Fixer Kingpin

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOkex
« Reply #17 on: February 07, 2007, 10:16:17 pm »
I was told that the bot can be bitchy if you dont use a capital first letter for the username. Mebbe check that you did that, and the passord is case-sensitive, anyway.

Man, it is really slow going for you. But at least there is progress. :)
Luuv  Bot-Keeper of Vengeance ^^*

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #18 on: February 07, 2007, 10:34:40 pm »
[ecu@vps607 ~]$ uname -a
Linux vps607.solidhost.com 2.6.9-022stab078.14-entnosplit #1 SMP Wed Jul 19 14:43:31 MSD 2006 i686 i686 i386 GNU/Linux

And checking username/pass and changing username to start with a Capitol didnt work still getting

[LOGIN] [RESULT] Error

AOChat: not expecting login

thats without dl("aokex.so"); in AOChat.php

i changed the user/pass to a diff account that i use and get exactly the same error
So thats 2 accounts tested on

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOkex
« Reply #19 on: February 07, 2007, 10:50:39 pm »
php is bitchy :(

I really hope php 6 does something to address these large integer issues.

There was a suggested workaround posted at http://aodevs.com/index.php/topic,67.0.html by Icidw, but i haven't had the time to look into it.

I suspect that pack() could very well be the culprit, although i cannot seem to find Auno's post on the subject when the issue first emerged sometime around the release of PHP 5/4.4.x
BeBot Founder and Fixer Kingpin

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOkex
« Reply #20 on: February 07, 2007, 11:02:27 pm »
thats without dl("aokex.so"); in AOChat.php

You will need that line in there. :)

Or... you can try http://www.onedot.nl/AOChat.phps from this post: http://bebot.link/index.php/topic,274.msg2717.html#msg2717. I used that for a while, until I got aokex to run. Which took me quite some time, too. Does not use aokex and I used it with some flavor of PHP5. No idea if it runs with the current bebot, tho. But then again, just trying it won't hurt in your situation.  ;D

EDIT: I just realized that I basically posted the same stuff that Khalem posted, just from a thread in this forum... sry
« Last Edit: February 07, 2007, 11:11:41 pm by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOkex
« Reply #21 on: February 07, 2007, 11:13:57 pm »
Keepbrave, do you have enough control over the system to add user accounts?

It would be nice to have a system where i can reliably reproduce this issue (aokex generating bad keys). I'm aiming to get some testing done this weekend.
If it would be possible i would be grateful :)
BeBot Founder and Fixer Kingpin

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #22 on: February 07, 2007, 11:24:27 pm »
Khalem i am on a vps server
i have the ability to add users not a problem, the only draw back is that my host is security conscious and have told em this

"Due to security reasons user cannot install any component on a server or VPS. You have to use the server wide installation of aokex on your server."

In other words you have to use the root account to install things like aokex but once its installed it works system wide.

If your still interested i can set you up a user account with ftp and small webspace so you can upload the files and have a directadmin account to make things easier, catch me on msn and i will sort you out, or send me a pm on these forums.

Details are in my profile

 

* 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: 375
  • 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