Register for your free account! | Forgot your password?

You last visited: Today at 07:20

  • Please register to post and access all features, it's quick, easy and FREE!


5165 Bugs

Closed Thread
 
Old 03/30/2010, 04:32   #31
 
elite*gold: 0
Join Date: Sep 2007
Posts: 574
Received Thanks: 102
Quote:
Originally Posted by kamote View Post
one question, what is the purpose of being here in the thread if you won't share?
Whats the point of just handing out the code to everyone on the forum, he gave you enough information, im sure, to fix the problem.



StarBucks is offline  
Old 03/30/2010, 06:22   #32
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
Starbucks please refrain from double posting.
Thanks


Arcо is offline  
Old 03/30/2010, 16:58   #33
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,124
Received Thanks: 2,503
Quote:
Originally Posted by .Arco View Post
Starbucks please refrain from double posting.
Thanks
The user before him deleted his post, so at time of posting it wasnt a double post, but thanks for the report.
Korvacs is offline  
Old 03/30/2010, 17:10   #34
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 79
Quote:
Originally Posted by StarBucks View Post
Your server really shouldn't have major rollbacks if it it done correctly. Anytime a character receives money/cps/skills/exp, anything that is saved to the database, should be saved right when it happens. Don't wait and save everything when the played logs off, or periodic server wide saves. Save it when anything changes is what im trying to say.
or.... they could post the errors they get from the server crashing and fix it by the root of the problem.


ChingChong23 is offline  
Old 03/30/2010, 21:34   #35
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
You shouldn't save it every single ten seconds, that would just be laggy. You shouldn't have rollbacks period.
PeTe Ninja is offline  
Old 03/30/2010, 22:12   #36
 
elite*gold: 0
Join Date: Oct 2009
Posts: 762
Received Thanks: 539
I only save when player logs out...no rollbacks(mysql ftw ^^)
-impulse- is offline  
Old 03/30/2010, 22:36   #37
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 489
I save every 15 minutes and at logout , for security i also do a account and char backup all 20 min.. but thats just me
~Yuki~ is offline  
Old 03/30/2010, 22:38   #38
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Idk... I've never had a rollback and I'm on Flat Database. Maybe you added something to it that makes it unstable... or maybe it's your connection. Pete, post your internet speed using speedtest.net.
-NewDawn- is offline  
Old 03/31/2010, 05:44   #39
 
elite*gold: 0
Join Date: Sep 2007
Posts: 574
Received Thanks: 102
Quote:
Originally Posted by PeTe Ninja View Post
You shouldn't save it every single ten seconds, that would just be laggy. You shouldn't have rollbacks period.
Well honestly if you don't save it any time something gets updated and the client looses connection (there internet goes down, vps/dedi fails) then that stuff that the character did between the last save and then would be gone.

Quote:
Originally Posted by -impulse- View Post
I only save when player logs out...no rollbacks(mysql ftw ^^)
What if the player doesn't log out, what if he looses connection with his net?

Quote:
Originally Posted by ~Yuki~ View Post
I save every 15 minutes and at logout , for security i also do a account and char backup all 20 min.. but thats just me
Saving all the characters logged in every 15 minutes would cause lag on the server every 15 minutes.


Maybe seperating the "database" server from the game server would make it so the constant saving wouldn't cause the server to lag? I don't know if that would work seeing as the game server would need to send the data still. Idk. Just an idea.

I still don't understand how you all complain that saving constantly would cause server lag, honestly saving EVERYTHING at periodic times would cause tremendous lag for a few seconds. Wouldn't you rather have a few millaseconds lag constantly, if it was constant people would get used to it (its not like your vps won't cause lag also).
StarBucks is offline  
Thanks
1 User
Old 03/31/2010, 05:52   #40
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
As I said. I don't get rollbacks. The only thing I can think of that would cause a rollback is the server crashing. If the server crashes, then it won't save the characters. Characters save on a disconnect as far as I know of. The server must be crashing then? Something not coded right like flowers? The flower save system doesn't work... unless you merge it with the character save system... then it works perfectly.

For the people that have the rollbacks... what happens before the rollback?
-NewDawn- is offline  
Old 03/31/2010, 07:27   #41
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 489
Quote:
Originally Posted by StarBucks View Post
Well honestly if you don't save it any time something gets updated and the client looses connection (there internet goes down, vps/dedi fails) then that stuff that the character did between the last save and then would be gone.



What if the player doesn't log out, what if he looses connection with his net?
Will still save.


Saving all the characters logged in every 15 minutes would cause lag on the server every 15 minutes.
No?


Maybe seperating the "database" server from the game server would make it so the constant saving wouldn't cause the server to lag? I don't know if that would work seeing as the game server would need to send the data still. Idk. Just an idea.
Good Idea ima do that later

I still don't understand how you all complain that saving constantly would cause server lag, honestly saving EVERYTHING at periodic times would cause tremendous lag for a few seconds. Wouldn't you rather have a few millaseconds lag constantly, if it was constant people would get used to it (its not like your vps won't cause lag also).
^this
~Yuki~ is offline  
Old 03/31/2010, 08:30   #42
 
elite*gold: 0
Join Date: Oct 2009
Posts: 762
Received Thanks: 539
Separating the database from server is equal to create a new thread where database will save the characters.
If you want loading to be on that thread also, you gotta add a callback, take it and then move on another thread, so the database thread can load/save and give callbacks.
-impulse- is offline  
Old 03/31/2010, 13:26   #43
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,159
For a SQL database, just save the variable whenever it gets changed (just make sure you check that there isn't any open query, there will be queues ofcourse).
_Emme_ is offline  
Old 04/01/2010, 01:01   #44
 
elite*gold: 0
Join Date: Sep 2007
Posts: 574
Received Thanks: 102
Quote:
Originally Posted by EmmeTheCoder View Post
For a SQL database, just save the variable whenever it gets changed (just make sure you check that there isn't any open query, there will be queues ofcourse).
Exactly.
StarBucks is offline  
Old 04/01/2010, 01:58   #45
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
You shouldn't have to do that.. You should make it when the socket disconnects to save.. that way no matter what.. if the server crashes or whatever.. the socket will disconnect causing it to run that void of save ><


PeTe Ninja is offline  
Closed Thread



« 5165 Bugs | Which client should be used for a new private server project? »

Similar Threads
5165 3 Bugs Help!
07/09/2010 - CO2 PServer - Discussions / Questions - 6 Replies
Okay well I need help with 2 bugs in my 5165 server plus I didn't want to spam the whole page with 3 threads lol.... 1stBug:People on my server have problems promoting themselves in the promotion center past like level 40 or level 70 once they got the required items for promotion... 2ndBug:Archers in my server 1 hit people with like 5 mil damage...I want to kno how or where to fix it in my source... 3rdBug: I want to know if there is a fix for a revive here code...like when I click...
5165 Bugs
04/29/2010 - CO2 PServer - Discussions / Questions - 4 Replies
Hey Guys When i put 40 items in Market Warehouse , and try to open the game close .:rtfm:
List of some annoying bugs/non-bugs for 5165
02/23/2010 - CO2 PServer - Discussions / Questions - 7 Replies
alright here are some annoying things on 5165. -red bar on the edge of your screen when you have low hp (laggy) -if your blessed you revive at the same spot you are even if you dont use "revive here" it doens't work and if you click "revive" it's just like revive here if your blessed -the cyclone effect doesn't show -i used arco's guide to save halos but i used to be able to only spawn top deputy, now nothing.



All times are GMT +1. The time now is 07:20.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.