Page 12 of 14

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 1:38 pm
by Darksaber
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
:( :(

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 2:16 pm
by JeremyaFr
Can you try this version?
I've included error messages.

EDIT: link removed

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 3:14 pm
by Darksaber
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

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 3:22 pm
by Darksaber
just tried going back to DDraw.dll 1.3.8 and everything seemed fine

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 3:47 pm
by JeremyaFr
I assume the first preview worked fine ?

I've switched the render method in this version:

EDIT: link removed

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 4:02 pm
by Darksaber
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

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 4:30 pm
by JeremyaFr
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?

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 5:42 pm
by Darksaber
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

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 5:44 pm
by Darksaber
It's already installed

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 6:44 pm
by JeremyaFr
So there is a bug somewhere in my code.

You can try that:

EDIT: link removed

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 7:03 pm
by Darksaber
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

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 8:29 pm
by JeremyaFr
EDIT: link removed

The zip contains several steps to test.

Re: Direct3D 11 via DDraw.dll

Posted: Sat Apr 11, 2020 10:45 pm
by Darksaber
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 :)

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 8:26 am
by JeremyaFr
Thanks for testing.

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

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 8:39 am
by Darksaber
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

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 8:49 am
by JeremyaFr
You can try this:

EDIT: link removed

I'm not sure if this will work.

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 10:06 am
by JeremyaFr
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.

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 10:43 am
by Darksaber
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?????

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 11:48 am
by JeremyaFr
If it is the d2d1 dll, then the game would crash the first time.

One more step:
EDIT: link removed

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 12:34 pm
by Darksaber
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:

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 1:17 pm
by JeremyaFr
UPDATE

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

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 1:22 pm
by Darksaber
Thanks again Jeremy :)

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 3:37 pm
by haui
does this dll work with the new effects and the dynamic cockpit?

Re: Direct3D 11 via DDraw.dll

Posted: Sun Apr 12, 2020 3:50 pm
by JeremyaFr
Not yet.

We have to wait for blue_max to merge the changes.

Re: Direct3D 11 via DDraw.dll

Posted: Mon Apr 13, 2020 8:29 am
by haui
ok that's what i understand then I'm on the right way, Thanks