From: Bill R. <ro...@gm...> - 2012-05-08 04:49:40
|
On 2012-05-08, at 12:33 , John David Galt wrote: > On 2012-05-07 19:52, Mike Bourke wrote: >> Next best thing: can the rails save games be defined as a mime type within windows that autolaunches and loads the game? May need a version of the executable that doesn’t present menu options etc because it knows that its job is to load a save game – which means that creating it should be just about the last step, only performed once all the other code is stable, but it would come close to solving this problem. > > The activating end of this would be fairly easy to configure in Mozilla if the > "run rails and load save game" combination can be performed by one command line. > Of course you'd still need a mime type, but something along the lines of > "x-application/rails" would do fine. Rails supports savegames passed as command line arguments, though this is not exactly documented anywhere. I have a shell script for each of my PBEM games that runs the correct version of rails with the most recent savegame from dropbox. The (two-line) script I use won't work on a system without find, grep, and tail (i.e. some kind of *nix or MacOS), but I've included it in the case that it is useful to someone. Obviously you will need to edit the script to point at the right paths. #!/bin/bash cd /Applications/Games/rails-1.7.3 java -jar ./rails-1.7.3.jar "`find ~rosgen/Dropbox/PBEM/1856 -maxdepth 1 | grep \.rails | tail -n 1`" Bill |