AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to find Rank Positions in Nvault (https://forums.alliedmods.net/showthread.php?t=241472)

devilicioux 06-04-2014 04:49

How to find Rank Positions in Nvault
 
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 ?

hornet 06-04-2014 04:52

Re: How to find Rank Positions in Nvault
 
Take a look at nVault Utility.

Moved to Scripting Help.

devilicioux 06-04-2014 05:12

Re: How to find Rank Positions in Nvault
 
Quote:

Originally Posted by hornet (Post 2146569)
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.

hornet 06-04-2014 05:28

Re: How to find Rank Positions in Nvault
 
So after loading each entry from vault, you intend on sorting your data again each time someone makes a kill ... ?

devilicioux 06-04-2014 05:35

Re: How to find Rank Positions in Nvault
 
Quote:

Originally Posted by hornet (Post 2146577)
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..

Shooting King 06-04-2014 09:25

Re: How to find Rank Positions in Nvault
 
if its for CS or CS:CZ, why don't you use CSX ??

devilicioux 06-05-2014 00:17

Re: How to find Rank Positions in Nvault
 
Quote:

Originally Posted by Shooting King (Post 2146642)
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.

Shooting King 06-05-2014 01:56

Re: How to find Rank Positions in Nvault
 
Quote:

Originally Posted by devilicioux (Post 2147017)
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 (Post 2147017)
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.

devilicioux 06-05-2014 07:16

Re: How to find Rank Positions in Nvault
 
Quote:

Originally Posted by Shooting King (Post 2147035)
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 ?

klippy 06-05-2014 09:24

Re: How to find Rank Positions in Nvault
 
Quote:

Originally Posted by devilicioux (Post 2147094)
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 ._.


All times are GMT -4. The time now is 09:46.

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