Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Echelon v2 is not yet officially released! If you cannot get this dev-version installed, revert to version 1 as available in our download section.

Author Topic: B3-Bot Groups, Echelon 2 and Unregistered clients  (Read 2943 times)

Offline WickedShell

  • Moderator
  • Sr. Member
  • *
  • Posts: 201
    • GitHub - WickedShell
B3-Bot Groups, Echelon 2 and Unregistered clients
« on: March 20, 2011, 05:07:22 AM »
This is sorta a feature request and touching base upon the status of unregistered players. At the moment if a client is considered unregistered there group_bits are set to 0 which makes perfect sense. In making a work around so that an unregistered users level could be changed I noticed that unregistered clients is not a known group to the b3 database.

Is there a reason that unregistered is not a portion of the groups table? It would simplyify several portions of echelon2 (less awkward case testing in spots), and would also assisit in a more logical and uniform structure to the code and database? And if theres a reason why its not that I'm also interested in knowing that.

(And is there a reason that within echelon2 you can not demote a user to unregistered?)

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: B3-Bot Groups, Echelon 2 and Unregistered clients
« Reply #1 on: March 20, 2011, 11:26:17 AM »
I don't expect adding a 'guest' group with id=0 and level=0 will do harm to the B3 core. I've scanned the core and don't expect big issues come of it. I suggest however that this addition is tested thoroughly before we introduce it to the distribution.

Below is the sql code to add the group. Would be great if some beta testers that know about this stuff could test it and see how core, xlrstats and also other external plugins respond to this new group.

Code: sql [Select]
INSERT INTO `groups` (id, time_edit, name, keyword, time_add, level) VALUES (0, 0, 'Guest', 'guest', UNIX_TIMESTAMP(), 0);


About the history of this non-existence. This is a result of the first design decision that a user was able to be in multiple groups at the same time. Therefor unregistered (guest) was NOT a group to avoid a user becoming registered and unregistered at the same time. Later we decided to not work on multiple groups any longer because we did expect that it would lead to a major misconception and most of all hard to explain with little or no advantages.

Offline WickedShell

  • Moderator
  • Sr. Member
  • *
  • Posts: 201
    • GitHub - WickedShell
Re: B3-Bot Groups, Echelon 2 and Unregistered clients
« Reply #2 on: March 29, 2011, 02:24:33 AM »
This worked fine as expected (including all the common UrT plugins, xlrstats, and some minor not so common ones), only tested it on a 1.4 bot running the UrT parser, as that was all I had avalible to me to test upon at the time. I should have 1.5 up shortly to test wtih.

On the history of the non-existence. Alright, that explains why the groups are setup as a bit set but not actually used like that, that was one of those things that had been really bothering me. I could see multiple groups not being to terrible to set up, but I guess that's completely dependent on whether or not you understand what a bit set is, so you probably went the easier way :)

Offline WickedShell

  • Moderator
  • Sr. Member
  • *
  • Posts: 201
    • GitHub - WickedShell
Re: B3-Bot Groups, Echelon 2 and Unregistered clients
« Reply #3 on: April 10, 2011, 09:39:16 AM »
Can this make it into B3 1.6.0 in the beta? Or did it miss the freeze?

It doesn't seem to casue any problems with Urban Terror, or common UrT plugins but I lack any not UrT bots to test with.

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: B3-Bot Groups, Echelon 2 and Unregistered clients
« Reply #4 on: April 10, 2011, 10:31:57 AM »
I'll add it to the public beta: 1.6.0b2

Too bad it didn't make it to this beta, but then again, you didn't have an eta on it, so I consider this my mistake.

Normally I probably wouldn't do this, but since the database needs updating to version 1.6.0 we better include this update now, instead of having the need for another db update in the next release.

Offline WickedShell

  • Moderator
  • Sr. Member
  • *
  • Posts: 201
    • GitHub - WickedShell
Re: B3-Bot Groups, Echelon 2 and Unregistered clients
« Reply #5 on: April 10, 2011, 08:51:00 PM »
Sorry. I wasn't sure how the return of this/testing would go, so I was just letting it sit after I did my initial test of it.

 


Rate this page +1 at Google Search

anything