What do you use to store all the players? Database? Text file?
Textfiles - I don't really know how to do a database. And, after trying to learn how to... I don't know if it's really advantageous since it's more complicated (I don't even know if it's more efficient), and you can't edit it as easily outside of the game (esp. if you don't have microsoft access. :P).
(And if you got something confused, it only saves and loads from textfiles; it doesn't repeatedly check the files as the server is running. The players' info is kept in RAM.)
If someone else knows how to change what i have to a database interface, please do.
Using a database API would provide a simpler system if implemented properly. You wouldn't have to deal with the load/store routines (and for text files at least, parsing), just the query and set mechanisms. Since you'd just be querying data you could then get live updates from the database in case of outside modification.
With a database storage too, end users could use existing programs to edit the data (ie, Access or even Excel I think) and won't have to deal with such low level editing like that of bare text files which just raises the user error level.
I believe you were only using native C++ but the google search for it isn't all that hard. Third result is a start.
rec0's app and Synapse used the .NET framework's System.Data namespace for database interaction.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks