#873 Dynamix loops not allowed in routes

v1.0 (example)
closed-works-for-me
None
5
2014-03-06
2011-09-20
Anonymous
No

Running inside Eclipse on change #3205 on a Windows Vista 64 bit machine (with java 64 bit). Saved game just before exception attached.

1. Load saved game
2. Continue with placement and let the computer run

Playing the Minigame, human against Dynamix, on the second turn, the following exception appeared:

Exception in thread "Triplea start local thread" java.lang.IllegalArgumentException: Loops not allowed in m_routes, route:Route:blue middle 2 -> blue middle 1 new territory:blue middle 2
at games.strategy.engine.data.Route.add(Route.java:206)
at games.strategy.engine.data.Route.<init>(Route.java:65)
at games.strategy.engine.data.RouteFinder.getRoute(RouteFinder.java:91)
at games.strategy.engine.data.RouteFinder.findRoute(RouteFinder.java:47)
at games.strategy.engine.data.GameMap.getRoute(GameMap.java:335)
at games.strategy.engine.data.GameMap.getRoute_IgnoreEnd(GameMap.java:340)
at games.strategy.triplea.Dynamix_AI.DUtils.GetAttackRouteFromXToY_ByLand_CountZAsPassthroughs(DUtils.java:2365)
at games.strategy.triplea.Dynamix_AI.DUtils.CanUnitReachTer(DUtils.java:1051)
at games.strategy.triplea.Dynamix_AI.DUtils.GetNUnitsMatchingXThatCanReach_CountYAsPassthroughs(DUtils.java:2442)
at games.strategy.triplea.Dynamix_AI.DUtils.GetNUnitsMatchingXThatCanReach(DUtils.java:2424)
at games.strategy.triplea.Dynamix_AI.DUtils.GetUnitsMatchingXThatCanReach(DUtils.java:2410)
at games.strategy.triplea.Dynamix_AI.DUtils.GetTersMatchingXThatCanBeAttackedByUnitsMatchingYInTersMatchingZ(DUtils.java:636)
at games.strategy.triplea.Dynamix_AI.DUtils.GetEnemyTersThatCanBeAttackedByUnitsOwnedBy(DUtils.java:618)
at games.strategy.triplea.Dynamix_AI.Code.DoCombatMove.GenerateTasks(DoCombatMove.java:478)
at games.strategy.triplea.Dynamix_AI.Code.DoCombatMove.doCombatMove(DoCombatMove.java:74)
at games.strategy.triplea.Dynamix_AI.Dynamix_AI.move(Dynamix_AI.java:276)
at games.strategy.triplea.baseAI.AbstractAI.start(AbstractAI.java:309)
at games.strategy.engine.framework.ServerGame.waitForPlayerToFinishStep(ServerGame.java:667)
at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:525)
at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:301)
at games.strategy.engine.framework.startup.launcher.LocalLauncher$2.run(LocalLauncher.java:125)
at java.lang.Thread.run(Unknown Source)

Discussion

  • Nobody/Anonymous

     
  • Chris Duncan

    Chris Duncan - 2012-03-12
    • summary: IllegalArgumentException --> Dynamix loops not allowed in routes
     
  • Chris Duncan

    Chris Duncan - 2014-03-06
    • status: open --> closed-works-for-me
    • assigned_to: Chris Duncan
    • Group: --> v1.0 (example)
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks