You can subscribe to this list here.
2005 |
Jan
|
Feb
(25) |
Mar
(84) |
Apr
(76) |
May
(25) |
Jun
(1) |
Jul
(28) |
Aug
(23) |
Sep
(50) |
Oct
(46) |
Nov
(65) |
Dec
(76) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(60) |
Feb
(33) |
Mar
(4) |
Apr
(17) |
May
(16) |
Jun
(18) |
Jul
(131) |
Aug
(11) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(5) |
2007 |
Jan
(71) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(19) |
Jul
(40) |
Aug
(38) |
Sep
(7) |
Oct
(58) |
Nov
|
Dec
(10) |
2008 |
Jan
(17) |
Feb
(27) |
Mar
(12) |
Apr
(1) |
May
(50) |
Jun
(10) |
Jul
|
Aug
(15) |
Sep
(24) |
Oct
(64) |
Nov
(115) |
Dec
(47) |
2009 |
Jan
(30) |
Feb
(1) |
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(132) |
Dec
(93) |
2010 |
Jan
(266) |
Feb
(120) |
Mar
(168) |
Apr
(127) |
May
(83) |
Jun
(93) |
Jul
(77) |
Aug
(77) |
Sep
(86) |
Oct
(30) |
Nov
(4) |
Dec
(22) |
2011 |
Jan
(48) |
Feb
(81) |
Mar
(198) |
Apr
(174) |
May
(72) |
Jun
(101) |
Jul
(236) |
Aug
(144) |
Sep
(54) |
Oct
(132) |
Nov
(94) |
Dec
(111) |
2012 |
Jan
(135) |
Feb
(166) |
Mar
(86) |
Apr
(85) |
May
(137) |
Jun
(83) |
Jul
(54) |
Aug
(29) |
Sep
(49) |
Oct
(37) |
Nov
(8) |
Dec
(6) |
2013 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
(14) |
May
(5) |
Jun
(15) |
Jul
|
Aug
(38) |
Sep
(44) |
Oct
(45) |
Nov
(40) |
Dec
(23) |
2014 |
Jan
(22) |
Feb
(63) |
Mar
(43) |
Apr
(60) |
May
(10) |
Jun
(5) |
Jul
(13) |
Aug
(57) |
Sep
(36) |
Oct
(2) |
Nov
(30) |
Dec
(27) |
2015 |
Jan
(5) |
Feb
(2) |
Mar
(14) |
Apr
(3) |
May
|
Jun
(3) |
Jul
(10) |
Aug
(63) |
Sep
(31) |
Oct
(26) |
Nov
(11) |
Dec
(6) |
2016 |
Jan
|
Feb
(11) |
Mar
|
Apr
|
May
(1) |
Jun
(16) |
Jul
|
Aug
(4) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(1) |
2017 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
(20) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(10) |
May
(10) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
(3) |
Apr
(9) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
(4) |
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Chris S. <chr...@gm...> - 2011-04-01 13:09:57
|
Is there any way to change the orientation of the tiles so it matches v2? -- Chris Please consider the environment before printing this e-mail. On Fri, Apr 1, 2011 at 4:51 AM, Erik Vos <eri...@xs...> wrote: > Scott, > > > > These 18GA tiles already exist in Rails under different numbers: 170 and > 391-398. These numbers predate the ones assigned by JDG for 18GA v2, and > seem to originate from Steve Thomas’ PS18XX sets. > > > > The story I have noted in my tiles spreadsheet reads: > > > > “In the original Mark Derrick version of 18GA, these tiles were unnumbered. > > Marco Rocci's Tile Dictionary numbers the 18GA tiles in the range 391-398 > (Macon is 170); > > according to Marco these were found in another PS set posted by Steve > Thomas. > > In the later John David Galt version these tiles are numbered 451-459. > > A third set of (low) numbers shows up in the 18GA tile set for PS18XX on > Adam Romoth's site; > > those numbers have been disregarded in this spreadsheet.” > > > > For completeness sake, I should add that the 3xx numbers are (still) > unique, whereas the 4xx numbers have already been reused in 1854. > > > > If you want to stick with the 4xx numbers, you can refer to these existing > tiles as follows: > > <Tile id="391" extId="451" ...> > > This way, you’ll have to use 391 in all XML, but the Rails windows will > show 451. > > Please be aware that most 3xx tiles in TileDesigner have a different > orientation as the 4xx tiles in Blackwater Station. > > > > Tile #170 has a ‘P’ marker, instead of ‘Macon’, in this case it could make > sense to create a new tile with the correct inscription. > > > > Erik. > > > > *Van:* Scott Petersen [mailto:sc...@re...] > *Verzonden:* donderdag 31 maart 2011 15:29 > *Aan:* Development list for Rails: an 18xx game > *Onderwerp:* [Rails-devel] 18GA > > > > I (and possibly others) will work on finishing up 18GA in the next couple > weeks--it should not take much work. Could someone add the following tiles? > Pictorial versions can be found on Blackwater Station. > > http://www.18xx.net/tiles/18GA.htm > > > > Yellow > > 451 Three dead-end cities (30), exits NW,NE,S, "Atlanta" > > > > Green > > 452 Three straight cities (20), crossing, "Atlanta" > > 453 K-shape city (30), "Augusta" > > 454 City (30), exits N,NW,SW, "Savannah" > > > > Brown > > 455 Three straight cities (70), crossing, "Atlanta" > > 456 K-shape city (50), "Augusta" > > 457 5-way city (40), "Brunswick" > > 458 5-way city (50), "Macon" > > 459 City (60), exits N,NW,SW, "Savannah" > > > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > |
From: Erik V. <eri...@xs...> - 2011-04-01 11:51:26
|
Scott, These 18GA tiles already exist in Rails under different numbers: 170 and 391-398. These numbers predate the ones assigned by JDG for 18GA v2, and seem to originate from Steve Thomas' PS18XX sets. The story I have noted in my tiles spreadsheet reads: "In the original Mark Derrick version of 18GA, these tiles were unnumbered. Marco Rocci's Tile Dictionary numbers the 18GA tiles in the range 391-398 (Macon is 170); according to Marco these were found in another PS set posted by Steve Thomas. In the later John David Galt version these tiles are numbered 451-459. A third set of (low) numbers shows up in the 18GA tile set for PS18XX on Adam Romoth's site; those numbers have been disregarded in this spreadsheet." For completeness sake, I should add that the 3xx numbers are (still) unique, whereas the 4xx numbers have already been reused in 1854. If you want to stick with the 4xx numbers, you can refer to these existing tiles as follows: <Tile id="391" extId="451" ...> This way, you'll have to use 391 in all XML, but the Rails windows will show 451. Please be aware that most 3xx tiles in TileDesigner have a different orientation as the 4xx tiles in Blackwater Station. Tile #170 has a 'P' marker, instead of 'Macon', in this case it could make sense to create a new tile with the correct inscription. Erik. Van: Scott Petersen [mailto:sc...@re...] Verzonden: donderdag 31 maart 2011 15:29 Aan: Development list for Rails: an 18xx game Onderwerp: [Rails-devel] 18GA I (and possibly others) will work on finishing up 18GA in the next couple weeks--it should not take much work. Could someone add the following tiles? Pictorial versions can be found on Blackwater Station. http://www.18xx.net/tiles/18GA.htm Yellow 451 Three dead-end cities (30), exits NW,NE,S, "Atlanta" Green 452 Three straight cities (20), crossing, "Atlanta" 453 K-shape city (30), "Augusta" 454 City (30), exits N,NW,SW, "Savannah" Brown 455 Three straight cities (70), crossing, "Atlanta" 456 K-shape city (50), "Augusta" 457 5-way city (40), "Brunswick" 458 5-way city (50), "Macon" 459 City (60), exits N,NW,SW, "Savannah" |
From: Games on t. B. <gam...@gm...> - 2011-04-01 11:04:36
|
Thanks Erik. After taking a closer look, I figured it out. I'd be happy to volunteer to work on other stuff. I can make tiles if you'd like. I have Adobe Illlustrator and I'm ready and willing to learn the XML needed for the dictionary. -Tim On Fri, Apr 1, 2011 at 6:14 AM, Erik Vos <eri...@xs...> wrote: > The 'rails' stack trace lines in question were: > at rails.game.MapHex.addHome(MapHex.java:963) > at rails.game.MapManager.finishConfiguration(MapManager.java:153) > at rails.game.Game.setup(Game.java:188) > at > rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java:481) > at > rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.java:237) > and usually the error is pointed to by the first of such lines. > > I have committed a fix that adds a check of the home city number against the > number of cities in the current hex/tile. > An error now throws a ConfigurationException, which will be catched and > cause a popup to display an appropriate message. > > It might be a good idea to scan all 'finishConfiguration()' methods for such > inconsistent XML values, and perhaps the 'configureFromXML()' methods may > also need a sharper look. This fix may serve as an example. > Volunteers? > > Erik. > >> -----Oorspronkelijk bericht----- >> Van: Games on the Brain [mailto:gam...@gm...] >> Verzonden: vrijdag 1 april 2011 2:15 >> Aan: Development list for Rails: an 18xx game >> CC: brett lentz >> Onderwerp: Re: [Rails-devel] Tracking Down Errors >> >> Found it. The problem was actually in the CompanyManager, as I had >> accidentally left a city="2" in a HomeHex attribute. >> >> Thanks! >> >> -Tim >> >> >> >> On Thu, Mar 31, 2011 at 7:30 PM, Games on the Brain >> <gam...@gm...> wrote: >> >> There's only three lines in the stack trace relevant to the rails >> >> code itself, so those are likely to be where the error is. From >> >> there, it's just a matter of understanding what the code is doing or >> >> could have been doing that would have caused the failure. >> > >> > Which three lines in this case? >> > >> > -Tim >> > >> > >> > >> > >> > On Thu, Mar 31, 2011 at 7:28 PM, brett lentz <bre...@gm...> >> wrote: >> >> Yes, the output that generates a list of related method/function >> >> calls that caused the error is called a "stack trace". It traces >> >> it's way up the call stack. >> >> >> >> There's only three lines in the stack trace relevant to the rails >> >> code itself, so those are likely to be where the error is. From >> >> there, it's just a matter of understanding what the code is doing or >> >> could have been doing that would have caused the failure. >> >> >> >> ---Brett. >> >> >> >> >> >> >> >> On Thu, Mar 31, 2011 at 4:21 PM, Games on the Brain >> >> <gam...@gm...> wrote: >> >>> I presume you got that from the console lines that I copied? Is that >> >>> what you call a stack trace? >> >>> >> >>> If so, could you explain how you found that one specific line from >> >>> the list I gave you? >> >>> >> >>> -Tim >> >>> >> >>> >> >>> >> >>> On Thu, Mar 31, 2011 at 6:11 PM, Erik Vos <eri...@xs...> wrote: >> >>>> The stack trace points to this line in the code where home cities >> >>>> are >> >>>> assigned: >> >>>> >> >>>> City homeCity = cities.get(Math.max(cityNumber - 1, >> >>>> 0)); >> >>>> >> >>>> So It looks like city="2" has been specified for a tile that has >> >>>> only one city. >> >>>> >> >>>> Erik. >> >>>> >> >>>>> -----Oorspronkelijk bericht----- >> >>>>> Van: Games on the Brain [mailto:gam...@gm...] >> >>>>> Verzonden: donderdag 31 maart 2011 23:24 >> >>>>> Aan: Development list for Rails: an 18xx game >> >>>>> Onderwerp: [Rails-devel] Tracking Down Errors >> >>>>> >> >>>>> I'm having a hard time tracking down an error in a prototype I'm >> >>>> developing >> >>>>> on Rails: >> >>>>> >> >>>>> Game setup from file Game.xml failed: >> >>>>> Index: 1, Size: 1 >> >>>>> >> >>>>> I actually add lines to the Game.xml file one by one until I got >> >>>>> that >> >>>> error and it >> >>>>> occurs when I add the following: >> >>>>> >> >>>>> <Component name="TileManager" class="rails.game.TileManager" >> >>>>> file="TileSet.xml"/> >> >>>>> >> >>>>> Thus, I suspect the problem is either in the Tiles.xml file or the >> >>>> TileSet.xml >> >>>>> file. >> >>>>> >> >>>>> I copied those files from 1830 and removed all the <IfOption> >> statements. >> >>>>> I'm also pretty sure that all tiles that are in Tiles.xml are in >> >>>> TileSet.xml as well. >> >>>>> And all the tiles that are on my map are in them too. >> >>>>> >> >>>>> Any ideas how I can track it down? I don't know if it will help, >> >>>>> but here >> >>>> is what >> >>>>> comes up in the Eclipse console: >> >>>>> >> >>>>> >> >>>>> Loading games list from GamesList.xml >> >>>>> Index: 1, Size: 1 >> >>>>> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 >> >>>>> at java.util.ArrayList.RangeCheck(ArrayList.java:546) >> >>>>> at java.util.ArrayList.get(ArrayList.java:321) >> >>>>> at rails.game.MapHex.addHome(MapHex.java:963) >> >>>>> at >> >>>>> rails.game.MapManager.finishConfiguration(MapManager.java:153) >> >>>>> at rails.game.Game.setup(Game.java:188) >> >>>>> at >> >>>>> >> rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: >> >>>>> 481) >> >>>>> at >> >>>>> >> rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav >> >>>>> a:237) >> >>>>> at >> >>>>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java >> >>>>> :1882) >> >>>>> at >> >>>>> >> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton. >> >>>>> java:2 >> >>>>> 202) >> >>>>> at >> >>>>> >> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. >> >>>>> java:420) >> >>>>> at >> >>>>> >> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: >> >>>>> 258) >> >>>>> at >> >>>>> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButt >> >>>>> onListe >> >>>>> ner.java:246) >> >>>>> at >> java.awt.Component.processMouseEvent(Component.java:5617) >> >>>>> at >> >>>>> >> javax.swing.JComponent.processMouseEvent(JComponent.java:3129) >> >>>>> at java.awt.Component.processEvent(Component.java:5382) >> >>>>> at java.awt.Container.processEvent(Container.java:2010) >> >>>>> at java.awt.Component.dispatchEventImpl(Component.java:4083) >> >>>>> at java.awt.Container.dispatchEventImpl(Container.java:2068) >> >>>>> at java.awt.Component.dispatchEvent(Component.java:3918) >> >>>>> at >> >>>>> >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4 >> >>>>> 256) >> >>>>> at >> >>>>> >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:39 >> >>>>> 36) >> >>>>> at >> >>>>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) >> >>>>> at java.awt.Container.dispatchEventImpl(Container.java:2054) >> >>>>> at java.awt.Window.dispatchEventImpl(Window.java:1801) >> >>>>> at java.awt.Component.dispatchEvent(Component.java:3918) >> >>>>> at >> >>>>> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) >> >>>>> at java.awt.EventQueue.access$000(EventQueue.java:80) >> >>>>> at java.awt.EventQueue$1.run(EventQueue.java:462) >> >>>>> at java.awt.EventQueue$1.run(EventQueue.java:461) >> >>>>> at java.security.AccessController.doPrivileged(Native >> >>>>> Method) >> >>>>> at >> >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(Acces >> >>>>> sControl >> >>>>> Context.java:84) >> >>>>> at >> >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(Acces >> >>>>> sControl >> >>>>> Context.java:95) >> >>>>> at java.awt.EventQueue$2.run(EventQueue.java:476) >> >>>>> at java.awt.EventQueue$2.run(EventQueue.java:475) >> >>>>> at java.security.AccessController.doPrivileged(Native >> >>>>> Method) >> >>>>> at >> >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(Acces >> >>>>> sControl >> >>>>> Context.java:84) >> >>>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) >> >>>>> at >> >>>>> >> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatc >> >>>>> hT >> >>>>> hread.java:269) >> >>>>> at >> >>>>> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchT >> >>>>> hre >> >>>>> ad.java:190) >> >>>>> at >> >>>>> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:1 >> >>>>> 84) >> >>>>> at >> >>>>> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:1 >> >>>>> 76) >> >>>>> at >> >>>>> java.awt.EventDispatchThread.run(EventDispatchThread.java:110) >> >>>>> >> >>>>> >> >>>> ------------------------------------------------------------------- >> >>>> --------- >> >>>> -- >> >>>>> Create and publish websites with WebMatrix Use the most popular >> >>>>> FREE web apps or write code yourself; WebMatrix provides all the >> >>>>> features you need to develop and publish your website. >> >>>>> http://p.sf.net/sfu/ms- webmatrix-sf >> >>>>> _______________________________________________ >> >>>>> Rails-devel mailing list >> >>>>> Rai...@li... >> >>>>> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >>>> >> >>>> >> >>>> ------------------------------------------------------------------- >> >>>> ----------- Create and publish websites with WebMatrix Use the most >> >>>> popular FREE web apps or write code yourself; WebMatrix provides >> >>>> all the features you need to develop and publish your website. >> >>>> http://p.sf.net/sfu/ms-webmatrix-sf >> >>>> _______________________________________________ >> >>>> Rails-devel mailing list >> >>>> Rai...@li... >> >>>> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >>>> >> >>> >> >>> -------------------------------------------------------------------- >> >>> ---------- Create and publish websites with WebMatrix Use the most >> >>> popular FREE web apps or write code yourself; WebMatrix provides all >> >>> the features you need to develop and publish your website. >> >>> http://p.sf.net/sfu/ms-webmatrix-sf >> >>> _______________________________________________ >> >>> Rails-devel mailing list >> >>> Rai...@li... >> >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >>> >> >> >> >> --------------------------------------------------------------------- >> >> --------- Create and publish websites with WebMatrix Use the most >> >> popular FREE web apps or write code yourself; WebMatrix provides all >> >> the features you need to develop and publish your website. >> >> http://p.sf.net/sfu/ms-webmatrix-sf >> >> _______________________________________________ >> >> Rails-devel mailing list >> >> Rai...@li... >> >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> >> > >> >> > ---------------------------------------------------------------------------- > -- >> Create and publish websites with WebMatrix Use the most popular FREE >> web apps or write code yourself; WebMatrix provides all the features you >> need to develop and publish your website. http://p.sf.net/sfu/ms- >> webmatrix-sf >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: Erik V. <eri...@xs...> - 2011-04-01 10:14:34
|
The 'rails' stack trace lines in question were: at rails.game.MapHex.addHome(MapHex.java:963) at rails.game.MapManager.finishConfiguration(MapManager.java:153) at rails.game.Game.setup(Game.java:188) at rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java:481) at rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.java:237) and usually the error is pointed to by the first of such lines. I have committed a fix that adds a check of the home city number against the number of cities in the current hex/tile. An error now throws a ConfigurationException, which will be catched and cause a popup to display an appropriate message. It might be a good idea to scan all 'finishConfiguration()' methods for such inconsistent XML values, and perhaps the 'configureFromXML()' methods may also need a sharper look. This fix may serve as an example. Volunteers? Erik. > -----Oorspronkelijk bericht----- > Van: Games on the Brain [mailto:gam...@gm...] > Verzonden: vrijdag 1 april 2011 2:15 > Aan: Development list for Rails: an 18xx game > CC: brett lentz > Onderwerp: Re: [Rails-devel] Tracking Down Errors > > Found it. The problem was actually in the CompanyManager, as I had > accidentally left a city="2" in a HomeHex attribute. > > Thanks! > > -Tim > > > > On Thu, Mar 31, 2011 at 7:30 PM, Games on the Brain > <gam...@gm...> wrote: > >> There's only three lines in the stack trace relevant to the rails > >> code itself, so those are likely to be where the error is. From > >> there, it's just a matter of understanding what the code is doing or > >> could have been doing that would have caused the failure. > > > > Which three lines in this case? > > > > -Tim > > > > > > > > > > On Thu, Mar 31, 2011 at 7:28 PM, brett lentz <bre...@gm...> > wrote: > >> Yes, the output that generates a list of related method/function > >> calls that caused the error is called a "stack trace". It traces > >> it's way up the call stack. > >> > >> There's only three lines in the stack trace relevant to the rails > >> code itself, so those are likely to be where the error is. From > >> there, it's just a matter of understanding what the code is doing or > >> could have been doing that would have caused the failure. > >> > >> ---Brett. > >> > >> > >> > >> On Thu, Mar 31, 2011 at 4:21 PM, Games on the Brain > >> <gam...@gm...> wrote: > >>> I presume you got that from the console lines that I copied? Is that > >>> what you call a stack trace? > >>> > >>> If so, could you explain how you found that one specific line from > >>> the list I gave you? > >>> > >>> -Tim > >>> > >>> > >>> > >>> On Thu, Mar 31, 2011 at 6:11 PM, Erik Vos <eri...@xs...> wrote: > >>>> The stack trace points to this line in the code where home cities > >>>> are > >>>> assigned: > >>>> > >>>> City homeCity = cities.get(Math.max(cityNumber - 1, > >>>> 0)); > >>>> > >>>> So It looks like city="2" has been specified for a tile that has > >>>> only one city. > >>>> > >>>> Erik. > >>>> > >>>>> -----Oorspronkelijk bericht----- > >>>>> Van: Games on the Brain [mailto:gam...@gm...] > >>>>> Verzonden: donderdag 31 maart 2011 23:24 > >>>>> Aan: Development list for Rails: an 18xx game > >>>>> Onderwerp: [Rails-devel] Tracking Down Errors > >>>>> > >>>>> I'm having a hard time tracking down an error in a prototype I'm > >>>> developing > >>>>> on Rails: > >>>>> > >>>>> Game setup from file Game.xml failed: > >>>>> Index: 1, Size: 1 > >>>>> > >>>>> I actually add lines to the Game.xml file one by one until I got > >>>>> that > >>>> error and it > >>>>> occurs when I add the following: > >>>>> > >>>>> <Component name="TileManager" class="rails.game.TileManager" > >>>>> file="TileSet.xml"/> > >>>>> > >>>>> Thus, I suspect the problem is either in the Tiles.xml file or the > >>>> TileSet.xml > >>>>> file. > >>>>> > >>>>> I copied those files from 1830 and removed all the <IfOption> > statements. > >>>>> I'm also pretty sure that all tiles that are in Tiles.xml are in > >>>> TileSet.xml as well. > >>>>> And all the tiles that are on my map are in them too. > >>>>> > >>>>> Any ideas how I can track it down? I don't know if it will help, > >>>>> but here > >>>> is what > >>>>> comes up in the Eclipse console: > >>>>> > >>>>> > >>>>> Loading games list from GamesList.xml > >>>>> Index: 1, Size: 1 > >>>>> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 > >>>>> at java.util.ArrayList.RangeCheck(ArrayList.java:546) > >>>>> at java.util.ArrayList.get(ArrayList.java:321) > >>>>> at rails.game.MapHex.addHome(MapHex.java:963) > >>>>> at > >>>>> rails.game.MapManager.finishConfiguration(MapManager.java:153) > >>>>> at rails.game.Game.setup(Game.java:188) > >>>>> at > >>>>> > rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: > >>>>> 481) > >>>>> at > >>>>> > rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav > >>>>> a:237) > >>>>> at > >>>>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java > >>>>> :1882) > >>>>> at > >>>>> > javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton. > >>>>> java:2 > >>>>> 202) > >>>>> at > >>>>> > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. > >>>>> java:420) > >>>>> at > >>>>> > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: > >>>>> 258) > >>>>> at > >>>>> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButt > >>>>> onListe > >>>>> ner.java:246) > >>>>> at > java.awt.Component.processMouseEvent(Component.java:5617) > >>>>> at > >>>>> > javax.swing.JComponent.processMouseEvent(JComponent.java:3129) > >>>>> at java.awt.Component.processEvent(Component.java:5382) > >>>>> at java.awt.Container.processEvent(Container.java:2010) > >>>>> at java.awt.Component.dispatchEventImpl(Component.java:4083) > >>>>> at java.awt.Container.dispatchEventImpl(Container.java:2068) > >>>>> at java.awt.Component.dispatchEvent(Component.java:3918) > >>>>> at > >>>>> > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4 > >>>>> 256) > >>>>> at > >>>>> > java.awt.LightweightDispatcher.processMouseEvent(Container.java:39 > >>>>> 36) > >>>>> at > >>>>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) > >>>>> at java.awt.Container.dispatchEventImpl(Container.java:2054) > >>>>> at java.awt.Window.dispatchEventImpl(Window.java:1801) > >>>>> at java.awt.Component.dispatchEvent(Component.java:3918) > >>>>> at > >>>>> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) > >>>>> at java.awt.EventQueue.access$000(EventQueue.java:80) > >>>>> at java.awt.EventQueue$1.run(EventQueue.java:462) > >>>>> at java.awt.EventQueue$1.run(EventQueue.java:461) > >>>>> at java.security.AccessController.doPrivileged(Native > >>>>> Method) > >>>>> at > >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(Acces > >>>>> sControl > >>>>> Context.java:84) > >>>>> at > >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(Acces > >>>>> sControl > >>>>> Context.java:95) > >>>>> at java.awt.EventQueue$2.run(EventQueue.java:476) > >>>>> at java.awt.EventQueue$2.run(EventQueue.java:475) > >>>>> at java.security.AccessController.doPrivileged(Native > >>>>> Method) > >>>>> at > >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(Acces > >>>>> sControl > >>>>> Context.java:84) > >>>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) > >>>>> at > >>>>> > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatc > >>>>> hT > >>>>> hread.java:269) > >>>>> at > >>>>> > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchT > >>>>> hre > >>>>> ad.java:190) > >>>>> at > >>>>> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:1 > >>>>> 84) > >>>>> at > >>>>> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:1 > >>>>> 76) > >>>>> at > >>>>> java.awt.EventDispatchThread.run(EventDispatchThread.java:110) > >>>>> > >>>>> > >>>> ------------------------------------------------------------------- > >>>> --------- > >>>> -- > >>>>> Create and publish websites with WebMatrix Use the most popular > >>>>> FREE web apps or write code yourself; WebMatrix provides all the > >>>>> features you need to develop and publish your website. > >>>>> http://p.sf.net/sfu/ms- webmatrix-sf > >>>>> _______________________________________________ > >>>>> Rails-devel mailing list > >>>>> Rai...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/rails-devel > >>>> > >>>> > >>>> ------------------------------------------------------------------- > >>>> ----------- Create and publish websites with WebMatrix Use the most > >>>> popular FREE web apps or write code yourself; WebMatrix provides > >>>> all the features you need to develop and publish your website. > >>>> http://p.sf.net/sfu/ms-webmatrix-sf > >>>> _______________________________________________ > >>>> Rails-devel mailing list > >>>> Rai...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/rails-devel > >>>> > >>> > >>> -------------------------------------------------------------------- > >>> ---------- Create and publish websites with WebMatrix Use the most > >>> popular FREE web apps or write code yourself; WebMatrix provides all > >>> the features you need to develop and publish your website. > >>> http://p.sf.net/sfu/ms-webmatrix-sf > >>> _______________________________________________ > >>> Rails-devel mailing list > >>> Rai...@li... > >>> https://lists.sourceforge.net/lists/listinfo/rails-devel > >>> > >> > >> --------------------------------------------------------------------- > >> --------- Create and publish websites with WebMatrix Use the most > >> popular FREE web apps or write code yourself; WebMatrix provides all > >> the features you need to develop and publish your website. > >> http://p.sf.net/sfu/ms-webmatrix-sf > >> _______________________________________________ > >> Rails-devel mailing list > >> Rai...@li... > >> https://lists.sourceforge.net/lists/listinfo/rails-devel > >> > > > > ---------------------------------------------------------------------------- -- > Create and publish websites with WebMatrix Use the most popular FREE > web apps or write code yourself; WebMatrix provides all the features you > need to develop and publish your website. http://p.sf.net/sfu/ms- > webmatrix-sf > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Games on t. B. <gam...@gm...> - 2011-04-01 00:15:17
|
Found it. The problem was actually in the CompanyManager, as I had accidentally left a city="2" in a HomeHex attribute. Thanks! -Tim On Thu, Mar 31, 2011 at 7:30 PM, Games on the Brain <gam...@gm...> wrote: >> There's only three lines in the stack trace relevant to the rails code >> itself, so those are likely to be where the error is. From there, it's >> just a matter of understanding what the code is doing or could have >> been doing that would have caused the failure. > > Which three lines in this case? > > -Tim > > > > > On Thu, Mar 31, 2011 at 7:28 PM, brett lentz <bre...@gm...> wrote: >> Yes, the output that generates a list of related method/function calls >> that caused the error is called a "stack trace". It traces it's way >> up the call stack. >> >> There's only three lines in the stack trace relevant to the rails code >> itself, so those are likely to be where the error is. From there, it's >> just a matter of understanding what the code is doing or could have >> been doing that would have caused the failure. >> >> ---Brett. >> >> >> >> On Thu, Mar 31, 2011 at 4:21 PM, Games on the Brain >> <gam...@gm...> wrote: >>> I presume you got that from the console lines that I copied? Is that >>> what you call a stack trace? >>> >>> If so, could you explain how you found that one specific line from the >>> list I gave you? >>> >>> -Tim >>> >>> >>> >>> On Thu, Mar 31, 2011 at 6:11 PM, Erik Vos <eri...@xs...> wrote: >>>> The stack trace points to this line in the code where home cities are >>>> assigned: >>>> >>>> City homeCity = cities.get(Math.max(cityNumber - 1, 0)); >>>> >>>> So It looks like city="2" has been specified for a tile that has only one >>>> city. >>>> >>>> Erik. >>>> >>>>> -----Oorspronkelijk bericht----- >>>>> Van: Games on the Brain [mailto:gam...@gm...] >>>>> Verzonden: donderdag 31 maart 2011 23:24 >>>>> Aan: Development list for Rails: an 18xx game >>>>> Onderwerp: [Rails-devel] Tracking Down Errors >>>>> >>>>> I'm having a hard time tracking down an error in a prototype I'm >>>> developing >>>>> on Rails: >>>>> >>>>> Game setup from file Game.xml failed: >>>>> Index: 1, Size: 1 >>>>> >>>>> I actually add lines to the Game.xml file one by one until I got that >>>> error and it >>>>> occurs when I add the following: >>>>> >>>>> <Component name="TileManager" class="rails.game.TileManager" >>>>> file="TileSet.xml"/> >>>>> >>>>> Thus, I suspect the problem is either in the Tiles.xml file or the >>>> TileSet.xml >>>>> file. >>>>> >>>>> I copied those files from 1830 and removed all the <IfOption> statements. >>>>> I'm also pretty sure that all tiles that are in Tiles.xml are in >>>> TileSet.xml as well. >>>>> And all the tiles that are on my map are in them too. >>>>> >>>>> Any ideas how I can track it down? I don't know if it will help, but here >>>> is what >>>>> comes up in the Eclipse console: >>>>> >>>>> >>>>> Loading games list from GamesList.xml >>>>> Index: 1, Size: 1 >>>>> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 >>>>> at java.util.ArrayList.RangeCheck(ArrayList.java:546) >>>>> at java.util.ArrayList.get(ArrayList.java:321) >>>>> at rails.game.MapHex.addHome(MapHex.java:963) >>>>> at >>>>> rails.game.MapManager.finishConfiguration(MapManager.java:153) >>>>> at rails.game.Game.setup(Game.java:188) >>>>> at >>>>> rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: >>>>> 481) >>>>> at >>>>> rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav >>>>> a:237) >>>>> at >>>>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) >>>>> at >>>>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2 >>>>> 202) >>>>> at >>>>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. >>>>> java:420) >>>>> at >>>>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) >>>>> at >>>>> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListe >>>>> ner.java:246) >>>>> at java.awt.Component.processMouseEvent(Component.java:5617) >>>>> at >>>>> javax.swing.JComponent.processMouseEvent(JComponent.java:3129) >>>>> at java.awt.Component.processEvent(Component.java:5382) >>>>> at java.awt.Container.processEvent(Container.java:2010) >>>>> at java.awt.Component.dispatchEventImpl(Component.java:4083) >>>>> at java.awt.Container.dispatchEventImpl(Container.java:2068) >>>>> at java.awt.Component.dispatchEvent(Component.java:3918) >>>>> at >>>>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) >>>>> at >>>>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) >>>>> at >>>>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) >>>>> at java.awt.Container.dispatchEventImpl(Container.java:2054) >>>>> at java.awt.Window.dispatchEventImpl(Window.java:1801) >>>>> at java.awt.Component.dispatchEvent(Component.java:3918) >>>>> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) >>>>> at java.awt.EventQueue.access$000(EventQueue.java:80) >>>>> at java.awt.EventQueue$1.run(EventQueue.java:462) >>>>> at java.awt.EventQueue$1.run(EventQueue.java:461) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>>>> Context.java:84) >>>>> at >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>>>> Context.java:95) >>>>> at java.awt.EventQueue$2.run(EventQueue.java:476) >>>>> at java.awt.EventQueue$2.run(EventQueue.java:475) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at >>>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>>>> Context.java:84) >>>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) >>>>> at >>>>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT >>>>> hread.java:269) >>>>> at >>>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre >>>>> ad.java:190) >>>>> at >>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) >>>>> at >>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) >>>>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) >>>>> >>>>> >>>> ---------------------------------------------------------------------------- >>>> -- >>>>> Create and publish websites with WebMatrix Use the most popular FREE >>>>> web apps or write code yourself; WebMatrix provides all the features you >>>>> need to develop and publish your website. http://p.sf.net/sfu/ms- >>>>> webmatrix-sf >>>>> _______________________________________________ >>>>> Rails-devel mailing list >>>>> Rai...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Create and publish websites with WebMatrix >>>> Use the most popular FREE web apps or write code yourself; >>>> WebMatrix provides all the features you need to develop and >>>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >>>> _______________________________________________ >>>> Rails-devel mailing list >>>> Rai...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>>> >>> >>> ------------------------------------------------------------------------------ >>> Create and publish websites with WebMatrix >>> Use the most popular FREE web apps or write code yourself; >>> WebMatrix provides all the features you need to develop and >>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >>> _______________________________________________ >>> Rails-devel mailing list >>> Rai...@li... >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > |
From: Games on t. B. <gam...@gm...> - 2011-03-31 23:31:13
|
> There's only three lines in the stack trace relevant to the rails code > itself, so those are likely to be where the error is. From there, it's > just a matter of understanding what the code is doing or could have > been doing that would have caused the failure. Which three lines in this case? -Tim On Thu, Mar 31, 2011 at 7:28 PM, brett lentz <bre...@gm...> wrote: > Yes, the output that generates a list of related method/function calls > that caused the error is called a "stack trace". It traces it's way > up the call stack. > > There's only three lines in the stack trace relevant to the rails code > itself, so those are likely to be where the error is. From there, it's > just a matter of understanding what the code is doing or could have > been doing that would have caused the failure. > > ---Brett. > > > > On Thu, Mar 31, 2011 at 4:21 PM, Games on the Brain > <gam...@gm...> wrote: >> I presume you got that from the console lines that I copied? Is that >> what you call a stack trace? >> >> If so, could you explain how you found that one specific line from the >> list I gave you? >> >> -Tim >> >> >> >> On Thu, Mar 31, 2011 at 6:11 PM, Erik Vos <eri...@xs...> wrote: >>> The stack trace points to this line in the code where home cities are >>> assigned: >>> >>> City homeCity = cities.get(Math.max(cityNumber - 1, 0)); >>> >>> So It looks like city="2" has been specified for a tile that has only one >>> city. >>> >>> Erik. >>> >>>> -----Oorspronkelijk bericht----- >>>> Van: Games on the Brain [mailto:gam...@gm...] >>>> Verzonden: donderdag 31 maart 2011 23:24 >>>> Aan: Development list for Rails: an 18xx game >>>> Onderwerp: [Rails-devel] Tracking Down Errors >>>> >>>> I'm having a hard time tracking down an error in a prototype I'm >>> developing >>>> on Rails: >>>> >>>> Game setup from file Game.xml failed: >>>> Index: 1, Size: 1 >>>> >>>> I actually add lines to the Game.xml file one by one until I got that >>> error and it >>>> occurs when I add the following: >>>> >>>> <Component name="TileManager" class="rails.game.TileManager" >>>> file="TileSet.xml"/> >>>> >>>> Thus, I suspect the problem is either in the Tiles.xml file or the >>> TileSet.xml >>>> file. >>>> >>>> I copied those files from 1830 and removed all the <IfOption> statements. >>>> I'm also pretty sure that all tiles that are in Tiles.xml are in >>> TileSet.xml as well. >>>> And all the tiles that are on my map are in them too. >>>> >>>> Any ideas how I can track it down? I don't know if it will help, but here >>> is what >>>> comes up in the Eclipse console: >>>> >>>> >>>> Loading games list from GamesList.xml >>>> Index: 1, Size: 1 >>>> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 >>>> at java.util.ArrayList.RangeCheck(ArrayList.java:546) >>>> at java.util.ArrayList.get(ArrayList.java:321) >>>> at rails.game.MapHex.addHome(MapHex.java:963) >>>> at >>>> rails.game.MapManager.finishConfiguration(MapManager.java:153) >>>> at rails.game.Game.setup(Game.java:188) >>>> at >>>> rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: >>>> 481) >>>> at >>>> rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav >>>> a:237) >>>> at >>>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) >>>> at >>>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2 >>>> 202) >>>> at >>>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. >>>> java:420) >>>> at >>>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) >>>> at >>>> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListe >>>> ner.java:246) >>>> at java.awt.Component.processMouseEvent(Component.java:5617) >>>> at >>>> javax.swing.JComponent.processMouseEvent(JComponent.java:3129) >>>> at java.awt.Component.processEvent(Component.java:5382) >>>> at java.awt.Container.processEvent(Container.java:2010) >>>> at java.awt.Component.dispatchEventImpl(Component.java:4083) >>>> at java.awt.Container.dispatchEventImpl(Container.java:2068) >>>> at java.awt.Component.dispatchEvent(Component.java:3918) >>>> at >>>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) >>>> at >>>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) >>>> at >>>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) >>>> at java.awt.Container.dispatchEventImpl(Container.java:2054) >>>> at java.awt.Window.dispatchEventImpl(Window.java:1801) >>>> at java.awt.Component.dispatchEvent(Component.java:3918) >>>> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) >>>> at java.awt.EventQueue.access$000(EventQueue.java:80) >>>> at java.awt.EventQueue$1.run(EventQueue.java:462) >>>> at java.awt.EventQueue$1.run(EventQueue.java:461) >>>> at java.security.AccessController.doPrivileged(Native Method) >>>> at >>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>>> Context.java:84) >>>> at >>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>>> Context.java:95) >>>> at java.awt.EventQueue$2.run(EventQueue.java:476) >>>> at java.awt.EventQueue$2.run(EventQueue.java:475) >>>> at java.security.AccessController.doPrivileged(Native Method) >>>> at >>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>>> Context.java:84) >>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) >>>> at >>>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT >>>> hread.java:269) >>>> at >>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre >>>> ad.java:190) >>>> at >>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) >>>> at >>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) >>>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) >>>> >>>> >>> ---------------------------------------------------------------------------- >>> -- >>>> Create and publish websites with WebMatrix Use the most popular FREE >>>> web apps or write code yourself; WebMatrix provides all the features you >>>> need to develop and publish your website. http://p.sf.net/sfu/ms- >>>> webmatrix-sf >>>> _______________________________________________ >>>> Rails-devel mailing list >>>> Rai...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>> >>> >>> ------------------------------------------------------------------------------ >>> Create and publish websites with WebMatrix >>> Use the most popular FREE web apps or write code yourself; >>> WebMatrix provides all the features you need to develop and >>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >>> _______________________________________________ >>> Rails-devel mailing list >>> Rai...@li... >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: brett l. <bre...@gm...> - 2011-03-31 23:28:30
|
Yes, the output that generates a list of related method/function calls that caused the error is called a "stack trace". It traces it's way up the call stack. There's only three lines in the stack trace relevant to the rails code itself, so those are likely to be where the error is. From there, it's just a matter of understanding what the code is doing or could have been doing that would have caused the failure. ---Brett. On Thu, Mar 31, 2011 at 4:21 PM, Games on the Brain <gam...@gm...> wrote: > I presume you got that from the console lines that I copied? Is that > what you call a stack trace? > > If so, could you explain how you found that one specific line from the > list I gave you? > > -Tim > > > > On Thu, Mar 31, 2011 at 6:11 PM, Erik Vos <eri...@xs...> wrote: >> The stack trace points to this line in the code where home cities are >> assigned: >> >> City homeCity = cities.get(Math.max(cityNumber - 1, 0)); >> >> So It looks like city="2" has been specified for a tile that has only one >> city. >> >> Erik. >> >>> -----Oorspronkelijk bericht----- >>> Van: Games on the Brain [mailto:gam...@gm...] >>> Verzonden: donderdag 31 maart 2011 23:24 >>> Aan: Development list for Rails: an 18xx game >>> Onderwerp: [Rails-devel] Tracking Down Errors >>> >>> I'm having a hard time tracking down an error in a prototype I'm >> developing >>> on Rails: >>> >>> Game setup from file Game.xml failed: >>> Index: 1, Size: 1 >>> >>> I actually add lines to the Game.xml file one by one until I got that >> error and it >>> occurs when I add the following: >>> >>> <Component name="TileManager" class="rails.game.TileManager" >>> file="TileSet.xml"/> >>> >>> Thus, I suspect the problem is either in the Tiles.xml file or the >> TileSet.xml >>> file. >>> >>> I copied those files from 1830 and removed all the <IfOption> statements. >>> I'm also pretty sure that all tiles that are in Tiles.xml are in >> TileSet.xml as well. >>> And all the tiles that are on my map are in them too. >>> >>> Any ideas how I can track it down? I don't know if it will help, but here >> is what >>> comes up in the Eclipse console: >>> >>> >>> Loading games list from GamesList.xml >>> Index: 1, Size: 1 >>> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 >>> at java.util.ArrayList.RangeCheck(ArrayList.java:546) >>> at java.util.ArrayList.get(ArrayList.java:321) >>> at rails.game.MapHex.addHome(MapHex.java:963) >>> at >>> rails.game.MapManager.finishConfiguration(MapManager.java:153) >>> at rails.game.Game.setup(Game.java:188) >>> at >>> rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: >>> 481) >>> at >>> rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav >>> a:237) >>> at >>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) >>> at >>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2 >>> 202) >>> at >>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. >>> java:420) >>> at >>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) >>> at >>> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListe >>> ner.java:246) >>> at java.awt.Component.processMouseEvent(Component.java:5617) >>> at >>> javax.swing.JComponent.processMouseEvent(JComponent.java:3129) >>> at java.awt.Component.processEvent(Component.java:5382) >>> at java.awt.Container.processEvent(Container.java:2010) >>> at java.awt.Component.dispatchEventImpl(Component.java:4083) >>> at java.awt.Container.dispatchEventImpl(Container.java:2068) >>> at java.awt.Component.dispatchEvent(Component.java:3918) >>> at >>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) >>> at >>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) >>> at >>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) >>> at java.awt.Container.dispatchEventImpl(Container.java:2054) >>> at java.awt.Window.dispatchEventImpl(Window.java:1801) >>> at java.awt.Component.dispatchEvent(Component.java:3918) >>> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) >>> at java.awt.EventQueue.access$000(EventQueue.java:80) >>> at java.awt.EventQueue$1.run(EventQueue.java:462) >>> at java.awt.EventQueue$1.run(EventQueue.java:461) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at >>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>> Context.java:84) >>> at >>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>> Context.java:95) >>> at java.awt.EventQueue$2.run(EventQueue.java:476) >>> at java.awt.EventQueue$2.run(EventQueue.java:475) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at >>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>> Context.java:84) >>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) >>> at >>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT >>> hread.java:269) >>> at >>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre >>> ad.java:190) >>> at >>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) >>> at >>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) >>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) >>> >>> >> ---------------------------------------------------------------------------- >> -- >>> Create and publish websites with WebMatrix Use the most popular FREE >>> web apps or write code yourself; WebMatrix provides all the features you >>> need to develop and publish your website. http://p.sf.net/sfu/ms- >>> webmatrix-sf >>> _______________________________________________ >>> Rails-devel mailing list >>> Rai...@li... >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: Games on t. B. <gam...@gm...> - 2011-03-31 23:22:17
|
I presume you got that from the console lines that I copied? Is that what you call a stack trace? If so, could you explain how you found that one specific line from the list I gave you? -Tim On Thu, Mar 31, 2011 at 6:11 PM, Erik Vos <eri...@xs...> wrote: > The stack trace points to this line in the code where home cities are > assigned: > > City homeCity = cities.get(Math.max(cityNumber - 1, 0)); > > So It looks like city="2" has been specified for a tile that has only one > city. > > Erik. > >> -----Oorspronkelijk bericht----- >> Van: Games on the Brain [mailto:gam...@gm...] >> Verzonden: donderdag 31 maart 2011 23:24 >> Aan: Development list for Rails: an 18xx game >> Onderwerp: [Rails-devel] Tracking Down Errors >> >> I'm having a hard time tracking down an error in a prototype I'm > developing >> on Rails: >> >> Game setup from file Game.xml failed: >> Index: 1, Size: 1 >> >> I actually add lines to the Game.xml file one by one until I got that > error and it >> occurs when I add the following: >> >> <Component name="TileManager" class="rails.game.TileManager" >> file="TileSet.xml"/> >> >> Thus, I suspect the problem is either in the Tiles.xml file or the > TileSet.xml >> file. >> >> I copied those files from 1830 and removed all the <IfOption> statements. >> I'm also pretty sure that all tiles that are in Tiles.xml are in > TileSet.xml as well. >> And all the tiles that are on my map are in them too. >> >> Any ideas how I can track it down? I don't know if it will help, but here > is what >> comes up in the Eclipse console: >> >> >> Loading games list from GamesList.xml >> Index: 1, Size: 1 >> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 >> at java.util.ArrayList.RangeCheck(ArrayList.java:546) >> at java.util.ArrayList.get(ArrayList.java:321) >> at rails.game.MapHex.addHome(MapHex.java:963) >> at >> rails.game.MapManager.finishConfiguration(MapManager.java:153) >> at rails.game.Game.setup(Game.java:188) >> at >> rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: >> 481) >> at >> rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav >> a:237) >> at >> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) >> at >> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2 >> 202) >> at >> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. >> java:420) >> at >> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) >> at >> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListe >> ner.java:246) >> at java.awt.Component.processMouseEvent(Component.java:5617) >> at >> javax.swing.JComponent.processMouseEvent(JComponent.java:3129) >> at java.awt.Component.processEvent(Component.java:5382) >> at java.awt.Container.processEvent(Container.java:2010) >> at java.awt.Component.dispatchEventImpl(Component.java:4083) >> at java.awt.Container.dispatchEventImpl(Container.java:2068) >> at java.awt.Component.dispatchEvent(Component.java:3918) >> at >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) >> at >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) >> at >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) >> at java.awt.Container.dispatchEventImpl(Container.java:2054) >> at java.awt.Window.dispatchEventImpl(Window.java:1801) >> at java.awt.Component.dispatchEvent(Component.java:3918) >> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) >> at java.awt.EventQueue.access$000(EventQueue.java:80) >> at java.awt.EventQueue$1.run(EventQueue.java:462) >> at java.awt.EventQueue$1.run(EventQueue.java:461) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >> Context.java:84) >> at >> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >> Context.java:95) >> at java.awt.EventQueue$2.run(EventQueue.java:476) >> at java.awt.EventQueue$2.run(EventQueue.java:475) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >> Context.java:84) >> at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) >> at >> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT >> hread.java:269) >> at >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre >> ad.java:190) >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) >> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) >> >> > ---------------------------------------------------------------------------- > -- >> Create and publish websites with WebMatrix Use the most popular FREE >> web apps or write code yourself; WebMatrix provides all the features you >> need to develop and publish your website. http://p.sf.net/sfu/ms- >> webmatrix-sf >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: Games on t. B. <gam...@gm...> - 2011-03-31 23:17:55
|
I have a decent amount of experience with LAMP, but my knowledge of Java is minimal, so forgive my ignorance. How do I do a stack trace in Eclipse? -Tim On Thu, Mar 31, 2011 at 6:22 PM, brett lentz <bre...@gm...> wrote: > When looking at stack traces, try to focus on the rails.* lines. > Anything in the Java API is significantly less likely to be the cause > of the issue. > > ---Brett. > > > On Thu, Mar 31, 2011 at 3:11 PM, Erik Vos <eri...@xs...> wrote: >> The stack trace points to this line in the code where home cities are >> assigned: >> >> City homeCity = cities.get(Math.max(cityNumber - 1, 0)); >> >> So It looks like city="2" has been specified for a tile that has only one >> city. >> >> Erik. >> >>> -----Oorspronkelijk bericht----- >>> Van: Games on the Brain [mailto:gam...@gm...] >>> Verzonden: donderdag 31 maart 2011 23:24 >>> Aan: Development list for Rails: an 18xx game >>> Onderwerp: [Rails-devel] Tracking Down Errors >>> >>> I'm having a hard time tracking down an error in a prototype I'm >> developing >>> on Rails: >>> >>> Game setup from file Game.xml failed: >>> Index: 1, Size: 1 >>> >>> I actually add lines to the Game.xml file one by one until I got that >> error and it >>> occurs when I add the following: >>> >>> <Component name="TileManager" class="rails.game.TileManager" >>> file="TileSet.xml"/> >>> >>> Thus, I suspect the problem is either in the Tiles.xml file or the >> TileSet.xml >>> file. >>> >>> I copied those files from 1830 and removed all the <IfOption> statements. >>> I'm also pretty sure that all tiles that are in Tiles.xml are in >> TileSet.xml as well. >>> And all the tiles that are on my map are in them too. >>> >>> Any ideas how I can track it down? I don't know if it will help, but here >> is what >>> comes up in the Eclipse console: >>> >>> >>> Loading games list from GamesList.xml >>> Index: 1, Size: 1 >>> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 >>> at java.util.ArrayList.RangeCheck(ArrayList.java:546) >>> at java.util.ArrayList.get(ArrayList.java:321) >>> at rails.game.MapHex.addHome(MapHex.java:963) >>> at >>> rails.game.MapManager.finishConfiguration(MapManager.java:153) >>> at rails.game.Game.setup(Game.java:188) >>> at >>> rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: >>> 481) >>> at >>> rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav >>> a:237) >>> at >>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) >>> at >>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2 >>> 202) >>> at >>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. >>> java:420) >>> at >>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) >>> at >>> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListe >>> ner.java:246) >>> at java.awt.Component.processMouseEvent(Component.java:5617) >>> at >>> javax.swing.JComponent.processMouseEvent(JComponent.java:3129) >>> at java.awt.Component.processEvent(Component.java:5382) >>> at java.awt.Container.processEvent(Container.java:2010) >>> at java.awt.Component.dispatchEventImpl(Component.java:4083) >>> at java.awt.Container.dispatchEventImpl(Container.java:2068) >>> at java.awt.Component.dispatchEvent(Component.java:3918) >>> at >>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) >>> at >>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) >>> at >>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) >>> at java.awt.Container.dispatchEventImpl(Container.java:2054) >>> at java.awt.Window.dispatchEventImpl(Window.java:1801) >>> at java.awt.Component.dispatchEvent(Component.java:3918) >>> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) >>> at java.awt.EventQueue.access$000(EventQueue.java:80) >>> at java.awt.EventQueue$1.run(EventQueue.java:462) >>> at java.awt.EventQueue$1.run(EventQueue.java:461) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at >>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>> Context.java:84) >>> at >>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>> Context.java:95) >>> at java.awt.EventQueue$2.run(EventQueue.java:476) >>> at java.awt.EventQueue$2.run(EventQueue.java:475) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at >>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >>> Context.java:84) >>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) >>> at >>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT >>> hread.java:269) >>> at >>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre >>> ad.java:190) >>> at >>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) >>> at >>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) >>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) >>> >>> >> ---------------------------------------------------------------------------- >> -- >>> Create and publish websites with WebMatrix Use the most popular FREE >>> web apps or write code yourself; WebMatrix provides all the features you >>> need to develop and publish your website. http://p.sf.net/sfu/ms- >>> webmatrix-sf >>> _______________________________________________ >>> Rails-devel mailing list >>> Rai...@li... >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: brett l. <bre...@gm...> - 2011-03-31 22:22:34
|
When looking at stack traces, try to focus on the rails.* lines. Anything in the Java API is significantly less likely to be the cause of the issue. ---Brett. On Thu, Mar 31, 2011 at 3:11 PM, Erik Vos <eri...@xs...> wrote: > The stack trace points to this line in the code where home cities are > assigned: > > City homeCity = cities.get(Math.max(cityNumber - 1, 0)); > > So It looks like city="2" has been specified for a tile that has only one > city. > > Erik. > >> -----Oorspronkelijk bericht----- >> Van: Games on the Brain [mailto:gam...@gm...] >> Verzonden: donderdag 31 maart 2011 23:24 >> Aan: Development list for Rails: an 18xx game >> Onderwerp: [Rails-devel] Tracking Down Errors >> >> I'm having a hard time tracking down an error in a prototype I'm > developing >> on Rails: >> >> Game setup from file Game.xml failed: >> Index: 1, Size: 1 >> >> I actually add lines to the Game.xml file one by one until I got that > error and it >> occurs when I add the following: >> >> <Component name="TileManager" class="rails.game.TileManager" >> file="TileSet.xml"/> >> >> Thus, I suspect the problem is either in the Tiles.xml file or the > TileSet.xml >> file. >> >> I copied those files from 1830 and removed all the <IfOption> statements. >> I'm also pretty sure that all tiles that are in Tiles.xml are in > TileSet.xml as well. >> And all the tiles that are on my map are in them too. >> >> Any ideas how I can track it down? I don't know if it will help, but here > is what >> comes up in the Eclipse console: >> >> >> Loading games list from GamesList.xml >> Index: 1, Size: 1 >> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 >> at java.util.ArrayList.RangeCheck(ArrayList.java:546) >> at java.util.ArrayList.get(ArrayList.java:321) >> at rails.game.MapHex.addHome(MapHex.java:963) >> at >> rails.game.MapManager.finishConfiguration(MapManager.java:153) >> at rails.game.Game.setup(Game.java:188) >> at >> rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: >> 481) >> at >> rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav >> a:237) >> at >> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) >> at >> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2 >> 202) >> at >> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. >> java:420) >> at >> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) >> at >> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListe >> ner.java:246) >> at java.awt.Component.processMouseEvent(Component.java:5617) >> at >> javax.swing.JComponent.processMouseEvent(JComponent.java:3129) >> at java.awt.Component.processEvent(Component.java:5382) >> at java.awt.Container.processEvent(Container.java:2010) >> at java.awt.Component.dispatchEventImpl(Component.java:4083) >> at java.awt.Container.dispatchEventImpl(Container.java:2068) >> at java.awt.Component.dispatchEvent(Component.java:3918) >> at >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) >> at >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) >> at >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) >> at java.awt.Container.dispatchEventImpl(Container.java:2054) >> at java.awt.Window.dispatchEventImpl(Window.java:1801) >> at java.awt.Component.dispatchEvent(Component.java:3918) >> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) >> at java.awt.EventQueue.access$000(EventQueue.java:80) >> at java.awt.EventQueue$1.run(EventQueue.java:462) >> at java.awt.EventQueue$1.run(EventQueue.java:461) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >> Context.java:84) >> at >> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >> Context.java:95) >> at java.awt.EventQueue$2.run(EventQueue.java:476) >> at java.awt.EventQueue$2.run(EventQueue.java:475) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl >> Context.java:84) >> at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) >> at >> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT >> hread.java:269) >> at >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre >> ad.java:190) >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) >> at >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) >> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) >> >> > ---------------------------------------------------------------------------- > -- >> Create and publish websites with WebMatrix Use the most popular FREE >> web apps or write code yourself; WebMatrix provides all the features you >> need to develop and publish your website. http://p.sf.net/sfu/ms- >> webmatrix-sf >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: Erik V. <eri...@xs...> - 2011-03-31 22:11:40
|
The stack trace points to this line in the code where home cities are assigned: City homeCity = cities.get(Math.max(cityNumber - 1, 0)); So It looks like city="2" has been specified for a tile that has only one city. Erik. > -----Oorspronkelijk bericht----- > Van: Games on the Brain [mailto:gam...@gm...] > Verzonden: donderdag 31 maart 2011 23:24 > Aan: Development list for Rails: an 18xx game > Onderwerp: [Rails-devel] Tracking Down Errors > > I'm having a hard time tracking down an error in a prototype I'm developing > on Rails: > > Game setup from file Game.xml failed: > Index: 1, Size: 1 > > I actually add lines to the Game.xml file one by one until I got that error and it > occurs when I add the following: > > <Component name="TileManager" class="rails.game.TileManager" > file="TileSet.xml"/> > > Thus, I suspect the problem is either in the Tiles.xml file or the TileSet.xml > file. > > I copied those files from 1830 and removed all the <IfOption> statements. > I'm also pretty sure that all tiles that are in Tiles.xml are in TileSet.xml as well. > And all the tiles that are on my map are in them too. > > Any ideas how I can track it down? I don't know if it will help, but here is what > comes up in the Eclipse console: > > > Loading games list from GamesList.xml > Index: 1, Size: 1 > java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 > at java.util.ArrayList.RangeCheck(ArrayList.java:546) > at java.util.ArrayList.get(ArrayList.java:321) > at rails.game.MapHex.addHome(MapHex.java:963) > at > rails.game.MapManager.finishConfiguration(MapManager.java:153) > at rails.game.Game.setup(Game.java:188) > at > rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java: > 481) > at > rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.jav > a:237) > at > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) > at > javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2 > 202) > at > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel. > java:420) > at > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) > at > javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListe > ner.java:246) > at java.awt.Component.processMouseEvent(Component.java:5617) > at > javax.swing.JComponent.processMouseEvent(JComponent.java:3129) > at java.awt.Component.processEvent(Component.java:5382) > at java.awt.Container.processEvent(Container.java:2010) > at java.awt.Component.dispatchEventImpl(Component.java:4083) > at java.awt.Container.dispatchEventImpl(Container.java:2068) > at java.awt.Component.dispatchEvent(Component.java:3918) > at > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) > at > java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) > at > java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) > at java.awt.Container.dispatchEventImpl(Container.java:2054) > at java.awt.Window.dispatchEventImpl(Window.java:1801) > at java.awt.Component.dispatchEvent(Component.java:3918) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) > at java.awt.EventQueue.access$000(EventQueue.java:80) > at java.awt.EventQueue$1.run(EventQueue.java:462) > at java.awt.EventQueue$1.run(EventQueue.java:461) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl > Context.java:84) > at > java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl > Context.java:95) > at java.awt.EventQueue$2.run(EventQueue.java:476) > at java.awt.EventQueue$2.run(EventQueue.java:475) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControl > Context.java:84) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) > at > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT > hread.java:269) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre > ad.java:190) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) > > ---------------------------------------------------------------------------- -- > Create and publish websites with WebMatrix Use the most popular FREE > web apps or write code yourself; WebMatrix provides all the features you > need to develop and publish your website. http://p.sf.net/sfu/ms- > webmatrix-sf > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Scott P. <sc...@re...> - 2011-03-31 22:07:03
|
On Thu, Mar 31, 2011 at 4:16 PM, Erik Vos <eri...@xs...> wrote: > I can do the tiles. > Thanks, Erik! I don't know if it is at all convenient to add multiple tiles at a time, but 18TN has some new tiles that I would also like to be implemented. I already have a map and companies done. I'll hold off on further requests for a bit. :-) Tiles: 598 599 600 L&N home (B13) shown here: http://www.18xx.net/18TN/18TNm.gif Tiles are shown here: http://www.diogenes.sacramento.ca.us/18xx_net/tiles/18TN.htm |
From: Scott P. <sc...@re...> - 2011-03-31 21:52:26
|
On Thu, Mar 31, 2011 at 4:23 PM, Games on the Brain < gam...@gm...> wrote: > I'm having a hard time tracking down an error in a prototype I'm > developing on Rails: > While I was trying to learn how all this worked, I started with 1830 and removed line by line checking frequently (saving a copy each time) to make sure I wasn't breaking anything. It was a lot of tedious work. I find that whenever Rails spits out an error, I am terrible at finding the error, so I think baby step changes is the only way for me to work--which is unfortunate because the interrelatedness of all the files makes it more efficient to just make it all work at once! |
From: Games on t. B. <gam...@gm...> - 2011-03-31 21:24:28
|
I'm having a hard time tracking down an error in a prototype I'm developing on Rails: Game setup from file Game.xml failed: Index: 1, Size: 1 I actually add lines to the Game.xml file one by one until I got that error and it occurs when I add the following: <Component name="TileManager" class="rails.game.TileManager" file="TileSet.xml"/> Thus, I suspect the problem is either in the Tiles.xml file or the TileSet.xml file. I copied those files from 1830 and removed all the <IfOption> statements. I'm also pretty sure that all tiles that are in Tiles.xml are in TileSet.xml as well. And all the tiles that are on my map are in them too. Any ideas how I can track it down? I don't know if it will help, but here is what comes up in the Eclipse console: Loading games list from GamesList.xml Index: 1, Size: 1 java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at rails.game.MapHex.addHome(MapHex.java:963) at rails.game.MapManager.finishConfiguration(MapManager.java:153) at rails.game.Game.setup(Game.java:188) at rails.ui.swing.GameSetupWindow.startNewGame(GameSetupWindow.java:481) at rails.ui.swing.GameSetupWindow.actionPerformed(GameSetupWindow.java:237) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:246) at java.awt.Component.processMouseEvent(Component.java:5617) at javax.swing.JComponent.processMouseEvent(JComponent.java:3129) at java.awt.Component.processEvent(Component.java:5382) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4083) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3918) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) at java.awt.Container.dispatchEventImpl(Container.java:2054) at java.awt.Window.dispatchEventImpl(Window.java:1801) at java.awt.Component.dispatchEvent(Component.java:3918) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501) at java.awt.EventQueue.access$000(EventQueue.java:80) at java.awt.EventQueue$1.run(EventQueue.java:462) at java.awt.EventQueue$1.run(EventQueue.java:461) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:95) at java.awt.EventQueue$2.run(EventQueue.java:476) at java.awt.EventQueue$2.run(EventQueue.java:475) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84) at java.awt.EventQueue.dispatchEvent(EventQueue.java:473) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) |
From: Erik V. <eri...@xs...> - 2011-03-31 21:16:11
|
I can do the tiles. I'm also willing to look at the OS train once the rest is done, so I can test with a working game. Erik. Van: Scott Petersen [mailto:sc...@re...] Verzonden: donderdag 31 maart 2011 15:29 Aan: Development list for Rails: an 18xx game Onderwerp: [Rails-devel] 18GA I (and possibly others) will work on finishing up 18GA in the next couple weeks--it should not take much work. Could someone add the following tiles? Pictorial versions can be found on Blackwater Station. http://www.18xx.net/tiles/18GA.htm Yellow 451 Three dead-end cities (30), exits NW,NE,S, "Atlanta" Green 452 Three straight cities (20), crossing, "Atlanta" 453 K-shape city (30), "Augusta" 454 City (30), exits N,NW,SW, "Savannah" Brown 455 Three straight cities (70), crossing, "Atlanta" 456 K-shape city (50), "Augusta" 457 5-way city (40), "Brunswick" 458 5-way city (50), "Macon" 459 City (60), exits N,NW,SW, "Savannah" Gray I can't check now, but if there is not already a gray "K" that looks just like a #15--this would be used for the Cotton Port variant that I will implement. The other critical item that I will not be able to resolve is the "Free" 2-train that comes with the Ocilla Southern. I know Erik already had some thoughts about this, but I thought I would bring it up again so that perhaps there could be a potential solution in the works. I believe 1848 has a similarly implemented free train, so maybe Bill will have some input too. Ocilla Southern Upon purchase, immediately get the 2 Train marked "Free" -Free train removed with 4T purchase -Free train removed if company already has four trains -This acquisition is not considered a train purchase -Does not close the Ocilla Southern. -The free train cannot be sold to another corporation. |
From: Scott P. <sc...@re...> - 2011-03-31 15:31:23
|
On Thu, Mar 31, 2011 at 8:28 AM, Scott Petersen <sc...@re...>wrote: > Gray > I can't check now, but if there is not already a gray "K" that looks just > like a #15--this would be used for the Cotton Port variant that I will > implement. > Just to clarify on this one, it would be good for the tile to have no printed value. |
From: brett l. <bre...@gm...> - 2011-03-31 14:07:26
|
Sure, I'll merge this in. ---Brett. On Thu, Mar 31, 2011 at 3:16 AM, Erik Vos <eri...@xs...> wrote: > Brett, > > > > Can you sort this out? You have introduced SVG and Batik. > > SVGOffscreenLoader was also yours, I think – can it really be removed? > > > > Personally, I don’t want to spend time fixing things that ain’t broke, but > if Adam likes to do such work, it’s fine with me. > > > > It appears to be true that we only need batik.jar. In the past I had found > that I needed almost all batik jars in the classpath to prevent > NoClassDefFoundErrors when running the current Rails version from the > command line. Only now I discover that I had overlooked the main lib > batik.jar! So that was entirely my mistake. > > > > Erik. > > > > Van: Adam Badura [mailto:ab...@o2...] > Verzonden: donderdag 31 maart 2011 1:06 > Aan: rai...@li... > Onderwerp: [Rails-devel] Batik 1.7 > > > > In the attachment you will find transition from Batik 1.6 to Batik 1.7 along > with some added SVN ignores for generated files. > > > > I have discovered that only one Batik JAR file is needed to run so I have > skipped adding all the others (and also I'm not sure whether those in > Batik's /lib sub-directory should ever be added anyway) however entire > library is added so if they are needed later they can be added with ease. > > > > Also I had to remove one test class as it no longer compiled. It seems no > JAR from the new release contains that class. Kind of odd but the class > didn't seem needed anyway so I didn't give much attention to the issue. > > > > Finally for Batik and log4j JARs I have added JavaDoc web link. Having a > local one seems easier but that would require either adding the JavaDoc to > SVN or requiring all to have it at specified path and neither seemed > justified. Also anyone willing to use a different path can easily reset it > (and just remember not to commit that change). However web link seems like a > good default. I haven't added links to the other libraries as JUnit is very > old and JGraph is used only in one file so I skipped investigating the > issue. > > > > > > I don't know what layout of libraries is what Java/Eclipse projects should > do as I'm a noob in both. So I did it the same way it was before. > > > > > > Why should we upgrade? Since it is easier to upgrade in small steps then in > one large step. Also it is easier for newcomers to find their way if we use > latest libraries rather then old and no longer supported ones. > > > > > > Adam Badura > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > |
From: Scott P. <sc...@re...> - 2011-03-31 13:29:15
|
I (and possibly others) will work on finishing up 18GA in the next couple weeks--it should not take much work. Could someone add the following tiles? Pictorial versions can be found on Blackwater Station. http://www.18xx.net/tiles/18GA.htm Yellow 451 Three dead-end cities (30), exits NW,NE,S, "Atlanta" Green 452 Three straight cities (20), crossing, "Atlanta" 453 K-shape city (30), "Augusta" 454 City (30), exits N,NW,SW, "Savannah" Brown 455 Three straight cities (70), crossing, "Atlanta" 456 K-shape city (50), "Augusta" 457 5-way city (40), "Brunswick" 458 5-way city (50), "Macon" 459 City (60), exits N,NW,SW, "Savannah" Gray I can't check now, but if there is not already a gray "K" that looks just like a #15--this would be used for the Cotton Port variant that I will implement. The other critical item that I will not be able to resolve is the "Free" 2-train that comes with the Ocilla Southern. I know Erik already had some thoughts about this, but I thought I would bring it up again so that perhaps there could be a potential solution in the works. I believe 1848 has a similarly implemented free train, so maybe Bill will have some input too. Ocilla Southern Upon purchase, immediately get the 2 Train marked "Free" -Free train removed with 4T purchase -Free train removed if company already has four trains -This acquisition is not considered a train purchase -Does not close the Ocilla Southern. -The free train cannot be sold to another corporation. |
From: Erik V. <eri...@xs...> - 2011-03-31 10:16:31
|
Brett, Can you sort this out? You have introduced SVG and Batik. SVGOffscreenLoader was also yours, I think - can it really be removed? Personally, I don't want to spend time fixing things that ain't broke, but if Adam likes to do such work, it's fine with me. It appears to be true that we only need batik.jar. In the past I had found that I needed almost all batik jars in the classpath to prevent NoClassDefFoundErrors when running the current Rails version from the command line. Only now I discover that I had overlooked the main lib batik.jar! So that was entirely my mistake. Erik. Van: Adam Badura [mailto:ab...@o2...] Verzonden: donderdag 31 maart 2011 1:06 Aan: rai...@li... Onderwerp: [Rails-devel] Batik 1.7 In the attachment you will find transition from Batik 1.6 to Batik 1.7 along with some added SVN ignores for generated files. I have discovered that only one Batik JAR file is needed to run so I have skipped adding all the others (and also I'm not sure whether those in Batik's /lib sub-directory should ever be added anyway) however entire library is added so if they are needed later they can be added with ease. Also I had to remove one test class as it no longer compiled. It seems no JAR from the new release contains that class. Kind of odd but the class didn't seem needed anyway so I didn't give much attention to the issue. Finally for Batik and log4j JARs I have added JavaDoc web link. Having a local one seems easier but that would require either adding the JavaDoc to SVN or requiring all to have it at specified path and neither seemed justified. Also anyone willing to use a different path can easily reset it (and just remember not to commit that change). However web link seems like a good default. I haven't added links to the other libraries as JUnit is very old and JGraph is used only in one file so I skipped investigating the issue. I don't know what layout of libraries is what Java/Eclipse projects should do as I'm a noob in both. So I did it the same way it was before. Why should we upgrade? Since it is easier to upgrade in small steps then in one large step. Also it is easier for newcomers to find their way if we use latest libraries rather then old and no longer supported ones. Adam Badura |
From: Adam B. <ab...@o2...> - 2011-03-30 22:29:13
|
Today I downloaded revision 1504. Run the code with the same error (which I expected as the revision didn’t seem to be connected with the issues). Then I had a tought and refreshed the project node in Eclipse and run again. All fine this time. I know it is humiliting but for my excuse I can say that I’m not compatible with Eclipse... ;) Adam Badura From: Adam Badura Sent: Tuesday, March 29, 2011 11:26 PM To: rai...@li... Subject: [Rails-devel] NullPointerException after changes at revisions1501-1503 In the attachement a two .rails save files which opened correctly at revision 1500 and now they no longer open at revision 1503. Loading the game results in NullPointerException thrown at place suggesting privates changes. Adam Badura -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar -------------------------------------------------------------------------------- _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Adam B. <ab...@o2...> - 2011-03-30 19:31:45
|
Both in AL and Kaas? As the same thing occured with Kaas. I haven't check other games. Adam Badura -----Oryginalna wiadomość----- From: brett lentz Sent: Wednesday, March 30, 2011 6:08 PM To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] NullPointerException after changesatrevisions1501-1503 According to the stack trace, I'd suspect there's an error in one of the XML files. This looks like the most pertinent line error: BidStartItem(StartItemAction).readObject(ObjectInputStream) line: 56 ---Brett. On Wed, Mar 30, 2011 at 6:45 AM, Adam Badura <ab...@o2...> wrote: > Here you go: > - log file, > - stack trace as copied from Eclipse debug window, > - save file during loading of which the error occurs (this is the same as > in > original post). > > This happens when the game is loaded by providing file path as command > line argument to the application. However if the game is opened after > starting the application normaly failure occurs as well (but is reported > differently). > > Adam Badura > > -----Oryginalna wiadomość----- From: brett lentz > Sent: Wednesday, March 30, 2011 7:28 AM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] NullPointerException after changes > atrevisions1501-1503 > > Can you post the stack trace from the NPE? That would make seeing > where it went wrong a lot easier. > > ---Brett. > > > > On Tue, Mar 29, 2011 at 10:27 PM, <ab...@o2...> wrote: >> >> I got those exceptions when loading game by command line argument. >> Nothing >> more specific. >> >> I do have some local changes but those are new Batik version and some map >> drawing changes. Both seem totally unconnected to the origin of the >> exception. >> >> Adam Badura >> >> -----Oryginalna wiadomość----- >> From: Bill Rosgen >> Sent: Wednesday, March 30, 2011 4:01 AM >> To: Development list for Rails: an 18xx game >> Subject: Re: [Rails-devel] NullPointerException after changes at >> revisions1501-1503 >> >> On 2011-03-30, at 5:26 , Adam Badura wrote: >> >>> In the attachement a two .rails save files which opened correctly at >>> revision 1500 and now they no longer open at revision 1503. >>> Loading the game results in NullPointerException thrown at place >>> suggesting privates changes. >>> >> >> Can you provide more information? Both of these files seem to work on my >> machine using revision 1503. Do you get the exception when loading the >> files, or is there something more specific that I have to do to cause it? >> >> Bill >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet >> the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your >> software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet >> the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your >> software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: brett l. <bre...@gm...> - 2011-03-30 16:09:08
|
According to the stack trace, I'd suspect there's an error in one of the XML files. This looks like the most pertinent line error: BidStartItem(StartItemAction).readObject(ObjectInputStream) line: 56 ---Brett. On Wed, Mar 30, 2011 at 6:45 AM, Adam Badura <ab...@o2...> wrote: > Here you go: > - log file, > - stack trace as copied from Eclipse debug window, > - save file during loading of which the error occurs (this is the same as in > original post). > > This happens when the game is loaded by providing file path as command > line argument to the application. However if the game is opened after > starting the application normaly failure occurs as well (but is reported > differently). > > Adam Badura > > -----Oryginalna wiadomość----- From: brett lentz > Sent: Wednesday, March 30, 2011 7:28 AM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] NullPointerException after changes > atrevisions1501-1503 > > Can you post the stack trace from the NPE? That would make seeing > where it went wrong a lot easier. > > ---Brett. > > > > On Tue, Mar 29, 2011 at 10:27 PM, <ab...@o2...> wrote: >> >> I got those exceptions when loading game by command line argument. Nothing >> more specific. >> >> I do have some local changes but those are new Batik version and some map >> drawing changes. Both seem totally unconnected to the origin of the >> exception. >> >> Adam Badura >> >> -----Oryginalna wiadomość----- >> From: Bill Rosgen >> Sent: Wednesday, March 30, 2011 4:01 AM >> To: Development list for Rails: an 18xx game >> Subject: Re: [Rails-devel] NullPointerException after changes at >> revisions1501-1503 >> >> On 2011-03-30, at 5:26 , Adam Badura wrote: >> >>> In the attachement a two .rails save files which opened correctly at >>> revision 1500 and now they no longer open at revision 1503. >>> Loading the game results in NullPointerException thrown at place >>> suggesting privates changes. >>> >> >> Can you provide more information? Both of these files seem to work on my >> machine using revision 1503. Do you get the exception when loading the >> files, or is there something more specific that I have to do to cause it? >> >> Bill >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > |
From: Erik V. <eri...@xs...> - 2011-03-30 15:24:58
|
I have wrestled the whole day with this and similar issues, but all seems OK now. At least to me. My first attempt was a bit too naïve, and some refactoring was needed to get it better. One kind of problem was the determination of who the local player is. This is now consistently determined by the "local.player.name" setting. This can be done on the command line with -Dlocal.player.name=<name>. Setting the local player name should also be possible via the similar entry in my.properties, but I'm having problems having Rails to pick up that value. If I use Config.get("local.player.name") then Rails does not load the properties file passed via the command line, but the default one; not sure why. So I'm only using the -D option method. > -----Oorspronkelijk bericht----- > Van: Rick Westerman [mailto:wes...@pu...] > > Does not work for me. Trying as two-player 1830 using a PC and a Mac > > via Dropbox. The first player, no matter if the PC or the Mac, does > > not automatically autoload. I.e., no popup. The second player does get > > a popup (after the first player manually does as reload and then takes > > his turn.) Redoing autoload/save as 1st player does not help. I have seen this myself only occasionally, and not only with the first player. There was a lot of dependence of the exact sequence in which the (in my case: 3) players execute their initial actions. Should be better now. > Now the "sort of" part. The initial auction in 1830 works fine. However the > SR does not in that once you press 'done' the yellow-tint of who is the next > player does not change. Pressing 'done' again brings up a dialog box that says > something like "the done button can not be used at this time". In other > words the 'done' action has already been taken. Thus it becomes hard to tell > whose turn it is. This is better now, at least with the StockRound/GameStatus window. After each update by other players, the screen is updated, including the yellow current player marker, but (almost) everything remains greyed out until it's the local player's turn again. The StartRound window behaves pretty much the same, although the buttons are not yet greyed out. I haven't looked at the Map/OR window yet. I haven't tested Suspend mode either. > Similar in the OR where the yellow-tint of the current player does not > change. To be done. Erik. |
From: Games on t. B. <gam...@gm...> - 2011-03-30 14:14:51
|
I see the problem. You're running it on Windows. =P -Tim On Wed, Mar 30, 2011 at 9:45 AM, Adam Badura <ab...@o2...> wrote: > Here you go: > - log file, > - stack trace as copied from Eclipse debug window, > - save file during loading of which the error occurs (this is the same as > in original post). > > This happens when the game is loaded by providing file path as command > line argument to the application. However if the game is opened after > starting the application normaly failure occurs as well (but is reported > differently). > > Adam Badura > > -----Oryginalna wiadomość----- From: brett lentz > Sent: Wednesday, March 30, 2011 7:28 AM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] NullPointerException after changes > atrevisions1501-1503 > > Can you post the stack trace from the NPE? That would make seeing > where it went wrong a lot easier. > > ---Brett. > > > > On Tue, Mar 29, 2011 at 10:27 PM, <ab...@o2...> wrote: > >> I got those exceptions when loading game by command line argument. Nothing >> more specific. >> >> I do have some local changes but those are new Batik version and some map >> drawing changes. Both seem totally unconnected to the origin of the >> exception. >> >> Adam Badura >> >> -----Oryginalna wiadomość----- >> From: Bill Rosgen >> Sent: Wednesday, March 30, 2011 4:01 AM >> To: Development list for Rails: an 18xx game >> Subject: Re: [Rails-devel] NullPointerException after changes at >> revisions1501-1503 >> >> On 2011-03-30, at 5:26 , Adam Badura wrote: >> >> In the attachement a two .rails save files which opened correctly at >>> revision 1500 and now they no longer open at revision 1503. >>> Loading the game results in NullPointerException thrown at place >>> suggesting privates changes. >>> >>> >> Can you provide more information? Both of these files seem to work on my >> machine using revision 1503. Do you get the exception when loading the >> files, or is there something more specific that I have to do to cause it? >> >> Bill >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > |
From: Adam B. <ab...@o2...> - 2011-03-30 13:46:11
|
Here you go: - log file, - stack trace as copied from Eclipse debug window, - save file during loading of which the error occurs (this is the same as in original post). This happens when the game is loaded by providing file path as command line argument to the application. However if the game is opened after starting the application normaly failure occurs as well (but is reported differently). Adam Badura -----Oryginalna wiadomość----- From: brett lentz Sent: Wednesday, March 30, 2011 7:28 AM To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] NullPointerException after changes atrevisions1501-1503 Can you post the stack trace from the NPE? That would make seeing where it went wrong a lot easier. ---Brett. On Tue, Mar 29, 2011 at 10:27 PM, <ab...@o2...> wrote: > I got those exceptions when loading game by command line argument. Nothing > more specific. > > I do have some local changes but those are new Batik version and some map > drawing changes. Both seem totally unconnected to the origin of the > exception. > > Adam Badura > > -----Oryginalna wiadomość----- > From: Bill Rosgen > Sent: Wednesday, March 30, 2011 4:01 AM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] NullPointerException after changes at > revisions1501-1503 > > On 2011-03-30, at 5:26 , Adam Badura wrote: > >> In the attachement a two .rails save files which opened correctly at >> revision 1500 and now they no longer open at revision 1503. >> Loading the game results in NullPointerException thrown at place >> suggesting privates changes. >> > > Can you provide more information? Both of these files seem to work on my > machine using revision 1503. Do you get the exception when loading the > files, or is there something more specific that I have to do to cause it? > > Bill > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |