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

Module: CSX Extended 2.0.1.0


Post New Thread Reply   
 
Thread Tools Display Modes
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-18-2014 , 03:20   Re: Module: CSX Extended [v1.3]
Reply With Quote #31

@claudiuhks - True but just for SQL, there is no need for another module as its task would be just to load and save stats data similarly as it's done for binary file currently. Only a new saving type would be there. Game Stats Management is based on linked lists which are much faster since they need no external source

Last edited by souvikdas95; 03-18-2014 at 03:23.
souvikdas95 is offline
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 03-18-2014 , 04:58   Re: Module: CSX Extended [v1.3]
Reply With Quote #32

I have two server (linux).
On one it works.
On the second no.
error:
"*** glibc detected *** ./hlds_i686: malloc(): memory corruption: 0x08ced778 ***"

please help

Last edited by _GamerX; 03-18-2014 at 04:59.
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-18-2014 , 08:31   Re: Module: CSX Extended [v1.3]
Reply With Quote #33

have you tried compiling it on your system and then trying? if not then try. Also, send me the logs of both the HLDS. I hope they are not on different machines?

Last edited by souvikdas95; 03-18-2014 at 08:32.
souvikdas95 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-18-2014 , 11:34   Re: Module: CSX Extended [v1.3]
Reply With Quote #34

You can replace return 0/1 with
return false/true

LOL
__________________
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
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 03-18-2014 , 11:47   Re: Module: CSX Extended [v1.3]
Reply With Quote #35

0 is better false, because to write false you need to press 5 buttons, but to write 0 you only need to press 1 button.

@souvikdas95, please add prune function of inactive players. Your module remember player's last join time and on every stats load will check inactive players and delete them. Something like
Code:
PruneStats( Stats:handle , pruneTime ); return int ( pruned entries )
And for main stats (default csstats functional) just made cvar "csstats_prune_time".
__________________
The functional way is the right way
GordonFreeman (RU) is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-18-2014 , 12:01   Re: Module: CSX Extended [v1.3]
Reply With Quote #36

Quote:
Originally Posted by ^SmileY View Post
You can replace return 0/1 with
return false/true

LOL
Unfortunately we can't return bool it's different from how amx interprets bool.

Last edited by souvikdas95; 03-18-2014 at 12:02.
souvikdas95 is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-18-2014 , 12:08   Re: Module: CSX Extended [v1.3]
Reply With Quote #37

@GordonFreeman - It's highly specific in nature. You may open a sqlite database and store played time.
make an amx file, connect it to the database... check for connected players... load / save played time... then whatever function u need for checking inactivity of player...
... it's after that u can search for that entry in csstats.dat and reset it as per the natives.
If you don't like my idea, then you can yourself edit the source attached and recompile as per your wish and if you like, you may share with us too... It's open source... you can do anything as you like.
souvikdas95 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-18-2014 , 12:08   Re: Module: CSX Extended [v1.3]
Reply With Quote #38

Quote:
Originally Posted by souvikdas95 View Post
Unfortunately we can't return bool it's different from how amx interprets bool.
In some funcions we need boolean values, in arrays, or others.
Is not a question of use, but a readable code.

@Freeman, true or false is a returned value, we do not need to write in code.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 03-18-2014 at 12:10.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 03-19-2014 , 01:56   Re: Module: CSX Extended [v1.3]
Reply With Quote #39

CSX Extended v1.3 fails load on my Windows XP server. In error logs:
Code:
L 03/19/2014 - 10:43:31: Error:
L 03/19/2014 - 10:43:31: [AMXX] Module is not a valid library (file "cstrike\addons\amxmodx\modules\csx_amxx.dll")
But v1.2 loads successfully.
How to fix?

Im using listenserver 6132 build with AMXX 1.8.3-hg190-dev.
__________________
The functional way is the right way
GordonFreeman (RU) is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-19-2014 , 02:57   Re: Module: CSX Extended [v1.3]
Reply With Quote #40

@GordonFreeman - I will soon post an update with fix for that as well. Sorry for the inconvenience.
You may try yourself compiling the project from the source.
souvikdas95 is offline
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 15:16.


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