Battlefield 2 → crash when "Lightning" and "Dynamic Shadows" are set to high + bad transparency
NerosTie opened this issue · 31 comments
with d9vk:
https://imgur.com/InHs1gi
System information
- GPU: Nvidia GT 730M
- Driver: 435.21
- Wine version: Proton 4.11
- DXVK version: #894
Apitrace file(s)
https://mega.nz/#!ez4i2I6J!RxDrf-ZPboOqCQ_Vusmk2U1hDVjJIv9ofszpQ9WQIYE
Log files
I think that happens on wine as well. Some others reported that issue with certain video cards on windows and provided a fix.
If you look at post 11 on http://www.battlefieldsingleplayer.com/forum/index.php?showtopic=16430, it provides a replacement shader zip that fixes the problem.
I tried the same fix with d9vk and it's looking good for me now
I can't register (an error about the security code...). Can you send the zip file here?
shaders_client.zip
Thia should be it
Thanks. Yes, it solves the issue.
@Joshua-Ashton Is something can be done with d9vk without this workaround?
It looks like there may have been a regression somewhere between 78dde4b and the most recent commit. I downloaded the latest from the pipeline and noticed black lines appearing on the ground. Reverting back to that commit looks to have fixed it.
I can confirm.
https://imgur.com/A3wxjJP
Where I zoom, I want to show there is a grid of points.
The game does its lighting pass, then tries to render the same thing over the top with LESS_EQUAL
I think that happens on wine as well. Some others reported that issue with certain video cards on windows and provided a fix.
If you look at post 11 on http://www.battlefieldsingleplayer.com/forum/index.php?showtopic=16430, it provides a replacement shader zip that fixes the problem.
I tried the same fix with d9vk and it's looking good for me now
That is not a proper solution, if you replace these files you cannot play multiplayer anymore, because the multiplayer anti cheat system does not allow changes in game files
I was waiting for d9vk to enable a proper fix for this problem
I think that happens on wine as well. Some others reported that issue with certain video cards on windows and provided a fix.
If you look at post 11 on http://www.battlefieldsingleplayer.com/forum/index.php?showtopic=16430, it provides a replacement shader zip that fixes the problem.
I tried the same fix with d9vk and it's looking good for me nowThat is not a proper solution, if you replace these files you cannot play multiplayer anymore, because the multiplayer anti cheat system does not allow changes in game files
I was waiting for d9vk to enable a proper fix for this problem
At least for me, I wasn't trying to show that as a "proper" solution, simply a workaround that would make single player work (how I mainly play) and possibly provide insight into what might be happening for the D9VK devs (in case the difference in shaders might be interesting to see).
What's the version of your driver? Nvidia?
You shouldn't use D9VK 0.40.1, it's outdated.
Well, that's because you are using D9VK. DXVK 1.5.1 is available in Lutris.
The releases of D9VK alone will be forever outdated. Now, it's bundled with DXVK.
I recommend you to use this: https://git.froggi.es/doitsujin/dxvk/-/jobs
It's compiled with the latest commits.
Edit: also, update your driver, it's oudated too (5 months old!)
Well, that's because you are using D9VK. DXVK 1.5.1 is available in Lutris.
The releases of D9VK alone will be forever outdated. Now, it's bundled with DXVK.
I recommend you to use this: https://git.froggi.es/doitsujin/dxvk/-/jobs
It's compiled with the latest commits.Edit: also, update your driver, it's oudated too (5 months old!)
I tried with DXVK only and I see the progress.
Only this glitch is still happening in the medium quality preset:
Also this error eppeared randomly while playing when I increased graphic quality a bit:
When I set high graphic quality preset the same out of memory error eppeared:
I'll try to update my drivers and try again
Please use native d3dcompiler and d3dx9s
In my case, I don't have you error message. The game just crashes during the shaders optimization.
More specifically, it crashes when "Lightning" and "Dynamic Shadows" are set to high (pic)
In my case, I don't have you error message. The game just crashes during the shaders optimization.
More specifically, it crashes when "Lightning" and "Dynamic Shadows" are set to high (pic)
To see the error message you have to run the game in wondowed mode, it seems to be the same problem
The grass is fixed!
But the game still crashes when "Lightning" and "Dynamic Shadows" are set to high, so I leave it open.
Is there a trace for that issue?
With DXVK 1168 (https://git.froggi.es/doitsujin/dxvk/-/jobs)
Thanks Neros, have a nice day
You are right, it's not fixed. Maybe I was dreaming :-(
Everything looks good now
@NerosTie I still get the crash on DXVK 1.6 when the graphics are set to high, also tried the latest #1259 buid, but the same happens.
If you want to try yourself this is the game installer I use:
https://drive.google.com/uc?id=1jBCMUz3LYQpVyYC4rDwdwxG1OJP3a6x4&export=download
With this launcher:
https://www.bf2hub.com/home/downloads.php
You can use the launcher to run the game in window mode, that shows the error instead of just crashing to desktop
Open a new issue, mine is fixed. Yours is not related, so I'm closing this one.
I am seeing weird crashes for ages with certain Video settings. See my winehq bug report: https://bugs.winehq.org/show_bug.cgi?id=46247
Now trying to see what configs do work.
Using wine-staging 6.6 and latest dxvk (1.81) on Fedora 33.
It's a different bug, make a new issue for that and provide the necessary info to debug it.
That bug report on WineHQ doesn't even use DXVK according to the logs.