Download the current version (v1.1) (2.0 mb) which includes a Windows executable that detects the current win32 JRE. If you only have the 64-bit JRE installed, you’ll need to run the bat file. It also includes shell scripts for Linux and (fingers crossed) Mac.
appel, could you fix the JNLP file for 3DTunnel (gid 60)? It has an unescaped ampersand in the description, so the launcher throws a parse error when it tries to handle it.
Edit: as a workaround, for other people with the same problem, edit the downloaded file in work/bundle/downloads. I found it with grep, but it’s probably possible to find it with the index.json if you don’t have grep.
I was able to get the WebStart games to sort of work. However, it seems that many of the JNLP files redirect to other sites, and many of those are no longer available. There could be some hacks to redirect those using the caching mechanisms, but would it instead be possible to host those files directly on the java4k site?
I know that this is lower priority, because we want people playing the new games for this year’s contest, but I would like to be able to look at some of those old games for historical preservation purposes.
Appel, how are the JNLP files stored? There are a few others with unescaped ampersands, but there are also a considerable number which don’t parse because of encoding errors. They claim to be UTF-8, but aren’t.
Contests from 2005,2006,2007 were migrated over from javaunlimited when woogley was hosting the contest. So, all should be there and working.
During 2008,2009 the developers hosted their own webstarts. Since then a lot of these webstart games have disappeared, an obvious consequence of time.
However, and fortunately, ctomni231 managed to archive most of them and send it to me, so I have majority of those webstarts in a zip file. I’ve yet to add it to the site though.
All applets starting from 2010 are working.
Is java so narcissistic about text encoding that it’s not possible to read the xml’s?
I made a JSON service in order to browse the catalog, with this as starting point: http://java4k.com/contests.php
I recommend some json extension in your browser to see it structured and so you can browse it.
Downloading file ./downloads/28b from http://java4k.com/index.php?action=games&method=play&gid=141
Exception in thread "main" com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence.
Those of you who have actually managed to run this: how did you handle the problem with http://voidstar.brinkster.net/mazegame4k/ not being a JNLP file? I’m not sure what to change to allow load-cache to finish.
The file under resources/net/javagaming/java4k/launcher/fixed-urls.json was made with this purpose in mind. You’ll need to add an entry in that file to note the changed URL. In this case, I recommend creating a local jnlp file that’s essentially a no-op replacement.
One of the tasks I have is to make the cache loading tool skip bad files like this, so soon it shouldn’t be an issue. The current code can keep going now.