L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 01:45:18 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: Members Issues
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: Members Issues  (Read 1102 times)
0 Members and 1 Guest are viewing this topic.
Blastreturns
Freshman
*
Offline Offline

Posts: 11


Members Issues
« on: March 05, 2007, 09:12:42 AM »

Hello all!

i have just downloaded, installed and configured BeBot and i confirm my positive feelings at using this bot: started@first also with a noobest like me in php and mysql Cheesy
Well, there's just a problem: where're my members!!!!!
The bot add no members of the guild at start then everyone need to !join pgrp or invited, still we must speak always in pgrp and non in guildchat.
The top is:
Added (blank) Members, (blank) Removed. It seems to not finding us..the members of the org.
What could be this problem?
Does this cause we are in Anarchism governingform? (i read in php files it searches members but we are all anarchist....)

Tx,
Blast
Logged
Ozball
Freshman
*
Offline Offline

Gender: Male
Posts: 15


Re: Members Issues
« Reply #1 on: March 05, 2007, 09:16:26 AM »

Make sure you have the right Guild ID in the bot.conf file. Thats as much as my limited knowledge can suggest atm though.
Logged

Slynthia - General and Botmaster of Terminal Velocity - RK1
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Members Issues
« Reply #2 on: March 05, 2007, 09:25:48 AM »

Governing form should not matter, afaik. See that it is set to guildbot. Make sure you got the right guild-ID, watch for any error messages when starting and running the bot.
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: Members Issues
« Reply #3 on: March 05, 2007, 10:04:27 AM »

