Register for your free account! | Forgot your password?

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

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

 

[RELEASE] Launcher/Updater [Source]

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2012
Posts: 147
Received Thanks: 196
[RELEASE] Launcher/Updater [Source]

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:
You must register and activate your account in order to view images.

Look for:
Code:
string Server = "http://127.0.0.1/Updates/";
Change 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:
You must register and activate your account in order to view images.
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:
You must register and activate your account in order to view images.
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




TheChinStrap is offline  
Thanks
91 Users
Old   #2
 
elite*gold: 0
Join Date: May 2012
Posts: 21
Received Thanks: 3
Good work Thanks


TheAgame is offline  
Old   #3
 
elite*gold: 0
Join Date: Mar 2012
Posts: 200
Received Thanks: 23
Great Job ...
AngelOwns is offline  
Old   #4
 
elite*gold: 0
Join Date: Jul 2012
Posts: 147
Received Thanks: 196
-null


TheChinStrap is offline  
Thanks
1 User
Old   #5
 
elite*gold: 0
Join Date: Jul 2011
Posts: 264
Received Thanks: 233
it's like the one i made but i don't use xml i use a text file :P

it's easy to make one just make a simple downloader and add a zip unpacker and you have and a text or xml file for the version and you will have a good updater launcher for your server
and try to add a try icon for those who have a low download rate
and you will have the same launcher i made
M>M is offline  
Old   #6
 
elite*gold: 0
Join Date: Jul 2012
Posts: 147
Received Thanks: 196
Quote:
Originally Posted by M>M View Post
it's like the one i made but i don't use xml i use a text file :P

it's easy to make one just make a simple downloader and add a zip unpacker and you have and a text or xml file for the version and you will have a good updater launcher for your server
and try to add a try icon for those who have a low download rate
and you will have the same launcher i made
Well, This is a basic launcher that I made for the people here on epvp. I didn't do a whole lot with the design because people will obviously change that about as they see fit. Same goes for the buttons and so on.
TheChinStrap is offline  
Old   #7
 
elite*gold: 0
Join Date: Aug 2011
Posts: 161
Received Thanks: 36
that don't updating with me -_-
gruce is offline  
Old   #8
 
elite*gold: 1
Join Date: Nov 2011
Posts: 651
Received Thanks: 104
Ill add this thread to rdc, and ill add your name and M>M to the devs page
Tofrum is offline  
Old   #9
 
elite*gold: 0
Join Date: Aug 2011
Posts: 161
Received Thanks: 36
dud ..

m>m
he is hawas ~~
gruce is offline  
Old   #10
 
elite*gold: 1
Join Date: Nov 2011
Posts: 651
Received Thanks: 104
Quote:
Originally Posted by gruce View Post
dud ..

m>m
he is hawas ~~
Yeh i found about that, added M and removed hawas

U developed something/ coded something?? (gruce)
Tofrum is offline  
Old   #11
 
elite*gold: 0
Join Date: Aug 2011
Posts: 161
Received Thanks: 36
yes ,

and now i want rappelz kts to add new item from kts


want pic ?


ok


see this !!


You must register and activate your account in order to view images.


New Pet's


want the link fast please
gruce is offline  
Old   #12
 
elite*gold: 1
Join Date: Nov 2011
Posts: 651
Received Thanks: 104
Then ill add u to the list

Im arabian dude...
Tofrum is offline  
Old   #13
 
elite*gold: 0
Join Date: Aug 2011
Posts: 161
Received Thanks: 36
thx me 2
gruce is offline  
Old   #14
 
elite*gold: 0
Join Date: Jul 2012
Posts: 147
Received Thanks: 196
Quote:
Originally Posted by [Co-Admin]Tofrum View Post
Ill add this thread to rdc, and ill add your name and M>M to the devs page
I don't mind if you put my stuff up for download on your page, as long as you ask first. If you're going to add me to your page put me down as "Montesboogey".
TheChinStrap is offline  
Old   #15
 
elite*gold: 0
Join Date: Jun 2012
Posts: 1
Received Thanks: 0
Thanks for your work, i searched a lot for some example of code, cuz i want to programe my own adn your work is good as tutorial how it may looks. THANKS AGAIN and keep your work up ^^


Izannami is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Release] Open source Launcher v1
Devil's launcher open source project °Features : Server status picture based. News . Costom GUI. Rollover pictures. Special Design.
21 Replies - EO PServer Guides & Releases
Launcher + Updater !
Suche DRINGEND jemand, der sich mit LAUNCHER+UPDATER auskennt.. MFG
9 Replies - Last Chaos Private Server
[Release] Simpler Updater Source
Hallo Leute, da ich hier aufm PC nen Updater rumfliegen hatte, habe ich mir gedacht, möchte ich ihn mal für euch zur Verfügung stellen. Leider...
50 Replies - Metin2 PServer Guides & Strategies
VB launcher + updater
Hi I made a game launcher/updater in VB.NET. It's also finish but I need help because I use DIV and I don't know exacly what is the code to download...
0 Replies - Dekaron Private Server
Launcher, Updater ?!?
Also ich habe mir qerade WarRock neu qeladen, und dann bleibt es stehen. http://www7.pic-upload.de/20.02.11/1rx8vtc82j56.png
6 Replies - WarRock



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


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

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