RESOLVED !! GS 1.0 + hotfix : freeze in the middle game.

Tech support for Commander Europe at War. Requires forum registration.

Moderators: firepowerjohan, rkr1958, Happycat, Slitherine Core

Post Reply
GrosOurs
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Jul 17, 2009 10:53 am
Location: France

RESOLVED !! GS 1.0 + hotfix : freeze in the middle game.

Post by GrosOurs »

Hello,

I'm playing my first 1939 campaign as Allied with MHCEAW, the GS mod v1.0 + and "20091211" hotfix.
I have 'modded' the general.txt file, and the 1939.scn. (increased manpower for all nations) I deleted the 1939.scn in the 'Mes documents\CEAW GS\data\scenario' and started a new game. The 'My documents...\1939.scn was re-created, and I got a warning about the General.txt checksum change. OK so far.

Game run fine, but at the beginning of the 1941.11.09 turn, Axis' turn happens normally, but just after (last Axis combat) the game freezes.
The Windows Task Manager shows a 100% CPU usage, and the Java.exe keep growing in the Processes , about 20-32k every two seconds. It seems something like an endless loop.
I waited several times long minutes, and nothing happens. I tried the Low-RAM setting, turning off my Anti-Virus, rebooting and restarting, same thing. I never had any problem with MHCEAW vanilla or the BJR mod. (No Java problem, never had any single crash)

Did I make a mistake in my 1939.scn ? I used the same values for the BJR mod. I hope my changes are valid, and not the cause of the problem. :oops:
I'd like to try the newer hotfix, but I can't access Rapidshare. (too many users)

If a kind soul wants to take a look, just load the autosave and hit 'next turn', and the freeze happens.
In the .7z I put the autosave.data (from Mes Documents\...\Save), the General.txt (from GS MOD\data) and the 1939.scn (from GS MOD\data\scenario)

The files are here :
http://www.box.net/shared/bqlggy56e6

My system : French XP Pro SP2, 2Gb RAM, Nvidia 6800GT 256 RAM, 4Gb swapfile, drivers and Direct X 9c several months old.

Thanks in advance !
Last edited by GrosOurs on Thu Dec 31, 2009 12:28 am, edited 1 time in total.
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post by Peter Stauffenberg »

Most likely the game hangs due to some AI code. We haven't updated the AI code (except bug fixing) and not tested AI playing much either. So it may be that one of our changes made the AI code behave differently. Usually the reason is that an array or a variable has a state the AI code can't determine what to do with. Or a variable the AI uses gets an out of bounds error or something. We had a few of them during betatesting. That's one typical reason the game hangs.

The only way to figure out the reason is to start the game so the console is visible and post all the error messages you get. Then our Java guru, Timothy, can have a look at exactly where the code hangs. Ronnie will probably help you with how to setup the game so you can get the console text.
GrosOurs
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Jul 17, 2009 10:53 am
Location: France

Post by GrosOurs »

So, how can I get the console ?
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post by Peter Stauffenberg »

You can't change the 1939.scn file unless you have updated editor files. We made some changes to the editor to support more transport loops, airfields, desert hills etc. Maybe the problem is because you tried to make a new scn file using the vanilla game editor?

We haven't distributed the updated editor class files.
GrosOurs
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Jul 17, 2009 10:53 am
Location: France

Post by GrosOurs »

I didn't use the game editor, I used Notepad ++ to edit the 1939.scn.
rkr1958
General - Elite King Tiger
General - Elite King Tiger
Posts: 4264
Joined: Wed Dec 12, 2007 2:20 am

Post by rkr1958 »

GrosOurs wrote:So, how can I get the console ?
See viewtopic.php?p=120639#120639 for instructions on how to run with a DOS console.
GrosOurs
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Jul 17, 2009 10:53 am
Location: France

Post by GrosOurs »

Thanks.
Here is the result :

Code: Select all

F:\Slitherine\Military History Commander - Europe at War GOLD\Grand Strategy Mod
>jre\bin\java.exe -Xss20m -Xms400m -Xmx800m -classpath . CEAW 14100
Display Setting Count = 36

Checking C:\Documents and Settings\tpiolat\Mes documents//CEAW Grand Strategy/da
ta/scenario/1939.data
  ...found. loadable?
  ...checks out. skipping.
Checking C:\Documents and Settings\tpiolat\Mes documents//CEAW Grand Strategy/da
ta/scenario/1940.data
  ...found. loadable?
  ...checks out. skipping.
Checking C:\Documents and Settings\tpiolat\Mes documents//CEAW Grand Strategy/da
ta/scenario/1941.data
  ...found. loadable?
  ...checks out. skipping.
Checking C:\Documents and Settings\tpiolat\Mes documents//CEAW Grand Strategy/da
ta/scenario/1942.data
  ...found. loadable?
  ...checks out. skipping.
Checking C:\Documents and Settings\tpiolat\Mes documents//CEAW Grand Strategy/da
ta/scenario/1943.data
  ...found. loadable?
  ...checks out. skipping.
Checking C:\Documents and Settings\tpiolat\Mes documents//CEAW Grand Strategy/da
ta/scenario/1944.data
  ...found. loadable?
  ...checks out. skipping.
image map25_nogrid<>F:\Slitherine\Military History Commander - Europe at War GOL
D\Grand Strategy Mod/image/background/
trying image data F:\Slitherine\Military History Commander - Europe at War GOLD\
Grand Strategy Mod/image/background/map25_nogrid.dat
able to load image
Tile size: (256, 256)
Tile count: (9, 5)
image map50_nogrid<>F:\Slitherine\Military History Commander - Europe at War GOL
D\Grand Strategy Mod/image/background/
trying image data F:\Slitherine\Military History Commander - Europe at War GOLD\
Grand Strategy Mod/image/background/map50_nogrid.dat
able to load image
Tile size: (256, 256)
Tile count: (18, 10)
image map100_nogrid<>F:\Slitherine\Military History Commander - Europe at War GO
LD\Grand Strategy Mod/image/background/
trying image data F:\Slitherine\Military History Commander - Europe at War GOLD\
Grand Strategy Mod/image/background/map100_nogrid.dat
able to load image
Tile size: (256, 256)
Tile count: (36, 19)
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, stereo,
 4 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, stereo,
 4 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
AudioPlayer.playAudioStream audio format: PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2
 bytes/frame, little-endian
It just hangs, the music playing.
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post by Peter Stauffenberg »

Can you try to disable music and sound effects in the options menu or settings.txt?
GrosOurs
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Jul 17, 2009 10:53 am
Location: France

Post by GrosOurs »

I tried with the two audio options unchecked, and then hitting next turn. Same result, it still hangs.
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post by Peter Stauffenberg »

Have you tried to recreate the same with the standard GS files or the vanilla game?

Have you tried to remove the data files to force a recompilation? Can you describe game game situation just prior to the game hanging?
What changes did you do to general.txt and 1939.scn?
GrosOurs
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Jul 17, 2009 10:53 am
Location: France

Post by GrosOurs »

RESOLVED !!

The problem was a impossible amphibious landing !

I'll explain the situation :
Since several turns, there was a German Corps in a transport east of Copenhagen, in hex 85,17. It couldn't land, because there was an Italian Mech (!) south of Copenhagen. (yes, in 20 October 1941 the city hasn't fallen yet. Silly AI) The German DD was in Kiel.
So I attacked the transport with the Soviet Sub and BB, reducing it to 3 steps.
And the AI didn't 'like' it at all !! The two Soviets ships created a ZOC that messed with the planned landing.
It seems you can't land if your transport is caught in an enemy ZOC. Seems, because I never had the opportunity to test if it's possible.

I had a previous save at the end of September. On the October 20 turn, I didn't attack the transport, I used the Soviet BB to attack Helsinki. During its turn, the AI moved the Italian Mech west of Copenhagen, attacked the town, the 'now free' transport landed the Corps south of the city who attacked too, and the German DD stuck in Kiel moved and attacked Tallin. (right next to my BB :twisted:)

So the problem was probably : the AI planned to move the Italian Mech one hex west, land the Corps, and attack a Soviet city with the DD, but it was not possible, resulting in a endless loop. I don't know if the freeze happens because the transport can't land, or the planned DD move is impossible.

I'm glad to see my changes are not to blame, but it's not a GS bug. It probably happens in vanilla too.

Thank you Stauffenberg and rkr1958 !!
Thanks for your help, and thanks especially for this wonderful mod !
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post by Peter Stauffenberg »

What kind of weather did you have in central Europe? If it was mud or winter then you can't unload from a transport except from a friendly port.

I have a feeling the AI doesn't understand this when making the strategy. It wants to make the invasion, but it's not allowed according to the rules.

We haven't looked at the AI for GS since it's not so well suited for AI play. The AI is no real challenge anyway. So there might be some glitches with the AI trying to do something we changed the rules for i GS.
GrosOurs
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 7
Joined: Fri Jul 17, 2009 10:53 am
Location: France

Post by GrosOurs »

Fair weather and calm sea everywhere in 20 October and 9 November.

I know the AI is no challenge, but it is a great tool to learn GS rules.
3 limit transports for Great-Britain in 1941 for example, you must plan carefully your reinforcements !
firepowerjohan
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1878
Joined: Mon May 22, 2006 7:58 pm
Contact:

Post by firepowerjohan »

Units can land into ZOC in standard CEAW but was that rule changed in the GS?
Johan Persson - Firepower Entertainment
Lead Developer of CEAW, CNAW and World Empires Live (http://www.worldempireslive.com)
Post Reply

Return to “Commander - Europe at War : Tech Support”