#Auto-Updater for my 2D Java game's Client

1 messages · Page 1 of 1 (latest)

sterile compassBOT
#

<@&987246399047479336> please have a look, thanks.

sterile compassBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

willow copper
#

Make a launcher for your client thay checks for update

#

The launcher then launches the new client

#

Simplist way

willow copper
#

User opens launcher, send a get request to check for latest version

#

If version is different from the one on the client download jar from server

#

replace client jar on disk with newly downloaded one

#

Launch client from launcher

azure rain
#

HTTP would be your best bet. You could use a variety of different protocols like an FTP server with anonymous logins etc.

#

But to keep it simple, and actually the best way would be to host an HTTP server.

#

Have it serve the latest version of your client, and have the launcher, auto-downloader, updater, whatever you want to call it; compare the version of your client to that being served on your server, and if there's a newer version available then you can download and execute it.

#

Things you'll want to learn is how to download things using Java. How to setup an HTTP server

#

Alternatively, you could also just upload the file to some website that allows direct access to downloads, however this won't really allow for version control.

#

You could actually do it using Github or something.

pure mural
#

actually a way using the releases function of a repository

#

a good way if the code is on github public anyways

#

tho this would need a github token which would need to be inside the launcehr

#

you would also need to check the now new api versioning in the github api