Raised This Month: $ Target: $400
 0% 

How to find Rank Positions in Nvault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-04-2014 , 04:49   How to find Rank Positions in Nvault
Reply With Quote #1

There has been a lot of similar discussions about MODs working on nvault and want to have a ranking system using the nvault .. So i did quite a lot of searching for it throughout the forum and didnt find any solution regarding how to make a HLXstats type realtime ranking system in MODs using nvault..
All i found is ppl saying..
1. Shift to SQL for that.
2. You cant make that with nvault.
3. Some said it will take a very high CPU usage even if the ranking system is made.

I Like Nvault ..simple, ease of working and nice.. I ll like to stick to it .. My nvault database usually has 5000 entries ..
I reset the database usually on month end.

So is it possible to have a realtime ranking system with nvault ?
Good Idea ? Bad Idea ? Suggestions ?
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-04-2014 , 04:52   Re: How to find Rank Positions in Nvault
Reply With Quote #2

Take a look at nVault Utility.

Moved to Scripting Help.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-04-2014 , 05:12   Re: How to find Rank Positions in Nvault
Reply With Quote #3

Quote:
Originally Posted by hornet View Post
Take a look at nVault Utility.
I did .. Already a lot of nvault sorting threads exist but none has the solution of this.. Everyone just steers the post towards nvault utility .. No solutions for nvault based realtime ranks in existing threads till now.
Lets see if Bugsy makes up his mind and integrate sorting feature in nvault.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-04-2014 , 05:28   Re: How to find Rank Positions in Nvault
Reply With Quote #4

So after loading each entry from vault, you intend on sorting your data again each time someone makes a kill ... ?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-04-2014 , 05:35   Re: How to find Rank Positions in Nvault
Reply With Quote #5

Quote:
Originally Posted by hornet View Post
So after loading each entry from vault, you intend on sorting your data again each time someone makes a kill ... ?
Keeping it to the least CPU usage .. just to keep the CPU usage mimimum lets restrict Loading and sorting to 1 time only when the map starts.

Or when the player joins the server .. The Minimum times possible.

P.S : "Exact" Rank isnt the demand .. Even the near exact is good enough..
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then

Last edited by devilicioux; 06-04-2014 at 05:37.
devilicioux is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 06-04-2014 , 09:25   Re: How to find Rank Positions in Nvault
Reply With Quote #6

if its for CS or CS:CZ, why don't you use CSX ??
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-05-2014 , 00:17   Re: How to find Rank Positions in Nvault
Reply With Quote #7

Quote:
Originally Posted by Shooting King View Post
if its for CS or CS:CZ, why don't you use CSX ??
Nothing can beat CSX in stats management but XP system covers lot more events than the CSX + custom features and events we can add forever ..
Now,
CSX stores simply on basis of kills .. whereas XP given is to be more in case of special events like Multikills,airshot etc

So there will be sureshot cases when CSX rank and XP rank of players are different.
CSX displaying player rank 1 maynot necessarily be having the maximum XP earned.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 06-05-2014 , 01:56   Re: How to find Rank Positions in Nvault
Reply With Quote #8

Quote:
Originally Posted by devilicioux View Post
Nothing can beat CSX in stats management but XP system covers lot more events than the CSX + custom features and events we can add forever ..
Make those "Custom" features using your plugin and store them in nVault based on unique.
Quote:
Originally Posted by devilicioux View Post
Now,
CSX stores simply on basis of kills .. whereas XP given is to be more in case of special events like Multikills,airshot etc

So there will be sureshot cases when CSX rank and XP rank of players are different.
CSX displaying player rank 1 maynot necessarily be having the maximum XP earned.
You are free to change the formula for Rank Calculation ( see csstats.sma ). I think you can make a dynamic Native and include your features into the formula. If you need, i can add a native into CSX which will return the Rank based on one's Unique.

Always try to use the Modules as mush as you can, they are faster than Plugins.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-05-2014 , 07:16   Re: How to find Rank Positions in Nvault
Reply With Quote #9

Quote:
Originally Posted by Shooting King View Post
Make those "Custom" features using your plugin and store them in nVault based on unique.


You are free to change the formula for Rank Calculation ( see csstats.sma ). I think you can make a dynamic Native and include your features into the formula. If you need, i can add a native into CSX which will return the Rank based on one's Unique.

Always try to use the Modules as mush as you can, they are faster than Plugins.
Arent Dynamic natives slow ?
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-05-2014 , 09:24   Re: How to find Rank Positions in Nvault
Reply With Quote #10

Quote:
Originally Posted by devilicioux View Post
Arent Dynamic natives slow ?
Slow at data insertion, quick at data retrieval.

EDIT:
I've just realized, 1 year later, that he said "Dynamic natives" and not "Dynamic arrays". I feel dumb ._.

Last edited by klippy; 07-26-2015 at 03:37.
klippy 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 09:46.


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