agent Nefarious didn't place all of his armies. what a bozo.

Game of universal domination. New dice available free upon request.
Post Reply
User avatar
Preacherman
Semiholy Priest
Posts: 4496
Joined: Tue Feb 24, 2004 3:52 am
Location: Sweden (capital of Denmark, an island in Norway, southern Europe)
Contact:

agent Nefarious didn't place all of his armies. what a bozo.

Post by Preacherman » Sat Mar 20, 2004 5:32 pm

There was an error in Nefarious@167ad1's placeArmies():
java.lang.ArrayIndexOutOfBoundsException: 168
at Nefarious.placeArmiesToKillPlayer(Nefarious.java:172)
at Nefarious.placeArmies(Nefarious.java:86)
at LuxWorld.currentComputerPlayersPlacePhase(LuxWorld.java:924)
at LuxWorld.takeCurrentComputerPlayersTurn(LuxWorld.java:851)
at LuxWorld.takeTurnsLoop(LuxWorld.java:807)
at LuxWorld.run(LuxWorld.java:2026)
at java.lang.Thread.run(Thread.java:554)
<LuxWorld@57c885: master=true, killed=false, controls=Preacherman, currentPlayer=3, gamePhase=3, turnPhase=1>: agent Nefarious didn't place all of his armies. what a bozo.

Any idea what might cause this Dustin? In the few cases I have seen it happen, she doesn't place any at all...anything related to the infamous "no armies" bug us mortals experience?

User avatar
dustin
Lux Creator
Lux Creator
Posts: 10999
Joined: Thu May 15, 2003 2:01 am
Location: Cascadia
Contact:

Post by dustin » Sat Mar 20, 2004 7:35 pm

If you look at the top of the stack trace you see this:
java.lang.ArrayIndexOutOfBoundsException: 168
at Nefarious.placeArmiesToKillPlayer(Nefarious.java:172)

The ArrayIndexOutOfBoundsException means that you tried to access an array element that didn't exist. The next line says that it happened at line 172 of the Nefarious.java file. So I would go and look at line 172 and see what array is being accessed there.

User avatar
Preacherman
Semiholy Priest
Posts: 4496
Joined: Tue Feb 24, 2004 3:52 am
Location: Sweden (capital of Denmark, an island in Norway, southern Europe)
Contact:

Post by Preacherman » Sun Mar 21, 2004 7:18 am

Duh, newbie mistake! Thanks Dustin, all fixed now :)

Post Reply

Who is online

Users browsing this forum: No registered users and 184 guests