| View previous topic :: View next topic |
|
| Author |
Message |
|
ss666 Lieutenant

Joined: 14 Oct 2004
|
|
| Back to top |
|
 |
|
herbert3000 Soldier
Joined: 20 May 2008
|
Posted: Sun Jan 24, 2010 2:26 pm Post subject: |
|
|
Thank you ss666 and BooTx.
I tried to set the Commandos 3 resolution to 1280*800 - and failed.
At least I managed to set it to 1024*768. Here are the instructions:
Open commandos3.exe with a HexEditor. Search for these strings:
20 03 00 00 B9 58 02 00 00
C2 04 00 B8 20 03
C2 04 00 B8 58 02
00 00 C3 B8 20 03
00 00 C3 B8 58 02
90 90 90 B8 20 03
90 90 90 B8 58 02
00 EB 13 BA 20 03
44 24 04 B9 58 02
And replace all 20 03's with 00 04 and replace 58 02's with 00 03
Save it and play Commandos!
note the graphical glitches (buttons, knapsack) |
|
| Back to top |
|
 |
|
qazx12 Soldier
Joined: 24 Feb 2010
|
Posted: Wed Feb 24, 2010 4:29 pm Post subject: |
|
|
Thanks, works for me
Finally can play Commandos 3 in 1024 hehe
Do you have any ideas about those graphical glitches (buttons, knapsack)? |
|
| Back to top |
|
 |
|
qazx12 Soldier
Joined: 24 Feb 2010
|
Posted: Wed Feb 24, 2010 7:11 pm Post subject: |
|
|
Don't change it:
90 90 90 B8 20 03
90 90 90 B8 58 02
because it fuckes the menu resolution:P
Try to replace 20 03 with 00 05 and 58 02 with 00 03 - you will have 1280x768 resolution that works fine, and also glitches like on your screenshot. |
|
| Back to top |
|
 |
|
E'ven Soldier
Joined: 03 Mar 2009
|
Posted: Fri Feb 26, 2010 1:25 pm Post subject: |
|
|
| Very nice to be able to play C2 at higher resolutions, thanks ss666. |
|
| Back to top |
|
 |
|
herbert3000 Soldier
Joined: 20 May 2008
|
|
| Back to top |
|
 |
|
BooTx Soldier
Joined: 12 Mar 2010
|
Posted: Sat Mar 13, 2010 7:28 am Post subject: |
|
|
First off I'd like to thank herbert for pointing me in the right direction with the INTERFAZ.MSB file (and the guys at Commandos HQ for providing one). I now nearly have a fully functional high res / widescreen hack for Commandos 3.
As you can see I've got the basic interface working correctly, but unfortunately I've run into a few small issues and I've pretty much run out of ideas. So I thought I'd call on you guys to help since you're a lot more knowledgeable than I when it comes to Commandos 3 (I actually don't even own the game--I'm working completely off the demo).
The first issue is the title screen at the beginning of the missions. The words themselves stretch to the center horizontally which is nice, but not vertically (it's still centered for 600 pixels vertically). And more bothersome is the red background which only stretches to the default 800 pixels.
Ideally I'd like for the title to center itself both horizontally and vertically, and I'd like for the red background to either do the same, or be removed completely, since it's a bit of an eyesore as-is.
And next we have these two issues. The objectives box should be aligned all the way to the right side of the screen, but it remains in its default location.
And then there's the tips box, which you can tell is a bit of a mess. On the one hand, the box itself seems to have centered itself perfectly with the new resolution. I can't say the same for "HELP" and "CLOSE" (and its button). Needless to say, those need to be moved to the correct location inside the tips box.
I have spent hours in the INTERFAZ file and I just can't find anything that corresponds to these issues. Perhaps another file needs to be edited. Perhaps the executable needs to be edited further.
Also, I have no means of playing the game in multiplayer since the demo is single player only, so eventually somebody else will have to test it out and report back what, if anything, needs to be fixed.
Now, on with the fix.
I should note that this will not work with the Steam version because it's encrypted with copy protection. You'll need the retail version. You may be able to use the retail executable with Steam, however.
You will need a hex editor such as Be.HexEditor. Open your Commandos 3 executable with it (feel free to back it up first) and search for the following strings (you don't have to search for the entire thing, just the first few bytes to make sure you're at the right location).
Address (line) 00164bc0
20 03 00 00 c3 b8 00 04 00 00 c3 b8 00 05 00 00 c3 c4 4b 56 00 ca 4b 56 00 d0 4b 56 00 d6 4b 56 00 90 90 90 90 8b 49 48 b8 e0 01 00 00 83 f9 03 77 1e ff 24 8d lc 4c 56 00 b8 e0 01 00 00 c3 b8 58 02
Address (line) 00164c60
20 03 00 00 eb 0c ba 00 04 00 00 eb 05 ba 00 05 00 00 83 f8 03 b9 e0 01 00 00 77 3f ff 24 85 e4 4c 56 00 8b 44 24 04 b9 e0 01 00 00 89 10 89 48 04 c2 04 00 8b 44 24 04 b9 58 02
20 03 and 58 02 represent the resolution 800x600. Change those numbers to the following:
1024x600 - Replace 20 03 with 00 04 and replace 58 02 with 58 02
1280x720 - Replace 20 03 with 00 05 and replace 58 02 with D0 02
1280x800 - Replace 20 03 with 00 05 and replace 58 02 with 20 03
1366x768 - Replace 20 03 with 56 05 and replace 58 02 with 00 03
1440x900 - Replace 20 03 with A0 05 and replace 58 02 with 84 03
1680x1050 - Replace 20 03 with 90 06 and replace 58 02 with 1A 04
1920x1080 - Replace 20 03 with 80 07 and replace 58 02 with 38 04
1920x1200 - Replace 20 03 with 80 07 and replace 58 02 with B0 04
At the moment I've only tested 1280x720 and 1440x900 and apart from a somewhat minor graphical glitch on the exterior of the moving train level (though it may not be so minor at really high resolutions--you'll see what I'm talking about), they seem to work fine. As you've noted, other 5:4 and 4:3 resolutions work as well. I have no idea how well this fix works on other levels in the full game.
After you're done, save the file. Now we have to fix the interface, which will require an extracted and decrypted INTERFAZ.MSB file.
I've created and zipped up files for 1280x720, 1280x800, 1366x768, 1440x900, 1680x1050, 1920x1080, and 1920x1200. Download, extract the one you want, and rename it INTERFAZ.MSB. Then place it in the Data\INTERFAZ\ directory.
Alternatively, you can make your own for whatever resolution you want by following these instructions:
| Code: | .MOCH0
[
.COORDS
(
257.0 -56.0
)
]
.MOCH1
[
.COORDS
(
506.0 -56.0
)
]
|
The default for both of the y coordinates are 544. Change it to -56.0 and it should align properly with every resolution.
| Code: | .BAJO0
[
.COORDS
(
334.0 -44.0
)
]
.BAJO1
[
.COORDS
(
372.0 -58.0
)
]
.BAJO2
[
.COORDS
(
410.0 -44.0
)
]
|
Change both the x and y coordinates to the above.
| Code: | .ELEM ARMAS
.GRUPO GRUPO_MOCHILA
.LAYOUT MOCH0MULTI
.COORDSINICIALES
[
.X 191.0
.Y 647.0
]
|
The .Y resolution should be the vertical resolution you chose minus 73. So for instance, I chose 1280x720, so 720 minus 73 is 647.
| Code: | .ELEM OBJETOS
.GRUPO GRUPO_MOCHILA
.LAYOUT MOCH1MULTI
.COORDSINICIALES
[
.X 440.0
.Y 647.0
]
|
Do the same for this one.
| Code: | [
.ELEM INTERFAZ2
.GRUPO GRUPO_PRINCIPAL
.PESO 2.0
.COORDS
(
# 736 -SIZEY # bottom terminal with back bag (512.0 -SIZEY)
512.0 -SIZEY
)
.SIZE
(
48 103
)
.BMP INTERFAZ2
.EMPIEZADISPONIBLE 1.0
.LIBRERIA TERMINAL.GRL
]
|
Then change this section to read like this.
| Code: | GestorCaras
[
.ELEM GESTORCARAS
.PESO 11.0
.COORDS
(
0, 570.0
)
]
|
And finally, change the y resolution to whatever your vertical resolution is minus 150. 720 minus 150 = 570.
Last edited by BooTx on Tue Mar 16, 2010 4:04 pm; edited 2 times in total |
|
| Back to top |
|
 |
|
sick TAFN Staff

Joined: 19 Sep 2004
Location: the Netherlands
|
|
| Back to top |
|
 |
|
BooTx Soldier
Joined: 12 Mar 2010
|
Posted: Tue Mar 16, 2010 5:42 am Post subject: |
|
|
It did help, thank you. So far I've been able to find the red title background (it was in the "INTENDENCIA" folder). Unfortunately though, every effort I've made to stretch / remake the images in higher resolutions has led to the game crashing before the level loads.
I'm not entirely certain what's causing it, but I feel that it may be because the GRL size is almost twice as large for the 1280x720 files, and the game for whatever reason can't handle it (maybe the programmers set aside a specific amount of memory for it...maybe it just doesn't like the higher resolution). Regardless of how simple I make the images, I just can not get the final GRL file size down.
I was however able to just black out all of the images so the background doesn't appear at all. It's not what I'd prefer, but it's better than nothing.
I still haven't figured out how to align the title vertically, and I also still need to figure out how to move the objectives box and the tips box. I'll keep looking.
Here's the blacked out title background file, if anyone is interested (it goes in Data\INTENDENCIA\). |
|
| Back to top |
|
 |
|
BooTx Soldier
Joined: 12 Mar 2010
|
Posted: Tue Mar 16, 2010 4:02 pm Post subject: |
|
|
| Whoops I forgot to fix a section in the zipped up interface files. I fixed them and re-uploaded so it should work now. |
|
| Back to top |
|
 |
|
herbert3000 Soldier
Joined: 20 May 2008
|
Posted: Thu Mar 18, 2010 7:20 am Post subject: |
|
|
Thanks a lot. Works perfectly.
Finally I can play C3 @ 1280x800  |
|
| Back to top |
|
 |
|
Bee Soldier
Joined: 08 Sep 2010
|
Posted: Wed Sep 08, 2010 5:05 am Post subject: |
|
|
I registered just to say thanks for all this information. I gave up playing C3 not long after I got it because the resolution was just too low and that combined with no weapon hot keys just turned me off the game.
I dug it out of the dust today and googled resolution fixes and came across this thread. I'm now enjoying C3 for the first time, and in 1280x800 it looks good. Works great!
Thanks,
Bee |
|
| Back to top |
|
 |
|