Page 1 of 1

The new stand-alone game run crash phenomenon in 3.1 and 3.2

Posted: Wed Sep 16, 2015 2:32 pm
by mamahuhu
One of my friends play GS 3.1. He uses the Allies against AI.
When the end of the run to the turn 43,Axis is running at the time, game run crash .
Before the release of prevention convoy run crash patch has been installed
I run this save data in GS 3.2, the same crash.
I suspect this is a stand-alone operation crash problem unresolved
If necessary, I can provide a save file

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Wed Sep 16, 2015 3:37 pm
by Peter Stauffenberg
Please send the save game file to me.

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Wed Sep 16, 2015 4:50 pm
by mamahuhu
Stauffenberg wrote:Please send the save game file to me.
OK Thank you

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Thu Sep 17, 2015 10:29 am
by Peter Stauffenberg
File received and I managed to analyze what was going on.

The situation that occured is that a German AI submarine is completely surrounded by Allied naval units and at only 3 steps. This means the AI code triggers a move back to port for repairs. The only port available in the Bergen port and it's already occupied by a different German sub. So the AI tries to move the unit to an occupied hex. That won't work.

There was some AI code about sending the unit to a different hex close to the destination hex if occupied, but it requires regular movement and in GS v3.0 the subs "teleport" to the destination hex since they sail underwater.

I altered the AI code so subs not being able to get to port will instead repair at sea (allowed in GS v3.0). Adding that code seemed to make the AI game not hang.

There could be other issues causing hang so further testing is needed.

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Thu Sep 17, 2015 11:57 am
by mamahuhu
Thanks for the hard work of Stauffenberg!
The new files have been installed.
Up to now everything is normal game !

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Mon Oct 19, 2015 9:33 pm
by georgelu
Hi Stauffenberg, I have the same issue. Could you send me the code or tell me how to solve it ? I am using the MAC version GS 3.0 downloaded from http://www.slitherine.com/ceaw_gs3

Stauffenberg wrote:File received and I managed to analyze what was going on.

The situation that occured is that a German AI submarine is completely surrounded by Allied naval units and at only 3 steps. This means the AI code triggers a move back to port for repairs. The only port available in the Bergen port and it's already occupied by a different German sub. So the AI tries to move the unit to an occupied hex. That won't work.

There was some AI code about sending the unit to a different hex close to the destination hex if occupied, but it requires regular movement and in GS v3.0 the subs "teleport" to the destination hex since they sail underwater.

I altered the AI code so subs not being able to get to port will instead repair at sea (allowed in GS v3.0). Adding that code seemed to make the AI game not hang.

There could be other issues causing hang so further testing is needed.

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Wed Oct 21, 2015 4:01 pm
by Peter Stauffenberg
I use the PC version of GS. The MAC version is maintained by Pk867. He will have to provide you the files.

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Wed Oct 21, 2015 6:48 pm
by georgelu
If it is not an exe file, it probably would work just the same. Would you mind sending me for a trial ?
Stauffenberg wrote:I use the PC version of GS. The MAC version is maintained by Pk867. He will have to provide you the files.

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Fri Oct 23, 2015 2:20 am
by Peter Stauffenberg
The MAC files have all files compiled into one big file. I don't have access to that file. On the PC you have separate class files. Those I compile and maintain.

Re: The new stand-alone game run crash phenomenon in 3.1 and

Posted: Fri Oct 23, 2015 6:16 pm
by pk867
You have to update to v3.1 first then submit a request to Slitherine.