Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Crest's Juiced-AutoUpdater


deathtaker26
 Share

Recommended Posts

(Note: I really didn't comment too much or really do TOO perfect on the code as it was a simple application and I decided at the last second to post on github… so enjoy)

Crafted for Juiced Game Engine (WIP)

So here's a multipurpose auto updater I coded today, it's kinda sleek. It includes a modifiable photoshop .psd file that you can create your own skins in, and the source will be uploaded later.

Here is a preview of the layout, like I said, you can modify it VERY easily...

>! ![](http://eclipseorigins.com/community/filehost/4422ac31eb715af3975e2b433bf74ca3.png)

**How it works:**

Create a directory on your computer of the update you will be making.

Place the **UpdateGenerator.exe** into the directory along with **Newtonsoft.Json.dll**

A file called updates.json will be created.

Upload the entire directory to an HTTP server (website server)

place **Updater.exe**, **Newtonsoft.Json.dll**, and the entire **launcher** folder (with all the files in it) into the root directory of your game client/application

Now, you will need to modify the config.json located in Launcher,

Navigate to and open **/launcher/config.json**

modify the value that says** "UpdateURL" **to the URL directory of the **updates.json **you uploaded earlier (Example: [http://www.mysite.com/updates) ](http://www.mysite.com/updates)%C2%A0)

**BE SURE THAT YOUR UPDATE URL DOES NOT HAVE A / AT THE END OF IT!**

modify the value that says "**Application**" to be the application you want to launch after the updater is done. (Example: eclipse.exe)

That's it you're now done!

**What it does:**

The UpdateGenerator.exe generates a json file consisting of filenames and Checksum hashes. If a file doesn't exist or the md5 hash on the client differs from the one on the server, it will automatically download the needed file. This stops the creation of different versions, which download the same files over and over to new clients, less to downloader, smarter choice.  :D

GitHub Source: 

[https://github.com/DylanDodds/Juiced-AutoUpdater](https://github.com/DylanDodds/Juiced-AutoUpdater)

Created in Visual Studio 2012 express, C#
Link to comment
Share on other sites

> Oh, cool, nice to know I'm not the only one who uses JSON.

You kidding? I LOVE Json, it's my fave method for file configuration

> dats fkin nice check my pull request

Nice requests, I was actually going to add a file that users can define what files to ignore, really if you wanna ignore something you can modify the JSON file and remove the objects with the items you want to ignore, i was gonna implement it but I got lazy.

On a side note, you can check that people got the update by using the same updates.json file to check the checksums through your game client so people don't skip crucial updates.
Link to comment
Share on other sites

> im 1 git noob so i have 1 question
>
>  
>
> if u dont accept the pull request, how do i create another pull request for another feature which dont have the code 4 the ignore one?

Every time you develop a new feature you should create a new branch and PR that.
Link to comment
Share on other sites

lenton this seem like 1 gud idea

i read this : [http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging](http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging)

and this : [https://guides.github.com/introduction/flow/](https://guides.github.com/introduction/flow/)

1 problem is that i pushed to my main branch, so im stuck i think
Link to comment
Share on other sites

  • 4 months later...
> will drop box work with this?

I would advise to stay away from dropbox. If you have an old account that has the public folder enabled (It cost money for new accounts now) it would work. But if your game is very popular and many people are downloading they will shut off your account as dropbox is for sharing/storeing files and not for updaters :S
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
 Share

×
×
  • Create New...