FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.17k stars 143 forks source link

Commandos #241

Closed AzazelHD closed 3 months ago

AzazelHD commented 11 months ago

Hello. Thanks for making this tool.

Im trying to use it along Commandos 1 and its expansion.

What should i notice ingame after installing it? I cant really notice it, so i dont know if im doing something wrong

emxd commented 9 months ago

The game seems to slowdown only if you move the mouse. Wouldn't filtering WM_MOUSE messages help?

FunkyFr3sh commented 9 months ago

The game seems to slowdown only if you move the mouse. Wouldn't filtering WM_MOUSE messages help?

The game should not be slowing down with the main release of cnc-ddraw. Only the test builds here have that issue. The game expects a certain delay when refreshing the screen, if there is no delay (like in the main release) then it would redraw the cursor multiple times in a row and it appears like the game runs at a low framerate. If you add too much delay then the game will freeze sometimes.

FunkyFr3sh commented 3 months ago

TBH, I think I'll never be able to get this working properly - It's just pure luck and it will behave differently on each system. (Other ddraw wrappers fail as well)

It's playable at least with the current default settings - closing this here now, sorry

RebelliousX commented 3 months ago

Man, I really thank you for all your help! You wouldn't even have to care about it, but you did and tried to help me in the best way possible. BUT, unfortunately it didn't work, I tried several ways: I threw the dll in the game folder and registered it, then I deleted the keys and threw the dll in the System32 folder, finally, I found this: http://www.probo.com/cinepak.php

I downloaded the 32-bit version and used these keys:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\drivers.desc] "iccvid.dll"="Cinepak Codec by Radius Inc."

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Drivers32] "vidc.cvid"="iccvid.dll"

With your file header, in this case, "Windows Registry Editor Version 5.00". And guess what? Nothing happened! Holy shit... And of course, when doing these tests I deleted the keys and dlls to avoid generating conflicts. I think my PC is cursed and not even black magic will solve it! I've never seen an invisible error like this where no solution works. Anyway, I'm from Brazil, and I think that MAYBE it's a region lock or whatever!

I was irritated by this game! I'm going to uninstall it and try Commandos 2 another time. They say it's better than the first one anyway, so I'm wasting time with this stupid game.

Again, thank you for all your help and apologize for any inconvenience.

@SilentMRG and others who have same issue:

I know it is a bit late to answer this, but I am running the Steam version of the game without any modifications. I didn't use CNC-DDraw yet. I am using latest Windows 11 here.

But to fix the playback issue, if you installed K-Lite Codec Pack, then search from the start menu "LAV Video" program, it should be installed with K-Lite Codec Pack. Then go to formats and disable CINEPAK video decoding. Then videos will start playing in all 4 Commandos games { BEL, BCD, 2 MoC and 3 DB }.

Screenshot 2024-05-22 035747

RebelliousX commented 3 months ago

Oh, I just downloaded the GOG version, videos work there too.

I really don't like the GOG version, since it is kind of outdated compared to the Steam version. The GOG versions of BEL and BCD has max resolution of 1024x768 while the Steam version have 1280x720 wide screen support out-of-the-box.

But regarding videos playback, the above fix should do it for both versions. I think Commandos 2 Men of Courage and 3 Destination Berlin games don't need this since they use different codec.

Sorry for the double posts.

SilentMRG commented 3 months ago

But to fix the playback issue, if you installed K-Lite Codec Pack, then search from the start menu "LAV Video" program, it should be installed with K-Lite Codec Pack. Then go to formats and disable CINEPAK video decoding. Then videos will start playing in all 4 Commandos games { BEL, BCD, 2 MoC and 3 DB }.

Thank you for that! I'll try as soon as I reinstall these titles. I also have black screen with audio in Expendable (1998) videos, maybe the problem is the same as with Commandos. Strangely, they are the only games where videos are not shown.