From: Erik V. <eri...@hc...> - 2009-11-06 20:47:02
|
> I know that registering an association with the .rails file extension > is very platform specific. We'll need to investigate if Java has a > platform agnostic way of doing this, or if we just need to figure out > how to do this on each platform we want to support. In my mind, the > primary targets are Windows XP or better, OS X (10.4 or 10.5 and > beyond, I'd guess), and Linux (Gnome 2.25+ and KDE 4+). Brett, I have checked in some code in an attempt to get this feature implemented. There is a new class rails.util.RunGame to replace rails.util.GameTest. Mostly because of the more appropriate name and package, but also to add a filename pickup feature: the first argument passed into main() will be considered a filepath of a Rails saved file to be loaded (the .rails extension is currently not checked). This works to some extent, the file gets loaded and the windows get displayed, but when laying a tile the program runs into tile finding problems. I don't know if this is a code or a classpath problem. To sort this out I would ask you if you create a new executable jar file (let's call it 1.0.7 alpha), with the added feature that an argument can get passed into RunGame.main(). In Windows, the Rails extension must then be bound to the script rails.bat that starts Rails and which must be updated to pass the filename to Rails. Other stuff I have checked in includes fixes to all recently reported bugs, and the much-wanted feature to draw bars over impassable hex sides. When this all works, I'd suggest to publish a beta 1.0.7 version first, to give people in this group a chance to find any remaining bugs (there is always something). Regards, Erik. |