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.
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 */ }
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.
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 */ }
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.
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.