From: Erik V. <eri...@hc...> - 2006-05-07 21:44:34
|
> > Brett, if you manage to get it done by whatever trick, > > that is fine with me. Otherwise I can start helping you out > > when I'm back in a week from now. > > > > > No worries. I'll figure it out. I have changed the code around opening XML files to allow reading such a file directly from the JAR file, but it will look there only if the file does not exist in the file system. So anyone can override any default XML file in the JAR by a custom version on the file system. The paths must be the same, i.e. like data/1830/Game.xml or tiles/images/tile0.gif. I had to remove the leading "./" in a number of places. With this change, I can run Rails from a stand-alone JAR file, with only LocalisedText.properties as a separate file. > If possible, I'd like you to finish up the end-game stuff so that by > the time I get things to successfully work as a JAR, we've got a > finished game to put in the JAR. ;-) That and emergency train buying. I'll work on these items when I can manage a free weekend, hopefully sometime in May or June. Erik. |