deathtaker26 Posted September 4, 2014 Author Share Posted September 4, 2014 (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/applicationNow, 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. :DGitHub 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 More sharing options...
Akrivus Posted September 4, 2014 Share Posted September 4, 2014 Oh, cool, nice to know I'm not the only one who uses JSON. Link to comment Share on other sites More sharing options...
Xx pr0c0d3r xX Posted September 4, 2014 Share Posted September 4, 2014 dats fkin nice check my pull request Link to comment Share on other sites More sharing options...
deathtaker26 Posted September 4, 2014 Author Share Posted September 4, 2014 > 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 requestNice 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 More sharing options...
Xx pr0c0d3r xX Posted September 4, 2014 Share Posted September 4, 2014 im 1 git noob so i have 1 questionif 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? Link to comment Share on other sites More sharing options...
deathtaker26 Posted September 4, 2014 Author Share Posted September 4, 2014 > 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?I'm not sure. Link to comment Share on other sites More sharing options...
Lenton Posted September 4, 2014 Share Posted September 4, 2014 > 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 More sharing options...
deathtaker26 Posted September 4, 2014 Author Share Posted September 4, 2014 > Every time you develop a new feature you should create a new branch and PR that.[Crešt](http://www.eclipseorigins.com/community/index.php?/user/41349-cre%C5%A1t/) 3.0 makes a valid point…. Link to comment Share on other sites More sharing options...
Xx pr0c0d3r xX Posted September 4, 2014 Share Posted September 4, 2014 lenton this seem like 1 gud ideai 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 More sharing options...
deathtaker26 Posted September 4, 2014 Author Share Posted September 4, 2014 I have no idea what your trying to do Link to comment Share on other sites More sharing options...
Xx pr0c0d3r xX Posted September 4, 2014 Share Posted September 4, 2014 accept the pull request and its gonna b fine Link to comment Share on other sites More sharing options...
deathtaker26 Posted September 4, 2014 Author Share Posted September 4, 2014 Sorry I was working on my other application, one sec. Link to comment Share on other sites More sharing options...
Xx pr0c0d3r xX Posted September 5, 2014 Share Posted September 5, 2014 ![](http://i.imgur.com/CDidSYP.png)this is very simple obv cuz im not very c#/.net smart, but i guess in the end its kind of what people may want Link to comment Share on other sites More sharing options...
deathtaker26 Posted September 12, 2014 Author Share Posted September 12, 2014 I left that area blank in case someone wanted a browser or an image, it was there call… or an update log or whatever. Link to comment Share on other sites More sharing options...
whitespirits Posted January 19, 2015 Share Posted January 19, 2015 will drop box work with this? Link to comment Share on other sites More sharing options...
deathtaker26 Posted January 19, 2015 Author Share Posted January 19, 2015 I'm not 100% sure but I doubt it, you would need an http server. Wamp and xampp are the easiest to install and configure. if you have a dedicated machine such as a vps or dedicated server running linux install the package apache2 Link to comment Share on other sites More sharing options...
lexkymbeth Posted January 19, 2015 Share Posted January 19, 2015 > 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 More sharing options...
whitespirits Posted January 19, 2015 Share Posted January 19, 2015 ok, is there any updater that is really simple to use around? Link to comment Share on other sites More sharing options...
lexkymbeth Posted January 20, 2015 Share Posted January 20, 2015 > ok, is there any updater that is really simple to use around?This one is pretty simple, you just need some area to host the update files Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now