Exception when I view result in DIY or preset competition
Posted: Sat Mar 18, 2017 11:02 pm
Hi,
When I attempt to simulate a result in DIY competition or preset competition mode, the game ends and I get the following exception:
C:\Users\Owner\Documents\ysoccer16_windows64\ysoccer16_windows64>java -jar ysoccer.jar
Controllers: added manager for application, 1 managers active
Exception in thread "LWJGL Application" java.lang.IndexOutOfBoundsException: Index: 16, Size: 16
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.ygames.ysoccer.competitions.Competition.generateScorers(Competition.java:313)
at com.ygames.ysoccer.competitions.League.generateResult(League.java:195)
at com.ygames.ysoccer.screens.PlayLeague$ViewResultButton.viewResult(PlayLeague.java:324)
at com.ygames.ysoccer.screens.PlayLeague$ViewResultButton.onFire1Down(PlayLeague.java:309)
at com.ygames.ysoccer.gui.Widget.fireEvent(Widget.java:142)
at com.ygames.ysoccer.framework.GLScreen.render(GLScreen.java:106)
at com.ygames.ysoccer.framework.GLGame.render(GLGame.java:127)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:223)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
I hope this helps and other than that it looks really impressive, well done.
When I attempt to simulate a result in DIY competition or preset competition mode, the game ends and I get the following exception:
C:\Users\Owner\Documents\ysoccer16_windows64\ysoccer16_windows64>java -jar ysoccer.jar
Controllers: added manager for application, 1 managers active
Exception in thread "LWJGL Application" java.lang.IndexOutOfBoundsException: Index: 16, Size: 16
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.ygames.ysoccer.competitions.Competition.generateScorers(Competition.java:313)
at com.ygames.ysoccer.competitions.League.generateResult(League.java:195)
at com.ygames.ysoccer.screens.PlayLeague$ViewResultButton.viewResult(PlayLeague.java:324)
at com.ygames.ysoccer.screens.PlayLeague$ViewResultButton.onFire1Down(PlayLeague.java:309)
at com.ygames.ysoccer.gui.Widget.fireEvent(Widget.java:142)
at com.ygames.ysoccer.framework.GLScreen.render(GLScreen.java:106)
at com.ygames.ysoccer.framework.GLGame.render(GLGame.java:127)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:223)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
I hope this helps and other than that it looks really impressive, well done.