Crash - but this is a funny one.

Victory and Glory: Napoleon is a game of grand strategy and fast-play tactical battles where you take the role of Napoleon Bonaparte and attempt to dominate the entire continent of Europe.
Post Reply
Sheist
Posts: 25
Joined: Tue Sep 06, 2016 10:45 pm

Crash - but this is a funny one.

Post by Sheist »


1800 scenario, Corporal level. January 1811. Napoleon occupies London after destroying/capturing the last remnants of the British fleet. A small retreated British army occupies Wales, while the newly-formed British militia of 9 units occupies Central Britain. London has been occupied only briefly. I attempt to play the card for the USA to declare war on the British, and the game crashes instantly. It does so on repeated attempts. Funny, since there are no naval units that can be removed, and the army is on the ropes already, so there is no real point in trying to get the card to work at this point, but here is the crash anyway.

Napoleon Version 1.0.1 Build 74
Napoleon crashed at: Sun Mar 19 03:09:44 ICT 2017
OS = Windows 7
Architecture = x86
OS Version = 6.1
Free heap space is 4932792
Total memory is 259350528
Size config = 3
Details of the crash:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.class)
at java.util.ArrayList.remove(ArrayList.class)
at fgb.a(fgb.java:149)
at rfb.a(rfb.java:3271)
at vhb.a(vhb.java:2248)
at r1.a(r1.java:1018)
at e5.a(e5.java:653)
at e5.b(e5.java:624)
at a.x(a.java:987)
at a.p(a.java:756)
at dmb.run(dmb.java:144)
Index: 0, Size: 0
<end of report>
User avatar
mercenarius
Posts: 770
Joined: Tue Jul 06, 2010 1:51 am

RE: Crash - but this is a funny one.

Post by mercenarius »

Yes, I see that the logic for the card isn't checking properly for the forces which should be removed. I am going to issue a maintenance release (as soon as I can) which will correct this and a couple of other errors.

In the meantime, the only work-around is not to use this card if the British don't have the requisite units. I know that's a bit of a hassle and I apologize for this. [:(]

Thanks for reporting this!
James Warshawsky
Forced March Games, LLC
Sheist
Posts: 25
Joined: Tue Sep 06, 2016 10:45 pm

RE: Crash - but this is a funny one.

Post by Sheist »


Thanks for noting this.

Pivoting, is there any way to prevent the card shuffle from displaying cards that can't be used?

i.e. Ottoman is already conquered by France, yet the Ottoman Declares War on Russia is still offered.

Britain is conquered, yet the Storms card is still offered.

More minorly, when any "recruits" cards such as for Italy, Germany and/or Warsaw, when no reinforcements currently exist in the pool; shouldn't it skip trying to offer those cards as they would have to be held for up to a year before being possibly usable anyway? I've had situations where I held 2 or 3 German reinforcement cards, but the pool is empty. What a tease! ;)
Post Reply

Return to “Victory and Glory: Napoleon”