Public C# Launcher with screenies! Yaay

Page 1 of 2 12 LastLast
Results 1 to 25 of 30
  1. #1
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Public C# Launcher with screenies! Yaay

    Duuh herro!
    Been looking around for this earlier and only found launchers in AutoIT so I eventually made my own :)

    It's nothing fancy really and I lack creativity (design speaking) so yeah :P I hope people can make use of it though ^^

    So here's how it works;

    -First you'll need a webhost. (That's where it'll download the updates from)
    You'll put your update URL inside 'launcher.ini' aswell as the links you wish to display in the browsers.


    -Create a folder called update so the link will be something like "http://yourlinkhere.com/update"

    To create an update, you'll need to do the following;
    1. Create version.txt in the update file we just created

    2. Make sure your files are properly placed; (When the file extracts, it should extract them and replace the original files)


    3. Now change your cabalmain's version to +1, for example if your cabalmain's version is 2, make it 3. You'll need resource hacker (Or that's what I use anyway, google is your bestfriend)


    4. Put your update inside a self extracting archive (SFX) using silent mode (hide all) and overwrite all files, so it doesn't need the user to click anything.

    5. Now upload your update to your "Update" folder on the webhost and name it "update(version)", it should look something like this;


    6. Change version.txt to whatever your current version is; MAKE SURE YOU DO THIS AS THE LAST STEP!

    Additional Info;
    The update will download updates one by one in order to not mess the game files up, so if you have "update2", "update3", "update4", it will downloads update2 first then 3 then 4.
    If you set the version.txt to a higher version without the update file being there it'll throw an exception.
    If you set the version to something lower than your current cabalmain version, the updater WILL NOT update.

    So, here it is, I kinda suck at explaining so lemme know if I missed anything xD

    PS: If you have anything to ask or request please lemme know ~ I might add more to it when I get some more free time :P

    https://mega.co.nz/#!MlB0ASaI!Qlxa2g...tBEqPwWFPTuRhU
    Attached Files Attached Files
    Last edited by xDarkMoon; 19-03-14 at 04:57 PM.


  2. #2
    Cya nerds PunkS7yle is offline
    MemberRank
    Feb 2010 Join Date
    1,448Posts

    Re: Public C# Launcher with screenies! Yaay

    I was gonna dld and judge your code but I don't see a link ?

  3. #3
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by PunkS7yle View Post
    I was gonna dld and judge your code but I don't see a link ?
    lmfao my bad I thought I put it there xD Updated.
    And it's nothing pro really, just trying to be helpful c:

  4. #4
    Cya nerds PunkS7yle is offline
    MemberRank
    Feb 2010 Join Date
    1,448Posts

    Re: Public C# Launcher with screenies! Yaay

    Code:
    private void button1_Click(object sender, EventArgs e)
    {
        if (File.Exists("C:/Windows/System32/drivers/etc/hosts"))
        {
            using (StreamReader reader = new StreamReader("C:/Windows/System32/drivers/etc/hosts"))
            {
                string str = reader.ReadToEnd();
                if ((str.Contains("46.150.46.170 xtrap.cabalonline.com.br") && str.Contains("46.150.46.170 download.priston.com.br")) && str.Contains("46.150.46.170 path.pointblankonline.com.br"))
                {
                    MessageBox.Show("Your xtrap is already fixed!", "Attention!");
                }
                else
                {
                    reader.Dispose();
                    this.writehosts();
                }
                return;
            }
        }
        this.writehosts();
    }
    This will throw an error if not ran as admin and on windows 8.1 especially even with a disabled user account control the launcher needs to be specifically ran as Admin to be able to edit the hosts file.

  5. #5
    Apprentice cihatkaya is offline
    MemberRank
    Dec 2012 Join Date
    ArtvinLocation
    23Posts

    Re: Public C# Launcher with screenies! Yaay

    mega.co.nz upload please ?

  6. #6
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by PunkS7yle View Post
    This will throw an error if not ran as admin and on windows 8.1 especially even with a disabled user account control the launcher needs to be specifically ran as Admin to be able to edit the hosts file.
    That's why it's disabled lol. Would be nice if you don't show the source to everyone you know >.>

  7. #7
    Cya nerds PunkS7yle is offline
    MemberRank
    Feb 2010 Join Date
    1,448Posts

    Re: Public C# Launcher with screenies! Yaay

    It doesn't show as commented though. And I'm not showing the whole source am I ?

  8. #8
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by PunkS7yle View Post
    It doesn't show as commented though. And I'm not showing the whole source am I ?
    Disabled** I'm failing too much lol my bad.
    Anyway, reuploaded~ I hope you're happy now .-.

  9. #9
    Cya nerds PunkS7yle is offline
    MemberRank
    Feb 2010 Join Date
    1,448Posts

    Re: Public C# Launcher with screenies! Yaay

    I don't care so it doesn't make me happy or anything else though

  10. #10
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Okay..

  11. #11
    Hardcore Member Stricted is offline
    MemberRank
    Feb 2012 Join Date
    GermanyLocation
    234Posts

    Re: Public C# Launcher with screenies! Yaay

    can we have the source code pls?
    i need them to modify the update check method
    i want to make that with the cabalmain version (example: old version 369, new version 370 = update available)

  12. #12
    Cya nerds PunkS7yle is offline
    MemberRank
    Feb 2010 Join Date
    1,448Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by Stricted View Post
    can we have the source code pls?
    i need them to modify the update check method
    i want to make that with the cabalmain version (example: old version 369, new version 370 = update available)
    It's already using the cabalmain version. And its not obfuscated btw.

  13. #13
    Hardcore Member Stricted is offline
    MemberRank
    Feb 2012 Join Date
    GermanyLocation
    234Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by PunkS7yle View Post
    It's already using the cabalmain version. And its not obfuscated btw.
    the screens in the start posts say other things
    when I look at the screenshot to me then I see i must add a new version string and this is what i not want

  14. #14
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by Stricted View Post
    can we have the source code pls?
    i need them to modify the update check method
    i want to make that with the cabalmain version (example: old version 369, new version 370 = update available)
    Well..
    Quote Originally Posted by PunkS7yle View Post
    It's already using the cabalmain version. And its not obfuscated btw.
    ^
    And you don't need to add anything all you need to do is edit Product Version.
    http://prntscr.com/32bzp8 < How it looks on punk's original cabalmain

    If that's not what you mean then explain?

  15. #15
    Hardcore Member Stricted is offline
    MemberRank
    Feb 2012 Join Date
    GermanyLocation
    234Posts

    Re: Public C# Launcher with screenies! Yaay

    ok thanks but i want only modify fileversion

  16. #16
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by Stricted View Post
    ok thanks but i want only modify fileversion
    You'll need to change that anyawy for the DB Version, you can just set File version and product version to whatever your current version is?

  17. #17
    Enthusiast DevilMayCry4 is offline
    MemberRank
    Feb 2014 Join Date
    34Posts

    Re: Public C# Launcher with screenies! Yaay

    Please dont fight ...

  18. #18
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by DevilMayCry4 View Post
    Please dont fight ...
    We're not..? ._.

  19. #19
    Proficient Member ijoo is offline
    MemberRank
    Mar 2008 Join Date
    171Posts

    Re: Public C# Launcher with screenies! Yaay

    with paramater? break or hus?

  20. #20
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by ijoo View Post
    with paramater? break or hus?
    Husky

  21. #21
    Proficient Member estsoft is offline
    MemberRank
    Jan 2014 Join Date
    154Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by xDarkMoon View Post
    > Sublime Text screenshot

    Good choice.

  22. #22
    Cya nerds PunkS7yle is offline
    MemberRank
    Feb 2010 Join Date
    1,448Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by estsoft View Post
    > Sublime Text screenshot

    Good choice.
    Not using Atom..
    ???

  23. #23
    Valued Member xDarkMoon is offline
    MemberRank
    Nov 2012 Join Date
    The moonLocation
    142Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by estsoft View Post
    > Sublime Text screenshot

    Good choice.
    Thanks :o

  24. #24
    Proficient Member estsoft is offline
    MemberRank
    Jan 2014 Join Date
    154Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by PunkS7yle View Post
    Not using Atom..
    ???
    Atom is inferior to ST3 atm, mostly due to the fact that it's so young. Also, that it runs on Node.js doesn't help, either

  25. #25
    Cya nerds PunkS7yle is offline
    MemberRank
    Feb 2010 Join Date
    1,448Posts

    Re: Public C# Launcher with screenies! Yaay

    Quote Originally Posted by estsoft View Post
    Atom is inferior to ST3 atm, mostly due to the fact that it's so young. Also, that it runs on Node.js doesn't help, either
    It had plenty of updates since I told you about it, and it's superior to st3 in terms of developing tools, it just lacks some normal text editor features ;<.



Page 1 of 2 12 LastLast

Advertisement