Jump to content

Your own launcher for your game - BUG FIX + UPDATE include source


jesusbleach

Recommended Posts

I was mading a little launcher.

How it works:

infopn11.jpg

BIG UPDATE

launch10.jpg

I have all the morning working on it , and now works!

-Added repair button. Set the version to 0 and redownload ALL the files

DOWNLOAD HERE:

SOURCE + UPDATE + BUG FIX:

http://www.ascensiongamedev.com/resources/filehost/90592f0f90853fa19597b1f4105714e3.rar

This launcher can update your game by zip files, no need to be huge files, you can update a tileset for example madin a zip with the folder/resources/tilesets, and put only the tilesets you want replace/add

HOW IT WORKS

is based on two files, the "news" txt file and the "version" txt file:
News file

Spoiler

Here you put a text the launcher shows

for example:

 


17/09/2017
-----------------------
EVENT DOUBLE EXP

or something...

 

Version file

Spoiler

Here you configure the updates


//use this to put comments, and have to end with ";" 
//you can put comments;

//use this to install a zip update on your game
unzip|version of the update|url of zip file; 

//use this to set the current version you get before update
setversion|version number|;

if after unzip commands you dont set a version, the program will download all the files on higer than his own version. by default "0"

it means if you after  unzip files on version "1" you dont set version 1 or higher, you gonna redownload them the next time you open the launcher.

Example of version file:

Spoiler


//Download the initial version of the client;
unzip|1|https://yourhost.com/Launcher/client.zip;
setversion|1|;
//Download resource addons;
unzip|2|https://yourhost.com/Launcher/lang.zip;
unzip|2|https://yourhost.com/Launcher/tileset city.zip;
unzip|2|https://yourhost.com/Launcher/extra player sprite.zip;
setversion|2|;
//for update the config file with the ip every time you can add a download with a crazy version;
unzip|6546546546|https://yourhost.com/Launcher/ipconfig.zip;
//you dont set any version and because this file always have higher version will download every time you open the launcher.;
//you can put it at first lane, for example:;
unzip|6546546546|https://yourhost.com/Launcher/ipconfig.zip;
unzip|1|https://yourhost.com/Launcher/client.zip;
setversion|1|;
unzip|2|https://yourhost.com/Launcher/lang.zip;
unzip|2|https://yourhost.com/Launcher/tileset city.zip;
unzip|2|https://yourhost.com/Launcher/extra player sprite.zip;
setversion|2|;
//you can mix file orders, will work anyway;

 

 

the colors goed crazy on code box...

This is my custom version

lauche10.jpg

 

Link to comment
Share on other sites

17 minutes ago, Gravelord said:

This is a very good start.

 

Some ideas for user functionality:

- Have old news posts below the current one with a scroll bar.

- A configurable UI, similar to how Intersect does it with an .xml file, so we can arrange it to suit our games.

 

well, this is only a template so im not sure if i gonna continue it. sorry, if i change my mind i will post it :(

Link to comment
Share on other sites

On 14/9/2017 at 1:44 PM, Gravelord said:

This is a very good start.

 

Some ideas for user functionality:

- Have old news posts below the current one with a scroll bar.

- A configurable UI, similar to how Intersect does it with an .xml file, so we can arrange it to suit our games.

 

for now you can configure color UI, and the other things are get from your game configuration...

from the scrollbar idea, also im gonna put a navegator frame for put a html images and text on your launcher, is an idea for later

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...