JOverseer / joverseer

JOverseer is a desktop application which aims to assist players of the Middle Earth PBM game.
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

setup selected roads, vanishing #622

Closed GnarlyDave closed 8 years ago

GnarlyDave commented 8 years ago

reported by Jordi Chalmeta. Kin strife, game 637..symptom is that roads of Arnor created by setup are not visible. eg. hex 1307 should show a east-west road. Debugging with a trap in MapPanel.java shows that there is more than one copy of the hex present. One with the road present and another without...and the last one is rendered on top of the first.

In fact, the gm.getHexes() function is returning twice as a many hexes. This suggests that the import function is messing up.

Note that Jordi is actually importing two nations (2 and 5).

GnarlyDave commented 8 years ago

Workaround

  1. put the turn files into separate directories, one per turn (put multiple nations for the same turn in the same directory.
  2. close joverseer if open.
  3. Create a new game in jOverseer, remember to select 'new XML'
  4. import the game files in turn order, starting with the directory for turn0
  5. save the .jov file.

(2nd update)

GnarlyDave commented 8 years ago

A number of things seem to show this symptom.

  1. not specifying new XML on the new game dialog..
  2. Importing the turns in reverse order...although you get a dire, but vague warning.
  3. Loading a old game, then creating a new game...It looks like the list of hexes isn't getting cleared properly when a new game is created.
  4. Repeatedly creating a new game without closing joverseer...the number of hexes rendered keeps adding. (only visible in debug, but clearly wrong.)
EdwardLaneUK commented 8 years ago

workaround is not quite a fully functional solution - Dave is investigating further

On 19 January 2016 at 11:51, Dave Spring notifications@github.com wrote:

A number of things seem to show this symptom.

  1. not specifying new XML on the new game dialog..
  2. Importing the turns in reverse order...although you get a dire, but vague warning.
  3. Importing using the 'import game tree' option seems to import the files in the correct order but the display isn't correct.

— Reply to this email directly or view it on GitHub https://github.com/JOverseer/joverseer/issues/622#issuecomment-172827623 .

GnarlyDave commented 8 years ago

Jordi reports the workaround works for him :)