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

Can we change the CSX module?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-15-2013 , 06:42   Can we change the CSX module?
Reply With Quote #1

Hello! I did't find a category for this thread.

Can we change this module? SourceCode is here: http://sourceforge.net/projects/amxmodx/?source=dlp

-> amxmodx-1.8.1\dlls\cstrike\csx

There are 3500 rows in csstats.dat by default.. When the max size of file will be reached, the database will be erased. Regular players complain about it.. We can increase this value (from 3500 to 5000, ex.), but it is no way to solve the problem.

This is my way for this:

When the max size of csstats.dat will be reached, there are 100 last oldest records will be deleted in csstats.dat. Can we do it?

This should be nice and good idea.. But i do not know the module coding.. In plugin we can use prune(), but in module..
__________________
sorry my bad english...

Last edited by alonelive; 06-15-2013 at 06:45.
alonelive is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-15-2013 , 09:47   Re: Can we change the CSX module?
Reply With Quote #2

csstats_maxsize 0
Should set unlimited size...
__________________

Last edited by Neeeeeeeeeel.-; 06-15-2013 at 09:47.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-15-2013 , 14:58   Re: Can we change the CSX module?
Reply With Quote #3

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
csstats_maxsize 0
Should set unlimited size...
what about server crash in this case?

It's bad way
__________________
sorry my bad english...
alonelive is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-15-2013 , 18:18   Re: Can we change the CSX module?
Reply With Quote #4

If fix this problem, please correct the csstats_pause bug

https://bugs.alliedmods.net/show_bug.cgi?id=5755

It was ignored, or not revised, and nobody answered me (I'm not demanding anything)

Thanks for work in Amxx
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-23-2013 , 09:42   Re: Can we change the CSX module?
Reply With Quote #5

I have an idea - can we open the csstats.dat as VAULT file? and prune() oldest records in the database?
__________________
sorry my bad english...

Last edited by alonelive; 06-23-2013 at 09:43.
alonelive is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-23-2013 , 12:47   Re: Can we change the CSX module?
Reply With Quote #6

csstats.dat saves client's stats
TheDS1337 is offline
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-24-2013 , 07:30   Re: Can we change the CSX module?
Reply With Quote #7

Quote:
Originally Posted by DeagLe.Studio View Post
csstats.dat saves client's stats
I know! And what?
Is my english too bad?? if you can't understand me..

Quote:
can we open the csstats.dat as VAULT file? and prune() oldest records in the database?
If change of the module is impossible, there is a way to solve the problem - make a plugin amxx, which can open csstats.dat as a VAULT file (as a database file by using nvault_util_open ot other method), find and delete the oldest records (by timestamp or by empty stats data - 0 frags, 0 deaths, o shoots and etc.).

This idea in needed FOR ALL PUBLIC SERVERS! There is bad and usefull currect realisation of csstats module (BD will be nulled when the 3500 (or other nubmer) rows is reached.). We must change this! Довести, млять, до ума!
I can't set max size to 99999, 0 and oher - server will be crashed (or has a big load during calculate this stats). This is no way.

I want to make this changes, but i'm not a programmist. Some people make an orpheu, fakemeta and other very difficult modules, why YOU CAN't edit this STATS MODULE? IS this too hard for you?

There is source code: http://sourceforge.net/projects/amxmodx/?source=dlp
I post above about it!
__________________
sorry my bad english...

Last edited by alonelive; 06-24-2013 at 07:46.
alonelive is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-24-2013 , 07:38   Re: Can we change the CSX module?
Reply With Quote #8

The csstats.dat file is better than any vault storage type (its native!!)
For empty fields, i think its auto removed by csstats_maxsize.

Example: If you need to export to SQL db, you only need to update the values (UPDATE amx_tabe) for example.
The update from SQL will store adding the results (Its userful to use in various servers without replace the results in any sql_table)

And about csstats_maxsize this will be reseted normally, but the real results (From this server or others) it will be stored in MySQL db

:0
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-24-2013 , 09:13   Re: Can we change the CSX module?
Reply With Quote #9

Quote:
The csstats.dat file is better than any vault storage type (its native!!)
Are you sure? In thic case we can only rewrite the module.


Quote:
For empty fields, i think its auto removed by csstats_maxsize.
you think.. you think WRONG!

Quote:
If you need to export to SQL db
I don't need this. This is no way. And CSX does not support the S Q L !

Dear comrades, do not offtopic please
__________________
sorry my bad english...
alonelive is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-24-2013 , 20:21   Re: Can we change the CSX module?
Reply With Quote #10

Yes for sure.

Quote:
you think.. you think WRONG!
Serious? The csstats_maxsize removes automatically when a maxsize of stats is reached, and no have any id with empty values on csstats.dat!

Check the Program becomed with a main Amx Mod X package and open csstats.dat to see the file.
If the csstats_maxsize reached, it reset automatically and need negrigible resources to run on any server.

Yes man, CSX support a SQL db using 3rd party plugins you said:
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Reply



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 23:17.


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