italomandara / CXPatcher

A patcher to upgrade Crossover dependencies and improve compatibility
GNU General Public License v3.0
828 stars 22 forks source link

Bannerlord d3d_device issue on campaign start #163

Open DuckDuckG0053 opened 7 months ago

DuckDuckG0053 commented 7 months ago

I tried running Bannerlord and everything seems ok until loading into the campaign after character creation. The error is "d3d_device CreateShaderResourceView failed at rglGPU_device create_gpu_buffer: invalid parameter". How can i fix this error please?

DuckDuckG0053 commented 7 months ago

That's the error when running with DXVK, when running with D3DMetal, there is an error immediately on start "Cannot create GPU device!"

italomandara commented 7 months ago

Try by redownloading Crossover.app, Latest CXPatcher for that version of crossover, create a new bottle and install your games/steam there.

What's your hardware? What's your os? What version of CXPatcher? What Version of crossover? are you using steam, origin or other methods?

oceaniver commented 3 months ago

Crossover 24,mac os sonama,steam,the same problem

italomandara commented 3 months ago

https://www.protondb.com/app/261550#lvurrxVftA

many users are reporting that the game doesn't work if steam overlay is on

alver1584 commented 3 months ago

It is not about steam overlay as I see. I have a ticket is the Crossover support, but they don't answer. You can vote for support of Bannerlord maybe it will make the difference... https://www.codeweavers.com/compatibility/crossover/mount-and-blade-ii-bannerlord

I have no idea about all technical details but it seems to be the problem with directX. I tried to use other d3d libraries in wine configuration but didn't succeed. Maybe it will be fixed in next updates, there is developing version of wine 9.5 already. But without miracle I didn't think that solution can be found in the nearest future :(( would be really happy to be wrong about that

Also there is a guide here but I have no idea how to implement that or is it even suitable for crossover and Mac https://appdb.winehq.org/objectManager.php?sClass=version&iId=39444

alver1584 commented 3 months ago

tried It with V0.5.0-pre for Crossover 24, but nothing changes. (don't know what did I expect)

italomandara commented 3 months ago

That's the error when running with DXVK, when running with D3DMetal, there is an error immediately on start "Cannot create GPU device!"

have you tried with both dxvk and d3dmetal turned off? It's slower but it could work

alver1584 commented 3 months ago

have you tried with both dxvk and d3dmetal turned off? It's slower but it could work

Снимок экрана 2024-04-01 в 12 07 47

Turned both of them off

alver1584 commented 2 months ago

I believe it could be relate with this wine bug: https://bugs.winehq.org/show_bug.cgi?id=48804

Any chance to fix it with CXpatcher?

italomandara commented 2 months ago

What's your hardware?

alver1584 commented 2 months ago

What's your hardware?

MacBook Air m2, Sonoma, crossover 24.0.1

alver1584 commented 2 months ago

I can provide a log if you are interested. I am not a developer, but tried everything that I could to make this game run backtrace.txt

italomandara commented 2 months ago

I can provide a log if you are interested. I am not a developer, but tried everything that I could to make this game run backtrace.txt

On crossover there are no guarantees a game will run, some games just won't, if you provide some logs I could look into it but it could be something not fixable via cxpatcher.

alver1584 commented 2 months ago

On crossover there are no guarantees a game will run, some games just won't, if you provide some logs I could look into it but it could be something not fixable via cxpatcher.

Yeah, I understand, but i kind of obsessed with the idea to play Bannerlord, so really appreciate your help!

So here is a backtrace file is it enough? If not, could you advise me how to get a proper log? backtrace123.txt

italomandara commented 2 months ago

On crossover there are no guarantees a game will run, some games just won't, if you provide some logs I could look into it but it could be something not fixable via cxpatcher.

Yeah, I understand, but i kind of obsessed with the idea to play Bannerlord, so really appreciate your help!

So here is a backtrace file is it enough? If not, could you advise me how to get a proper log? backtrace123.txt

This doesn't help much you need to run steam or your game by right clicking -> run with options and enable logs.

alver1584 commented 2 months ago

On crossover there are no guarantees a game will run, some games just won't, if you provide some logs I could look into it but it could be something not fixable via cxpatcher.

Yeah, I understand, but i kind of obsessed with the idea to play Bannerlord, so really appreciate your help! So here is a backtrace file is it enough? If not, could you advise me how to get a proper log? backtrace123.txt

This doesn't help much you need to run steam or your game by right clicking -> run with options and enable logs.

Oh, okay! That should be the right one then (made zip-archive to send)

Bannerlord.Native 2.cxlog.zip

italomandara commented 2 months ago

the only thing i can see is: D3D11RasterizerState: Antialiased lines not supported

It seems like Gothic 2 has the same issue with dxvk if you're an expert you could try this workaround: https://github.com/kirides/GD3D11/issues/14#issuecomment-739528956 but I doubt it works.

alver1584 commented 2 months ago

the only thing i can see is: D3D11RasterizerState: Antialiased lines not supported

It seems like Gothic 2 has the same issue with dxvk if you're an expert you could try this workaround: kirides/GD3D11#14 (comment) but I doubt it works.

Thanks for your reply and your efforts! I am not nearly an expert, but it seems that I tried some of things they mentioned there. At least I replaced d3dcompiler_47, added d3dcompiler_42, turned them on/off in wine config and other things ChatGPT advised me to do :).

Tried some of gothichs d3dcompiler_47 and other files they provided but the same result. I wrote once again to codeweavers support and attached log you helped me to get, so maybe they will have some ideas.

Anyway, thanks again! If you have some new ideas in the future – let me know, I will be happy to try!