Hello,
I’m making a little game, which should have 2 Jars, one that runs first and whose job is to check the version of the client game and compare with the server version, if they differ i update the client files, if they’re the same, i just run the application Jar.
I have a little server (only holds 20MB but that’s fine for now), and I have a version.txt file which is what my updater compares the client version with.
My question is though, what would be a good way to determine which files to download and which ones are the same so don’t bother downloading… my very barbaric solution was to check each and every single file from the server with each and every single file with the client but that’s obviously not efficient.
Then I was thinking that perhaps each directory should have a version.txt file, so that if a directory version differs with the game, download the entire directory instead of the entire project, but that’s still downloading stuff that i may not need.
Thank you for the help!