So you're waiting for us todo everything for you?
Sorry,but with most of us in the community,that won't fly.
Sorry,but with most of us in the community,that won't fly.
This is wrong.Quote:
Or better yet... save the modified sections every time they are changed.
If not your server will ALWAYS be exploitable and ALWAYS have rollbacks (of differing sizes)
Well yes it will reduce rollbacks, the idea behind saving every time something changes is that as soon as it changes its commited to the database, its impossible for there to be a rollback if its already commited to the database.Quote:
This is wrong.
Saving every modified section every time it changes will not make your server less 'exploitable', neither will you have less rollbacks.
All that really matters is correctly handling the load of saving, things like safe-threading is important.
Unless your server 'forgets' data, saving it will not make a difference. It is already saved, its just not permanent, so make you sure you make it permanent at some time, and make sure your server does not close before this has happened.
Exactly. If you make it so that the variable itself updates the database every time something changes, there's no time to even have a roll back (I guess technically there is but you'd have to be a very very very very unlucky person to pick up a dragonball on the last millisecond that the server is online! xP)Quote:
Well yes it will reduce rollbacks, the idea behind saving every time something changes is that as soon as it changes its commited to the database, its impossible for there to be a rollback if its already commited to the database.
I know. The main problem with why it wasn't saving though was that the "file was in use". I fixed it so that when the file was in use, it would activate a variable called "saving" and that way, a waiting line could be created using while statements to use the file. Flat Databases with Flat Accounts and Characters is just a terrible idea! rofl! xP It's impossible to have concurrent connections when the file is in use!Quote:
But there's not really a way to save 0a single variable with Tanel's 5165 source.
You'd have to change everything.
That... or just ditch it and go with mysql =PQuote:
You would just need to change the character object so that it was full of Properties and not Fields, and then on the set; method have a call to the database to submit the data, then in the database make sure that all of the submits, updates, etc are threadsafe using monitor tryenter/exit.
Cause no one is going to do everything for you.Quote:
omg , 3pages of speaking and i didn't got what i want, i give you my source, and tell me what i have to do ,( do to ******.cs , seach ***** and add ****)
[Only registered and activated users can see links. Click Here To Register...]
why u make it simple like thit and it's done! ?
I think I'm boring, sorry for that^^
Arco's right. We're not going to download your source and make it for you. We have our own sources to work on. =\ You could try downloading [Only registered and activated users can see links. Click Here To Register...] that I wrote in my first month of coding... it's save system has a tiny fix on it that I'm sure you can copy into your source.Quote:
Cause no one is going to do everything for you.
I'm not releasing something like that. I'm already shunned for that source release. Just download it and look at it. That's what good coders do- they look at other works and try and understand how they did it.Quote:
i will not use your source, icuz i worked on my source, and the source that i want to have is my source, i just want to know how to fix bug, i don't need advices or doing it for me, just tell me what i put in where