[ERROR] Problem with d3d9.dll

The place for all discussion of the Oculus Rift compatible open source 3D drivers.
Post Reply
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

[ERROR] Problem with d3d9.dll

Post by paul70078 »

Whenever I try to start a game with Perception support I get spamed with this error: "The procedure entry point ??1BaseDirect3D9@@UAE@XZ could not be located in the dynamic link library d3d9.dll"
According to the FAQ I have to copy the dlls in the game folder, but it doesn't work for me.

I get this error with Perception 2.0.3 stable and 2.0.6 nightly.

I hope there is a fix for this problem
Hiradur
One Eyed Hopeful
Posts: 9
Joined: Sat Nov 01, 2014 2:23 am

Re: [ERROR] Problem with d3d9.dll

Post by Hiradur »

You have to put the .dll files in the same (sub)folder of the game where the main executable is.
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

According to the FAQ I have to copy the dlls in the game folder, but it doesn't work for me.
I tried it, but it doesn't work.

EDIT: But thanks for the fast response
Hiradur
One Eyed Hopeful
Posts: 9
Joined: Sat Nov 01, 2014 2:23 am

Re: [ERROR] Problem with d3d9.dll

Post by Hiradur »

paul70078 wrote:According to the FAQ I have to copy the dlls in the game folder, but it doesn't work for me.
There is a difference between just putting them in the game folder and putting them in a subfolder where the main executable is. For Far Cry they have to be in \FarCry\Bin32 for example. If you did this already and it didn't help then I can only guess that you're trying to run a game in 64bit mode.
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

Yes I meant that.
What du you mean with the 64bit mode? Most games are 32bit only
Hiradur
One Eyed Hopeful
Posts: 9
Joined: Sat Nov 01, 2014 2:23 am

Re: [ERROR] Problem with d3d9.dll

Post by Hiradur »

64 bit games probably won't work because the *.dll are compiled for 32 bit. If your games are 32 bit than this can't be the problem. Still looks like that the game is accessing the wrong d3d9.dll. Have you tried to replace d3d9.dll in C:\Windows\SysWOW64 (backup first!)?
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

With the 32Bit one?
Hiradur
One Eyed Hopeful
Posts: 9
Joined: Sat Nov 01, 2014 2:23 am

Re: [ERROR] Problem with d3d9.dll

Post by Hiradur »

Yes.
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

The problem is that if I replace the 64BIT d3d9.dll with the 32BIT one, the games don't start anymore. There is no error message. They simple stop from starting.
Maybe it is the best way if I compile virio perception for myself with 64Bit or is there a way to force my system to use the 32Bit directx?
User avatar
DrBeef
Vireio Perception Developer
Vireio Perception Developer
Posts: 328
Joined: Wed Aug 14, 2013 6:20 am
Location: London

Re: [ERROR] Problem with d3d9.dll

Post by DrBeef »

Hi

For a start I am not sure I would recommend replacing any of the system DLLs in this manner. You can never be certain what you might break, and the thing with Vireio is it is an injection driver that intercepts D3D calls, but still requires the original direct x 9 to function to call through to.

WHich game are you trying to use Vireio with?, if it isn't one of the standard supported games (working on a list at the moment), then it might require additional tweaks/code changes for it to work properly.
Hiradur
One Eyed Hopeful
Posts: 9
Joined: Sat Nov 01, 2014 2:23 am

Re: [ERROR] Problem with d3d9.dll

Post by Hiradur »

C:\Windows\System32 contains 64bit libraries and SysWow64 contains 32bit libraries on Windows x64. Confusing, I know. If your game doesn't start anymore after replacing the d3d9.dll in SysWow64 then the problem might be somewhere else.
is there a way to force my system to use the 32Bit directx?
32 bit applications can only use 32 bit libraries so they use 32 bit DirectX already.
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

Error Message in Antichamber
Mirrors Edge crashes
L4D2 crashes
Skyrim crashes
Borderlands 2 crashes
Borderlands crashes

Borderland gave me a error message:
borderlands vireo error.png
Ok it seems that this error only appears with Antichamber, but the other games crash.
You do not have the required permissions to view the files attached to this post.
User avatar
DrBeef
Vireio Perception Developer
Vireio Perception Developer
Posts: 328
Joined: Wed Aug 14, 2013 6:20 am
Location: London

Re: [ERROR] Problem with d3d9.dll

Post by DrBeef »

Could you post your specs please?, no-one else seems to have quite as serious issues as you are experiencing.

Are you able to run it without the rift in side-by-side mode?
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

Are you able to run it without the rift in side-by-side mode?
What do you mean?

System specs:
Windows 7 64BIT
Vireo Perception 2.0.6 nightly build
Dell Inspiron 17R SE 7720 Notebook
Intel Core i7 3610QM (4 Cores, 8 Threads)
6GB RAM
NVIDIA GeForce GT 650M (used for games)
Intel(R) HD Graphics 4000

I know that a Notebook isn't the best for gaming, but I have no problem
with this games.

Games:

Mirrors Edge:
Perception running + d3d9.dll copied:
crash
Perception running without d3d9.dll copied:
running, but ignores perception *
Without Perception and d3d9.dll
running

Antichamber:
Perception running + d3d9.dll copied:
d3d9 error
Perception running without d3d9.dll copied:
d3d9 error
Without Perception and d3d9.dll
running

Borderlands:
Perception running + d3d9.dll copied:
crash (+Screenshot in post above)
Perception running without d3d9.dll copied:
running, but ignores perception *
Without Perception and d3d9.dll
running

Borderlands 2:
Perception running + d3d9.dll copied:
crash (+Screenshot in attachment below)
Perception running without d3d9.dll copied:
d3d9 error
Without Perception and d3d9.dll
running

L4D2:
Perception running + d3d9.dll copied:
crash
Perception running without d3d9.dll copied:
crash
Without Perception and d3d9.dll
running

Skyrim:
Perception running + d3d9.dll copied:
crash
Perception running without d3d9.dll copied:
crash *
Without Perception and d3d9.dll

*(steam reports the d3d9 error twice before it starts the game)
You do not have the required permissions to view the files attached to this post.
Hiradur
One Eyed Hopeful
Posts: 9
Joined: Sat Nov 01, 2014 2:23 am

Re: [ERROR] Problem with d3d9.dll

Post by Hiradur »

paul70078 wrote:What do you mean?
Disconnect the Rift and set side by side mode in Perception.exe.
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

I test it without rift direct on my screen.
User avatar
DrBeef
Vireio Perception Developer
Vireio Perception Developer
Posts: 328
Joined: Wed Aug 14, 2013 6:20 am
Location: London

Re: [ERROR] Problem with d3d9.dll

Post by DrBeef »

When you say:
Perception running + d3d9.dll copied
You should be copying all the dlls:

d3d9.dll
libfreespace.dll
VRBoost.dll
hijack.dll

without them all there in the game's folder, it will crash.
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

Sorry I wasn't presice in my answer. I copied the files:
* d3d9.dll
* hijack.dll
* libfreespace.dll

I tried to also copy VRboost.dll , but it changed nothing (mirrors edge keeps crashing)
User avatar
DrBeef
Vireio Perception Developer
Vireio Perception Developer
Posts: 328
Joined: Wed Aug 14, 2013 6:20 am
Location: London

Re: [ERROR] Problem with d3d9.dll

Post by DrBeef »

I'm afraid I'm at a bit of a loss.. I've not seen such critical issues for so many games before, particularly supported ones (skyrim, L4D2). Is there maybe something else running that could be conflicting?, I'm honestly not sure what the problem is, your system should be ok running these games with Vireio.

I'm afraid you are going to have to play around with it and see if some other application is conflicting maybe?!
User avatar
DrBeef
Vireio Perception Developer
Vireio Perception Developer
Posts: 328
Joined: Wed Aug 14, 2013 6:20 am
Location: London

Re: [ERROR] Problem with d3d9.dll

Post by DrBeef »

Could you run it with trace spy running to catch a debug log, that might reveal something.. possibly not, but it is worth a try.
paul70078
One Eyed Hopeful
Posts: 11
Joined: Sun Nov 02, 2014 3:14 am

Re: [ERROR] Problem with d3d9.dll

Post by paul70078 »

Tried it again and it worked.

I think that the Oculus drive wasn't installed correctly and produced so the fails.

But thanks for your support
User avatar
DrBeef
Vireio Perception Developer
Vireio Perception Developer
Posts: 328
Joined: Wed Aug 14, 2013 6:20 am
Location: London

Re: [ERROR] Problem with d3d9.dll

Post by DrBeef »

Excellent news!!, thanks for letting us know you got it working.
Post Reply

Return to “Development / General Discussion”