Widescreen solution for Search and Rescue 4
Posted: 06 Dec 2009, 03:20
1. Open config.dat in a hex editor like XVI32.
2. The horizontal resolution is at the 4th byte from the start of the file. It is a 4-byte value or a signed/unsigned 32-bit integer.
3. The vertical resolution is at the 8th byte from the start of the file. It is a 4 byte value or a signed/unsigned int 32-bit integer.
This was verified by the following process:
1. Opened up config.dat in Notepad++ to find out if the file was being altered by the program.
2. Went in game and selected 1024x768 resolution
3. Exited the game and notepad++ stated that config.dat had been altered.
4. Opened config.dat in XVI32 and found the bytes that represent 1024x768.
5. Saved the file as config.old.
6. Went back into the game and set the resolution to 1600x1200.
7. Again the file was altered as verified by notepad++.
8. Opened another instance of XVI32 and put the two windows side by side and went through two files byte by byte.
9. Found the values 1600 and 1200 at file_start + 4 bytes and file_start + 8 bytes.
10. Told XVI32 to encode 1600 at starting at byte position 4.
11. Told XVI32 to encode 900 starting at byte position 8.
12. Saved the file.
13. Ran the game and when the mission started the screen resolution was 1600x900.
The problem with the game is that in the list of resolutions only 4:3 resolutions are listed. This doesn't mean the underlying engine only supports 4:3. I've flown around for a little bit now and haven't seen too many issues. Shadows at times did flicker underneath the helicopter but unsure if this is a game glitch or related to the widescreen resolution. Have not seen incorrect or early frustum culling where objects disappear just before the edges of the screen as of yet.
Not sure if anyone plays this game anymore or if I'm the only moron here who plays old games. Note that this solution may also work for Vietnam Med-Evac by the same development team.
Note that the video resolution is not set and Direct3D is not created until the mission actually starts. Verified by using a debugger and setting breakpoints on Direct3DCreate8(). This widescreen fix only applies to the game missions or the 3D portion of the game. Menus and such are not affected and work just like they came out of the box.
2. The horizontal resolution is at the 4th byte from the start of the file. It is a 4-byte value or a signed/unsigned 32-bit integer.
3. The vertical resolution is at the 8th byte from the start of the file. It is a 4 byte value or a signed/unsigned int 32-bit integer.
This was verified by the following process:
1. Opened up config.dat in Notepad++ to find out if the file was being altered by the program.
2. Went in game and selected 1024x768 resolution
3. Exited the game and notepad++ stated that config.dat had been altered.
4. Opened config.dat in XVI32 and found the bytes that represent 1024x768.
5. Saved the file as config.old.
6. Went back into the game and set the resolution to 1600x1200.
7. Again the file was altered as verified by notepad++.
8. Opened another instance of XVI32 and put the two windows side by side and went through two files byte by byte.
9. Found the values 1600 and 1200 at file_start + 4 bytes and file_start + 8 bytes.
10. Told XVI32 to encode 1600 at starting at byte position 4.
11. Told XVI32 to encode 900 starting at byte position 8.
12. Saved the file.
13. Ran the game and when the mission started the screen resolution was 1600x900.
The problem with the game is that in the list of resolutions only 4:3 resolutions are listed. This doesn't mean the underlying engine only supports 4:3. I've flown around for a little bit now and haven't seen too many issues. Shadows at times did flicker underneath the helicopter but unsure if this is a game glitch or related to the widescreen resolution. Have not seen incorrect or early frustum culling where objects disappear just before the edges of the screen as of yet.
Not sure if anyone plays this game anymore or if I'm the only moron here who plays old games. Note that this solution may also work for Vietnam Med-Evac by the same development team.
Note that the video resolution is not set and Direct3D is not created until the mission actually starts. Verified by using a debugger and setting breakpoints on Direct3DCreate8(). This widescreen fix only applies to the game missions or the 3D portion of the game. Menus and such are not affected and work just like they came out of the box.
