You are here: Big Brother Bot ForumGeneral CategoryGeneral DiscussionIdea regarding plugin admin
Pages: [1]   Go Down
  Print  
Author Topic: Idea regarding plugin admin  (Read 307 times) Bookmark and Share
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« on: July 21, 2011, 11:00:12 AM »

Since plugin admin is needed by b3 always to start, why its it a plugin? Make it part of the core, yes keep the xml, but it shouldn't need to be a plugin.

the only reason I can think of is so you can have plugins load before it, but I don't know of any that would ever need to.

thoughts?
Via my HTC Thunderbolt
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: July 21, 2011, 11:13:39 AM »

the admin plugin is a plugin because the features it brings to B3 are to be implemented as a plugin to fit into the B3 framework.

I don't know if that statement makes it easier to understand :s Anyway, you could also imagine that the B3 framework is just something that translate game events (kill, connect, change map, etc) from different games into B3 events. Those events are then forwarded to plugins interested in them. Those plugins in turn take actions such as sending rcon commands to game server or writing stuff into the B3 database, etc.

So the B3 framework is just an event translator and dispatcher.

The admin plugin is what recognize in-game commands by listening to all chat event. It also read/write to database to check players level and decide if that player can use that command, etc

In the other hand, because features provided by the admin plugin are so essential to in-game game server administration and because it is the plugin that allows other plugins to register their own commands, the admin plugin is mandatory to make B3 work.
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal