Raised This Month: $32 Target: $400
 8% 

Gabion Kernel v1.3x (1.31)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development        Approver:   Hawk552 (427)
Minimum
Senior Member
Join Date: Jun 2006
Old 07-03-2007 , 22:13   Gabion Kernel v1.3x (1.31)
Reply With Quote #1

The Gabion Kernel is an highly versatile and advanced API for AMX Mod X. It features a component system which allows plugins to access its features. These features include: a centralized MySQL connection, help file system, effects system, player account system, admin control system, a status and information hud system, a Version Control System for both the Gabion Kernel and its plugins, and a wide range of MySQL functions. Other benefits of the Gabion Kernel is an extremely easy initial install process, and a system that makes installing different complex components as easy as adding them to the plugins.ini file.

This project has two major goals.

1. To make installation of different complex plugins extremely easy and painless for server owners.

2. To make a system where developers will have an advanced set of tools which make complex plugins easier & faster to make, and compatible with other Gabion Kernel components.

Requirements:
- AMX Mod X 1.75
- 1 (One) MySQL Database
- Basic HL Server Knowledge

Support & Help

v1.3x Changelog:
v1.30 - Added Version Control System for both the Gabion Kernel and its components (includes three new related functions). Added a SQL Connection Handle return function. Added a few new commands for the Gabion Command System. Fixed a security hole with the admin system. Added an automatic SQL Table Optimization Utility which automatically optimizes Core Gabion Kernel tables on startup or map change (controlled by a cvar) for slightly better SQL Preformance. Also includes some other minor adjustments and changes.
v1.31 - Fixed issue with player accounts not auto-registering. Fixed issue with Gabion Kernel spamming the versions table. Added a new command which allows players to obtain a new passcode. Widened randomization range of passcodes, making them more secure and random. Some other minor fixes and adjustments also.

Function Listing (Detailed Descriptions) -
Code:
/*      Gabion Kernel Include File */  // DO NOT TOUCH ANYTHING UNLESS YOU ABSOLUTELY KNOW WHAT YOU'RE DOING // I WILL NOT HELP YOU IF YOU BREAK YOUR PLUGIN // Defines // Hud_Display Func Defines; Tells Hud_Display to either to print to Chat Hud or Status Hud; Default is Status Hud #define HUD_CHAT 1 #define HUD_STATUS 0 // Set_Glow Func Defines; Tells Set_Glow to either turn On or Off; Default is Off #define GLOW_ON 1 #define GLOW_OFF 0 // Component Set Status Defines; Tells component_setstatus to either turn the component On or Off; Default is Auto #define COMP_AUTO 2 #define COMP_ON 1 #define COMP_OFF 0 // Select_String Func Defines; Tells for select_string to either use old default method or new custom method. // Default: Uses all variables. Ex: SELECT <index> FROM <table> WHERE <condition> = '<equals>' // Custom: Does not use equals, instead uses condition for use in multiple if statements. Ex: SELECT <index> FROM <table> WHERE <condition> #define SELECTSTR_NEW 1 #define SELECTSTR_OLD 0 #pragma reqlib gabionkernel // API Fake Natives // Register Component native register_component(compname[]); // Set Component Status native component_setstatus(comp_id,status=3); // Register Help File native register_helpfile(name[],filepath[]); // Gabion Kernel Version Return native Float:gab_version(); // Component Version Return native Float:component_version(name[]); // Component Version Update native component_newversion(name[],Float:version); //----------------------------------------------------------------------------------- // MySQL Handle Return native Handle:gab_sqlhandle(); // MySQL Status Indicator native is_db_online(); // MySQL Edit Value (Integer) native edit_value(id,table[],index[],func[],amount); // MySQL Edit Value (Float) native edit_fvalue(id,table[],index[],func[],Float:amount); // MySQL Select String native select_string(table[],index[],condition[],equals[],output[],size,mtype=0); // MySQL Selection Function - Conditional Columns (SELECTED Columns 1x Rows) native select_columns(table[],index[],condition[],equals[],output[],size,amount,mtype=0); // MySQL Selection Function - ALL Rows (1x Column ALL Rows) native select_allrows(table[],index[],output[],size); // MySQL Selection Function - Conditional Rows (1x Column SELECTED Rows) native select_rows(table[],index[],condition[],equals[],output[],size); // MySQL Update String native update_string(table[],set[],equals[],where[],condition[]); // MySQL Free Query String native free_string(query[]); // MySQL Result Query String native result_string(query[],Handle:output); // MySQL SubQuery String native select_subquery(table[],index[],condition[],table2[],index2[],condition2[],equals[],output[],size); // Admin Verification native admin_verify(id,admintype[],comment[]); // MySQL Based Origin Distance Finder native distance_verify(id,table[],index[],dist,out_origin[3]); // MySQL List Printer native view_sqllist(id,listname[],listdes[],table[],condition[],indexes[],indexnum); // MySQL Table Optimizer native optimize_table(table[]); //----------------------------------------------------------------------------------- // Register Player Column native register_playercolumn(name[],sqlextra[]); // Register Admin Access Column native register_admincolumn(name[]); // Gabion Kernel Player Id Return native gab_playerid(id); // Info Hud Code Display native infohud_display(id,compid,msg[]); // Message Hud Code Display native hud_display(id,message[],func=0); //----------------------------------------------------------------------------------- // Set User Maxspeed native set_maxspeed(id,func[],Float:amount); // Set User Transparancy native set_alpha(id,func[],amount); // Set User Glow native set_glow(id,trigger,redfunc[],red,greenfunc[],green,bluefunc[],blue);
Attached Files
File Type: rar GabionKernelv1.31.rar (19.0 KB, 540 views)

Last edited by Minimum; 07-20-2007 at 01:12. Reason: 1.31 Update
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 07-03-2007 , 23:45   Re: Gabion Kernel v1.3x
Reply With Quote #2

Please attach the *.sma separately.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Minimum
Senior Member
Join Date: Jun 2006
Old 07-04-2007 , 00:28   Re: Gabion Kernel v1.3x
Reply With Quote #3

Quote:
Originally Posted by SweatyBanana View Post
Please attach the *.sma separately.
If I did that it would possibly confuse people that just read a little and click on the download. The plugin MUST be downloaded as one package or else certain functions will not work such as the help or configs. It would just create unnecessary problems which could of been avoided. That is why I did not attach the .smas separately.
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-04-2007 , 00:43   Re: Gabion Kernel v1.3x
Reply With Quote #4

Attach the zip, attach the sma, and attach a compiled version and you should be fine
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-04-2007 , 05:20   Re: Gabion Kernel v1.3x
Reply With Quote #5

SweatyBanana,YamiKaitou: you are missing the point.

Minimum: you don't need to attach an sma.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 07-04-2007 , 17:55   Re: Gabion Kernel v1.3x
Reply With Quote #6

Quote:
Originally Posted by Emp` View Post
SweatyBanana,YamiKaitou: you are missing the point.

Minimum: you don't need to attach an sma.
No, I got that point before I even posted, but I thought it was necessary to post the .sma file separately unless an administrator or plugin approver states otherwise.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-04-2007 , 19:46   Re: Gabion Kernel v1.3x
Reply With Quote #7

Quote:
Originally Posted by SweatyBanana View Post
No, I got that point before I even posted, but I thought it was necessary to post the .sma file separately unless an administrator or plugin approver states otherwise.


Quote:
* Add SMA and ZIP (if applicable) files for people to download.
Note: The only time you should not attach the SMA is if your plugin uses custom include files.
__________________
Arkshine is offline
Old 07-04-2007, 19:48
Arkshine
This message has been deleted by Emp`. Reason: meaningless posts
Old 07-04-2007, 19:54
SweatyBanana
This message has been deleted by Emp`. Reason: meaningless posts
Old 07-04-2007, 20:31
Arkshine
This message has been deleted by Emp`. Reason: meaningless posts
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode