Page 1 of 1

[Fixed for V0.47] Custom dungeons with big entrance bitmaps

Posted: Tue Dec 18, 2007 5:14 am
by Gambit37
This is the first time I've run RTC since I switched to an LCD screen. It crashes if you set the screen size in the config.txt to be anything OTHER than the target screen resolution.

For example, my screen is 1280x1024 -- game plays fine if my config contains 1280x1204x24 though the game is actually only a tiny 640x400 window in the middle. (annoying!)

If I set config to 640x480x24, the game runs (albeit with distorted pixels as expected), but after the Dungeon Master logo appears, I get this error:

RTC (V0.46) Diagnostic file - Tue Dec 18 04:11:38 2007

Error:
an access violation exception.

Stack Dump:
RTCMediaGraphics.ScaleBitmapAntiAlias(pointer 0x00B92858, pointer 0x00B92858, pointer 0x032571A8, int 0, int 0, double 0.2, double 0.166667, int 0, int 0, int 128, int 80);
RTCMediaGraphics.ScaleBitmap(pointer 0x00B92858, pointer 0x032571A8, int 0, int 0, int 640, int 480, int 0, int 0, int 128, int 80, int 0, int 0, int 0, bool FALSE, bool TRUE);
RTC.InitSecondary();
RTC.ProgStateIntroContinue2();
RTC.DoFrame(int 7);
RTC.WinMain();

How can we play RTC fullscreen on a fixed resolution LCD?

Posted: Tue Dec 18, 2007 5:37 am
by Gambit37
Update: Crash happens with a 640x480 bitmap on the intro screen. Works OK with a 640x400 bitmap.

Posted: Sun Dec 30, 2007 5:04 am
by danielcg
What display adapter you have? Possibly, you have disabled LCD Scaling in display adapter's settings. You MUST enable LCD Scaling option in display adapter setting.

I have no problems displaying 640x480 resolution in my 1280x1024 LCD monitor because I enabled LCD scaling in my Nvidia 6800 GT graphics adapter's setting.

If you have ATI Radeon HD xxxx video adapter, you need to update Catayst driver to 7.1 or later.

If you have Nvidia GeForce 6xxx to 8xxxx video adapter, you need to update to latest forceware driver - 16x.xx (I think).

Posted: Sun Dec 30, 2007 3:22 pm
by Gambit37
It's much older than that, a GeForce 4600. I don't have any LCD scaling options in the control panel.

Posted: Mon Dec 31, 2007 7:19 am
by danielcg
You have legacy Nvidia graphics card! You should update video driver to Forceware 93.71. That is last driver Nvidia released for this video card.

If you use DVI for LCD (in Digital Signal), try to use VGA analog port instead.

Only Nvidia GeForce 5xxx or above have LCD scaling options for digital DVI mode.

I am going to upgrade my whole system and I will switch to ATI HD 3870. ATI Catalyst 7.1 for ATI HD 3870 have LCD scaling options just like Nvidia. Only one feature ATI HD 3870 will not have is sharpness control (for graphics card only and I never use sharpness control in existing Nvidia 6800 GT graphics card) but however, my LCD monitor has built-in variable sharpness control I can use and has 6 colors axis management. I will also have Athlon 64 X2 6400+ Black Edition processor and 2GB ECC DDR2-800 RAM!!!

Posted: Mon Dec 31, 2007 11:34 am
by Gambit37
Not worth the hassle -- I'm getting a new PC soon anyway. Thanks for the info, though. :-)

I still think there's a problem with RTC handling these sized bitmaps though. GG?

Posted: Mon Dec 31, 2007 2:35 pm
by linflas
i remember having a discussion with GG about flooritem (trees) bitmaps with height > 400 px.
he corrected some stuff in a previous version but maybe not all related to this problem.

Posted: Wed Jan 02, 2008 11:09 am
by George Gilbert
This is absolutely nothing to do with LCD screens, graphics drivers or anything else vaguely hardware related. Instead it's a simple bug that occurs when trying to create a new dungeon with an entrance bitmap that is bigger than 640x400.

I've changed the title of the thread accordingly (oh, and fixed the problem!)

Posted: Wed Jan 02, 2008 12:35 pm
by Gambit37
Cool, thanks, though weird: I'm 99% certain I had used 640x480 background images in tests on earlier versions and had no problems.