[RELEASE] Launcher/Updater [Source]

06/09/2017 02:28 medaion#76
Bonsoir je suis francais & J'ai la solutions a vôtre problème :)

08/15/2017 01:50 edwindawe81#77
Hello i done what tut said and im getting this ...
[Only registered and activated users can see links. Click Here To Register...]


and how to i get 2 cliant running at same time
08/15/2017 03:14 Exterminator-[Fury]#78
Replace the //Starts the game in form1.cs with the code below.


For multiclient create bat launcher.

good luck.


Quote:
Originally Posted by edwindawe81 View Post
Hello i done what tut said and im getting this ...
[Only registered and activated users can see links. Click Here To Register...]


and how to i get 2 cliant running at same time
08/15/2017 10:54 edwindawe81#79
Quote:
Originally Posted by exter16 View Post
Replace the //Starts the game in form1.cs with the code below.


For multiclient create bat launcher.

good luck.
Thanks for the help :) but when i log on i'm getting this ...

[Only registered and activated users can see links. Click Here To Register...]
08/15/2017 13:06 ThunderNikk#80
Is your server port and address correct where he told you to enter IP and enter port or did you just copy and paste what he had?
08/15/2017 13:59 edwindawe81#81
thanks for the help i looked agen and saw a i put a space in auth port lol
Now i got a little problem whei go th puplish is get this
[Only registered and activated users can see links. Click Here To Register...]
09/11/2017 05:05 degaz#82
i need your facebook please
11/18/2017 21:00 JohnnyGhost#83
Not compatible with VS 2010 (at least my studio tells me so)
11/18/2017 21:47 ThunderNikk#84
Quote:
Originally Posted by TheChinStrap View Post
It was made in Visual Studio 2012 Ultimate RC (Tested and works fine in VS-2010) in C#.
Did you try and compile it at all or at least post what errors you are getting maybe someone can help you.
11/18/2017 23:16 JohnnyGhost#85
I know this is nothing said but i deleted it allready so all i can say ist that it said that the version of the file was not compatible with my VS2010 and that i should get the correct VS version.
11/19/2017 06:31 ThunderNikk#86
You could also look into SilentWisdoms Portal release which is another nice open source launcher. You can find links to it in his signature.

I could post a precompiled version of this here but most prefer open source so they can view what is going on in the code.

Either way let me know I am sure ChinStrap would not mind, but having precompiled also keeps you from being able to make changes to the server launch arguments for when you publish it.

Mine usually tells me that I am opening older incompatible files when I open them in 2015 but it usually converts them ok and allows me to build them ok. It is really most of the time an informational message that it is going to try to convert the program.
12/17/2018 20:47 pablolevy#87
Perfect Man!
I used it to my Aion Launcher, the autoupdate is all *-*

Quote:
Originally Posted by TheChinStrap View Post
Hello everyone...

For those of you that don't know me, and those that do and don't recognize the username... I go by Montesboogey, previously on Epvp as Urusendayo. I've lost my account info and unfortunately had to re-register. I've been away for quite some time as I've been caring for my brother in the cancer hospital. (Still fighting strong, the brave bastard) Anyway...

I've done a bit of development recently and since I cannot currently afford to have my server running again any time soon I thought I'd share my stuff around.

I haven't seen a launcher/updater on here and I've seen people in the past asking for one, not to mention countless servers operating without one, so i thought I'd release mine.

It was made in Visual Studio 2012 Ultimate RC (Tested and works fine in VS-2010) in C#. Details are as follows:
  • Checks for local version in client folder
  • If version file does not exist it assumes the version is "1.0" and creates a version file
  • Checks xml file on server for updates
  • Downloads updates for all greater versions than the client's current version (updates all in zip file format only)
  • Extracts zip files
  • Delete's zip files after extraction
  • Updates version file in client folder
  • And, finally, unlocks the "START GAME" button

How to edit
Open up the sln file in "VS Project" folder with Visual Studio 2010 or Visual Studio 2012 RC:
[Only registered and activated users can see links. Click Here To Register...]

Look for:
Code:
string Server = "http://127.0.0.1/Updates/";
Change [Only registered and activated users can see links. Click Here To Register...] to whichever url you will be hosting your updates.
Important to note: the url must end with a "/".
Example:
Wrong way:
Code:
http://127.0.0.1/Updates
Right way:
Code:
http://127.0.0.1/Updates/
Open the "Upload to Webserver" folder:
[Only registered and activated users can see links. Click Here To Register...]
Upload the contents of this folder to wherever you will be hosting your updates. (With exception of the html folder all other files are required or updating will NOT work.)

In Visual Studio, select the WebBrowser Control (In this case named "patchNotes") and change the url from "http://127.0.0.1/" to whichever url you will be displaying in your launcher:
[Only registered and activated users can see links. Click Here To Register...]
I have provided a page, located in "Upload to Webserver\html". (Based on Luis Zuno's "Zen" template as a boilerplate.) There is also a psd file located in "Resources" which contains the background and logo source. You may use these however you like.

Next you will want to edit you xml file (Updates.xml) to represent your downloads.
Code:
<?xml version="1.0" encoding="utf-8" ?>
<theupdates>

  <update>
* * <version>1.1</version>
* * <file>V1-1.zip</file>
* </update>

  <update>
* * <version>1.2</version>
* * <file>V1-2.zip</file>
* </update>

  <update>
* * <version>1.3</version>
* * <file>V1-3.zip</file>
* </update>

</theupdates>
This is quite straight forward. Please note, you cannot use decimals "." in the file name or it will return an error. Also note the update MUST be a zip file. The entire program is dependent on this.

To add an update, simply add it to the "Update.xml"-
Code:
<update>
* * <version>1.4.1</version>
* * <file>V1-4-1.zip</file>
* </update>
And change the version in the "version.txt" on the server.

I have provided a sample launcher in the "Sample Launcher" directory. You can open this up to see it in action. I recommend running it from there rather than using it in a client folder as it will download some "dummy files". if it works correctly you should see it download 3 zip folders, extract them, delete them, then create a "version" file. Inside the "Resource" folder you will then see a "1", "2", and "3" file.

(Also note the launcher NEEDS the provided dll file to function)

And that about covers it. If you have any questions or comments, feel free to post them here or pm me. If you decide to use my launcher, proper credits are appreciated. ;)

Please, please, please do not flame. I may not be the most gifted C# programmer, but I'm making the effort.

Enjoy :)

[Only registered and activated users can see links. Click Here To Register...]
01/01/2019 06:24 mannna#88
Thanks bro , and really is good launcher , but i want to change direction because i will use it for my game , because after download from my server create folder name Resource then create folder name V1-1 , so if i want to change direction what can i do , thanks so much
07/27/2019 09:55 stee1ll#89
Who will help me? my client is not updated. Writes that "the client is updated". Changed
Quote:
string Server = "http://***.***/Updates/";
Quote:
<?xml version="1.0" encoding="utf-8" ?>
Updates.xml
<theupdates>

<update>
* * <version>1.1</version>
* * <file>V1-1.zip</file>
* </update>

<update>
* * <version>1.2</version>
* * <file>V1-2.zip</file>
* </update>

<update>
* * <version>1.3</version>
* * <file>V1-3.zip</file>
* </update>

</theupdates>
version.txt
Quote:
1.3
Heeeeeelp
[Only registered and activated users can see links. Click Here To Register...]
07/27/2019 10:08 BosniaWarlord#90
God luck