(sites Occupied by:NonMover) error - Printable Version +- Ludii Forum (https://ludii.games/forums) +-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5) +--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6) +--- Thread: (sites Occupied by:NonMover) error (/showthread.php?tid=126) |
(sites Occupied by:NonMover) error - ccxvii - 08-14-2020 I'm trying to use (sites Occupied by:NonMover) and keep getting these exceptions: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 4 at util.state.owned.FlatCellOnlyOwned.sites(FlatCellOnlyOwned.java:121) at game.functions.region.sites.occupied.SitesOccupied.eval(SitesOccupied.java:160) at game.functions.region.BaseRegionFunction.contains(BaseRegionFunction.java:27) at game.functions.booleans.is.in.IsIn$InSingleSite.eval(IsIn.java:200) at game.rules.play.moves.nonDecision.effect.Slide.eval(Slide.java:184) at game.equipment.component.Component.generate(Component.java:128) The same happens with Occupied by:Enemy, but Occupied by:Mover or a specific player works as expected. RE: (sites Occupied by:NonMover) error - cambolbro - 08-14-2020 Hi, Could you please attached the .lud that shows this. Regards, Cameron RE: (sites Occupied by:NonMover) error - ccxvii - 08-14-2020 Here's a cut down example that exhibits the problem. The offending line is in the "MovePawn" macro. Oops. Forgot to confirm the attachment. RE: (sites Occupied by:NonMover) error - Eric Piette - 08-14-2020 Hi, Thanks for let's us know about that bug. I just fixed it. We do a release this afternoon, you will be able to do that with the version 1.0.3. Regards, Eric |