From: Jerry A. <jer...@ya...> - 2011-11-22 03:34:52
|
Are there instructions somewhere that explain how to run the game. I see the batch file but I have no idea what to supply as a command line parameter. %1. |
From: John D. G. <jd...@di...> - 2011-11-22 04:08:04
|
On 2011-11-21 19:34, Jerry Anderson wrote: > Are there instructions somewhere that explain how to run the game. I see the > batch file but I have no idea what to supply as a command line parameter. %1. Here's how I do it. 1. Download the Rails zip file, then unzip it to its own directory. (Since I want to look at the source code, I preserve old versions, so I have the latest in E:\My Documents\Programming\Rails\1.5.3 -- but that's just an example.) Make sure you preserve the subdirectories that are in the .zip file. 2. Go down through the directories until you find the .jar file, in this case "rails-1.5.3.jar". Write down the full path of its location. In my case this directory is called E:\My Documents\Programming\Rails\1.5.3\rails-1.5.3 Right-click the .jar file, then select "Create Shortcut". A shortcut icon will appear. Select (single-click) that shortcut and hit Ctrl/X ("cut"). 3. Right-click "Start" and select "Explore" (or if you're administrator, select "Explore All Users"). Navigate to an appropriate place in the Start menu subtree, and paste your shortcut there. Or just paste it on the desktop. 4. Right-click the shortcut and select Properties. Name the shortcut "Rails". Then select the Shortcut tab, and make sure it has these settings: (This assumes my folder structure, so change to match yours). Target: "E:\My Documents\Programming\Rails\1.5.3\rails-1.5.3\rails-1.5.3.jar" (The quotes are required.) Start in: "E:\My Documents\Programming\Rails\1.5.3\rails-1.5.3" (The quotes are required.) For extra credit, also go into "Change Icon" and give the shortcut an icon appropriate to a game. (I use the pair-of-dice icon found in %SystemRoot%\system32\pifmgr.dll .) I don't use any command-line arguments. I don't think you need any. |
From: Jerry A. <jer...@ya...> - 2011-11-22 04:11:35
|
Ok - i figured out what i was doing wrong. the game starts but I am not seeing the background map for 18GA. I am getting an error about the path. There is no "data" directory. This is the error java.io.FileNotFoundException: C:\Personal\18XX\rails-1.5.3\rails-1.5.3\data\18GA\MapImage.svg (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source) at org.apache.batik.util.ParsedURLData.openStreamInternal(ParsedURLData.java:547) at org.apache.batik.util.ParsedURLData.openStream(ParsedURLData.java:471) at org.apache.batik.util.ParsedURL.openStream(ParsedURL.java:417) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:158) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(SAXSVGDocumentFactory.java:124) at org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:106) at org.apache.batik.swing.svg.SVGDocumentLoader.run(SVGDocumentLoader.java:84) ________________________________ From: Jerry Anderson <jer...@ya...> To: "rai...@li..." <rai...@li...> Sent: Monday, November 21, 2011 7:34 PM Subject: [Rails-users] How do i run Rails on Windows Are there instructions somewhere that explain how to run the game. I see the batch file but I have no idea what to supply as a command line parameter. %1. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Rails-users mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-users |
From: Stefan F. <ste...@we...> - 2011-11-22 14:40:03
|
Thanks for reporting that bug. Only option you currently have is reverting the option to not show the background map in the configuration dialog. I wonder if no other user ever tried using a background map before??? Seems that the map file is not correctly located in the jar, thus uses not the default Class/Resource-Loader. As we developers run from Eclipse we have not seen the bug before. I will look into that. I have changing the Classloader high on my priority-list for Rails 2.x for several reasons anyway. Stefan On Tuesday, November 22, 2011 05:11:28 am Jerry Anderson wrote: > Ok - i figured out what i was doing wrong. the game starts but I am not > seeing the background map for 18GA. I am getting an error about the path. > There is no "data" directory. This is the error > java.io.FileNotFoundException: > C:\Personal\18XX\rails-1.5.3\rails-1.5.3\data\18GA\MapImage.svg (The > system cannot find the path specified) at > java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.<init>(Unknown Source) > at java.io.FileInputStream.<init>(Unknown Source) > at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source) > at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown > Source) at > org.apache.batik.util.ParsedURLData.openStreamInternal(ParsedURLData.java: > 547) at > org.apache.batik.util.ParsedURLData.openStream(ParsedURLData.java:471) at > org.apache.batik.util.ParsedURL.openStream(ParsedURL.java:417) at > org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocume > ntFactory.java:158) at > org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(SAXSVGDoc > umentFactory.java:124) at > org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:10 > 6) at > org.apache.batik.swing.svg.SVGDocumentLoader.run(SVGDocumentLoader.java:84 > ) > > > > ________________________________ > From: Jerry Anderson <jer...@ya...> > To: "rai...@li..." <rai...@li...> > Sent: Monday, November 21, 2011 7:34 PM > Subject: [Rails-users] How do i run Rails on Windows > > > Are there instructions somewhere that explain how to run the game. I see > the batch file but I have no idea what to supply as a command line > parameter. %1. > > --------------------------------------------------------------------------- > --- All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Rails-users mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-users |
From: Erik V. <eri...@xs...> - 2011-11-22 09:28:56
|
> From: John David Galt [mailto:jd...@di...] > > I don't use any command-line arguments. I don't think you need any. One way to load a saved game file (with .rails extension) is to provide its path as a command-line argument. Erik. |