Page 1 of 1

Statistics Window Bug

Posted: Sun Feb 22, 2009 2:51 am
by Anthropoid
I was trying to reread which Warplan I selected as Austria (Eugen IIRC) so I could review when it is that I start to get NW
penalty for AH armies reinforcing Germany against the Russian Berlin Plan assault.

When I select Austria, go to Statistics Window, History Log and start scrolling through the windows 1, 2, 3, etc.,
I get a CTD with a C++ Windows graphics error at about page 23 or 24 in the History Log.

It might be that I have all extranneous stuff in my Taskmanager turned off, but might be a bug.
If a bug, you should be able to replicate with the attached .sav.

The other problem that I'm having is that I'm getting corps clumping when I merge and unmerge. I'll try to remove a single corps
from an army and create a new stack and instead TWO of the corps in the army create a new stack. TheN I try to put the one in the
new stack that I meant to leave in it and BOTH of them go back in the original Army! grrrr!

Anyone else having this type of issue?

This is even with 2d sqauare icons.

Posted: Sun Feb 22, 2009 8:59 am
by calvinus
For the crash: are you playing in French? Yesterday a Frenh guy reported a crash in Statistics window, due to malformed parametrical texts. I fixed it. Anyway I'm going to test your save. ;)

Posted: Sun Feb 22, 2009 9:33 am
by calvinus
Tried you save, Statistics window all pages (Austria) without crashes.

Look here: http://www.ageod-forum.com/showpost.php?p=132331&postcount=3

The French text for Tanks was malformed and made the game crash.

Posted: Sun Feb 22, 2009 1:43 pm
by Anthropoid
ADDIT: installed the new French.txr, and restarted the game without turning off anything in Taskmanager (noticeably longer initialization and map scrolling).

Went to the Statistics Window as Austria, and still getting the same CTD at window #24. Here is a Screen Cap.

Image

Wish I could be more help. It is pretty obviously something about the app on my rig, so maybe not generalizable to a lot of different users.

Posted: Sun Feb 22, 2009 4:47 pm
by calvinus
Och... "DrawPoints" looks something related to the external lib I use for the charts drawing... :(

Posted: Mon Feb 23, 2009 9:04 am
by calvinus
Mmhh... which screen resolution are you playing with?

Posted: Mon Feb 23, 2009 2:17 pm
by Anthropoid
In my configurator it is set to "Use Monitor Resolution."

In my Display Control Panel it is set to 1280 x 800

Posted: Mon Feb 23, 2009 2:22 pm
by calvinus
I believe it's a memory corruption problem linked to DirectX.
The "DrawPoints" is an array of coordinates x/y/z I pass to DirectX for drawing a line (the charts printed on the Stat page). So it's extremely weird you get a crash there... :bonk:

I tried in 1280x1024, 1024x768 and 800x600 without no crash. Tonight I will force the resolution of my monitor to 1280x800 (you have a 16:9 monitor, right? Mine is 4:3) and see if it happens also on my PC... :wacko:

Posted: Mon Feb 23, 2009 2:36 pm
by calvinus
Mmm... to help me: can you try the Stat page in 1024x768? If you have no crash, it means the CTD is caused by the screen resolution. Indeed I noticed a strange rendering of charts in 1280x1024: the zero y-offset looks wrong... :bonk:
So probably a 1280x800 resolution makes the x/y coordinates point to a fault address of VRAM. ;)

Posted: Mon Feb 23, 2009 5:35 pm
by calvinus
Bug reproduced! :thumbsup:
I forced the 1280x800 resolution on my 4:3 monitor and here the crash! So it's related to the screen resolution.... I hate 16:9 monitors!!!! :mdr:

Posted: Mon Feb 23, 2009 5:59 pm
by calvinus
And the bug is fixed! :king:
I also managed to correct the wrong display offsets for charts drawing when the screen resolution is greater than 1024x768.

Next patch. :love:

Posted: Tue Feb 24, 2009 1:53 pm
by Anthropoid
Windows is such a friendly platform for the game designer to work in! :D

Good job finding the source of that. You may have a career in detective work waiting for you :)