Register for your free account! | Forgot your password?

You last visited: Today at 03:24

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

Advertisement



[5165] RollBacks

Discussion on [5165] RollBacks within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 10/11/2010, 09:08   #16


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by _tao4229_ View Post
Sigh, it's the same thing. You can open a binary file with read+ (read/write privileges which do not start you with a blank file) privileges and then seek to whatever offset you want. The only factor that would be a problem is fields with dynamic length (how write/reading a string from a BinaryReader/Writer does), so you'd have to take into account the lengths of those fields in order to seek past them (or obviously switch to fixed length fields).

Code:
// using System.IO;

FileStream fs = new FileStream("c:\\file.bin", FileMode.Open, FileAccess.ReadWrite);
BinaryWriter wrtr = new BinaryWriter(fs, Encoding.ASCII);

wrtr.BaseStream.Seek(OFFSET, SeekOrigin.Begin);
wrtr.Write(value);

wrtr.Close();
Since MySQL utilizes binary files anyway, your just reinventing the wheel and doing it badly with a method like this, so why would you ever want to use a method like this?
Korvacs is offline  
Thanks
1 User
Old 10/11/2010, 14:37   #17
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Any Idea How Can I Stop the rollbacks without changing to mysql?
†he Knight is offline  
Old 10/11/2010, 16:52   #18
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by Korvacs View Post
Since MySQL utilizes binary files anyway, your just reinventing the wheel and doing it badly with a method like this, so why would you ever want to use a method like this?
Nice job reading the other posts in the thread.
_tao4229_ is offline  
Old 10/11/2010, 17:19   #19


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by _tao4229_ View Post
Nice job reading the other posts in the thread.
I did read the other posts, my point is why bother with using standard none optomized binary files when you could happily use MySQL instead and let MySQL worry about managing your data for you.

People dont want to change from the standard binary files but want the performance, speed and reliability of a fully managed database system, its simply not possible, if it was that easy to get the same level of performance, speed and reliability then there would not be dedicated database packages which cost large sums of money, because anyone can do it.

Sure you can make improvements to the existing system, adding thread safe locking would be a place to start, ensuring the file is closed after use is a must. With these 2 simple things, if done correctly you should see an improvement, but even then your server will be waiting for access on a regular basis if your updating the character often (which you should be to get rid of 'rollback syndrome').

If you want performance, speed and reliability you will have to ditch the standard binary file implementation in that source and switch to MySQL, its honestly not that hard, the performance is better, you can make changes to your database easily without loosing all of your accounts and characters, its alot faster when it comes to updating and itterating through records. There is not arguement here for standard binary files, switch to MySQL.
Korvacs is offline  
Old 10/11/2010, 17:53   #20
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by Korvacs View Post
I did read the other posts, my point is why bother with using standard none optomized binary files when you could happily use MySQL instead and let MySQL worry about managing your data for you.

People dont want to change from the standard binary files but want the performance, speed and reliability of a fully managed database system, its simply not possible, if it was that easy to get the same level of performance, speed and reliability then there would not be dedicated database packages which cost large sums of money, because anyone can do it.

Sure you can make improvements to the existing system, adding thread safe locking would be a place to start, ensuring the file is closed after use is a must. With these 2 simple things, if done correctly you should see an improvement, but even then your server will be waiting for access on a regular basis if your updating the character often (which you should be to get rid of 'rollback syndrome').

If you want performance, speed and reliability you will have to ditch the standard binary file implementation in that source and switch to MySQL, its honestly not that hard, the performance is better, you can make changes to your database easily without loosing all of your accounts and characters, its alot faster when it comes to updating and itterating through records. There is not arguement here for standard binary files, switch to MySQL.
This was never an argument over whether MySQL is better; you people just shove your opinions into any thread. Once again, read the **** posts before you post.
_tao4229_ is offline  
Old 10/11/2010, 17:58   #21


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Its not a case of opinions, or which is better, imtrying to encourage people to ditch binary files and switch to MySQL, theres no point in continuing using a bad system, and i fail to see the logic in assisting people with something which is bad for their server.

Obviously you dont see it that way and like to cement bad practice for people.
Korvacs is offline  
Old 10/11/2010, 18:04   #22
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by Korvacs View Post
Its not a case of opinions, or which is better, imtrying to encourage people to ditch binary files and switch to MySQL, theres no point in continuing using a bad system, and i fail to see the logic in assisting people with something which is bad for their server.

Obviously you dont see it that way and like to cement bad practice for people.
Nice job, moron.

I never told him to use binary files. I even said many of times the way I was showing wasn't good. The only reason I even gave that code was because someone asked me to prove it.

I was stating that even with MySQL the current way of doing things still will not work.

If people want your opinions on whether MySQL is better, they can ask for it; I was just trying to respond to the original problem at hand.
_tao4229_ is offline  
Old 10/11/2010, 19:02   #23


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
And i was suggesting a solution which will fix the original problem at hand. Its better in all respects and fixes the issue.
Korvacs is offline  
Old 10/11/2010, 19:21   #24
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by _tao4229_ View Post
I was stating that even with MySQL the current way of doing things still will not work.
Obviously if you used MySQL properly there wouldn't be any problems. If you used everything properly there wouldn't ever be any problems!

Once again, nice reading comprehension.
_tao4229_ is offline  
Old 10/11/2010, 19:35   #25


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Sigh well whatever, dunno why you would want to stick to something so averagely effective when there are tools out there that are easier to use and better in all respects. Dunno why you would want to encourage people to continue using such a system either.

Sure you could fix it up so that you wouldnt have problems, but that doesnt make it efficient or fast in any respect, its difficult to make alterations too, and hard to maintain.

Dunno why you feel the need to be so forceful about such an issue.
Korvacs is offline  
Old 10/11/2010, 20:54   #26
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by Korvacs View Post
Sigh well whatever, dunno why you would want to stick to something so averagely effective when there are tools out there that are easier to use and better in all respects. Dunno why you would want to encourage people to continue using such a system either.

Sure you could fix it up so that you wouldnt have problems, but that doesnt make it efficient or fast in any respect, its difficult to make alterations too, and hard to maintain.

Dunno why you feel the need to be so forceful about such an issue.
We're at a misunderstanding.

I don't want him to use binary files over MySQL. I'm saying that using MySQL in the same manner that the source uses binary files will have the same problems (if not more from lack of good MySQL usage).

I dislike MySQL. However, such a system is probably necessary for a good server (MSSQL preferably, I've never had a good time setting up MySQL or using it). MSSQL has always seemed better in every aspect (much more stable, and obviously better integration with C#).
_tao4229_ is offline  
Old 10/11/2010, 22:56   #27
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
#request close
†he Knight is offline  
Old 10/12/2010, 00:45   #28


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by JuiceDCodeR View Post
#request close
Epvpers policy is to keep threads open, we dont close threads when they are finshed with, and since thread highlights information which the community can benefit from it will remain open.
Korvacs is offline  
Thanks
2 Users
Old 10/12/2010, 16:56   #29
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Very Smart Korvacs, but why it has to remain open since everybody is talking off topic? nobody trying to help lol
†he Knight is offline  
Old 10/12/2010, 17:04   #30


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
We are trying to help, if you switch to mysql or perform some of the changes that saint suggested you would see an improvement.
Korvacs is offline  
Reply


Similar Threads Similar Threads
Low FPS on 5165
10/03/2010 - CO2 Private Server - 14 Replies
Okay I really don't know why my fps on 5165 are low. On any other server I play it's never like this, only on 5165. Is the problem maybe cause the source reads the maps twice or something like that (something I heard)? Cause it makes nooo sense. And no FPS unlocker doesn't help.
Hi I need 5165 source act like Real Co 5165
09/15/2010 - CO2 Private Server - 4 Replies
I need a A source 5165 that all skills is available specially rb char like nin-nin-nin counterKill and nin-war-nin reflect and more, and also the attack rates should be fair not like +8 set can 1 hit +12 set, and also maybe the client, I need to study to make it in 5200+ source. I love to trade it with my cofarmer account VIP i have use it for 5 days only. PM or contact me in skype :marlyandedsel
Burudeng------^^^Rollbacks
06/07/2010 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 3 Replies
Ich habe gehört das es bei Burudeng leute gab die einen Back gemacht haben...und aufeinmal hatte mann das ganze invi voller 99perins usw... weiss einer hier wie man sowas macht oder hat jemand einen Rollback oder überhaupt einen back??^^??
Creating Errors for rollbacks.. Need Help..
02/07/2010 - RF Online - 0 Replies
I tried to make up in cheat engine and WPE it probably can make rollbacks on your self.. CE can make slow mo's on game and somebody said to me that it affects the server side... and with WPE its said to "distract" the packets taken by your character to the server and server to your character.. But the probz is I always got dc... There is something .. I don't know what it is that blocks me to the server penetration... Help.. please?



All times are GMT +1. The time now is 03:26.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.