make sure that your org name  ($guild_name = "<org name>"Wink is exactly the way it is spelled for your org also along with the guild ID.. either one of these will stop it from finding your org..

Code:
  $guildbot = true;                // false if its a raidbot.
  $guild_name = "";                // only if its a guildbot.
  $guild_id = 00000001;            // only if its a guildbot.
Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: Members Issues
« Reply #4 on: March 05, 2007, 10:35:59 AM »

What you can do to help you debug this malfunction is to open your core/Roster.php file and find the code piece

Code:
function parse_org($dim, $id)
{
// Get the guild roster
$org = $this -> bot -> get_site("http://community.anarchy-online.com/org/stats/d/$dim/name/$id/basicstats.xml");
$faction = $this -> bot -> xmlparse($org["content"], "side");

it should be located around line 452 in the current SVN (which I am assuming you use)

change this to read:

Code:
function parse_org($dim, $id)
{
// Get the guild roster
$org = $this -> bot -> get_site("http://community.anarchy-online.com/org/stats/d/$dim/name/$id/basicstats.xml");
var_dump("http://community.anarchy-online.com/org/stats/d/$dim/name/$id/basicstats.xml");
$faction = $this -> bot -> xmlparse($org["content"], "side");

(ie you add the line var_dump("http://community.anarchy-online.com/org/stats/d/$dim/name/$id/basicstats.xml"); where indicated)

This should give you a line in the console when the bot starts updateing the roster stating where it is attempting to open the xml file. Open this URL in your browser and then restart your bot.

This does two things:
A) If the url doesn't give you the XML in your browser your guild_id isn't set right. Re-do that step from INSTALL_GUILDBOT.txt

B) It will make anarchy-online.com cache the xml and that should prevent it from timing out when the bot requests it. That is the workaround I used to get the memberlist when anarchy-online.com was busy.

This would be a bigger problem for bigger guilds as it would take anarchy-online.com longer to generate the needed XML as there are more members.

I hope this helps.
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Blastreturns
Freshman
*
Offline Offline

Posts: 11


Re: Members Issues
« Reply #5 on: March 06, 2007, 06:30:21 AM »

Hello,

very sorry, really the guild id was incorrect. fixed.
Now the members are loaded at startup with NO errors and bot log me and tracks log off too.
Now seems to be some problems for relaying chats; telling bot !relay works only the first time writte, then bot start to ignore command.
Actually, wrinting !online in guild chat doesn't affect anything, like the guildchat command !guildrealy. So, writing command in guildchat don't work at all. Then, seems that guildchat has no commands to do  Undecided

some help at this?

Tx for everyone for quickly response too.

blast
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: Members Issues
« Reply #6 on: March 06, 2007, 09:37:45 AM »

Are you using 0.3.3 or 0.3.svn?
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Blastreturns
Freshman
*
Offline Offline

Posts: 11


Re: Members Issues
« Reply #7 on: March 06, 2007, 10:11:55 AM »

Tx Bluee!

i've installed 0.2.11
and
php 5.2.1



Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: Members Issues
« Reply #8 on: March 06, 2007, 10:20:41 AM »

Hmm.. I cannot see that any change has been made to the relevant modules for 6 months. Are you relaying between two guilds or relaying to private channel?

Note that !relay is set to 0 on restarts of bot.
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Blastreturns
Freshman
*
Offline Offline

Posts: 11


Re: Members Issues
« Reply #9 on: March 06, 2007, 10:32:47 AM »

Well,

i want to relay the Guilnamed chat to the mybot, as to be able to run botcommands from Guildnamedchat, and not only when i talk in BotPrivateGroup.
talking in privategroup all seems to work, but starting !online by Guildnamed public groups not anymore.

Then, is possible to set 1 for !relay? where i can find the line?

Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: Members Issues
« Reply #10 on: March 06, 2007, 04:48:50 PM »

I see now that the code for the 0.2-branch has been modified a bit. I'm quite a new contributor to BeBot so I am not quite sure if this fix will work:

Open your file modules/Relay_GUILD.php and find the constructor. It should look like

Code:
    /*
    Constructor:
    Hands over a referance to the "Bot" class.
    */
    function Relay (&$bot)
    {
        $this -> bot = &$bot;
    }

and change it to read:

Code:
    /*
    Constructor:
    Hands over a referance to the "Bot" class.
    */
    function Relay (&$bot)
    {
        $this -> bot = &$bot;
        $this -> start_relay($this -> bot -> botname);
    }

This will call the start_relay() function with the bot as the executor of the command and should as far as I can tell start the bot by default.

If you get an error with this fix change $this -> bot -> botname to "Admin"

I hope this fix works. Note that I have not tried this myself, nor have I experienced this problem with BeBot the brief time I had 0.2.11 running.


- Blueeagle
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Blastreturns
Freshman
*
Offline Offline

Posts: 11


Re: Members Issues
« Reply #11 on: March 07, 2007, 05:26:22 AM »

Ok
i'll try with that.

The problem is really that i am not in guildchat, but only in privategroups.
So, unique commands available i can execute are the /tell and prgrp;
Any other "Commands usable in Guild Chat:" doesn't work at all Sad

Really dunno if it's relay problem; i've installed the Reworked (cleaned) modules/Relay_GUILD.php
but suddenly toggled off cause Error of Missing Object.

The !relay seems to be UP (on) at restart.

blast
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Members Issues
« Reply #12 on: March 07, 2007, 07:23:52 AM »

The reworked relay module is designed for 0.3.x so I'm not surprised you have problems.

You can try the relay_guild here: http://bebot.shadow-realm.org/index.php/topic,648.0.html for 0.2.x, this has a switchable option for relay on startup, make sure you have also installed the other necessary modules quoted on that page and it should work fine.  The code isn't as nice looking as the 0.3.x one but it works fine.

Btw, a lot of modules are configured to use GC or /tell only, you'll need to be more specific about which ones don't work as this is most likely working as intended.

-jj-

Logged
Blastreturns
Freshman
*
Offline Offline

Posts: 11


Re: Members Issues
« Reply #13 on: March 07, 2007, 09:34:01 AM »

Tx JJ!

to be more explicit...
Example:

[MYGUILD] Geckus: !online
[mybot] Geckus: !online
[mybot] Aibot: 3 members online in Guild. 3 members in Privategroup. :: click to view

how to run !online and others gc commands by [MYGUILD]?

do u want a list of others gc not working?

ps. there's a link for BeBot 0.3?
bye
blast
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Members Issues
« Reply #14 on: March 07, 2007, 10:41:47 AM »

Hmm.  This is most strange, it sees the org members online so I guess that means the guild ID is correct and it's pulling in the roster ok.  Does this happen with all members on Guildchat or a select few ppl?  Does it relay what you say in the private group to guild chat now you installed the newer module?

Bebot 0.3.x is a "bleeding edge" build and I wouldn't recommend it as a beginners build.  Even I don't use it as I don't trust anything with Natu as main coder ;-p  But seriously, links to SVN where 0.3.x can be downloaded are available elsewhere on the forum (search for SVN).

-jj-
Logged
Pages: [1] 2   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: Members Issues
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 8
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 13
Total: 14
Whackoeng

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.186 seconds with 29 queries. (Pretty URLs adds 0.029s, 4q)
Loading...