Register for your free account! | Forgot your password?

You last visited: Today at 13:58

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

Advertisement



[Need Tip] To save!

Discussion on [Need Tip] To save! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2006
Posts: 15
Received Thanks: 1
[Need Tip] To save!

So my problem is to save chars and other saveable ojects.(MySql)

As much i know there is 2 way to save! but witch one is better?

1: timer based SaveAll();
- That would be massive usage for mysql since like sellers/afk ppl/others don't need to save.
- as long as its works its good?
2: save on change like: save_money(Client);
- Its called when ever Client.Silver value is changed!
- Have to make loads of savefuntions.
- Does save_loc(client) would not overload mysql at 200+ jumps at same time?

If you have any tips how to save datas in "best way" please share
smart_spammer is offline  
Old 08/20/2011, 07:39   #2
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
MySQL Loading/Saving would be by far the best way to save/load data at it's fastest.(As I have heard around this forum) My Opinion.
killersub is offline  
Old 08/20/2011, 12:50   #3
 
elite*gold: 0
Join Date: Nov 2006
Posts: 15
Received Thanks: 1
Quote:
Originally Posted by killersub View Post
MySQL Loading/Saving would be by far the best way to save/load data at it's fastest.(As I have heard around this forum) My Opinion.
Yes i know. But there is many ways how to save. I would like to get a tip witch way i should go :/
smart_spammer is offline  
Old 08/20/2011, 15:10   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
I want to suggest a third option.


Only save when they log out or you shut down the server.

The issue with that is so many people do not code it properly and then they close out the server incorrectly or the server crashes and data gets lost (rollbacks). If the server is written correctly though this is the best option.


Personally what I do with my server is I save any 'critical' element as it's modified. Money/cp to avoid any exploits with that as well as modifications to items, etc. Then only save the bulk of my character data when they log out.


You can handle the console close event (clicking the X button) and cause it to save all characters on the server before it closes (google it, it's quite simple) and then if there's any errors with characters I save them before disconnecting.

I've yet to have any issues with rollbacks and it reduces pointless server strain from either of the previous options.
pro4never is offline  
Thanks
1 User
Old 08/21/2011, 01:42   #5
 
elite*gold: 0
Join Date: Nov 2006
Posts: 15
Received Thanks: 1
Quote:
Originally Posted by pro4never View Post
I want to suggest a third option.


Only save when they log out or you shut down the server.

The issue with that is so many people do not code it properly and then they close out the server incorrectly or the server crashes and data gets lost (rollbacks). If the server is written correctly though this is the best option.


Personally what I do with my server is I save any 'critical' element as it's modified. Money/cp to avoid any exploits with that as well as modifications to items, etc. Then only save the bulk of my character data when they log out.


You can handle the console close event (clicking the X button) and cause it to save all characters on the server before it closes (google it, it's quite simple) and then if there's any errors with characters I save them before disconnecting.

I've yet to have any issues with rollbacks and it reduces pointless server strain from either of the previous options.
Then im doing alright i tought that saving on value change isn't good idea(' for critical'). i just can't figure if exp is critical ... overkill for 200+ lvling at same time?

cheers
smart_spammer is offline  
Reply


Similar Threads Similar Threads
save to bot one day?
05/05/2012 - Silkroad Online - 6 Replies
i used the haxcrax one time. it work with the 3 programs. 100%, but how does gm ban? from rapots, scanning or do they get wired packets from my bot? (if it can, haxcrax using original client) so just wanna know about its save to bot ONE day? kthx :bandit: smoke weed oO
IS it save???
10/30/2010 - SRO Private Server - 9 Replies
Please some mod approve is that save? VirusTotal - Free Online Virus, Malware and URL Scanner VirusTotal - Free Online Virus, Malware and URL Scanner VirusTotal - Free Online Virus, Malware and URL Scanner
[HELP]Save Bug?
02/11/2009 - CO2 Private Server - 9 Replies
i have a problem with COV2 Source ( 2009 Gift ), the problem is that it wont save characters or i am making characters wrong, when i make one , i relog when it dcs me like its supposed to but it just takes me back.. ( PeTe Ninja tried to help me, and he is working on to help me fix it ) ( this is also him posting this for me ) no flame please =]
HELP! i need to save my ass!
12/01/2006 - Conquer Online 2 - 4 Replies
help here is my problem. i've bough an account i have almost full data...but 1 important thing is missing the id number.The guy who sold me that will just let me put item on it and then will take back the char.Well im not retard but i need your help!how can i trick him?!



All times are GMT +1. The time now is 13:58.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.