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: Tracking online and join status  (Read 18243 times)

0 Members and 1 Guest are viewing this topic.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Tracking online and join status
« on: June 10, 2006, 09:56:05 pm »
Seeing all the modules tracking members online as well as people joining the bot channel, I think it would be sensible to create one central online instance.

The instance would need to do the following things:
1) Add buddies logging on and remove buddies logging off. It has to differentiate between members/guests, chars on notifylist and other characters (like for !is checks).
2) Add characters joining the pgroup, and remove them when leaving.

Personally I favor the approach to put this information into a table, as it would allow all kinds of queries for other modules fairly easy. The table should contain relevant informations (prof, faction, level, ai-level, breed, org) for other modules.
Other approach would be to save this information in an array and add some interface to access this. This wouldn't allow easy queries though.

Modules that want to do anything with people online or in chat group would just have to query this table then, without any need to do the tracking and adding themself. Modules using those information are the Online module, the Count module, the Team module, and the new SB module just getting written.

Things like the logon information or information on joins could be put into the module or stay in their own modules, they just act on one of those two events anyways.

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: Tracking online and join status
« Reply #1 on: June 10, 2006, 10:26:19 pm »
thats a ubah idea :P i had to make separete colums for that info :P

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Tracking online and join status
« Reply #2 on: June 11, 2006, 12:26:24 am »
Im starting to get scared now.

Ive spent the past few days thinking about this myself. However, while i want an online list in the database for several reasons, however im debating if an array to store general information about all online users is a better way than using the database. As such i am very open to feedback on the subject.
BeBot Founder and Fixer Kingpin

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Tracking online and join status
« Reply #3 on: June 11, 2006, 12:51:02 am »
Personally I prefer the databased solution.

Local arrays would be faster and produce less overhead. I doubt you'd notice the speed advantage though, and no clue how big the overhead by querying the database really is.

But seeing that bots aren't that time critical (at least not compared to the usual response times of the database) I think the advantages speak for the database solution.

Any kind of query done will be much easier to code, and most likely in the end be faster. A select x from table where y order by z is pretty intuitive, definitly gets the right result, and easier to write then any queries in the array based solution.

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: Tracking online and join status
« Reply #4 on: June 11, 2006, 06:26:16 am »
I have online cell in my members table already, have news, leadernews and realname cells as well.
I also don't wipe the list each time a roster updates, to work with the new org. msg. channel for people that join/leave org, so they're added/deleted right away instead of having to wait for the main db to update.
Too many toons.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: Tracking online and join status
« Reply #5 on: June 12, 2006, 04:34:48 am »
I was just mulling this one over also. The org I'm in has a want/need to show current members and guests online on the members area of our website.
So anyway I was thinking polling the bot's DB to get that info on a page view/refreash would probably be the best method since the web server and bot DB are on 2 totally different networks.

If we can come up with a standard way to record these info's I'll use it for sure. :)
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Tracking online and join status
« Reply #6 on: June 12, 2006, 04:40:32 pm »
Ok. Random thoughts.

online table containing the following:
userid
name (duplicates information availible elsewhere but makes it convenient (dup))
member level (dup, mainly for raid bots/guests, wont come into its own right until my roster cleanup is done and all members will have a level)
admin level (dup)
level (dup)
ailevel (dup)
ailevel name (dup)
breed (dup)
profession (dup)
faction (dup)
org (dup)
org rank (dup)
org rank name (dup)
botname (what bot the user is online on, allows relayed bots to share online listings in the same table)

Thouhts welcome.
BeBot Founder and Fixer Kingpin

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Tracking online and join status
« Reply #7 on: June 12, 2006, 05:51:43 pm »
Not sure I've ever needed name of ai level or ID of org rank, but no real hurt done there.

I'd just add one more field:
channel: online if online state tracked by buddy list, pgmsg if in private group.

And add a unique key for name/channel combo. Or name/channel/botname.

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: Tracking online and join status
« Reply #8 on: June 12, 2006, 06:20:55 pm »
online 0/1
autoinvite 0/1

Too many toons.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Tracking online and join status
« Reply #9 on: June 12, 2006, 06:46:57 pm »
online 0/1
autoinvite 0/1
This is supposed to be pure online tracking.

Those two fields should go into the members table.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Tracking online and join status
« Reply #10 on: June 12, 2006, 08:30:46 pm »
I can see what they are saying, online 0/1 is needed if the user is also pgroup 0/1 as the user might both be online in the guild, AND in the pgroup.

Anything related to buddylist tracking etc will make it into members table.
BeBot Founder and Fixer Kingpin

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: Tracking online and join status
« Reply #11 on: June 13, 2006, 09:26:01 am »
announce 0, 1 gc, 2 pgroup, 3 al
bot 0/1
Too many toons.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Tracking online and join status
« Reply #12 on: June 13, 2006, 11:51:40 am »
announce 0, 1 gc, 2 pgroup, 3 al
bot 0/1
The need for the distinction between online and in chat-group I see, so one of three stats: online only, in chatgroup only, both.

But anything else should be done by fields in the members table. This structure should only include people whose online status should be tracked or who are in the chat group.

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: Tracking online and join status
« Reply #13 on: June 15, 2006, 04:26:58 pm »
seen unixtime
Too many toons.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Tracking online and join status
« Reply #14 on: June 15, 2006, 06:17:52 pm »
Another thing that belongs in a permanent members/users table, not a temporary online table :)
BeBot Founder and Fixer Kingpin

 

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