Well he means that when something changes, it automatically saves the change. Unfortunately, this isn't possible on a flat database like the one you're probably using. If you made it save the entire character every time one aspect changed (like location), then the server will lag and eventually crash if too many people are online! =s
You need to use MySQL or MsSql (something I just learned today). I hope you figure out something! =]
Good luck!
it's not possible to make a C# script anywhere to save each 8sec or 2sec?
It is very possible... but it will make your server not able to handle a lot of people. Plus, the problem with it not saving and showing an error code is because the file is in use (aka. flat style database). Look into MySQL. It's a lot better! =]
If you're making just a simple server for friends... make a timer in the character's structure file (whatever that may be). Make the timer run when they login and make it save the character at an interval of 800. That should be 8 seconds... I can't remember if that's right. It will turn off when the character logs out since it's just a temporary server resource! Good luck!
Actually you could happily have a save system run every few seconds if you wanted, you just need to have it correctly threaded and use the right locks on the objects you wish to save, however personally i think its better to perform a small save for every change that occurs. It reduces the load when saving massively.
5165 Save or Load Character Problem. 07/29/2010 - CO2 Private Server - 5 Replies alright so IDK wtf I did 2 dis source dat now wen I login and log out my character doesnt save sumhow and like his/her gears are all fucked up wen u login again like...a necklace is where da armor should be at lol...and da armor is like da weapon...so on...only like 3 things save...
well I'm hoping I can get answers from dis...I'll post my SaveCharacter/LoadCharacter void here...
public static Game.Character LoadCharacter(string Name, ref string Account)
{
try
...
Roll Back or No Save Bug!! 5165 07/11/2010 - CO2 Private Server - 1 Replies Hi, i have a co pserver 5165, i'm getting a fucked bug
well i made a video to more understand
YouTube - mybug.wmv
please tell me what's the problem, or if it's possible help me to fix it
and if no one know how to fix, please give me a good 5165 source
5165 source Don't save 07/01/2010 - CO2 Private Server - 3 Replies hi i have a co pserver 5165
well the server don't save
for exemple some one was lvl 50 and had 50kcps
he dropped 1kkcps and leveled up to 137, well he disconnect, and after 5 ou 10mn he relog, and he find himself lvl 50 and has 50kcps only
so the server didin't saved, i have 2 or 3 players who have same problem
fix 100% code save characters lvl and all for 5165 03/09/2010 - CO2 PServer Guides & Releases - 6 Replies hello all this code for save lvl character and cps
open Database.cs
and search
return "Error: Character already exists!";
del this code and add this new code