Raised This Month: $37 Target: $400
 9% 

Saving/Loading data into/form the file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
milutinke
AlliedModders Donor
Join Date: Jun 2012
Location: Serbia
Old 01-13-2019 , 10:45   Saving/Loading data into/form the file
Reply With Quote #1

Hello everyone.
I am working on one mode, which has levels and user preferences.
I would like to provide multiple ways for data saving/loading.
Currently, I have SQL Lite and MySQL support.
But I would like to include the option to be able to store data in the file locally.
The data saving is happening on every level up and death.
I am interested in using this and incorporating it to the Source Mode as a module.

So do you think that it is a good idea to do this?

PS: NBT is cool, there are multiple editors for it on the internet.
__________________

Last edited by milutinke; 01-13-2019 at 12:48.
milutinke is offline
Send a message via Skype™ to milutinke
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-13-2019 , 11:15   Re: Saving/Loading data into/form the file
Reply With Quote #2

SQLite is a local file.
__________________
asherkin is offline
milutinke
AlliedModders Donor
Join Date: Jun 2012
Location: Serbia
Old 01-13-2019 , 12:45   Re: Saving/Loading data into/form the file
Reply With Quote #3

Quote:
Originally Posted by asherkin View Post
SQLite is a local file.
Yes, but I would like to save the data about each player in a separate file.
Would this make lag, because the files are read sequentially for each player?
I've never messed around with the files as the databases.
__________________

Last edited by milutinke; 01-13-2019 at 12:47.
milutinke is offline
Send a message via Skype™ to milutinke
Reply


Thread Tools
Display Modes

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 19:44.


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