Server storing player stats in an external file
-
- Posts: 59
- Joined: Fri Mar 28, 2014 11:50 pm
Server storing player stats in an external file
I've been wanting to have a server be able to store player statistics in a simple file on the hard drive. I figured I would mimic the behavior of how cfg files work, in that it is a file written to te drive that stores keys and values. The key would be the player's name or something and then I can assign a value to it. But after looking into this it's not as simple as I would think it. Has anyone done work in this area and can point me in a direction that could save a lot of time/grief?
Re: Server storing player stats in an external file
Look into the way single player progress is stored. It's a very basic string based key/value array format but there's functions to simply add data to it and read from it. In my mod EntityPlus I've used this to store level scores. I think EntityPlus' target_finish entity is a good starting point to figure that out
Last edited by Eraser on Mon Mar 09, 2015 8:55 am, edited 1 time in total.