LodeScape RPG

Make a launcher, and make the game auto-updatable c:

Whats the problem with double clicking the jar? Lol and I have no idea on how to go about doing updates

Well for me, I always have to write a .bat file containing the code to launch the .jar lol


java -jar JAR_NAME.jar

If this were to happen (not being able to launch by double clicking) to a “Player” (Non Java Programmer) I’m guessing it would DE-motivate him to play lol.

But than again maybe it’s just my computer :stuck_out_tongue:

A quick suggestion would be that you’d host the LodeScape.jar online and attach a “Version number” to it:
http://www.yourwebsite.com/releases/LodeScapeV0-0-0-1.jar

Run a quick check prior to executing any game code to parse the version from the URL, if it doesn’t match the current version programmed into the client:


public static final String GAME_VERSION = "V0-0-0-1.jar";
public static final String WEBSITE_URL = "www.yourwebsite.com/releases/";
public static final String GAME_NAME = "LodeScape";

if (!URL.toString().replace(WEBSITE_URL + GAME_NAME, "").equals(GAME_VERSION)) { /* Download it */ }

Just a suggestion.

Make a launcher, and make the game auto-updatable c:

Whats the problem with double clicking the jar? Lol and I have no idea on how to go about doing updates

Well for me, I always have to write a .bat file containing the code to launch the .jar lol


java -jar JAR_NAME.jar

If this were to happen (not being able to launch by double clicking) to a “Player” (Non Java Programmer) I’m guessing it would DE-motivate him to play lol.

But than again maybe it’s just my computer :stuck_out_tongue:

A quick suggestion would be that you’d host the LodeScape.jar online and attach a “Version number” to it:
http://www.yourwebsite.com/releases/LodeScapeV0-0-0-1.jar

Run a quick check prior to executing any game code to parse the version from the URL, if it doesn’t match the current version programmed into the client:


public static final String GAME_VERSION = "V0-0-0-1.jar";
public static final String WEBSITE_URL = "www.yourwebsite.com/releases/";
public static final String GAME_NAME = "LodeScape";

if (!URL.toString().replace(WEBSITE_URL + GAME_NAME, "").equals(GAME_VERSION)) { /* Download it */ }

Just a suggestion.

I would.consider making a launcher but I don’t have a web server to host this on

Personally a free server is all you need.
http://www.biz.nf/ is what I use.

Comes with a free http://www.yourwebsitename.co.nf and a control panel etc (PHP/MYSQL/AJAX)

That looks too good to be true.

What’s the downside?

I would.consider making a launcher but I don’t have a web server to host this on

There is no downside I guess, I haven’t found a problem with .co.nf hosting :>

Have some appreciation for that. :slight_smile:

EDIT: Max 2MB file upload size. Will cause problems for any downloads packaging all the LWJGL natives. But you can work around this by using separate downloads and a bit more code in the launcher.

Personally a free server is all you need.
http://www.biz.nf/ is what I use.

Comes with a free http://www.yourwebsitename.co.nf and a control panel etc (PHP/MYSQL/AJAX)

That looks too good to be true.

What’s the downside?

There is no downside I guess, I haven’t found a problem with .co.nf hosting :>

Have some appreciation for that. :slight_smile:

EDIT: Max 2MB file upload size. Will cause problems for any downloads packaging all the LWJGL natives. But you can work around this by using separate downloads and a bit more code in the launcher.

Why not just use a GitHub Page? You will likely get a GitHub account at some point or another so getting a GitHub page is simple and easy, and you can add to it simply by committing to it and pushing, just like normal Git. I’ve used it for awhile and it works well. I kind of gave up on keeping all of my downloads up-to-date and all though. Mainly because the one download I needed to I rewrote most of and didn’t feel confident to update the download. But anyway, this is a good example of using my GamePatcher library to make a launcher and using a GitHub page for the download server. For example, at this page on my GitHub page you can click on either of the links and it will initiate a download. The actual game ZIP is hidden in the website, at http://sammidysam.github.io/PixelZombies/PixelZombies.zip

I think GitHub pages sounds a lot easier than what you are looking at. Though it is a fully fledged website and not just a server. You can easily use it as a server though. Check it out.

Why not just use a GitHub Page? You will likely get a GitHub account at some point or another so getting a GitHub page is simple and easy, and you can add to it simply by committing to it and pushing, just like normal Git. I’ve used it for awhile and it works well. I kind of gave up on keeping all of my downloads up-to-date and all though. Mainly because the one download I needed to I rewrote most of and didn’t feel confident to update the download. But anyway, this is a good example of using my GamePatcher library to make a launcher and using a GitHub page for the download server. For example, at this page on my GitHub page you can click on either of the links and it will initiate a download. The actual game ZIP is hidden in the website, at http://sammidysam.github.io/PixelZombies/PixelZombies.zip

I think GitHub pages sounds a lot easier than what you are looking at. Though it is a fully fledged website and not just a server. You can easily use it as a server though. Check it out.

THis actually sounds like a pretty good idea are there any caps on bandwith on github?

Game is looking really good :slight_smile:

That also sounds a good idea with GitHub- need to look at that.