YSoccer

Un forum... indispensabileeee!
It is currently Tue May 23, 2017 7:46 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Mar 18, 2017 11:02 pm 
Offline
Someone..

Joined: Fri Sep 07, 2012 3:25 pm
Posts: 8
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.


Top
   
PostPosted: Sat Mar 18, 2017 11:10 pm 
Offline
Someone..

Joined: Fri Sep 07, 2012 3:25 pm
Posts: 8
Having looked into the issue further, it seems that it may be related to the bench size, which I had set at 7, whereas the teams had only 16 players. Maybe if the code could be edited to allow smaller benches than the maximum size, it might solve the issue. If I run it with a bench size of 5, it works normally.


Top
   
PostPosted: Sun Mar 19, 2017 1:51 pm 
Offline
Chapman's successor
Chapman's successor
User avatar

Joined: Wed Dec 29, 2004 1:14 pm
Posts: 732
Location: Turin, Italy
Hi youngireland,
thanks for finding the bug. I'll fix it in the next version


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited