How to change to a custom video mode in a Telltale game.
Note the original post was deleted by me and updated to add the patcher program and the newest info on how it works.
How would you like to play Sam and Max season 1 in 1920x1080 widescreen? How about other special modes your monitor supports?
Just download the TTres patcher (Ver 1.1a July 12, 2009) from here:
http://rapidshare.com/files/255045416/TTres.zip
You also need to download and install the Visual C++ Runtime Components:
32-bit:
http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en
64-bit:
http://www.microsoft.com/downloads/details.aspx?familyid=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en
It will work on Sam & Max Season 1 & 2; Strong Bad, Bone Directors cut; Wallace & Gromit (full and demo versions); Tales of Monkey Island. It will not work on the original Bone games.
Note: You have to run the game at least once so the prefs.prop file is built. You may also have to select the video mode at least once so a resolution mode is stored in the prefs.prop file.
Vista users may have to disable UAC.
Put the file in the same directory as the prefs.prop file you would like to modify, set the video resolution you would like from 640x480 to 2047x2047 and click patch. The lastest version has untested support up to 4095.
You can back up the original file if you like. If there are any problems with the patched file, the Telltale game usually successfully rebuilds it to default values. I have not had any problems on the multiple files I have tried.
The patch utility does not use any fixed memory locations. It scans the file for the modes and patches them. It will find 1 or 2 locations and patch them to your selected resolution. I am not sure why there are 2 locations. Sometimes the first set forces the mode and sometimes it is the second set. Only 1 seems to force the video mode, but it is best and easiest to change both locations.
If you patch using a mode that your video card and monitor does not support, the game will know it is invalid when it polls DirectX. It will then reset your file back to default settings. So don't waste your time trying to break things.
You can find your prefs.prop file in these directories:
C:Program FilesTelltale GamesSam and Max - Season OneEpisode 101 - Culture Shock
C:Program FilesTelltale GamesSam and Max - Season OneEpisode 102 - Situation Comedy
C:Program FilesTelltale GamesSam and Max - Season OneEpisode 103 - The Mole, The Mob, and the Meatball
C:Program FilesTelltale GamesSam and Max - Season OneEpisode 104 - Abe Lincoln Must Die
C:Program FilesTelltale GamesSam and Max - Season OneEpisode 105 - Reality 2.0
C:Program FilesTelltale GamesSam and Max - Season OneEpisode 106 - Bright Side of the Moon
C:Program FilesTelltale GamesSam and Max - Season TwoEpisode 201 - Ice Station Santa
C:Program FilesTelltale GamesSam and Max - Season TwoEpisode 202 - Moai Better Blues
C:Program FilesTelltale GamesSam and Max - Season TwoEpisode 203 - Night of the Raving Dead
C:Program FilesTelltale GamesSam and Max - Season TwoEpisode 204 - Chariots of the Dogs
C:Program FilesTelltale GamesSam and Max - Season TwoEpisode 205 - What's New, Beelzebub
C:Program FilesTelltale GamesBoneOut From Boneville
C:Program FilesTelltale GamesBoneThe Great Cow Race
My DocumentsTelltale GamesEpisode 1 - Homestar Ruiner
My DocumentsTelltale GamesEpisode 2 - Strong Badia the Free
My DocumentsTelltale GamesEpisode 3 - Baddest of the Bands
My DocumentsTelltale GamesEpisode 4 - Dangeresque 3
My DocumentsTelltale GamesEpisode 5 - 8-Bit Is Enough
DISCLAIMER: I am not responsible if you completely bugger up your computer. The game does seem to reset to default settings if you hack the file wrong. If you delete the hacked prefs.prop file, it will be rebuilt. I have never had any problems with hacking the mode.
Note, for S&M season 1, if you hack in a widescreen mode, the fades will still be in 4:3 and will not fully fade the screen. Other then that it seems to work great. So far it is most annoying in episode 6. The TV frame mask at the start of the game is not large enough to mask the edges, so you loose the effect that it is supposed to be a view through the camera.
This also happens in any game that you hack an aspect ratio different the the game expects. Except for Wallace & Gromit. That game automatically masks the screen to keep it's aspect ratio.
Background Info
The reason why I hacked the video modes is because I have an LCD rear projection TV. It has over-scan, so the whole game screen does not fit on my TV without using custom video modes. Until Wallace & Gromit came out, I had to play the games missing some of the screen. I could not even see the gear icon in Sam & Max.
Thanks to
The_cranky_hermit for pointing out that the formula is not always /8 and that there is a second byte involved.
The video resolutions are found by searching for this hex string. The values in [] are in hex. [**] means any hex value and contain the video mode info.
[00] [**] [**] [44] [00] [**] [**] [44]
Sometimes the video info is inverted and is found using this string.
[ff] [**] [**] [bb] [ff] [**] [**] [bb]
From here on, I will explain how the regular non-inverted data is stored in the first string sequence.
[00] [hByte0] [hByte1] [44] [00] [vByte0] [vByte1] [44]
The bytes use different formulas depending on the resolution.
If Res < 1024
Byte1 = (Res - 512) / 4
Byte0 = (Res - (Byte1 * 4 + 512)) * 64
If Res >= 1024
Byte1 = Res / 8
Byte0 = (Res - Byte1 * 8) * 32
Here are some sample bytes:
Code:
res
800x600 [00] [00] [48] [44] [00] [00] [16] [44]
1024x768 [00] [00] [80] [44] [00] [00] [40] [44]
1280x720 [00] [00] [a0] [44] [00] [00] [34] [44]
1920x1080 [00] [00] [f0] [44] [00] [00] [87] [44]
1176x656 [00] [00] [93] [44] [00] [00] [24] [44]
1176x664 [00] [00] [93] [44] [00] [00] [26] [44]
1680x1047 [00] [00] [d2] [44] [00] [e0] [82] [44]
1680x1048 [00] [00] [d2] [44] [00] [00] [83] [44]
1680x1049 [00] [00] [d2] [44] [00] [20] [83] [44]
1680x1050 [00] [00] [d2] [44] [00] [40] [83] [44]
1680x1051 [00] [00] [d2] [44] [00] [60] [83] [44]
Some games use complimented vales as found by the other search string. I won't bore you with that. I'll just skip to the above table redone in compliment form.
Code:
res
800x600 [ff] [ff] [b7] [bb] [ff] [ff] [e9] [bb]
1024x768 [ff] [ff] [7f] [bb] [ff] [ff] [bf] [bb]
1280x720 [ff] [ff] [5f] [bb] [ff] [ff] [cb] [bb]
1920x1080 [ff] [ff] [0f] [bb] [ff] [ff] [78] [bb]
1176x656 [ff] [ff] [6c] [bb] [ff] [ff] [db] [bb]
1176x664 [ff] [ff] [6c] [bb] [ff] [ff] [d9] [bb]
1680x1047 [ff] [ff] [2d] [bb] [ff] [1f] [7d] [bb]
1680x1048 [ff] [ff] [2d] [bb] [ff] [ff] [7c] [bb]
1680x1049 [ff] [ff] [2d] [bb] [ff] [df] [7c] [bb]
1680x1050 [ff] [ff] [2d] [bb] [ff] [bf] [7c] [bb]
1680x1051 [ff] [ff] [2d] [bb] [ff] [9f] [7c] [bb]
These may not always be the case but it seems that:
Sam & Max Season 1 & 2; Strong Bad Episode 1; and Bone Director's Cut series all use the compliment value.
Strong Bad Episodes 2-5 and Wallace & Gromit all use regular values.
Conclusion.... I can now play the games without the edges missing on my rear projection widescreen TV. Yeah!