GS Crashes with java.lang.ArrayIndexOutOfBoundsException: 7

Tech support for Commander Europe at War. Requires forum registration.

Moderators: firepowerjohan, Happycat, rkr1958, Slitherine Core

Post Reply
timhicks
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 57
Joined: Mon Jan 04, 2010 1:19 pm

GS Crashes with java.lang.ArrayIndexOutOfBoundsException: 7

Post by timhicks »

I am running GS 2.0

It is Jan 1946, and my game is crashing after it comes back from working out it's end of turn stuff. Specifically the resources total box appears and the map appears. It looks ok, but there is no way to go back to the main menu, the mouse doesn't scroll the map, and I can't click on 'next turn'. I can still attack and move units though.

I'm the Germans and there are LOADS of units on the map, so maybe there are too many. I saw a similar error reported a few months ago, which was diagnosed as being to do with the base code. Is this the same ?

the last few lines of the dos file read :-

Tile count : (36,19)
Exception in thread 'Thread-6' java.lang.ArrayIndexOutOfBoundsException: 7
at game.Game.checkEbenEmae1(Game.java:9018)
at game.Game.gameStatusUpdates(Game.java:9953)
at game.Game.startOfTurnIntercative(Game.java:9953)
at game.Game.endTurn2(Game.java:10188)
at game.Game.run(Game.java:19494)

I can send the save game if required.
richardsd
Lieutenant Colonel - Fw 190A
Lieutenant Colonel - Fw 190A
Posts: 1127
Joined: Sat Nov 03, 2007 5:30 am

Post by richardsd »

doesn't GS stop there?
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post by Peter Stauffenberg »

GS v2.0 is only supporting a game that ends in 1945. One reason is that many variables in the game with arrays are setup to have values from 0 to 6 (used to indicate 1939..1945). So when you get into 1946 then the game will try to check the content of a variable like reinforcements[7] and that's outside the range of the array.

So the game won't work past 1945.
timrt
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 61
Joined: Sat Mar 15, 2008 5:55 am

Post by timrt »

Interesting as I ran a PBEM game into 1946 (not doing very well as Allies) & although we stopped it, it was our choice not a system crash that caused this.
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post by Peter Stauffenberg »

Which version were you running? Vanilla CeaW or GS v2.0?
timrt
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 61
Joined: Sat Mar 15, 2008 5:55 am

Post by timrt »

It was GS 2.0
timhicks
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 57
Joined: Mon Jan 04, 2010 1:19 pm

post 1945

Post by timhicks »

thanks for the replies chaps !, i can stop trying to make it work now.

Shame cos I was hoping to take over the entire world, I started in 43 and I needed just a few more years. Maybe till 1950 !. Thanks to all the people who worked on GS, it's a truly great game.
Post Reply

Return to “Commander - Europe at War : Tech Support”