• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Heroic Gunz - C# Launcher

Status
Not open for further replies.
Newbie Spellweaver
Joined
Aug 10, 2011
Messages
77
Reaction score
132
Requirement:
Visual Studio 2010
OR
Visual Studio 2012

Information:
The launcher has 2main instance, first it wait for the user to click the "Update Game" bouton before to check if there is a patch before launching the game, if there is a patch it will automaticly update after/else it will get on a pause mode until the user click start game to launch gunz.exe instance.
A nice and easy to use Setting frame, wich already has Archtype function and the capability of changing gunz resolution.
Capable of using SerialKey, (SerialKey.dll):
Capable of auto-updating (As far as your new gunz launcher is under the name, "Gunzlauncher.mrs" without quote)
GunzLauncher.ini (@SKIPUPDATE = UPDATE SKIP)
Updates work whit any type of file as long as you change it.
GunzPatchBuilder, Build the ZPatch.xml for the launcher to read on.
MPressGui, the only capable packer to pack this launcher and GunzPatchBuilder (It will freeze around the 60-75% just close it, it will be packed even if it doesn't hit 100%)

Usefull information:
GunzLauncher require files from 3 specific folders.
Patch, 127.0.0.1/GunZPatch/ZPatch.xml
LauncherWeb, 127.0.0.1/GunZLauncher/Launcher.htm
GunzConfig files if it doesn't exist, 127.0.0.1/GunZConfig/config.xml
CurrentIP in launcher source is, "127.0.0.1"

This project is open source, feel free to comment or w/e, this project was made in early 2012 and haven't been updated since.
No pre-compiled files will be given, compile it yourself and do no forget no support will be given.

CREDITS:
x1nixmzeng: SerialKey.dll, who can be found here.
adz28: He helped me alot on the creation of this launcher back then.

You doesn't deserved the right to download this files if you haven't fully read the thread.
Download:

Quick information: I haven't left the project 1.5 completely, i'm just over-busy whit job's since i'm doing nearly 60-70h per week, i doesn't have time to continue it, but once i quit one of those 2job's and have free time to continue it, i will open a thread in the dev section.
 

Attachments

You must be registered for see attachments list
Last edited:
Custom Title Activated
Loyal Member
Joined
Feb 18, 2012
Messages
1,433
Reaction score
391
You cant, i opened up the .sln in VS 2003 and it says its been used with a higher version of Visual Studio...
 
Custom Title Activated
Loyal Member
Joined
Feb 18, 2012
Messages
1,433
Reaction score
391
Any idea why I got this?

Open up Task Manager -> Click "Processes" -> Search down for GunzLauncher.exe -> Once you have found it then click End Process then retry.
 
Ecchi addicted
Joined
Nov 30, 2008
Messages
464
Reaction score
92
No work with VS2003, how to work in VS2003?.

It was made using VS 2010, it's that hard to understand? You can't build it using previous versions of C# since it was made using a newer one.
 
Newbie Spellweaver
Joined
Jan 31, 2012
Messages
12
Reaction score
0
1 - Heroic Gunz - C# Launcher - RaGEZONE Forums

Any Soultion For This Error?
 

Attachments

You must be registered for see attachments list
Joined
Sep 10, 2007
Messages
970
Reaction score
815
Lets go over what's wrong with this and why no one should use it.

1. Synchronous downloads.
Code:
namespace GLauncher{
    class PatchFile{
        public bool checkPatchFile(string from){
            try{
                WebClient PatchFile = new WebClient();
                PatchFile.DownloadFile(from+"ZPatch.xml", "ZPatch.xml");
                return true;
            }catch(WebException exeption){
                MessageBox.Show(Convert.ToString(exeption));
                return false;
            }
        }
    }

2. Using MD5 hashing instead of a decent algorithm.
Code:
    class Hash{
        public string GetMD5HashFromFile(string fileName){
            FileStream file = new FileStream(fileName, FileMode.Open);
            MD5 md5 = new MD5CryptoServiceProvider();
            byte[] retVal = md5.ComputeHash(file);
            file.Close();


            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < retVal.Length; i++){
                sb.Append(retVal[i].ToString("x2"));
            }
            return sb.ToString();
        }
    }

3. Sleeping on a main thread.
Code:
        private void checkPatchFile(){
            PatchFile checkPatch = new PatchFile();
            if (!checkPatch.checkPatchFile(Convert.ToString(this.PatchLocation))){
                this.TransferSpeed.Visible = false;
                this.Information.Text = "Exiting Gunz Launcher.";
                this.Information.Refresh();
                Thread.Sleep(500);
                this.Information.Text = "Exiting Gunz Launcher..";
                this.Information.Refresh();
                Thread.Sleep(500);
                this.Information.Text = "Exiting Gunz Launcher...";
                this.Information.Refresh();
                Thread.Sleep(500);
                Environment.Exit(0);
            }else{
                this.checkFiles();
            }
        }

4. Do I even need to explain this?
Code:
        static bool FilesAreEqual(FileInfo first, FileInfo second){
            if (first.Length != second.Length)
                return false;
            int iterations = (int)Math.Ceiling((double)first.Length / BYTES_TO_READ);
            using (FileStream fs1 = first.OpenRead())
            using (FileStream fs2 = second.OpenRead()){
                byte[] one = new byte[BYTES_TO_READ];
                byte[] two = new byte[BYTES_TO_READ];
                for (int i = 0; i < iterations; i++){
                    fs1.Read(one, 0, BYTES_TO_READ);
                    fs2.Read(two, 0, BYTES_TO_READ);
                    if (BitConverter.ToInt64(one, 0) != BitConverter.ToInt64(two, 0))
                        return false;
                }
            }
            return true;
        }
 
Currently Stoned !
Joined
Dec 6, 2011
Messages
879
Reaction score
108
not a BACK DOOR ... But FRONT and OPEN door lol ..
any idea bout CGLEncryption?
 
Custom Title Activated
Loyal Member
Joined
Feb 18, 2012
Messages
1,433
Reaction score
391
May i ask how i get this Launcher working? I open it up in 2012 and open Form1 and edit this part
PHP:
        private Uri PatchLocation = new Uri("http://127.0.0.1/UnitedUpdate/Gunz");
and build it and when i open it up and run i recieve this error, is there anything else i gotta do?? Thanks

Tkn6Lx - Heroic Gunz - C# Launcher - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Status
Not open for further replies.
Back
Top