Widescreen Gaming Forum

[-noun] Web community dedicated to ensuring PC games run properly on your tablet, netbook, personal computer, HDTV and multi-monitor gaming rig.
It is currently 25 Dec 2024, 15:49

All times are UTC [ DST ]




Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Commandos 3
PostPosted: 16 May 2009, 07:23 
Offline

Joined: 13 May 2008, 11:35
Posts: 104
What version are you using? Are you making sure to use a No-CD patched exe? Are you starting your search from the beginning of the file? Those two missing strings are probably causing your problems.

I played through C2 a little more (read: I cheated and skipped levels) and the rest of the levels (at least the ones I saw) look good. The screen scales to the full width right off the bat and I didn't see any glitching or anything.

Oh and I hit a snag with Commandos 1 in that I can't get the demo to run on XP. It crashes after the intro logos and before the menu. Probably a codec issue of some sort.

I was able to get Commandos 3 working in widescreen but not acceptably. Most of the menus don't scale properly, some of the hud elements are misaligned, and there's even a small texture loading glitch (at least on the moving train demo level I've been playing).

So it's not looking good, unfortunately. Here's a screenshot of how it looks now. I'll try some other stuff with it but don't get your hopes up because I don't see any more easy fixes.



Top
 Profile  
 


 Post subject: Commandos 3
PostPosted: 27 May 2009, 17:24 
Offline

Joined: 27 May 2009, 17:22
Posts: 1
Hey BootX,

I came across this site by Google and your stuff was of great help for me with Commandos II. I completed it already tho so i got my hands on Commandos 3, but it really looks like crap. You already got any luck on C3 so far?

Thnx in advance (A).


Top
 Profile  
 
 Post subject: Commandos 3
PostPosted: 28 May 2009, 11:23 
Offline

Joined: 13 May 2008, 11:35
Posts: 104
I'm afraid not; what you see above is what I've got. I've isolated one string that controls the gameplay screen resolution, one that controls the gameplay area dimensions, and one that controls the menu resolution. Unfortunately, changing the first two also screws up the HUD and I haven't found a way of fixing it. I did find half a dozen other strings but I haven't been able to discern what they actually alter.

Maybe changing the HUD itself is the answer. The graphics for it probably reside in the Data.pck file which I was able to open using a program called 'Dragon UnPACKer 5'. Unfortunately, the contents are in spanish, and even more unfortunately, the files are in some kind of proprietary format which I have no means of opening.

I honestly don't think that would solve the problem, though. Some elements scale properly, others tile, and still others stay in their original location. The correct strings are in the executable somewhere, I'm sure, but it would take a hell of a lot of time and patience to track them all down since they're so scattered and seemingly not grouped in any kind of sensical manner.

Sorry I couldn't help you out with this one.

I'll leave the three pertinent strings here in case somebody wants to pick it up and figure it out some day in the future. Pretty sure a No-CD patched exe is required.

Controls gameplay screen resolution.

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

Controls gameplay area dimensions.

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

Controls menu resolution (this one should probably be left unchanged since it's just a mess).

20 03 00 00 c3 90 90 90 90 90 90 90 90 90 90 b8 58 02

And the six strings that seemingly have no effect.

20 03 00 00 b9 58 02

20 03 00 00 c7 44 24 2c 58 02

20 03 00 00 c7 46 4c 58 02

20 03 00 00 c7 44 24 1c 58 02

20 03 00 00 c2 04 00 b8 00 04 00 00 c2 04 00 b8 00 05 00 00 c2 04 00 8d 49 00 25 4b 56 00 2d 4b 56 00 35 4b 56 00 3d 4b 56 00 90 90 90 90 90 90 90 90 8b 4c 24 04 b8 e0 01 00 00 83 f9 03 77 24 ff 24 8d 98 4b 56 00 b8 e0 01 00 00 c2 04 00 b8 58 02

58 02 00 00 8b 94 24 48 01 00 00 89 84 24 44 01 00 00 c7 84 24 4c 01 00 00 00 00 00 00 8b 84 24 4c 01 00 00 d8 3d 80 87 b4 00 89 94 24 20 03


Top
 Profile  
 
 Post subject: Re: Commandos 3
PostPosted: 22 May 2010, 00:49 
Offline

Joined: 13 May 2008, 11:35
Posts: 104
I've progressed a bit with the Commandos 3 fix with some help from the Commandos community, so I figure I might as well cross-post this here in case anyone is interested. It's not perfect, but it's certainly an improvement. Now the basic interface is fully functional and everything seems to be where it should be apart from a couple non-critical elements.

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.

To use UniWS to fix Commandos 3, download UniWS and extract it anywhere you'd like. Open the included "patches.ini" file with any text editor (such as notepad) and add this near the top after the a16 line:

Code:
a17=Commandos 3: Destination Berlin


And then add all of this at the end of the file:
Code:

   [Commandos 3: Destination Berlin]
   details=Steam versions (and possibly some retail versions) will need a cracked No-CD executable for this fix to work (The Version 1.42 No-CD executable should work here). Point to the location of the executable and select your desired resolution.13101310After patching is complete, apply the interface fix located on the Widescreen Gaming Forum.
   checkfile=Commandos3.exe
   modfile=Commandos3.exe
   undofile=Commandos3.undo1
   sig=20030000c3b800040000c3b800050000c3c45c5600ca5c5600d05c5600d65c5600909090908b4948b8e001000083f90377leff248dlc5d5600b8e0010000c3b85802
   sigwild=000000000
   xoffset=0
   yoffset=64
   occur=1
   p1modfile=Commandos3.exe
   p1undofile=Commandos3.undo2
   p1sig=20030000eb0cba00040000eb05ba0005000083f803b9e0010000773fff2485e45d56008b442404b9e00100008910894804c204008b442404b95802
   p1sigwild=000000
   p1xoffset=0
   p1yoffset=57
   p1occur=1
   

After you've done that, save the file and exit. Now run UniWS and select Commandos 3 from the drop down menu and locate the Commandos 3 executable in the box below.

Choose the resolution you'd like to try, and then click the Patch button. You can skip the next section of this post and scroll down to the part that deals with fixing the interface.

-------

To fix the executable manually you will need a hex editor such as Be.HexEditor. Open your Commandos 3 executable with it (these strings are based on the 1.42 No-CD executable and may not match other versions exactly) 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).

20 03 00 00 c3 b8 00 04 00 00 c3 b8 00 05 00 00 c3 c4 5c 56 00 ca 5c 56 00 d0 5c 56 00 d6 5c 56 00 90 90 90 90 8b 49 48 b8 e0 01 00 00 83 f9 03 77 le ff 24 8d lc 5d 56 00 b8 e0 01 00 00 c3 b8 58 02

and...

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 5d 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. 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. It definitely needs more testing.

-------

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 INTERFAZ 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 DataINTERFAZ directory (you'll probably need to create it).

This is the final result:



Unfortunately, there are still a couple issues:





The objectives box should be aligned to the right side of the screen but I have yet to figure out how to make it do so. The tips box itself appears to align correctly by default, but its other elements are a mess, and again, the solution eludes me.

I tried to resize the red title background but was unable to do so due to file size restrictions (it was always too large, regardless of how simple I made it). I was able to black it out entirely, however. If you'd like to try it out, download this file, extract it, and place it in the DataINTENDENCIA directory.

The result will look like this:



Not as pretty as the original, and it still does not align itself to the center vertically, but I guess it's better than the eyesore that only filled up half the screen.

That's all I have for now.


Top
 Profile  
 
 Post subject: Re: Commandos 3
PostPosted: 22 May 2010, 01:03 
Offline

Joined: 13 May 2008, 11:35
Posts: 104
Here are the instructions on how to fix the INTERFAZ file in case the link ever dies or just if you want to use another resolution. Open the file with a text editor and then...

The default for both of the y coordinates in this section are 544. Change it to -56.0 and it should align properly with every resolution.
Code:
   .MOCH0
           [
               .COORDS
               (
                   257.0 -56.0
               )
           ]
           .MOCH1
           [
               .COORDS
               (
                   506.0 -56.0
               )
           ]
   


Change both the x and y coordinates in this section to what I have below.
Code:
   .BAJO0
           [
               .COORDS
               (
                   334.0 -44.0
               )
           ]
           .BAJO1
           [
               .COORDS
               (
                   372.0 -58.0
               )
           ]
           .BAJO2
           [
               .COORDS
               (
                   410.0 -44.0
               )
           ]
   


The .Y resolution here should be whatever vertical resolution you chose minus 73. So for instance, I chose 1280x720, so 720 minus 73 is 647.
Code:
          .ELEM ARMAS
                       .GRUPO GRUPO_MOCHILA
                       .LAYOUT MOCH0MULTI
                       .COORDSINICIALES
                       [
                           .X 191.0
                           .Y 647.0
                       ]
   


Do the same for this one.
Code:
          .ELEM OBJETOS
                       .GRUPO GRUPO_MOCHILA
                       .LAYOUT MOCH1MULTI
                       .COORDSINICIALES
                       [
                           .X 440.0
                           .Y 647.0
                       ]
   


Change this section to read like this.
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
                   ]
   


And finally, change the y resolution to whatever your vertical resolution is minus 150. 720 minus 150 = 570.
Code:
      GestorCaras
                   [
                       .ELEM GESTORCARAS
                       .PESO 11.0
                       .COORDS
                       (
                           0, 570.0
                       )
                   ]
   


And that should do it.


Top
 Profile  
 
 Post subject: Re: Commandos 3
PostPosted: 06 Jul 2010, 22:31 
Offline

Joined: 06 Jul 2010, 22:20
Posts: 1
HELP NEEDED! :doh

Great thread by the way! Nothing beats a bit of reverse engineering...which ironically I think was the name of the demo mission from the original Commando game!!!

BooTx> I've read your posts thoroughly and understand everything, except my lack of programming/code/compiling lets me down...

I've downloaded a hex editor and was assuming a straight forward CTRL-F to locate the two entries listed in your post above to edit them and I'd be away!!

HOWEVER...I cannot locate these strings?!!?!

I can find 00164bc0 and 00164c60 but the lines do not contain the strings listed above so I basically do not know what to edit!

I've got a UK retail copy of C3DB and I've checked both the content of the Commandos 3 EXE and the EXE I use as a NO-CD Patch from gamecopyworld and nothing...

I HAVE TO BE MISSING SOMETHING!

Help appreciated!

Ta!

Ryan


Top
 Profile  
 
 Post subject: Re: Commandos 3
PostPosted: 08 Jul 2010, 09:25 
Offline

Joined: 13 May 2008, 11:35
Posts: 104
I'm using the demo executable so it wouldn't surprise me if the retail is different but one of the people at the tafn forum said the fix worked fine for them, so I'm sure it's doable on whatever version you have.

You can zip and upload your exe and PM me the URL and I can take a look at it if you'd like.

What hex editor are you using, by the way? With Be.HexEditor when you Ctrl+f you need to click the "Hex" bubble and search using that instead of the default "Text" section.


Top
 Profile  
 
 Post subject: Re: Commandos 3
PostPosted: 03 Aug 2010, 20:58 
Offline

Joined: 03 Aug 2010, 20:48
Posts: 1
Hi, can you help me with this .exe http://gbw.naxpnetworks.com/files/Commandos3DestinationBerlinv1.42FixedexeEng.rar i cant find that strings for change resolution to 1920×1080 :( Thx


Top
 Profile  
 
 Post subject: Re: Commandos 3
PostPosted: 30 Oct 2010, 17:24 
Offline

Joined: 29 Oct 2010, 21:26
Posts: 40
Darn, it crashes on higher resolution.
In fact, i cant run and play the campaign on anything higher than 1280x1024.

On 1680x1050, 1600x1200, 1920x1200 i am only able to start the Tutorial, and that is because the mission starts in a full 3D (inside buildings) environment.
But, for some reason fter i get out of the building, i am still able to play in/on exteriors.
Though it still crashes sometimes. (Especially after you complete the mission)

If i try to start the campaign in one of those higher resolutions, the game crashes and kicks you out to Windows.

I was able to play this game (still with crashes from time to time) on 1280x1024, 1280x960, 1024x768).
Only on these lower res i am able to start the campaign in 2D.

In the last level form the Stalingrad campaign (you start in a full 3D environment) i was able to play the interiors part at 1920x1200, but if i try to go outside (2D environment) it crashes even at 1280x1024. So i tested 1280x960 and it worked

Too bad this game is still mostly 2D with some 3D extras.

One more thing,
(i have a polish version)
i noticed, the first string from my copy is not exact to yours.
I don't know whether its because my game is patched to ver 1.42, or because its final game (not demo), and/or because my retail copy doesn't require a dvd in drive.


Here are some screenshots from random resolutions.












The First 3 screenshots are from Tutorial.
The last 9 screenshots are from the last mission from the Stalingrad Campaign.

The ability to run this game on anything higher than 800x600 is just awesome.
THX BooTx!
..................................
Forgive me my english, its not my native language


Top
 Profile  
 
 Post subject: Re: Commandos 3
PostPosted: 03 Nov 2010, 14:44 
Offline

Joined: 13 May 2008, 11:35
Posts: 104
Thanks for the informative post. It's a shame it doesn't work at the higher resolutions, but I suppose it's better than nothing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: DotNetDotCom.org [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  




Powered by phpBB® Forum Software © phpBB Group