Raised This Month: $ Target: $400
 0% 

Saving data


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-31-2012 , 11:03   Saving data
Reply With Quote #1

Hi everyone ;)

I trying to avoid problems with data saving.

Plugin which i'm creating/rewriting will have around 20 classess + level system.
For each class i have to save:
Code:
Player exeprience | Point 1 | Point 2 | Point 3 | Point 4 | Player name
Data will be saved on steam id. Current nvault key is steam-classid

Server will have around 4000 players ( based on statsx top15 counter ).
4000 players, and let's say every player uses every possible class, that is around 80000 lines of data.

Main problem is that i don't have ability to use web sites/my sql bases, etc.
Everything must be stored on server.

Furthermore in future i'm planning to add top15 (probbably use this snippet if i decide for nvault - https://forums.alliedmods.net/showthread.php?t=184654 )

Currently i'm using nvault for data (without player name), and ini file for top15 rank which is loaded into array on every mapchange and sorted on every /top15 call (arraysort);
In ini file i save only the player class with highest level. One player, one line in file.

I searched a lot, and found out that war3 plugins use nvault for every class.
Is that better, instead of one vault?

Does anyone have any suggestions?

btw plugin which i'm rewriting is badly coded, and it crashes the server
http://forums.alliedmods.net/showthread.php?p=1406163

Last edited by OvidiuS; 08-31-2012 at 11:04.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
 



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 08:20.


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