From: James R. <rom...@gm...> - 2014-03-08 14:43:32
|
Thank you, Stefan. Jim On Sat, Mar 8, 2014 at 6:12 AM, Stefan Frey <ste...@we...> wrote: > Hi Jim, > yes it is possible to pass the rails file as a command-line option: > > The java jar command looks like the following: > java -jar rails-1.7.12.jar 1830.rails > > rails.bat and rails.sh are only wrappers around this command: > > Content of rails.bat e.g. is: > "java -jar rails-1.7.12.jar %1" > > So the first argument after rails.bat or rails.sh is given to Rails and > starts that save file. > > For Rails 2.0: > In the current Rails 2.0 alpha 4 release this does not work, as I > refactored game loading. However this is fixed now in rails_2_develop > branch. So this will be possible with the next alpha again. > > Stefan > > On 03/08/2014 03:38 AM, James Romano wrote: > > Hi Tom, > > > > I still like to see how you do this. > > > > I guess the real question is whether it's possible to pass the save file > > name into Rails when via the java command, somehow. > > > > Jim > > > > > > On 2/10/2014 2:00 PM, Tom McCorry wrote: > >> I can send when I am home this evening. > >> Sent via BlackBerry > >> ------------------------------------------------------------------------ > >> *From: * James Romano <rom...@gm...> > >> *Date: *Mon, 10 Feb 2014 13:58:46 -0600 > >> *To: *<tom...@gm...>; Development list for Rails: an 18xx > >> game<rai...@li...> > >> *Subject: *Re: [Rails-devel] double-clicking to run? > >> > >> Hi Tom, > >> > >> I could associate the .rails type to the .bat file that runs rails via > >> the java command. I think I could also set it up so that > >> double-clicking on the .rails file passes the save file (.rails file) > >> name to the .bat file and so that the .bat file would then pass the > >> the save file name into the java command somehow. Does the java > >> command allow such an argument, would it be passed along to Rails in a > >> sensible way, and would Rails interpret it as a save file to load? I > >> take it from your success that your answers to all those questions are > >> "yes." > >> > >> Could you share the java command used in your batch file so that I may > >> see how the file name argument should be passed along? > >> > >> Jim > >> > >> > >> On Mon, Feb 10, 2014 at 1:37 PM, Tom McCorry <tom...@gm... > >> <mailto:tom...@gm...>> wrote: > >> > >> I have a batch file I use with Windows that I associate with the > >> .rails file type. This allows me to double-click on a .rails file > >> no matter what directory it resides in and have the Rails program > >> autostart. > >> > >> Sent via BlackBerry > >> > >> -----Original Message----- > >> From: James Romano <rom...@gm... > >> <mailto:rom...@gm...>> > >> Date: Mon, 10 Feb 2014 12:33:26 > >> To: Development list for Rails: an 18xx > >> game<rai...@li... > >> <mailto:rai...@li...>> > >> Reply-To: "Development list for Rails: an 18xx game" > >> <rai...@li... > >> <mailto:rai...@li...>> > >> Subject: [Rails-devel] double-clicking to run? > >> > >> > ------------------------------------------------------------------------------ > >> Androi apps run on BlackBerry 10 > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > >> Get your Android app in front of a whole new audience. Start now. > >> > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > >> > >> > >> > ------------------------------------------------------------------------------ > >> Androi apps run on BlackBerry 10 > >> Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > >> Now with support for Jelly Bean, Bluetooth, Mapview and more. > >> Get your Android app in front of a whole new audience. Start now. > >> > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Rails-devel mailing list > >> Rai...@li... > >> <mailto:Rai...@li...> > >> https://lists.sourceforge.net/lists/listinfo/rails-devel > >> > >> > > > > > > > > > ------------------------------------------------------------------------------ > > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > > With Perforce, you get hassle-free workflows. Merge that actually works. > > Faster operations. Version large binaries. Built-in WAN optimization > and the > > freedom to use Git, Perforce or both. Make the move to Perforce. > > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > > > > > > > > _______________________________________________ > > Rails-devel mailing list > > Rai...@li... > > https://lists.sourceforge.net/lists/listinfo/rails-devel > > > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |