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

Napoleon in Italy black boxes instead of sprites #177

Closed
Buechnerstod opened this issue Jan 2, 2023 · 14 comments
Closed

Napoleon in Italy black boxes instead of sprites #177

Buechnerstod opened this issue Jan 2, 2023 · 14 comments

Comments

@Buechnerstod
Copy link

hI
I have had problems running Napoleon in Italy (created by Hussar Games, published through Matrxi Games - though no discontinued)
DDRAWcompat has made the game screen usable again, but on the game map all the uni sprites are black boxes and if you move the screen around the sprites seem to be on some black layer within the black boxes, but out of all alignment with where the sprites should be
Untitled-1

@narzoul
Copy link
Owner

narzoul commented Jan 3, 2023

I don't have this game so it'll be hard to debug. Do any of the other Hussar Games have similar issues for you? They seem to use similar engines at least, but I didn't have any problems like this with either 1848 or the For Liberty demo.

@Buechnerstod
Copy link
Author

Buechnerstod commented Jan 3, 2023 via email

@narzoul
Copy link
Owner

narzoul commented Jan 3, 2023

Hmm, I have somewhat similar glitches in 1848 only if I enable ForceD3D9On12. Do you have an Intel GPU that uses D3D9On12 perhaps? Please share your DDrawCompat log file, it can be seen there.

@Buechnerstod
Copy link
Author

Buechnerstod commented Jan 4, 2023 via email

@narzoul
Copy link
Owner

narzoul commented Jan 4, 2023

I don't see it. Please reply via GitHub, I think e-mail attachments are ignored.

@Buechnerstod
Copy link
Author

DDrawCompat-Napoleon[2].log

okay here it is

@narzoul
Copy link
Owner

narzoul commented Jan 4, 2023

Yes, your system is using D3D9On12, so that probably causes most of your issues. Compatibility with D3D9On12 is not yet great in DDrawCompat. I've started improving on it recently, and it looks like 1848 already displays fine with my offline development version. I'll try to identify which fixes are needed and get you a testable release tonight.

@Buechnerstod
Copy link
Author

thats great thank you

so this d3d9on12 thing is there anything i can do to not have my system use it? it might explain some other graphics issues i am having which others do not seem to be

also this might what is causing Battalia in my other post here to have issues too then?

@narzoul
Copy link
Owner

narzoul commented Jan 4, 2023

Yes, it's probably the same reason for your issues in other games, but I haven't had time to check those yet. Based on your posts in DxWnd forums I suppose you have a laptop with NVIDIA Optimus, but unfortunately it doesn't support running DX1-8 on the NVIDIA GPU under Windows 10/11, so you're stuck with the integrated Intel GPU for those (unless you use something like dgVoodoo 2 which translates to DX11/12). See here:
https://nvidia.custhelp.com/app/answers/detail/a_id/3733/~/games-based-on-directx-8-and-older-versions-of-directx-will-only-run-on

And newer Intel GPUs are stuck with D3D9On12 because they don't have a native DirectX 9 driver anymore. See here:
https://www.intel.com/content/www/us/en/support/articles/000091238/graphics.html

@Buechnerstod
Copy link
Author

oh damn - thank you for enlightening me on this, - i did see the word optimus come up in some nvidia control panel settings
so really even if i downgraded to windows10 i would still have these issues then? it seems unavoidable if that is how they are making gaming laptops now? or are their brands which will still run dx1-8 on nvidia or some equivalent amd thing?

fortunately my biggest area of retro gaming is with dosbox still, but there are a host of late 90s early 00s games i still love and play -getting napoleon in italy and battalia workign with ddrawcompat would be sublime

after that, i have to try and see if i can get the ea F1 games to work, - f12000 does so far,

also i am hoping Panzer Commander and Luftwaffe Commander will still work

@narzoul
Copy link
Owner

narzoul commented Jan 4, 2023

This simple fix should work for this game (and probably most 2D games in general):
ddraw.zip (diff.txt compared to v0.4.0)

This won't help with Battalia, it seems to have a different issue, even without D3D9On12. I'll look into it later.

I think the GDI resource leak fix may be needed too (in case you notice the cursor turning into a black box eventually), but it can be worked around by using DisplayResolution=app if that's the case.

Alt-tabbing is broken as well, but that seems to be partly the game's fault, it doesn't work well with native ddraw either.

@Buechnerstod
Copy link
Author

thank you! i will try it now, and i am hoping even moreso that battalia can be fixed so please see if you can fix it. it use to work fine in windows10 with no compat issues

@Buechnerstod
Copy link
Author

yes, Napoleon in Italy looks to be running perfectly now and i suspect it will be the same for For Liberty too! this is great news thank you

@narzoul
Copy link
Owner

narzoul commented Nov 13, 2023

Should be fixed in v0.5.0.

@narzoul narzoul closed this as completed Nov 13, 2023
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