Coder Social home page Coder Social logo

Comments (41)

Blisto91 avatar Blisto91 commented on August 23, 2024 2

Can you also post a apitrace where it doesn't work with dxvk. Might get something from comparing them

from dxvk.

doitsujin avatar doitsujin commented on August 23, 2024 1

If the log is anything to go by it locks up before even creating a swap chain, which is weird. Has this game ever worked with any version of DXVK?

Trace replays fine here, so there might be window message shenanigans going on perhaps, but not sure.

from dxvk.

Sagatt avatar Sagatt commented on August 23, 2024 1

Never did work with any version at all, simply gives me a black screen.

from dxvk.

Blisto91 avatar Blisto91 commented on August 23, 2024 1

Put the apitrace d3d9.dll next to the game exe and the dxvk d3d9.dll in some folder you've created, where ever. Then in the Windows environment variable gui set APITRACE_FORCE_MODULE_PATH to the path of the folder with the dxvk dll. This will make apitrace use it instead of the system one.
You can just delete the env var again when you are done.

from dxvk.

Blisto91 avatar Blisto91 commented on August 23, 2024 1

@koffiato thank you for the attempt but the trace with dxvk is sadly empty yes.
I have managed to find a cheap copy of the game so I should be able to give it a poke here next week.

from dxvk.

Blisto91 avatar Blisto91 commented on August 23, 2024

Please post dxvk logs and make a apitrace if able. Then it will be easier to take a look.
The logs usually appear next to the exe.

from dxvk.

mirh avatar mirh commented on August 23, 2024

Does the version in the title imply that it was working for you with 2.3.1?

from dxvk.

koffiato avatar koffiato commented on August 23, 2024

Game gets stuck on black screen on my setup. Works fine with native DirectX 9, apitrace and logs are attached. Will try making the game run windowed as my monitor blacks out for a bit, the game may be changing exclusive fullscreen resolution in a funky way.

System information

  • GPU: AMD Radeon RX 6700 XT
  • Driver: 24.6.1
  • OS version: Windows 11 23H2
  • DXVK version: 1.10.3, 2.3.1 and 2.4.0

Apitrace file(s)

Log files

from dxvk.

koffiato avatar koffiato commented on August 23, 2024

I tried going back to ancient versions with RADV driver, no dice; it never worked with DXVK. WINED3D works fine however.

from dxvk.

K0bin avatar K0bin commented on August 23, 2024

The apitrace replays fine on my system (with an Nvidia GPU) as well. The fact that you cannot buy this game anymore, makes looking into this very problematic.

Blisto's idea was pretty good. Please try to make an apitrace with DXVK where the game crashes during recording of the trace.

from dxvk.

Sagatt avatar Sagatt commented on August 23, 2024

But the game barely runs, literally the screen is blacked out

from dxvk.

koffiato avatar koffiato commented on August 23, 2024

@Blisto91 How do I do that exactly? Game boots into black screen and crashes whenever I click around. I tried putting dxgitrace.dll from apitrace along with d3d9.dll and dxgi.dll of DXVK next to the game executable; didn't work. Tried using apitrace trace scarface.exe but that also didn't create any trace files on desktop. In all of the cases, the game boots into black screen.

from dxvk.

Blisto91 avatar Blisto91 commented on August 23, 2024

On Windows or Linux?

from dxvk.

koffiato avatar koffiato commented on August 23, 2024

Oh, sorry, I tried taking apitraces on Windows.

from dxvk.

koffiato avatar koffiato commented on August 23, 2024

Thank you for the instructions. I started the game, waited a few minutes then force quit. The resulting scarface.trace is just 2 bytes. Also tried running the apitrace with -a d3d9 argument, same result; unable to replay.
image

from dxvk.

Sagatt avatar Sagatt commented on August 23, 2024

If the log is anything to go by it locks up before even creating a swap chain, which is weird. Has this game ever worked with any version of DXVK?

Trace replays fine here, so there might be window message shenanigans going on perhaps, but not sure.

Based on what you seen, what does that mean?

from dxvk.

Sagatt avatar Sagatt commented on August 23, 2024

@koffiato thank you for the attempt but the trace with dxvk is sadly empty yes. I have managed to find a cheap copy of the game so I should be able to give it a poke here next week.

I could've just given you a copy bru

from dxvk.

Blisto91 avatar Blisto91 commented on August 23, 2024

Apitrace from Windows with and without dxvk: https://drive.proton.me/urls/206PB23WP0#yAyK1z1Fq12Z

These are made with the game also using the SilentPatch but it freezes/crashes the same with dxvk on first frame.

from dxvk.

Sagatt avatar Sagatt commented on August 23, 2024

Try using GangstaPatch, it's here on GitHub too

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

@K0bin @mirh @doitsujin @Blisto91

Installing D3D9 Wrapper by ThirteenAG in game root

Replacing d3d9.dll of DXVK with C:\Windows\SysWOW64\d3d9.dll

Its not solution but game works with DXVK.... and the wrapper repository available in GitHub

from dxvk.

Blisto91 avatar Blisto91 commented on August 23, 2024

I'm not sure i understand what you mean

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

@Blisto91 the game not working with DXVK if install dxvk(d3d9.dll) in game root only, and shows only black screen...

but if install d3d9-wrapper also in the game.. then game work with DXVK..... but both have some .dll which is d3d9.dll..........

so I put and replace dxvk d3d9.dll in system folder

Screenshot-(254)

from dxvk.

Blisto91 avatar Blisto91 commented on August 23, 2024

You probably already know this but i am just going to put out a disclaimer to others.

DO NOT REPLACE THE WINDOWS SYSTEM DLLS WITH DXVK UNLESS YOU KNOW WHAT YOU ARE DOING. YOU'LL LIKELY BRICK YOUR INSTALL

But yes thanks. I assume it is working around the dxvk issue via windowed mode or some other tweaks.

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

Its not solution but game works with DXVK....

Yes, I know.... Thats why I write above

from dxvk.

Sagatt avatar Sagatt commented on August 23, 2024

You probably already know this but i am just going to put out a disclaimer to others.

DO NOT REPLACE THE WINDOWS SYSTEM DLLS WITH DXVK UNLESS YOU KNOW WHAT YOU ARE DOING. YOU'LL LIKELY BRICK YOUR INSTALL

But yes thanks. I assume it is working around the dxvk issue via windowed mode or some other tweaks.

This is a bad "solution".

from dxvk.

Blisto91 avatar Blisto91 commented on August 23, 2024

No one has said it was a solution. The original issue stills stands ofc.

from dxvk.

mirh avatar mirh commented on August 23, 2024

Unorthodox "chaining", but anything will do when grasping at straws I guess..
Can you track down which option may be the fix?

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

ForceWindowedMode = 1 is working
(if set to 0, then game stuck at black screen)

Which is i noticed but not remember, I will check tomorrow again

from dxvk.

mirh avatar mirh commented on August 23, 2024

I reckon you already tried to play with dxvk's dpiAware, enableDialogMode, and deviceLossOnFocusLoss options?

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

This is the only option used always enableDialogMode

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

@mirh I Try with this, but still black screen stuck

dxvk.hud=full
d3d9.enableDialogMode=True
d3d9.dpiAware=True
d3d9.deviceLossOnFocusLoss=True

& In D3D9-Wrapper, This Line set to 1 is Working ForceWindowedMode = 1

from dxvk.

mirh avatar mirh commented on August 23, 2024

My question was if you tried to toggle each of them, to see if anything changed.
But I guess we already have some kind of lead. Either it's something with the screen dimensions or the window presentation parameters/styles?

You could try dxwrapper perhaps instead, to pinpoint this accurately (with the added benefit that AFAICT you wouldn't need this wacky ass system dll hackjob to use dxvk together). Just remember to also set EnableD3d9Wrapper=1 and then you have endless window knobs.

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024
  1. I try almost all options from d3d9-wrapper.... but without ForceWindowedMode = 1 game stuck

  2. dxwrapper only load other dll instead of system dll if dxwrapper renamed to that dll file
    eg. dxwrapper renamed to d3d9.dll then load dxvk dll from some location.... and these options still not give ability to load dxwrapper(d3d9.dll) and d3d9-wrapper (d3d9.dll) at same time

  3. also game still stucks when using dxwrapper WndowedMode Options (when using DXVK)

  4. currently i use these hex methods which is mentioned hare (Only for testing)
    eg. dxvk dll renamed to d9vk.dll and paste to SysWOW64 & hex edited d3d9-wrapper dll in game directory

from dxvk.

mirh avatar mirh commented on August 23, 2024

You don't have to use d3d9-wrapper with dxwrapper (even though I guess you could try it for starters, to make sure you got the syntax of the RealDllPath value right).
And if EnableWindowMode=1 doesn't do the trick.. then indeed it must not be just a matter of windowed mode alone (maybe check FullscreenWindowMode, WindowModeBorder and DisableMaxWindowedMode for starters).

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

Yes! Try and working with dxwrapper windowed mode... but not stable
like no-sound and also newGame stuck (even without DXVK)

But I think its Confirm! issue is fixed by WindowedModes related tweaks...

from dxvk.

Sagatt avatar Sagatt commented on August 23, 2024

Yes! Try and working with dxwrapper windowed mode... but not stable like no-sound and also newGame stuck (even without DXVK)

But I think its Confirm! issue is fixed by WindowedModes related tweaks...

Have you tried using GangstaPatch?

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

@Sagatt yes tried... But it's trusted?

Gangstapatch look like stealing entire code of silentPatch, fusionFix, d3d9Wrapper and some other mods (which is already open-source) and compile into one.... no mention credit and not mentioned what actually change? It really trusted?

from dxvk.

Sagatt avatar Sagatt commented on August 23, 2024

@Sagatt yes tried... But it's trusted?

Gangstapatch look like stealing entire code of silentPatch, fusionFix, d3d9Wrapper and some other mods (which is already open-source) and compile into one.... no mention credit and not mentioned what actually change? It really trusted?

I never had any problems using it, BUT i also wish their code was open source, it used to be so frankly I think it's stupid to keep it closed, for that reason I get where you're coming from.

from dxvk.

mirh avatar mirh commented on August 23, 2024

But I think its Confirm! issue is fixed by WindowedModes related tweaks...

Which one specifically?

from dxvk.

niresh1234 avatar niresh1234 commented on August 23, 2024

But I think its Confirm! issue is fixed by WindowedModes related tweaks...

Which one specifically?

ForceWindowedMode = 1 no matter which mode use like window or borderless

now one thing about DxWrapper

[General]
RealDllPath                = C:\DXVK\d3d9.dll

[Compatibility]
EnableD3d9Wrapper          = 1

This two work individually (no matter if use at same time or one ON and other OFF)

[d3d9]
EnableWindowMode           = 1      // like windowedmode
FullscreenWindowMode       = 1      // like borderkess windowedmode

something is working OTHER THEN EXCLUSIVE FULLSCREEN MODE

I Mean DXVK only Crash(notWorking) with Game Exclusive/Default Fullscreen Mode

from dxvk.

mirh avatar mirh commented on August 23, 2024

I thought you had said the game still got suck when using dxwrapper WindowedMode options, but I guess you meant in the menu then? Anyhow, FullscreenWindowMode should be it then.

And even that has a bunch of things it does.. It changes the window style, it forces the window position and it peeks the window to avoid the desktop thinking it's unresponsive.
Either there's some odd ass magic with the former, or the game is doing something weird with the window size..

Can you try to play with the windows compatibility settings (from the game executable properties), or with the InitialWindowPosition dxwrapper options?

from dxvk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.