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

[SH2] WineD3D gives an error on startup. #447

Closed
nasovic opened this Issue Apr 30, 2018 · 6 comments

Comments

Projects
None yet
4 participants
@nasovic

nasovic commented Apr 30, 2018

Hey, everything is working for me just fine except for WineD3D fix. As a title says when installed in the root folder it causes SH2 to crash when launching (sh2pc.exe appcrash). It works if put in \scripts though. Is it mandatory to use WineD3D? I mean the game works just fine without any glithes like white textures or black lines. I have an old AMD HD5... series video card on my laptop and as I get it WineD3D fix is meant for Nvidia cards so maybe I don't need it? I used townofsilenthill.com instructions btw.

@AeroWidescreen

This comment has been minimized.

Show comment
Hide comment
@AeroWidescreen

AeroWidescreen Apr 30, 2018

Collaborator

I believe it only corrects black lines that occasionally appear on faces if you're using an AMD card. For me it's not something that's noticeable unless I'm really looking for it.

So to answer your question: no, you don't need wineD3D if you're using an AMD graphics card.

Collaborator

AeroWidescreen commented Apr 30, 2018

I believe it only corrects black lines that occasionally appear on faces if you're using an AMD card. For me it's not something that's noticeable unless I'm really looking for it.

So to answer your question: no, you don't need wineD3D if you're using an AMD graphics card.

@Storm3000

This comment has been minimized.

Show comment
Hide comment
@Storm3000

Storm3000 Apr 30, 2018

WineD3D fixes the missing fog at the beginning, the screen freezing during 2 seconds at high resolutions, the white textures in some dark surfaces and the missing randomly background music (this one possibly provoked by the constant screen freezing, not sure yet).

If you don't have any of these bugs, don't use it.

NOTE: The black lines in character's faces is provoked by WineD3D's d3d8.dll file. That's why you need WineD3D's d3d9.dll on Scripts along with LoadWineD3D.dll, libwine.dll and wined3d.dll, to solve this problem. The d3d8 and d3d9 files can't go together into the same folder. D3d8.dll goes into the main directory, and you need it to run the game because SH2 uses DirectX 8.

Storm3000 commented Apr 30, 2018

WineD3D fixes the missing fog at the beginning, the screen freezing during 2 seconds at high resolutions, the white textures in some dark surfaces and the missing randomly background music (this one possibly provoked by the constant screen freezing, not sure yet).

If you don't have any of these bugs, don't use it.

NOTE: The black lines in character's faces is provoked by WineD3D's d3d8.dll file. That's why you need WineD3D's d3d9.dll on Scripts along with LoadWineD3D.dll, libwine.dll and wined3d.dll, to solve this problem. The d3d8 and d3d9 files can't go together into the same folder. D3d8.dll goes into the main directory, and you need it to run the game because SH2 uses DirectX 8.

@Polymega

This comment has been minimized.

Show comment
Hide comment
@Polymega

Polymega Apr 30, 2018

If you're using an AMD card or integrated graphics (common on laptops, especially older ones) you can either not use WineD3D at all or use injectSMAA instead.

As you said, you will only have the black lines on faces issue if you don't use WineD3D (in addition to a few small, inconsequential issues). injectSMAA can fix the black lines issue while also giving you anti-aliasing.

Do note, however, that the fog fix and an anti-aliasing solution will be the two biggest culprits to the game slowing down. I have a Surface Pro 3 and the game struggles to render 30 FPS when the fog fix is in effect with anti-aliasing.

NOTE: The black lines in character's faces is provoked by WineD3D's d3d8.dll file.

Are you sure this isn't inherent to the vanilla PC game running on newer machines? I believe any d3d8 file will cause the issue and using any package that converts the game to DX9 (WineD3D, injectSMAA, etc) is what fixes it.

It works if put in \scripts though.

Out of curiosity, are you also using LoadWineD3D-ASI?

Polymega commented Apr 30, 2018

If you're using an AMD card or integrated graphics (common on laptops, especially older ones) you can either not use WineD3D at all or use injectSMAA instead.

As you said, you will only have the black lines on faces issue if you don't use WineD3D (in addition to a few small, inconsequential issues). injectSMAA can fix the black lines issue while also giving you anti-aliasing.

Do note, however, that the fog fix and an anti-aliasing solution will be the two biggest culprits to the game slowing down. I have a Surface Pro 3 and the game struggles to render 30 FPS when the fog fix is in effect with anti-aliasing.

NOTE: The black lines in character's faces is provoked by WineD3D's d3d8.dll file.

Are you sure this isn't inherent to the vanilla PC game running on newer machines? I believe any d3d8 file will cause the issue and using any package that converts the game to DX9 (WineD3D, injectSMAA, etc) is what fixes it.

It works if put in \scripts though.

Out of curiosity, are you also using LoadWineD3D-ASI?

@Storm3000

This comment has been minimized.

Show comment
Hide comment
@Storm3000

Storm3000 Apr 30, 2018

I played the vanilla PC version and I never saw the black lines, only using WineD3D d3d8.dll file. I'm using a Nvidia card.

Storm3000 commented Apr 30, 2018

I played the vanilla PC version and I never saw the black lines, only using WineD3D d3d8.dll file. I'm using a Nvidia card.

@nasovic

This comment has been minimized.

Show comment
Hide comment
@nasovic

nasovic Apr 30, 2018

NOTE: The black lines in character's faces is provoked by WineD3D's d3d8.dll file. That's why you need WineD3D's d3d9.dll on Scripts along with LoadWineD3D.dll, libwine.dll and wined3d.dll, to solve this problem. The d3d8 and d3d9 files can't go together into the same folder. D3d8.dll goes into the main directory, and you need it to run the game because SH2 uses DirectX 8.

Out of curiosity, are you also using LoadWineD3D-ASI?

I have used it but to no avail, the games still crashes. I think I've tried every possible combination which is putting WineD3D .dlls into the root folder or \scripts as well as attaching LoadWineD3D.asi to them.
Also the infamous black lines on some character's faces are fixed for me by creating global.ini with certain parameters not by WineD3D. Anyway I can play SH2 just fine without any glitches, for now at least :) But it still very strange that WineD3D isn't working for me. As you have said maybe it depends on your software\hardware specifications, I dunno.

nasovic commented Apr 30, 2018

NOTE: The black lines in character's faces is provoked by WineD3D's d3d8.dll file. That's why you need WineD3D's d3d9.dll on Scripts along with LoadWineD3D.dll, libwine.dll and wined3d.dll, to solve this problem. The d3d8 and d3d9 files can't go together into the same folder. D3d8.dll goes into the main directory, and you need it to run the game because SH2 uses DirectX 8.

Out of curiosity, are you also using LoadWineD3D-ASI?

I have used it but to no avail, the games still crashes. I think I've tried every possible combination which is putting WineD3D .dlls into the root folder or \scripts as well as attaching LoadWineD3D.asi to them.
Also the infamous black lines on some character's faces are fixed for me by creating global.ini with certain parameters not by WineD3D. Anyway I can play SH2 just fine without any glitches, for now at least :) But it still very strange that WineD3D isn't working for me. As you have said maybe it depends on your software\hardware specifications, I dunno.

@Polymega

This comment has been minimized.

Show comment
Hide comment
@Polymega

Polymega Apr 30, 2018

Gotcha. The reason I asked is because if you're not using LoadWineD3D-ASI then WineD3D needs to be in the root directory. So you'd have the Widescreen Fix's dinput8.dll renamed to d3d8.dll along with WineD3D's d3d9.dll, libwine.dll, and wined3d.dll there:

http://widescreenfix.townofsilenthill.com/SH2/#directorytree

Also the infamous black lines on some character's faces are fixed for me by creating global.ini with certain parameters not by WineD3D.

Yes, this is because you've most likely activated UAL's built-in D3D8to9 Converter. When the game runs on DX9 you won't see the black lines issue. But Storm3000 has confirmed that if you don't use WineD3D files the black lines shouldn't appear even without global.ini.

But ultimately, if it's working for you now I just say roll with it. :)

Polymega commented Apr 30, 2018

Gotcha. The reason I asked is because if you're not using LoadWineD3D-ASI then WineD3D needs to be in the root directory. So you'd have the Widescreen Fix's dinput8.dll renamed to d3d8.dll along with WineD3D's d3d9.dll, libwine.dll, and wined3d.dll there:

http://widescreenfix.townofsilenthill.com/SH2/#directorytree

Also the infamous black lines on some character's faces are fixed for me by creating global.ini with certain parameters not by WineD3D.

Yes, this is because you've most likely activated UAL's built-in D3D8to9 Converter. When the game runs on DX9 you won't see the black lines issue. But Storm3000 has confirmed that if you don't use WineD3D files the black lines shouldn't appear even without global.ini.

But ultimately, if it's working for you now I just say roll with it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment