Hook_D3d.dll Bug Report

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Post Reply

Hook_D3d.dll Bug Report

User avatar
Darksaber
Vice Admiral
Posts: 10932
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Mon May 04, 2020 2:10 pm

I've found a bug with Hook_D3d.dll

I tracked it down by first replacing DDraw.dll for older versions which didn't help as the problem persisted

I only went back as far as 1.1.3.6

I then removed each one of the hooks start with the newest dated, when it came to Hook_D3d.dll I removed it and the problem went away

I then went back to Ddraw.dll 1.1.3.10 again it was fine

I better show you the bug, and explain, while in the hangar I noticed while pressing the numberpad keys to look around that the shadows and transparency of the craft and objects kept disappearing, wait a few minutes and they would reappear then again disappear

Keypad 1
like so
flightscreen1a.jpg
.
then they appear and disappear sporadically
.
flightscreen2a.jpg
.
Keypad 3
.
flightscreen3a.jpg
.
You can see the workstand shadow has clearly gone, but look at the only craft they have no shadows, then the workstands shadow appears but the othe craft shadows are still missing
.
flightscreen4a.jpg
.
These are with the Hook_D3d.dll removed, this is how it should look with every transparency and shadows
.
flightscreen5a.jpg
.
flightscreen6a.jpg
.
So Jeremy could you possibly take a look at the Hook_D3d.dll please :)
Thank you
You do not have the required permissions to view the files attached to this post.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2453
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon May 04, 2020 3:08 pm

Thanks for the bug report.
I will take a look.

User avatar
Darksaber
Vice Admiral
Posts: 10932
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue May 05, 2020 5:57 pm

Or this! Bump!
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2453
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue May 05, 2020 6:57 pm

I can't reproduce the problem. :(

User avatar
Darksaber
Vice Admiral
Posts: 10932
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue May 05, 2020 8:07 pm

I think you've have 4 releases of this hook and each one I get disappearing shadows and transparency's

Is this hook actually necessary?
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2453
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue May 05, 2020 8:16 pm

The purpose of this hook is to improve performance of the game 3d engine.
If you don't have performance issue then the hook is not necessary.

User avatar
Darksaber
Vice Admiral
Posts: 10932
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue May 05, 2020 8:20 pm

To be brutally honest I don't actually play the game, I just test stuff in skirmish and the proving grounds lol

Don't you need this hook for Blue Max's effects though?
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2453
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue May 05, 2020 8:36 pm

I think it can work without.

User avatar
Darksaber
Vice Admiral
Posts: 10932
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue May 05, 2020 8:37 pm

Thanks for everything :)
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

Kampher
Cadet 2nd Class
Posts: 59
Joined: Tue May 09, 2006 11:01 pm

Post by Kampher » Tue May 05, 2020 9:09 pm

Just as a test I turned this hook off and it fudges with dynamic cockpits and Blue's effects. I would leave this on.

User avatar
Darksaber
Vice Admiral
Posts: 10932
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue May 05, 2020 9:11 pm

at present I don't have them installed
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
blue_max
Lieutenant Commander
XWAU Member
Posts: 1170
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Thu May 07, 2020 4:45 pm

Kampher wrote:
Tue May 05, 2020 9:09 pm
Just as a test I turned this hook off and it fudges with dynamic cockpits and Blue's effects. I would leave this on.
Sorry; but this is not true. To properly disable the hook_d3d you need to remove/disable the DLL and also modify the cfg file to say "IsHookD3DEnabled = 0". I just double-checked and all the effects and DC work fine even with this hook disabled... unless you did something else, of course, in which case feel free to report the bug again.

Since we're in this topic: Jeremy, I updated my hooks using your tool yesterday and the default setting for "IsHookD3DEnabled" seems to be 0. So, this causes the geometry to be messed up since the hook is actually present in the downloads (I just copied all the files downloaded from the tool into my XWA directory).

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2453
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu May 07, 2020 6:09 pm

UPDATE
I've updated the d3d hook. Now it is enbaled by default.

It was disabled by default because it requires a DDraw update. Now the the DDraw dll supports it, the hook can be enabled by default. I've changed that.

Kampher
Cadet 2nd Class
Posts: 59
Joined: Tue May 09, 2006 11:01 pm

Post by Kampher » Thu May 07, 2020 7:13 pm

blue_max wrote:
Thu May 07, 2020 4:45 pm
Kampher wrote:
Tue May 05, 2020 9:09 pm
Just as a test I turned this hook off and it fudges with dynamic cockpits and Blue's effects. I would leave this on.
Sorry; but this is not true. To properly disable the hook_d3d you need to remove/disable the DLL and also modify the cfg file to say "IsHookD3DEnabled = 0". I just double-checked and all the effects and DC work fine even with this hook disabled... unless you did something else, of course, in which case feel free to report the bug again.

Since we're in this topic: Jeremy, I updated my hooks using your tool yesterday and the default setting for "IsHookD3DEnabled" seems to be 0. So, this causes the geometry to be messed up since the hook is actually present in the downloads (I just copied all the files downloaded from the tool into my XWA directory).
Hi Blue. I merely deleted the .dll but forgot to tell the cfg file to say "IsHookD3DEnabled = 0". My mistake!

User avatar
blue_max
Lieutenant Commander
XWAU Member
Posts: 1170
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Thu May 07, 2020 7:23 pm

Kampher wrote:
Thu May 07, 2020 7:13 pm
Hi Blue. I merely deleted the .dll but forgot to tell the cfg file to say "IsHookD3DEnabled = 0". My mistake!
No worries, glad we got to the bottom of this.

@Jeremy: Thanks!

Post Reply