Raised This Month: $12 Target: $400
 3% 

xREDIRECT v2.0 RC2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 01-27-2011 , 23:54   xREDIRECT v2.0 RC2
Reply With Quote #1

i have just released the first release candidate of v2.0. after v1.0 this is one of the biggest releases, introducing 983 new lines of code increasing the source file size from 112,673 to 156,780 bytes.
the main changes being
  • Category feature (server menu can be grouped by categories you define)
  • SQL support (for server list and statistics)
  • Statistics about redirections can now be written to a file and vault or to an SQL table
  • Advertisement of the /server command (so players know that it's there)
  • Many other fixes and additions
or check the complete changelog.

Release Candidate means that this is in beta state, so don't use it if you need a perfectly stable environment.

currently documentation on the new features is a bit sparse, i will try to change that within the next days and weeks. but i am always here to answer your questions



Activating SQL and/or statistics:

to enable SQL, statistics or both you have to find these lines in the source code:
Code:
//#define SQL //#define STATISTICS
if you want to activate a feature remove the // from the beginning of the line. xREDIRECT will have the following behavior depending on the combination of these options:

SQL ON and STATISTICS OFF:
the server list will be loaded from the database. no statistics are being written anywhere.

SQL ON and STATISTICS ON:
the server list will be loaded from the database. statistics are written to an SQL table.

SQL OFF and STATISTICS ON:
the server list will be loaded from the serverlist.ini file. statistics are written to both a vault and the file xredirect-actions.csv in AMXX logs folder. the vault will hold summary data (like the number of manual redirects, automatic redirects etc.). the data in the vault can be queried by using the new redirect_stats command. the CSV file will hold all actions done by xREDIRECT with detailed data (timestamp, name of player redirected, user ID, IP address...).

SQL OFF and STATISTICS OFF:
the server list will be loaded from the serverlist.ini file. no statistics are being written anywhere.



SQL prerequisites

You need to configure AMXX (in /config/sql.cfg) with your SQL credentials and run the script in xredirect.sql.txt on the DB you want to use with AMXX. it will create the tables that will be used by xREDIRECT. currently there is no template or web script to help you managing these tables, so it is recommended to use a generic tool like PHPMyAdmin to fill the tables.
i would be very glad if you want to write a frontend to manage these tables (and also show statistics from the statistics table) for the community. please post it here so we can offer it along with xREDIRECT!
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:

Last edited by xOR; 02-09-2011 at 06:13. Reason: released RC2
xOR is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 01-28-2011 , 19:19   Re: xREDIRECT v2.0 RC1
Reply With Quote #2

<3....
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
upssito
New Member
Join Date: Sep 2010
Old 02-05-2011 , 02:16   Re: xREDIRECT v2.0 RC1
Reply With Quote #3

Nice one james.
upssito is offline
per_b
Junior Member
Join Date: Mar 2010
Old 02-06-2011 , 18:53   Re: xREDIRECT v2.0 RC1
Reply With Quote #4

If I have SQL not defined, how can I make categories? In serverlist.ini?
You haven't mention about it.

eg. ..?
Code:
[my example server]
address=example.n-ice.org
port=27015
category="First Category"

[my 2nd example server]
address=example2.n-ice.org
port=27015
category="Second Category"

[my 3rd example server]
address=example3.n-ice.org
port=27015
category="First Category"
Second thing.
I guess it will be better if the plugin will have some other SQL cvar's, rather than standard in sql.cfg, because many plugins use these cvars (sometimes not everything can be in one database).
per_b is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 02-08-2011 , 01:49   Re: xREDIRECT v2.0 RC1
Reply With Quote #5

Quote:
Originally Posted by per_b View Post
If I have SQL not defined, how can I make categories? In serverlist.ini?
You haven't mention about it.
categories are set like you have written, except that you don't need the quotation marks. so it's simply:
Code:
[my example server]
address=example.n-ice.org
port=27015
category=First Category

[my 2nd example server]
address=example2.n-ice.org
port=27015
category=Second Category

[my 3rd example server]
address=example3.n-ice.org
port=27015
category=First Category
Quote:
Originally Posted by per_b View Post
Second thing.
I guess it will be better if the plugin will have some other SQL cvar's, rather than standard in sql.cfg, because many plugins use these cvars (sometimes not everything can be in one database).
as 2.0 is already in feature freeze, because it's an RC, i have scheduled it for the next version. it will come shortly after 2.0 release.
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 02-08-2011 , 10:26   Re: xREDIRECT v2.0 RC1
Reply With Quote #6

Hi, i have some problems testing beta version.

PHP Code:
L 02/08/2011 17:17:39: [AMXXDisplaying debug trace (plugin "xredirect-beta.amxx")
L 02/08/2011 17:17:39: [AMXXRun time error 4index out of bounds
L 02
/08/2011 17:17:39: [AMXX]    [0xredirect-beta.sma::stats_redirect (line 1657)
L 02/08/2011 17:17:39: [AMXX]    [1xredirect-beta.sma::client_authorized (line 3271)
L 02/08/2011 17:17:51: [AMXXDisplaying debug trace (plugin "xredirect-beta.amxx")
L 02/08/2011 17:17:51: [AMXXRun time error 4index out of bounds
L 02
/08/2011 17:17:51: [AMXX]    [0xredirect-beta.sma::stats_redirect (line 1657)
L 02/08/2011 17:17:51: [AMXX]    [1xredirect-beta.sma::client_authorized (line 3271
I enabled SQL and statistics.
To sql added 3 servers.

Last edited by 9evill; 02-08-2011 at 10:35.
9evill is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 02-08-2011 , 15:25   Re: xREDIRECT v2.0 RC1
Reply With Quote #7

i see, that's actually a design problem by me. i will try to come up with a fix very soon (working on it right now). it will probably involve updating the xredirect_statistics table by adding a new column to it.

thanks for your report.
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 02-08-2011 , 17:35   Re: xREDIRECT v2.0 RC1
Reply With Quote #8

here's my first attempt to fix that problem. as i said you need to add a column to your xredirect_statistics table, you can do that by executing the following line on your database:
Code:
ALTER TABLE `xredirect_statistics` ADD `target_server_id` INT( 11 ) NULL ;
please try it and tell me whether it fixes your problem. i haven't tested it myself yet but will do that now. if it seems fine to me i will release it as RC2, unless you answer and still report problems.
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:

Last edited by xOR; 02-09-2011 at 06:01.
xOR is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 02-09-2011 , 03:00   Re: xREDIRECT v2.0 RC1
Reply With Quote #9

This version writes statistics to database, but only few playeras are redirected and i have only few records in DB.
I set redirect_auto to 6, but still have only few redirects, i tried to connect to server myself with and without admin privileges, first time after map change it redirects, when i chage nick and try again, and it doesnt redirect.

When compiling plugin i also get folowing warning:
PHP Code:
xredirect-beta.sma(1756) : warning 204symbol is assigned a value that is never used"sQuery" 
Here is debug from console, when im not get redirected:

PHP Code:
L 02/09/2011 09:54:40"9evill<9021><STEAM_ID_x><>" connectedaddress "xxx:27005"
L 02/09/2011 09:54:41: [xredirect-beta.amxxAuto-redirect check for <9evill> (30), auto-redirectyesautomode6local prioritynoadminnoadmin slotsyesadmins/max0/32current players/bots/max29/28/32
L 02
/09/2011 09:54:41: [xredirect-beta.amxxMod comparisonlocal protocol/mod48/"cstrike"remote protocol/mod: (server 0): 47/"cstrike"
L 02/09/2011 09:54:41: [xredirect-beta.amxxMod comparisonlocal protocol/mod48/"cstrike"remote protocol/mod: (server 1): 47/"cstrike"
L 02/09/2011 09:54:41: [xredirect-beta.amxxMod comparisonlocal protocol/mod48/"cstrike"remote protocol/mod: (server 2): 48/"cstrike"
L 02/09/2011 09:54:45"9evill<9021><STEAM_ID_x><>" entered the game
L 02
/09/2011 09:54:48World triggered "Round_Start"
L 02/09/2011 09:54:48"9evill<9021><STEAM_ID_x><>" disconnected 

Last edited by 9evill; 02-09-2011 at 03:03.
9evill is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 02-09-2011 , 04:48   Re: xREDIRECT v2.0 RC1
Reply With Quote #10

Quote:
Originally Posted by 9evill View Post
This version writes statistics to database, but only few playeras are redirected and i have only few records in DB.
I set redirect_auto to 6, but still have only few redirects, i tried to connect to server myself with and without admin privileges, first time after map change it redirects, when i chage nick and try again, and it doesnt redirect.
so for the database statistics part i take this as "it is fixed now". i'll still do some tests myself but then i will release it as RC2.

Quote:
Originally Posted by 9evill View Post
When compiling plugin i also get folowing warning:
PHP Code:
xredirect-beta.sma(1756) : warning 204symbol is assigned a value that is never used"sQuery" 
ok, this warning is removed now and won't be in RC2. but it doesn't hurt in any way, so it's not important.

Quote:
Originally Posted by 9evill View Post
Here is debug from console, when im not get redirected:

PHP Code:
L 02/09/2011 09:54:40"9evill<9021><STEAM_ID_x><>" connectedaddress "xxx:27005"
L 02/09/2011 09:54:41: [xredirect-beta.amxxAuto-redirect check for <9evill> (30), auto-redirectyesautomode6local prioritynoadminnoadmin slotsyesadmins/max0/32current players/bots/max29/28/32
L 02
/09/2011 09:54:41: [xredirect-beta.amxxMod comparisonlocal protocol/mod48/"cstrike"remote protocol/mod: (server 0): 47/"cstrike"
L 02/09/2011 09:54:41: [xredirect-beta.amxxMod comparisonlocal protocol/mod48/"cstrike"remote protocol/mod: (server 1): 47/"cstrike"
L 02/09/2011 09:54:41: [xredirect-beta.amxxMod comparisonlocal protocol/mod48/"cstrike"remote protocol/mod: (server 2): 48/"cstrike"
L 02/09/2011 09:54:45"9evill<9021><STEAM_ID_x><>" entered the game
L 02
/09/2011 09:54:48World triggered "Round_Start"
L 02/09/2011 09:54:48"9evill<9021><STEAM_ID_x><>" disconnected 
the first two servers in the list are running on protocol 47. afaik the protocol has already been updated to 48 somewhere in 2008. xREDIRECT detects that the protocols are differing and won't redirect there. this makes sense, because you cannot connect to a protocol 48 server with a protocol 47 client and vice versa.
it doesn't matter that, as an exception, it does work with no-steam stuff (dproto), because we don't support no-steam, and given what i see here tells me your servers are no-steam. that you don't want to reveal your IP addresses supports this suspicion.

run them all with the latest official updates without illegal mods and everything will be fine...
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:

Last edited by xOR; 02-09-2011 at 05:45.
xOR is offline
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 06:28.


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