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.13k stars 143 forks source link

Hearts of Iron 2 and indexed palette bitmaps #273

Closed Wickez closed 6 months ago

Wickez commented 6 months ago

Howdy.

First of all, a quick appreciation for this wrapper. With it, for the first time ever, since I launched the game back in 2006, I observed a smooth and responsive Hearts of Iron 2 game (Europa engine). I tried other wrappers over the years (like that one from Wine or that DXGVoodoo) but with very mixed results. CNC-DDraw is the first that makes wonders actually happen.

Anyhow, there's a slight issue with the game still, even with this wonderful tool. Mainly, certain color indexed bitmap files, the engine uses in abundance (all in the .BMP format), are displayed corrupted. Please see the attached screenshot. I tinkered around with the configuration file, but after two hours I gave up, since nothing seemed to work in addressing the issue.

The screenshot is from a modded HoI2 game (it's called Iron Cross), but it's the same behavior in the clean HoI2: Armageddon (or any other Hearts of Iron 2 title, like Arsenal of Democracy or Darkest Hour; I checked these too).

The corrupted bitmaps can be found in the game's X:\Arma\Gfx\Interface\Pics... directory. So far, I didn't notice issues with the other color indexed bitmaps, if they had "magenta" and/or "electric green" in their palettes (but who knows).

Thanks in advance. If anything, feel free to contact me at Discord under "czudak" (no quote marks) username, so I can provide more (and the fastest) assistance.

HOI

FunkyFr3sh commented 6 months ago

You could upload a log file, it may help to debug the issue: https://github.com/FunkyFr3sh/cnc-ddraw/issues/44

If that doesn't help then I probably have to get the game somewhere

Wickez commented 6 months ago

Very well.

Them logs (had to compress them, because all three were almost 220MB in size???): IronCrossLogs.zip

Also, if you could contact me on GOG, I can gift you the game; I have one free code still left for Arma. Or I could upload the "ready installation" for you somewhere?

FunkyFr3sh commented 6 months ago

Nice, thanks!

It's up to you, if you got a spare copy left send it to FunkyFr3sh on GOG

Wickez commented 6 months ago

I made new discoveries: it affects indexed color counter bitmaps too, as well as "sprites" (that are color indexed as well). For reference, counters are in X:\Arma\Gfx\Palette... directory, while sprites are in X:\Arma\Gfx\Map\Units\Bmp... one.

Also, you apparently need to accept my friend invite on GOG for me to interact with you in any way, including gifting. Cheers!

FunkyFr3sh commented 6 months ago

Strange, haven't got any invite. I sent one to czudak now? Or isn't that your account?

Wickez commented 6 months ago

I resent the invitation on my side. And my account on GOG is under "Wickez" username.

FunkyFr3sh commented 6 months ago

I resent the invitation on my side. And my account on GOG is under "Wickez" username.

Yep, now it worked 👍

FunkyFr3sh commented 6 months ago

Should be working now, here's the latest build:

cnc-ddraw.zip

Wickez commented 6 months ago

The latest test build fixes all display corruptions in the presented cases.

FunkyFr3sh commented 6 months ago

nice 👍