Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hearts of Iron 2 and indexed palette bitmaps #273

Closed
Wickez opened this issue Jan 6, 2024 · 10 comments
Closed

Hearts of Iron 2 and indexed palette bitmaps #273

Wickez opened this issue Jan 6, 2024 · 10 comments

Comments

@Wickez
Copy link

Wickez commented Jan 6, 2024

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
Copy link
Owner

You could upload a log file, it may help to debug the issue: #44

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

@Wickez
Copy link
Author

Wickez commented Jan 7, 2024

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
Copy link
Owner

Nice, thanks!

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

@Wickez
Copy link
Author

Wickez commented Jan 7, 2024

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
Copy link
Owner

FunkyFr3sh commented Jan 7, 2024

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

@Wickez
Copy link
Author

Wickez commented Jan 7, 2024

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

@FunkyFr3sh
Copy link
Owner

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

Yep, now it worked 👍

FunkyFr3sh added a commit that referenced this issue Jan 9, 2024
@FunkyFr3sh
Copy link
Owner

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

cnc-ddraw.zip

@Wickez
Copy link
Author

Wickez commented Jan 9, 2024

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

@FunkyFr3sh
Copy link
Owner

nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants