Page 1 of 1

Attacking blockading fleets

Posted: Sun Jan 15, 2017 6:00 pm
by ravenflight
Hi all,

I'm playing a game as Russia right now. Turkey declared war on me, but was at war with France at the same time. I moved my fleet from Corfu to attack the Turkish fleet blockading a French fleet (somewhere in the Med, unimprtant I don't think). A dialogur box came up 'do you want to attack the Turkish fleet? yes/no'. I selected yes, and an error dialogue box came up. Nexp phase I'm in the blockade box with tge Turks... apparently hating France along side them :)

Obvious error here.

BTW, the error box indicated some file it was trying to access was missing, so probably a compilation/zipping problem more than a coding issue.

RE: Attacking blockading fleets

Posted: Mon Jan 16, 2017 9:18 pm
by pzgndr
If I can find an obvious error in the code then I will fix it for this version. Else it may have to wait for the next update where I intend to look at other naval combat issues.

I must say that the code has different sections for the combats depending on different player types (human, AI or PBEM) and it's tricky to track down what's supposed to be happening. Here there was AI blockading AI and the human player was intervening, so I suspect where the error is.

RE: Attacking blockading fleets

Posted: Fri Jan 20, 2017 10:37 pm
by pzgndr
I'm happy to report that I found and fixed this bug. Apparently the "Lift Blockade" code for a friendly port worked fine but the error was with a "Blockade Battle" code for an enemy fleet blockading a neutral (to you) port. So, a simple copy&paste of a code section seems to work.

I set up a little test with France and Turkey at war, and Spain and Turkey at war. Turkey is blockading France at Toulon. Spain attacks and defeats the Turkish fleet. Score! Also note in the screenshot the enhanced battle summary showing starting units and factors. The rest of the combat details are showing because I have FOW off.

Image

RE: Attacking blockading fleets

Posted: Sat Jan 21, 2017 12:50 am
by ravenflight
Even better... this was the port/blockade box of the original report!