Possible bugfix to AI game hanging on convoy movement

PSP/DS/PC/MAC : WWII turn based grand strategy game

Moderators: firepowerjohan, rkr1958, Happycat, Slitherine Core

Post Reply
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Possible bugfix to AI game hanging on convoy movement

Post by Peter Stauffenberg »

I Just added some code in game.class that will hopefully fix the issue where the AI convoys hang if they are located in the same hex as Axis subs when starting to move a turn. Unfortunately I'm not allowed to upload the file here since I get the message that the attachment quota has been used up on this site.

So please send me a PM with your email address if you want this file sent to you. I will send it as a zip'ed file.

The update will NOT affect save games so you can add it without disruping any ongoing games.

It would be nice if you report your findings with the updated file here.
Falcon1
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 46
Joined: Tue Aug 06, 2013 8:04 pm
Location: US

Re: Possible bugfix to AI game hanging on convoy movement

Post by Falcon1 »

Will this address the issue of the game hanging up during the German AI turn (but not the allied AI turn)? My personal experience is that those hangs do not occur during convoy movement, and if it was convoy related then it would also happen in games against an allied AI.

Sorry if this is referring to some different fix than what you mentioned in the tech support forum.
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Re: Possible bugfix to AI game hanging on convoy movement

Post by Peter Stauffenberg »

I fixed the one where an autosave was attached. I checked the code line where it hung and fixed that. Then I tried the same autosave and it didn't hang. Without an autosave I can't find the bug that is being referred to.

The bug I fixed was related to movement of convoys. That happens at the end of the Axis turn. Convoys are NOT moving during the Allied turn. So you will see this bug during the Axis turn.

For some reason this doesn't seem to happen in PBEM games. The source of the problem is that a sub has ended up in the same hex as the convoy and that violates the one unit per hex rule. There is no logic to why that is happening because in PBEM games that doesn't happen even if you try to move a sub to the location of a convoy.
Falcon1
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 46
Joined: Tue Aug 06, 2013 8:04 pm
Location: US

Re: Possible bugfix to AI game hanging on convoy movement

Post by Falcon1 »

OK thanks, I'll try another game soon with the fix installed. If I get hung up again then I'll send another save file.
Numdydar
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 43
Joined: Sun Sep 23, 2012 2:21 pm

Re: Possible bugfix to AI game hanging on convoy movement

Post by Numdydar »

Thanks so much for this. The fix worked great and I could continue my game without restarting :D
Cataphract88
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 521
Joined: Wed Apr 22, 2009 8:56 pm
Location: London

Re: Possible bugfix to AI game hanging on convoy movement

Post by Cataphract88 »

Thank you very much for sending me the bugfix file; everything seems to be working okay so far. :)
Richard
ArnhemKnight
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Mon Jul 27, 2015 11:51 am

Re: Possible bugfix to AI game hanging on convoy movement

Post by ArnhemKnight »

Could you send me the file please stauffenberg? This must be what im experiencing right now
Metalogic
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 39
Joined: Wed Aug 05, 2015 12:34 pm
Location: United Kingdom

Re: Possible bugfix to AI game hanging on convoy movement

Post by Metalogic »

ArnhemKnight wrote:Could you send me the file please stauffenberg? This must be what im experiencing right now
I think it's already in the GS 3.1 release:

"* Bug fix for the game hanging during convoy movement phase for allied player against an AI."

viewtopic.php?f=18&t=52328#p489695
Post Reply

Return to “MILITARY HISTORY™ Commander - Europe at War : General Discussion”