Page 1 of 1

The Grinch

Posted: 29 Nov 2017, 14:30
by Dreamkey
Hello, I would like to play The Grinch in widescreen but there are two issues:

1/ by default the maximum resolution available is 1024x768. I was able to change the resolution in the "config.pc" to 1920x1080, but it is stretched:

1024x768 :
1.jpg
1.jpg (27.98 KiB) Viewed 3786 times
2.jpg
2.jpg (24.28 KiB) Viewed 3784 times

1920x1080 :
3.jpg
3.jpg (47.16 KiB) Viewed 3793 times
4.jpg
4.jpg (40.67 KiB) Viewed 3797 times


I tried to set it to 1440x1080 to keep a 4/3 ratio but the graphics are completely broken, though I'm running XP under VirtualBox so it might be the video driver:
5.jpg
5.jpg (22.71 KiB) Viewed 3805 times



2/ the game requires to run on 16bit color mode. It's more an inconvenience because XP has a compatibility option to run on 256 bits color mode and will switch automatically, but there is no such option for 16bit color mode.

I tried to install nGlide but it doesn't change anything; I ran "strings" on the exe and found this, if it helps:

Code: Select all

\opengl32.dll
\glu32.dll
Default OpenGL Driver
\3dfxvgl.dll
\3dfxvglu.dll
3dfx Standalone OpenGL Driver
\opengl.dll
\glu.dll
SGI Software OpenGL Driver


Here are the content of config.pc (I couldn't upload it) with the 1024x768 configuration; I don't know if there is a FOV option in it, the game seems to save other options like language somewhere else.

Code: Select all

       0     14 00 00 00 02 00 00 00  01 00 00 00 00 00 00 00    ................
      10     00 04 00 03 01 00 00 00  02 00 00 00 00 00 00 00    ................
      20     00 00 00 00 00 00 f0 3f  00 00 00 00 00 00 f0 3f    .......?.......?
      30     64 00 00 00 4b 00 00 00  64 00 00 00 01 00 00 00    d...K...d.......
      40     00 01 02 03 04 05 06 07  08 09 0a 0b 48 01 00 00    ............H...
      50     50 01 00 00 4d 01 00 00  4b 01 00 00 12 00 00 00    P...M...K.......
      60     10 00 00 00 13 00 00 00  11 00 00 00 1e 00 00 00    ................
      70     1f 00 00 00 20 00 00 00  21 00 00 00 0f 00 00 00    .... ...!.......
      80     3b 00 00 00 00 00 00 00  48 00 00 00 50 00 00 00    ;.......H...P...
      90     4d 00 00 00 4b 00 00 00  00 00 00 00 00 00 00 00    M...K...........
      A0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00    ................
      B0     53 01 00 00 4f 01 00 00  00 00 00 00 00 00 00 00    S...O...........
      C0     00 00 00 00 0f 00 00 00  1c 00 00 00 10 01 00 00    ................
      D0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 f0 3f    ...............?
      E0     00 00 00 00 00 00 f2 3f  00 00 00 00 00 00 f0 3f    .......?.......?
      F0     00 00 00 00 00 00 00 00                             ........


Thanks!

Re: The Grinch

Posted: 29 Nov 2017, 22:29
by jackfuste
Change bytes 00 00 40 3F => 00 00 10 3F in TheGrinch.exe to get 16:9 aspect ratio.

Re: The Grinch

Posted: 30 Nov 2017, 09:49
by Dreamkey
Thanks for your answer, unfortunately it's Vert- while I would like Hor+. Also for some reason the camera shows a different direction at the end of a cut-scene, though it's not really important.

How did you know which values to find and replace?


1.jpg
1.jpg (49.09 KiB) Viewed 3773 times
2.jpg
2.jpg (42.97 KiB) Viewed 3772 times

Re: The Grinch

Posted: 30 Nov 2017, 12:07
by jackfuste
Dreamkey wrote:Thanks for your answer, unfortunately it's Vert- while I would like Hor+. Also for some reason the camera shows a different direction at the end of a cut-scene, though it's not really important.

Hor+ possible, change bytes:
68 F0 00 00 00 68 00 02 00 00 => 68 F0 00 00 00 68 AB 02 00 00
but you will see how objects disappear at screen edges. Should be another constant that controls objects clipping, but I didn't find it.

TheGrinch.gif
TheGrinch.gif (78.67 KiB) Viewed 3783 times

Dreamkey wrote:How did you know which values to find and replace?

Old games uses 4:3 aspect ratio, so it's obvious that the game may uses constants:
4/3 = 1.33333 | AB AA AA 3F
3/4 = 0.75 | 00 00 40 3F

Re: The Grinch

Posted: 30 Nov 2017, 23:11
by moimusic
Please, upload a file for 1366x768...

Re: The Grinch

Posted: 01 Dec 2017, 10:32
by Dreamkey
Thanks again, the cut-scenes render in widescreen, the menu and HUD are not stretched, that's great!

I believe the first modification is for the aspect ratio and the second for the FOV, is that right?

The strings matched different offset, I tried all of them, only one seems to be important.

Code: Select all

7E32E: 40 -> 10   // aspect ratio (16:9)
AE964: 40 -> 10   // ?

Code: Select all

2B261: 00 -> AB   // ?
2B6AD: 00 -> AB   // FOV (16:9)
2BB6F: 00 -> AB   // ?


About the clipping, I tried to change the resolution in the exe instead of config.pc. I found "00 04 00 03" @CF00D, but the exe's icon was corrupted and I couldn't start the game.
Can you give me some ideas to look for it? I'm wondering how you were able to find the values for the FOV :)



moimusic wrote:Please, upload a file for 1366x768...
As soon as the clipping issue is fixed I or jackfuste will write a post on the games DB.