Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 07:59

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

Advertisement



[Help]Patch Server

Discussion on [Help]Patch Server within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old 02/17/2015, 22:40   #31
 
Aurorauser's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 35
null
Aurorauser is offline  
Thanks
1 User
Old 02/18/2015, 00:55   #32
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,780
Received Thanks: 1,462
Are you sure you just don't want someone to write the program for you?

Wait...oh never mind.
ThunderNikk is offline  
Old 02/18/2015, 00:58   #33
 
elite*gold: 0
Join Date: Apr 2013
Posts: 20
Received Thanks: 12
kendi kendine ne sıkıntı yaptın gardaş ya triplere girme mk
wr4tes is offline  
Old 02/18/2015, 01:00   #34
 
Aurorauser's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 35
null
Aurorauser is offline  
Thanks
1 User
Old 02/18/2015, 03:46   #35
 
elite*gold: 182
Join Date: Mar 2011
Posts: 258
Received Thanks: 340
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.
XavierDeFawks is offline  
Thanks
1 User
Old 02/18/2015, 05:29   #36
 
Aurorauser's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 35
null
Aurorauser is offline  
Old 02/18/2015, 06:15   #37
 
elite*gold: 182
Join Date: Mar 2011
Posts: 258
Received Thanks: 340
XOREn and StringCipher is part of a custom library i made for client data files.
XavierDeFawks is offline  
Old 02/18/2015, 17:33   #38
 
Aurorauser's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 35
null
Aurorauser is offline  
Old 02/18/2015, 18:16   #39
 
elite*gold: 182
Join Date: Mar 2011
Posts: 258
Received Thanks: 340
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.
XavierDeFawks is offline  
Thanks
1 User
Old 02/18/2015, 19:07   #40
 
Aurorauser's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 35
null
Aurorauser is offline  
Old 02/18/2015, 19:11   #41
 
elite*gold: 182
Join Date: Mar 2011
Posts: 258
Received Thanks: 340
I have read and replied.
XavierDeFawks is offline  
Old 02/19/2015, 02:45   #42
 
Aurorauser's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 146
Received Thanks: 35
null
Aurorauser is offline  
Old 01/28/2016, 08:02   #43
 
Makenci's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 198
Received Thanks: 40
null
Makenci is offline  
Reply

Tags
patch offical update


Similar Threads Similar Threads
server emulator x trap & substitution patch server Karos Rosh
05/14/2015 - Private Server Advertising - 1 Replies
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 made ​​it. We need people who know who could do it again. That is, to create this server emulator. Payment will be worthy. I apologize for my English Found on the Internet is such a code package service.update; /** * Created by Sergo on 02.04.2014. */ public class Config {
yet another nexon patch to patch the patch that patched their patch
07/10/2010 - Mabinogi - 6 Replies
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. Gonna try Tiara and see if still works
REBIRTH Client Patch , REBIRTH share Patch ,SERVER
01/07/2010 - Dekaron Private Server - 34 Replies
REBIRTH Client SKILL Patch MEGAUPLOAD - The leading online storage and file delivery service REBIRTH share SKILL Patch MEGAUPLOAD - The leading online storage and file delivery service :rolleyes:



All times are GMT +2. The time now is 07:59.


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