Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 00:03

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

 

[Help]Patch Server

Reply
 
Old   #31
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 34
null



Aurorauser is offline  
Thanks
1 User
Old   #32
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,048
Received Thanks: 982
Are you sure you just don't want someone to write the program for you?

Wait...oh never mind.


ThunderNikk is offline  
Old   #33
 
elite*gold: 0
Join Date: Apr 2013
Posts: 12
Received Thanks: 9
kendi kendine ne sıkıntı yaptın gardaş ya triplere girme mk
wr4tes is offline  
Old   #34
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 34
null


Aurorauser is offline  
Thanks
1 User
Old   #35
 
elite*gold: 0
Join Date: Mar 2011
Posts: 250
Received Thanks: 324
Code:
        private void backgroundWorker1_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            string[] files = Directory.GetFiles(dir_label.Text);

            Invoke(new MethodInvoker(delegate
            {
                progressBar1.Value = 0;
                progressBar1.Maximum = files.Length;
            }));

            CompressionMode mode;
            if (radio_inflate.Checked) { mode = CompressionMode.Decompress; }
            else { mode = CompressionMode.Compress; }

            foreach (string file in files)
            {
                string filename = "";
                if (radio_inflate.Checked) { StringCipher.Decode(Path.GetFileName(file), ref filename); }
                else if (radio_deflate.Checked) { StringCipher.Encode(Path.GetFileName(file), ref filename); }

                byte[] data;
                int data_size;

                try
                {
                    using (FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Read))
                    {
                        using (BinaryReader br = new BinaryReader(fs))
                        {
                            if (radio_inflate.Checked)
                            {
                                br.ReadBytes(5);
                                br.ReadInt32();
                                int size = br.ReadInt32();
                                data = br.ReadBytes(size);
                            }
                            else
                            {
                                data = br.ReadBytes((int)fs.Length);

                                XOREn XOR = new XOREn();
                                byte xor_index = 0;

                                if (XOR.Encrypted(Path.GetExtension(file))) { XOR.Xor(ref data, ref xor_index); }

                            }
                        }
                    }
                }
                catch (Exception ex) { data = new byte[0]; }

                data_size = data.Length;

                try
                {
                    using (MemoryStream mem = new MemoryStream())
                    {
                        using (ZlibStream stream = new ZlibStream(mem, mode))
                        {
                            stream.Write(data, 0, data.Length);
                        }
                        data = mem.ToArray();
                    }
                }
                catch { MessageBox.Show(filename); }

                using(FileStream fs = File.Create(Path.GetDirectoryName(file) + "\\" + filename))
                {
                    using(BinaryWriter bw = new BinaryWriter(fs))
                    {
                        if (radio_inflate.Checked)
                        {
                            XOREn XOR = new XOREn();
                            byte xor_index = 0;

                            if (XOR.Encrypted(Path.GetExtension(filename))) { XOR.Xor(ref data, ref xor_index); }

                            bw.Write(data);
                        }
                        else
                        {
                            bw.Write(new byte[5] { 0x00, 0x51, 0x3F, 0x99, 0x1A });
                            bw.Write((int)data_size);
                            bw.Write((int)data.Length);
                            bw.Write(data);
                        }
                    }
                }

                File.Delete(file);
                Invoke(new MethodInvoker(delegate { progressBar1.Value++; }));
            }
        }
Piece of code from an app i wrote a while back to pack and unpack patch files.
xXExiledXx is offline  
Thanks
1 User
Old   #36
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 34
null
Aurorauser is offline  
Old   #37
 
elite*gold: 0
Join Date: Mar 2011
Posts: 250
Received Thanks: 324
XOREn and StringCipher is part of a custom library i made for client data files.
xXExiledXx is offline  
Old   #38
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 34
null
Aurorauser is offline  
Old   #39
 
elite*gold: 0
Join Date: Mar 2011
Posts: 250
Received Thanks: 324
This is the zlib library I used.

P.S.
The code he posted is not the correct string cipher. Mine is a custom written class for resource file names. Look up a project i released a while back called DataBurner the class is called something different but its still the same methods.

And it will also have the XOR method although it may or may not be in its own class in that version.
xXExiledXx is offline  
Thanks
1 User
Old   #40
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 34
null
Aurorauser is offline  
Old   #41
 
elite*gold: 0
Join Date: Mar 2011
Posts: 250
Received Thanks: 324
I have read and replied.
xXExiledXx is offline  
Old   #42
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 34
null
Aurorauser is offline  
Old   #43
 
elite*gold: 0
Join Date: Mar 2009
Posts: 150
Received Thanks: 27
null


Makenci is offline  
Reply

Tags
patch offical update



« Previous Thread | Next Thread »

Similar Threads
server emulator x trap & substitution patch server Karos Rosh
Need help, bypass x-trap. Here is the server of this game -> Karos Crónicas de Rosh :: Axeso5.com :: Juega gratis con nosotros . Russian programmer...
1 Replies - Private Server Advertising
yet another nexon patch to patch the patch that patched their patch
I love how nexon patches games so frequently. NOT. and their downloader doesn't even seem to work. Have to manually download the pack 65 patcher....
6 Replies - Mabinogi
REBIRTH Client Patch , REBIRTH share Patch ,SERVER
REBIRTH Client SKILL Patch MEGAUPLOAD - The leading online storage and file delivery service REBIRTH share SKILL Patch MEGAUPLOAD - The...
34 Replies - Dekaron Private Server



All times are GMT +2. The time now is 00:03.


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

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