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

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

Author Topic: Add User issue  (Read 19271 times)

0 Members and 2 Guests are viewing this topic.

Offline Iheaca

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
Re: Add User issue
« Reply #15 on: September 25, 2008, 01:14:02 pm »
Elesar1 - does this work for you ?

I updated and reboot the bot, but did not have time to fully test the new config.

I just checked my database and there are no entries yet. So either autoadduser does not work or nobody logged in the guilde, which is unlikely.

Checking in the evening.

Offline Elesar1

  • BeBot User
  • **
  • Posts: 47
  • Karma: +0/-0
Re: Add User issue
« Reply #16 on: September 25, 2008, 04:26:30 pm »
reconfiging to 0.5.3 atm.

Currently having an issue with the bot looping the load sequence when it reaches the Items module. Once I get that resolved, I will let you know if this works for the user updates.

EDIT:
Well, I may have done something wrong, but as soon as I said something in guild chat, I got notified that I was now banned from my own bot :P

I just configed the bot as normal, then replaced the contents of 03_Security.php with that of the link that was provided.

EDIT2:
Just made a new DB, fresh install of 0.5.3, replaced the security file again, and again, auto-ban upon talking in guild chat.

Edit3:
Ran the bot in Debug mode. The security module is not being loaded, and no security tables are made in the database.
From game:
Code: [Select]
[2008-09-25 15:32:55] [ERROR] [security] Undefined function is_banned(Elesar)!

[botname]: You are banned from Ebot.
[Guild] [botname]: [2008-09-25 15:33:16] [ERROR] [security] Undefined function cache_mgr(del, maincache, 0)!
From console:
Code: [Select]
[GROUP] [MSG] [~Guild] Elesar: test
[CORE] [ERROR] Module 'security' does not exist or is not loaded.
[ERROR] [security] Undefined function is_banned(Elesar)!
[TELL] [OUT] -> Elesar: You are banned from botname.
[GROUP] [MSG] [~Guild] botname: [2008-09-25 15:32:55] [ERROR] [security] Undefined function is_banned(Elesar)!
« Last Edit: September 25, 2008, 05:46:37 pm by Elesar1 »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Add User issue
« Reply #17 on: September 25, 2008, 09:53:23 pm »
This may take a bit...

I don't know why you get those errors in the security module, but I can't test under AoC as I never got me the game...

I think there was another error in the core/User file. Could be that the heavy reliance on the whois cache is breaking some other modules for AoC too.

Offline IKShadow

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Re: Add User issue
« Reply #18 on: September 25, 2008, 10:17:34 pm »
This may take a bit...

I don't know why you get those errors in the security module, but I can't test under AoC as I never got me the game...

I think there was another error in the core/User file. Could be that the heavy reliance on the whois cache is breaking some other modules for AoC too.

We need to get you one buddy key then :)

p.s. Is bebot hyborian project stopped ?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Add User issue
« Reply #19 on: September 25, 2008, 10:22:32 pm »
The two original AoC authors seem to be on a break...

But we'll do our best to support the bot still ;)

Btw, next broken module: modules/aoc/Autouseradd

Offline IKShadow

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Re: Add User issue
« Reply #20 on: September 25, 2008, 10:27:32 pm »
The two original AoC authors seem to be on a break...

But we'll do our best to support the bot still ;)

Btw, next broken module: modules/aoc/Autouseradd

If you are willing to install the game I will send you buddy key.

Offline Elesar1

  • BeBot User
  • **
  • Posts: 47
  • Karma: +0/-0
Re: Add User issue
« Reply #21 on: September 25, 2008, 10:47:00 pm »
The issue with most people using the game is that Funcom charges like $2.99 US for just the download to install the game to use the buddy keys.

I would offer to host a download of the install if I had more than a DLS line, and it wasn't so massive :(

I will be able to do testing and error logging in the mornings (US-EST) and provide any help I can, though I don't know jack about PHP (yet).

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Add User issue
« Reply #22 on: September 25, 2008, 11:02:27 pm »
Tbh I'm not really interested in playing AoC. And besides, I got a terrible internet connection and an old laptop, not the best setup for AoC ;)

I'll keep trying to fix that problem without an AoC account.

Offline Elesar1

  • BeBot User
  • **
  • Posts: 47
  • Karma: +0/-0
Re: Add User issue
« Reply #23 on: September 26, 2008, 12:11:13 am »
Alreadythere:

If its not too much trouble, could please comment changes you make to fix whatever is broken?

I am trying to learn this stuff a bit, and a little explanation behind changes would help allot.

I have a little experience in scripting, programing, and web development, so I should be able to pick it up decently quick, just need something to explain the reasoning behind changes off of.

Offline Elesar1

  • BeBot User
  • **
  • Posts: 47
  • Karma: +0/-0
Re: Add User issue
« Reply #24 on: September 26, 2008, 06:26:46 am »
Fresh install running the updated Security, User, and Autouseradd. Clean Database.

Still getting auto-ban upon talking in guild after launching the bot. This happens regardless of whether Autouseradd is set to on or off. It just happens faster with Autouseradd set to off.

Attempting to add users to the table from the owner account is not functioning either.

Did not notice any errors on starting the bot. The only ones I get are the same as my last post with them in it.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Add User issue
« Reply #25 on: September 26, 2008, 07:57:18 am »
I'll see what I can do about comments. Though most of the code should read semi-ok, at least for people with some php knowledge. Variables and functions mostly got speaking names.

I think your problem is the security module not loading or not loading correctly. You get banned before any handling by autouser or similar. Why this happens I don't know though.

Do you use the most current Bot.php (the one in the 0.5.3 file)?
Did you copy the new security module to the correct place main/03_Security.php?
Is the security module really loading correctly?
If you got some basic php knowledge you can add some echo output to the constructor of the Security module, making sure it's running. Or add an echo of the module name in the register_module() function of Bot.php.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Add User issue
« Reply #26 on: September 26, 2008, 11:17:50 am »
i have aoc account im just need get into an org or somit for testing

Offline Elesar1

  • BeBot User
  • **
  • Posts: 47
  • Karma: +0/-0
Re: Add User issue
« Reply #27 on: September 26, 2008, 03:56:34 pm »
I can look into the addition of an echo to the security module.

I am running 0.5.3 with the latest security update.
To update the security, I copied all the text, opened my current 03_Security.php, selected all, deleted, and pasted in the new code from the link on the first page of this thread. The I saved as unicode, it asked to replace the file and I said OK.

Temar:
I am an officer of Eldar on Dagoth, so I can send you an invite for testing if you want. I will just need a character name and I can invite whenever I see you online. That is, if you are on the US client. If not, I know there are changes that you could make to be able to connect to the US servers.

UPDATE:
This mornings attempts yielded the following errors:
Code: [Select]
[CORE] [ERROR] Module 'security' does not exist or is not loaded.
[ERROR] [security] Undefined function cache_mgr(del,maincache,0)!
« Last Edit: September 26, 2008, 04:18:57 pm by Elesar1 »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Add User issue
« Reply #28 on: September 26, 2008, 06:01:12 pm »
All your error messages point to the same: it looks like the security module either doesn't load correctly or doesn't register correctly.

And it sounds like you did all ok when replacing security as long as you got the opening and closing tags <?php ?> too (I think you should with your way).

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: Add User issue
« Reply #29 on: September 26, 2008, 11:49:07 pm »
just off the top here.. Does AoC still have the Botname.Module.ini  file?  maybe have him shutdown the bot, delete that file and start the bot back up.   
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

* Who's Online
  • Dot Guests: 405
  • 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