Re: [Freecol-developers] addNewUnitToTile

2014-01-06 Thread Thue Janus Kristensen
That makes sense - reconnecting creating a new game... thanks! Regards, Thue 2014/1/7 Michael T. Pope > I hit "send" on the previous post, returned to the window with the code > open, and saw the bug. After calling reconnect(), the variable "game" is > still referring to the old version of th

Re: [Freecol-developers] addNewUnitToTile

2014-01-06 Thread Michael T. Pope
I hit "send" on the previous post, returned to the window with the code open, and saw the bug. After calling reconnect(), the variable "game" is still referring to the old version of the game, not the updated one with the new unit added. Just reloading the game from freeColClient fixes the bug (g

Re: [Freecol-developers] addNewUnitToTile

2014-01-06 Thread Michael T. Pope
On Tue, 7 Jan 2014 04:06:49 +0100 Thue Janus Kristensen wrote: > I did try to find it. It seems like there are several versions > of FreeColGameObjects, possible in their own threads? > > Is there an introduction to the overall FreeCol design? Only the code. Several people have said it would be

Re: [Freecol-developers] addNewUnitToTile

2014-01-06 Thread Thue Janus Kristensen
I did try to find it. It seems like there are several versions of FreeColGameObjects, possible in their own threads? Is there an introduction to the overall FreeCol design? Threading, client-server model? Regards, Thue 2014/1/7 Michael T. Pope > On Tue, 7 Jan 2014 03:12:52 +0100 > Thue Janus

Re: [Freecol-developers] addNewUnitToTile

2014-01-06 Thread Michael T. Pope
On Tue, 7 Jan 2014 03:12:52 +0100 Thue Janus Kristensen wrote: > I am trying to figure out why a newly added unit via the debug interface > (right click on tile, add unit) is not getting getting focus. > > game.getFreeColGameObject(sUnit.getId(), Unit.class); on DebugUtils.java > line ~378 return

[Freecol-developers] addNewUnitToTile

2014-01-06 Thread Thue Janus Kristensen
I am trying to figure out why a newly added unit via the debug interface (right click on tile, add unit) is not getting getting focus. game.getFreeColGameObject(sUnit.getId(), Unit.class); on DebugUtils.java line ~378 returns null. Why? Regards, Thue --