Register for your free account! | Forgot your password?

You last visited: Today at 08:49

  • 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   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Wink [5165] RollBacks

5165/Tanel's ... Problem "RollBacks"
Anybody has a fix for this?
If he does , I Promisse its my last request/begging.
†he Knight is offline  
Old 10/10/2010, 19:18   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Switch my MySQL, nuff said.
Arcо is offline  
Old 10/10/2010, 19:23   #3
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by Аrco View Post
Switch my MySQL, nuff said.
That has nothing to do with it.
_tao4229_ is offline  
Thanks
1 User
Old 10/10/2010, 19:25   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Darn right it doesn't, but it helps a whole lot. With the current character system, you can't update a single line in the file. With mysql, at least you can update the table EVERYtime a change is made.
Arcо is offline  
Old 10/10/2010, 19:56   #5
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
You don't need to for either system (it's possible to modify a single value in a binary file - that's what SQL does anyways); you really shouldn't to start with.

It's redundant, all you need is proper disconnection handling.
_tao4229_ is offline  
Old 10/10/2010, 20:22   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by _tao4229_ View Post
it's possible to modify a single value in a binary file
How does one do that aye?
Arcо is offline  
Old 10/10/2010, 20:28   #7
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
oO , How Can I Switch to mysql lmao?
†he Knight is offline  
Old 10/10/2010, 20:33   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
I recommend you to use Immune's MySQL Wrapper. If not that, then use Impulse's.
Both can be found in the corresponding sources.
Arcо is offline  
Thanks
1 User
Old 10/10/2010, 20:49   #9
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Yes but my server is 25 rank at xtremetop ... too many characters, going to be a big loss
†he Knight is offline  
Old 10/10/2010, 21:09   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Just make all the characters dump from the .chr file to mysql.
Arcо is offline  
Thanks
1 User
Old 10/10/2010, 21:17   #11
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by Аrco View Post
How does one do that aye?
Code:
FILE* file = fopen(fname, "rb+");

fseek(file, FIELD_OFFSET, SEEK_SET);

fwrite(&value, 1, sizeof(value), file);

fclose(file);
While this is obviously inefficient (due to having to reopen files constantly) it's possible.
_tao4229_ is offline  
Old 10/10/2010, 21:22   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by _tao4229_ View Post
Code:
FILE* file = fopen(fname, "rb+");

fseek(file, FIELD_OFFSET, SEEK_SET);

fwrite(&value, 1, sizeof(value), file);

fclose(file);
While this is obviously inefficient (due to having to reopen files constantly) it's possible.
You do realize, this is for a source written in c# right?
Arcо is offline  
Old 10/10/2010, 21:29   #13
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
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();
_tao4229_ is offline  
Old 10/10/2010, 21:42   #14
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Too dumb to understand this...
#request close
†he Knight is offline  
Old 10/11/2010, 03:31   #15
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Quote:
Originally Posted by JuiceDCodeR View Post
Too dumb to understand this...
#request close
Its not that your dumb, its just the lack of learning
hunterman01 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 08:49.


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.