I would prefer an online database.
.txt is not the best way to go.
|
|

What would be a great design and format to use for saving game sessions, information of accounts/players?
Many people say .txt files or using binary etc. Some prefer online databasing.
Discuss.

I would prefer an online database.
.txt is not the best way to go.


whatever works
yeah i said it



Whatever makes it the most easy to add/remove fields from the character file.

Never really looked into it so everything I say may be a completely incorrect thought on the situation.
However you could probably have the files cache themselves into a temporary file(map or something) every 2 - 5 minutes of gameplay (based off of the character rather than the server) and then upon file termination (logout) saved to a binary or SQL file and clearing the temporary file.
Once again, just a theory that I never really thought of how to implement.

Keeping them in memory for a few minutes after DC could be good for performance but the memory overhead would be giant. Id stick to queuing a save object and writing each queued object to a database, any type of exception such as failing to connect to the db keeps the object in the queue until it can reconnect and update.

| « Sailing - Completely customized | We should respect each others servers » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |