Direct3D 11 via DDraw.dll

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

Moderator: JeremyaFr

Post Reply

Re: Direct3D 11 via DDraw.dll

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

Post by Darksaber » Sat Apr 11, 2020 1:38 pm

Crash report

I first got this

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: d2d1.dll, version: 6.2.9200.16765, time stamp: 0x528bf6b2
Exception code: 0xc0000005
Fault offset: 0x00226c4f
Faulting process id: 0x2258
Faulting application start time: 0x01d61004ab82ec60
Faulting application path: C:\Program Files (x86)\LucasArts\X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Windows\system32\d2d1.dll
Report Id: ef986c0f-7bf7-11ea-8349-001d7d002f67
So I removed Blue Max's effects files and it still crashed
giving the report

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: d2d1.dll, version: 6.2.9200.16765, time stamp: 0x528bf6b2
Exception code: 0xc0000005
Fault offset: 0x00226c4f
Faulting process id: 0x9e0
Faulting application start time: 0x01d61005483e1fe7
Faulting application path: C:\Program Files (x86)\LucasArts\X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Windows\system32\d2d1.dll
Report Id: 8cd7bb88-7bf8-11ea-8349-001d7d002f67
:( :(
“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: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Apr 11, 2020 2:16 pm

Can you try this version?
I've included error messages.

EDIT: link removed

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

Post by Darksaber » Sat Apr 11, 2020 3:14 pm

Ok I tried it but I'm not getting any error messages

Where would I find them?

It's strange, I start the game and if I go into skirmish it loads, come out to the concourse then go to the pilot proving ground again it loads

but if I close the game and restart the first try to go into the pilot proving ground, the loading screen appears and that's when it crashes with the following error

I just this got this from the event viewer

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: d2d1.dll, version: 6.2.9200.16765, time stamp: 0x528bf6b2
Exception code: 0xc0000005
Fault offset: 0x00226c4f
Faulting process id: 0x2760
Faulting application start time: 0x01d61011fb151a1f
Faulting application path: C:\Program Files (x86)\LucasArts\X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Windows\system32\d2d1.dll
Report Id: 40e01257-7c05-11ea-8349-001d7d002f67
seems to be random I loaded a mission fine, it's exactly the same hangar and craft, come out of it to the concourse and try to load the pilot proving ground, it crashed, with a slightly different error

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: d2d1.dll, version: 6.2.9200.16765, time stamp: 0x528bf6b2
Exception code: 0xc0000005
Fault offset: 0x00226c4f
Faulting process id: 0x26d4
Faulting application start time: 0x01d6101354cc64e5
Faulting application path: C:\Program Files (x86)\LucasArts\X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Windows\system32\d2d1.dll
Report Id: ac83a38c-7c06-11ea-8349-001d7d002f67
“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
Darksaber
Vice Admiral
Posts: 10932
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Apr 11, 2020 3:22 pm

just tried going back to DDraw.dll 1.3.8 and everything seemed fine
“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: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Apr 11, 2020 3:47 pm

I assume the first preview worked fine ?

I've switched the render method in this version:

EDIT: link removed

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

Post by Darksaber » Sat Apr 11, 2020 4:02 pm

I only tested it when you released 1.3.9

Entered a mission it was fine, went back the concourse entered the PPG and it crashed, I have all the latest Hooks removed all the Effects stuff even the readme files lol, tried disabling Vsync, MultisamplingAntialiasing, AnisotropicFiltering still the same

This is the events log again

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: d2d1.dll, version: 6.2.9200.16765, time stamp: 0x528bf6b2
Exception code: 0xc0000005
Fault offset: 0x00226c4f
Faulting process id: 0x29b4
Faulting application start time: 0x01d61019708f9593
Faulting application path: C:\Program Files (x86)\LucasArts\X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Windows\system32\d2d1.dll
Report Id: dfbb8185-7c0c-11ea-8349-001d7d002f67
“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: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Apr 11, 2020 4:30 pm

You say "Entered a mission it was fine", does it mean that the text was drawn fine the first time you play a mission?

One thing to check:
Is "Platform Update for Windows 7" installed in your system?

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

Post by Darksaber » Sat Apr 11, 2020 5:42 pm

Yes, when it does load the text is fine, I've even test various fonts successfully, it's just the random crashes

Not sure if Platform Update for Windows 7 is installed I'll google it and download

Report back later
“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
Darksaber
Vice Admiral
Posts: 10932
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Apr 11, 2020 5:44 pm

It's already 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
JeremyaFr
Commander
XWAU Member
Posts: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Apr 11, 2020 6:44 pm

So there is a bug somewhere in my code.

You can try that:

EDIT: link removed

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

Post by Darksaber » Sat Apr 11, 2020 7:03 pm

Nope same thing, I can enter a mission, but it crashes when trying load the PPG :?

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: d2d1.dll, version: 6.2.9200.16765, time stamp: 0x528bf6b2
Exception code: 0xc0000005
Fault offset: 0x00226c4f
Faulting process id: 0x265c
Faulting application start time: 0x01d610322041984c
Faulting application path: C:\Program Files (x86)\LucasArts\X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Windows\system32\d2d1.dll
Report Id: 7e2c869d-7c25-11ea-8349-001d7d002f67
I tried uninstalling platform update, so I could reinstall it, but it just hangs, going to reboot and run sfc /scannow to see if there is anything wrong on my system

Or try a new install of XWA

Leave it for now scannow is going to take some time, I'll get back to you tomorrow, thanks for all the help so far :D
“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: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Apr 11, 2020 8:29 pm

EDIT: link removed

The zip contains several steps to test.

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

Post by Darksaber » Sat Apr 11, 2020 10:45 pm

Rebooted and did the scan, it found and fixed a few problems

Same XWA setup as before

Tested again previous DDraw.dll still crashed

I'm not sure how you want me to report this

Used DDraw.cfg you provided

Step 1 - Void = Works fine in tour of duty mission and PPG
Step 2 - ComputeMetricsHook = Works fine in tour of duty mission and PPG
Step 3 - init Direct2D and DirectWrite factories = Works fine in tour of duty mission and PPG
Step 4 - On size changed = Works fine in tour of duty mission and PPG
Step 5 - Begin End Draw = Works fine in tour of duty mission and PPG
Step 6 - Compute scale = Works fine in tour of duty mission and PPG
Step 7 - Hello World - TextFormat = Works fine in tour of duty mission and PPG
Step 8 - Hello World - Brush = Works fine in tour of duty mission and PPG
Step 9 - Hello World - Draw = Works fine in tour of duty mission and PPG, Red Hello World text in top left hand corner when loading and in mission
Step 10 - RenderCharHook = Works fine in tour of duty mission and PPG, Red Hello World text in top left hand corner when loading and in mission, not text in hud element boxes
Step 11 - Text Formats = Works fine in tour of duty mission and PPG, not text in hud element boxes
Step 12 - Color Brush = Works fine in tour of duty mission and PPG, not text in hud element boxes
Step 13 - Select Text Format = Works fine in tour of duty mission and PPG, not text in hud element boxes
Step 14 - Draw Text = Works fine if you load tour of duty mission and then PPG including Verdana text, but if you load PPG first it crashes, tested this a few times, each time loading PPG first crashes, weird

This is the crash report same as before

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: d2d1.dll, version: 6.2.9200.16765, time stamp: 0x528bf6b2
Exception code: 0xc0000005
Fault offset: 0x00226c4f
Faulting process id: 0x14c0
Faulting application start time: 0x01d6104f06385027
Faulting application path: C:\Program Files (x86)\LucasArts\X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Windows\system32\d2d1.dll
Report Id: 49abd87e-7c42-11ea-8c7b-001d7d002f67
Hope this helps :)
“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: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Apr 12, 2020 8:26 am

Thanks for testing.

I think I can now see which line of code is bugged.
I will try to fix it.

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

Post by Darksaber » Sun Apr 12, 2020 8:39 am

Just testing on a fresh install

The other steps worked as before
Step 14 - Draw Text again was exactly the same result as previously

Hoping it's just a bugged line of code and not my system, I don't fancy scrubbing it and doing a reinstall of everything it takes sooooooooo loooooonnngggg lol

I will have to get a new PC at some point this year, (really don't want to move on to Win10 :( ) but this lockdowns put that on hold for a moment
“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: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Apr 12, 2020 8:49 am

You can try this:

EDIT: link removed

I'm not sure if this will work.

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

Post by JeremyaFr » Sun Apr 12, 2020 10:06 am

Darksaber wrote:
Sun Apr 12, 2020 8:39 am
Hoping it's just a bugged line of code and not my system
I think that it is not your system.

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

Post by Darksaber » Sun Apr 12, 2020 10:43 am

Sorry Jeremy it crashed again :(

Works fine if you load tour of duty mission and then PPG, but if you load PPG first it crashes

Sorry about this it must be frustrating as hell :kopfwand:

Code: Select all

Faulting application name: XwingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: d2d1.dll, version: 6.2.9200.16765, time stamp: 0x528bf6b2
Exception code: 0xc0000005
Fault offset: 0x00226c4f
Faulting process id: 0x16e4
Faulting application start time: 0x01d610b67e85a8b5
Faulting application path: C:\Program Files (x86)\LucasArts\X-Wing Alliance\XwingAlliance.exe
Faulting module path: C:\Windows\system32\d2d1.dll
Report Id: c14517e6-7ca9-11ea-8c7b-001d7d002f67
Could it be that I have a bad d2d1.dll?????
“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: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Apr 12, 2020 11:48 am

If it is the d2d1 dll, then the game would crash the first time.

One more step:
EDIT: link removed

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

Post by Darksaber » Sun Apr 12, 2020 12:34 pm

Waaahoooo that worked :D

Tried different combinations of starting going through different doors , everything loads fine

Thanks so much for your time and patients :D

Guess you can call that fixed :gold: :gold: :cheers:
“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: 2463
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Apr 12, 2020 1:17 pm

UPDATE

Hello,
I've uploaded v1.3.9.1 with the fix.

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

Post by Darksaber » Sun Apr 12, 2020 1:22 pm

Thanks again Jeremy :)
“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

haui
Cadet 3rd Class
Posts: 45
Joined: Mon Apr 15, 2019 9:29 am
Contact:

Post by haui » Sun Apr 12, 2020 3:37 pm

does this dll work with the new effects and the dynamic cockpit?

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

Post by JeremyaFr » Sun Apr 12, 2020 3:50 pm

Not yet.

We have to wait for blue_max to merge the changes.

haui
Cadet 3rd Class
Posts: 45
Joined: Mon Apr 15, 2019 9:29 am
Contact:

Post by haui » Mon Apr 13, 2020 8:29 am

ok that's what i understand then I'm on the right way, Thanks

Post Reply