Hi,
We’re soon to be releasing Tribal Trouble (yay!) and are currently looking hard at the distribution options we have available. We’re focusing on web start since that gives us the nice update feature a multiplayer focused game needs to keep its players in sync when game-state affecting changes are made. However, we think that a web start link on our site is still too risky, because all users with a broken java and/or browser will never be able to run it.
So we’re creating separate linux and win32 installers that do the following steps:
- Install a private 1.5 jre
- Unpack TT web start files (jnlp and jar files) to some temp. dir.
- Use the new java 5 import feature (javaws -import) to inject TT into the web start cache.
It all works nicely, except for updates, which is whole reason for using web start in an offline installer. On the first run, it either updates the entire game or no files at all, regardless if we’ve made changes to the game on the web server after the installer was created. This makes sense, since web start is probably comparing the time stamps for the temp files with the server time stamps.
So how can this problem be solved? I’ve considered versioned jar files, but this requires a lot of setup for the JnlpServlet and as far as I can see, it won’t solve the problem for the jnlp file, which is not versioned.
- elias