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
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Jan 25, 2015 5:51 pm

ShadowOwl wrote:There's one very small problem I've noticed. During the briefings in concourse the 3D models do no fit with the grid model which is shown shortly before any full 3D model, the 3d models are a bit too small. Couldn't do further testing yet but this is obviously somehow related to the Concourse3DScale value in the ddraw.cfg. The default value doesn't make the models fit with the grid, you might want to change that with your next release.

I will do some tests when I get around to it.
Try with a value of 0.6. It seems to work.

User avatar
ShadowOwl
Cadet 3rd Class
Posts: 33
Joined: Sat Jan 24, 2015 12:47 am

Post by ShadowOwl » Sun Jan 25, 2015 5:58 pm

About the scaling issue during briefings: 0.63 is the closest I've come to the original scale, I can do further testing to get a more you might want to re-adjust the default value later.

Referring to this post: posting.php?mode=quote&f=10&p=147967
The problem is fixed for me at 1366x768 and 1360x768. Good job! :)

Edit: A value of 0.6237 is the closest thing I've came to the original. It might be possible to find an even better value but I'm not sure if it's worth all the trouble. Check out this album for a comparison: http://imgur.com/a/LW73z

Edit 2: Album & Post to be updated once again...

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

Post by JeremyaFr » Sun Jan 25, 2015 6:55 pm

I use a resolution of 1280x800.

A value of 0.59 seems too low.
Concourse3DScale059.jpg
A value of 0.61 seems to high.
Concourse3DScale061.jpg
A value of 0.6 seems good.
Concourse3DScale060.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
ShadowOwl
Cadet 3rd Class
Posts: 33
Joined: Sat Jan 24, 2015 12:47 am

Post by ShadowOwl » Sun Jan 25, 2015 7:32 pm

Updated my album: http://imgur.com/a/Ubjgd

But I get your point. Since concourse is being rendered at the current desktop resolution (which wasn't the case with the original XWA, always 640x480 there) the scale of the 3D models changes whenever you use a different desktop resolution. Hmm, can anything be done about this?

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

Post by Darksaber » Sun Jan 25, 2015 7:48 pm

Exactly, my res is 1280x1024 (at the moment) and I've set the Concourse3DScale = 0.46

Plus when you add custom craft like the YT1300, we rescaled it, so trying to line it up with the wireframe is impossible
“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
ShadowOwl
Cadet 3rd Class
Posts: 33
Joined: Sat Jan 24, 2015 12:47 am

Post by ShadowOwl » Sun Jan 25, 2015 7:52 pm

Darksaber wrote:Plus when you add custom craft like the YT1300, we rescaled it, so trying to line it up with the wireframe is impossible
Well, it could never be scaled with custom models to begin with. Just talking about the stock models here.

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

Post by Darksaber » Sun Jan 25, 2015 8:13 pm

Ok with testing the same mission your testing but with the XWAUCP installed, it goes through the briefing, you see the YT1300 and the platform, but when you click got to hangar, it starts loading then crashes, I know what causes it, it's the xwaup CorellianTransport2Exterior.opt I tried replacing each opt with the default opts base opt, cockpit and exterior and the exterior makes it crash.

But........ if you skip the briefing and go directly to the hangar it loads, figure that!!

I've looked at the exterior opt there are no errors within it, I haven't a clue why it's making the game crash.

here is the crash report

Log Name: Application
Source: Application Error
Date: 25/01/2015 19:57:43
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: DarkW7
Description:
Faulting application name: XWingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Faulting module name: XWingAlliance.exe, version: 2.0.0.2, time stamp: 0x3765a9b7
Exception code: 0xc0000005
Fault offset: 0x0006162b
Faulting process id: 0x386c
Faulting application start time: 0x01d038d921ae2da9
Faulting application path: C:\Program Files (x86)\LucasArts\Star Wars - X-Wing Alliance\XWingAlliance.exe
Faulting module path: C:\Program Files (x86)\LucasArts\Star Wars - X-Wing Alliance\XWingAlliance.exe
Report Id: 6c7c4b09-a4cc-11e4-9fac-001d7d002f67
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-01-25T19:57:43.000000000Z" />
<EventRecordID>79703</EventRecordID>
<Channel>Application</Channel>
<Computer>DarkW7</Computer>
<Security />
</System>
<EventData>
<Data>XWingAlliance.exe</Data>
<Data>2.0.0.2</Data>
<Data>3765a9b7</Data>
<Data>XWingAlliance.exe</Data>
<Data>2.0.0.2</Data>
<Data>3765a9b7</Data>
<Data>c0000005</Data>
<Data>0006162b</Data>
<Data>386c</Data>
<Data>01d038d921ae2da9</Data>
<Data>C:\Program Files (x86)\LucasArts\Star Wars - X-Wing Alliance\XWingAlliance.exe</Data>
<Data>C:\Program Files (x86)\LucasArts\Star Wars - X-Wing Alliance\XWingAlliance.exe</Data>
<Data>6c7c4b09-a4cc-11e4-9fac-001d7d002f67</Data>
</EventData>
</Event>

And it only crash when you see the rotating YT1300, on mission 3 this doesn't show so the mission loads crazy!!!

Edit: It just doesn't happen with the Cort, it happens when rendering the Medium Transport and the YT2400
Joining the rebellion mission 2 it crashes with either the exteriors for the T/F, T/I or T/B, this is becoming ridicules now, each craft can't have something wrong with them, we would have heard about this years ago!

I'm not sure it has anything to do with the craft, it's to do with the rendering of the craft, I've just edited the mission 1 roughly and remove the parts in the briefing where the craft render, because they where taken out the mission loaded.
“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
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Jan 25, 2015 9:36 pm

This crash indicates that the strings of the hangar menu hud are not in memory. I don't know why.
Maybe when the game displays the 3d model on briefing, part of the memory was overwritten.
This happens with or without the new ddraw.dll.
The OPTs are fine.
I will investigate the crash.

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

Post by Darksaber » Sun Jan 25, 2015 9:41 pm

Thank you, I was start to get mad with myself wonder what was wrong with the opts :) feel a little relieved, but would still like to know why the crashing
“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

TeenTin
Recruit
Posts: 1
Joined: Mon Jan 26, 2015 2:03 am

Post by TeenTin » Mon Jan 26, 2015 2:12 am

I am very happy that some nice guys are finally paying attention at and trying to fix this problem.

However, there is another problem which is also in need of attention. At the middle top of the cockpit, the two "icons" are not alight appropriately, relative to the "numbers". Also, the there some "broken words" at the top left and right of the cockpit. Hope this can be fixed.

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

Post by Darksaber » Mon Jan 26, 2015 10:07 am

TeenTin I'll point you to this thread XWA Font Fixes as your problem looks as though it's related more to a Font problem than a Direct3D 11 via DDraw.dll problem :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
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Jan 26, 2015 5:27 pm

UPDATE
Here is the version 1.3:
xwa_ddraw_d3d11.1.3.zip

The changes since version 1.2 are:
  • Fix concourse 3D scale
  • Fix distorded starfield
  • Fix distorded map grid
  • Fix missing parts on concourse screenshots
Note:
The scaling issue on briefing is not totally fixed.

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

Post by Darksaber » Mon Jan 26, 2015 6:12 pm

Thanks Jeremy :)

Did you take a look into the crash with the rendered craft in the mission briefings??
“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

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Tue Jan 27, 2015 10:03 am

Also, quick question. What is the difference between your base file "xwa_ddraw_d3d11.zip and version xwa_ddraw_d3d11.1.3.zip ?
They both have same modificaiton date. Confusing. Plus there is ...1.1.zip and the ....1.2.zip version. Thanks.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

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

Post by JeremyaFr » Tue Jan 27, 2015 5:03 pm

xwa_ddraw_d3d11.zip contains the latest version (currently it is the version 1.3).
xwa_ddraw_d3d11.1.3.zip contains the version 1.3.
xwa_ddraw_d3d11.1.2.zip and xwa_ddraw_d3d11.1.1.zip contain the previous versions.

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Fri Jan 30, 2015 2:30 am

Thanks Jeremy. Might be less confusing to just remove xwa_ddraw_d3d11.zip file. The version number tacked on at the end is very helpful. Anyway fantastic job.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
ShadowOwl
Cadet 3rd Class
Posts: 33
Joined: Sat Jan 24, 2015 12:47 am

Post by ShadowOwl » Mon Feb 16, 2015 11:37 pm

I guess this is a known problem:
While using 32 bit mode via XWA Hacker the target cursor on the map is totally off. Can this somehow be fixed with the new DDraw.dll?

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

Post by JeremyaFr » Tue Feb 17, 2015 9:11 pm

Hello,
Without the new DDraw.dll, when using 32-bit mode via XWA Hacker, there are a few graphical glitches. The most visible one is the rosy colors in the menu.
With the new DDraw.dll, the rendering is 32-bit, regardless the use of 16-bit or 32-bit mode via XWA Hacker. When using 32-bit mode, I have corrected the rosy colors in the menu. For the target cursor on the map, I can't correct it from the dll without breaking the grid. It would be better to correct it from the exe.
When using the new DDraw.dll with the 16-bit mode, a known side effect is that the in-flight screenshots taken with the in-game feature are in 16-bit, resulting in a loss of image quality. Except that, there is no need to use the 32-bit mode via XWA Hacker with the new DDraw.dll.

Weedman4lbg
Recruit
Posts: 5
Joined: Wed Feb 18, 2015 4:20 pm

Post by Weedman4lbg » Thu Feb 19, 2015 8:23 pm

Hi fellow pilots :), I use the original two cd version (v2.02) with this new wrapper (v1.1.3) and it's great but I have little glitches within the hangar...

My system: win7 x64 with 7970 GPU and 2600K CPU, XWAUCPv1.0 is installed, xwahacker was used only for res tweak, I use "RunFirst.exe" to set only one core for the game...

Video drivers: 14.301.1013-141117a-177876E (14.11.2 Beta)

If anyone know a way to fix these glitches (view the attachments for more details) I will be very, very grateful.
XWingAlliance 2015-02-19 21-41-25-42.jpg
XWingAlliance 2015-02-19 21-41-11-18.jpg
XWingAlliance 2015-02-19 21-40-32-72.jpg
You do not have the required permissions to view the files attached to this post.

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

Post by JeremyaFr » Thu Feb 19, 2015 8:59 pm

Hello,
In the Downloads section,
  • download XwaExePatcher and apply the recommanded fixes (triangling and wireframe overlay)
  • download and install xwa_hook_main and xwa_hook_d3dinfos_textures
This will fix the glitches in the hangar.

Weedman4lbg
Recruit
Posts: 5
Joined: Wed Feb 18, 2015 4:20 pm

Post by Weedman4lbg » Thu Feb 19, 2015 10:11 pm

JeremyaFr wrote:Hello,
In the Downloads section,
  • download XwaExePatcher and apply the recommanded fixes (triangling and wireframe overlay)
  • download and install xwa_hook_main and xwa_hook_d3dinfos_textures
This will fix the glitches in the hangar.
Tnx man u made me happy once again :) btw I've applied only the recommanded fixes from XwaExePatcher + xwa_hook_main and the hangar glitches are gone.

If I apply xwa_hook_d3dinfos_textures the game crashes after load...

I assume it's ok to play only with the recommended patches + xwa_hook_main ... :)

Many tnx to all involved in this great forum!!!

User avatar
ShadowOwl
Cadet 3rd Class
Posts: 33
Joined: Sat Jan 24, 2015 12:47 am

Post by ShadowOwl » Fri Feb 20, 2015 12:37 am

JeremyaFr wrote:Except that, there is no need to use the 32-bit mode via XWA Hacker with the new DDraw.dll.
Hmmm, I don't really get why GOG is using the 32-bit mode then. Same applies to the forced resolution of 800x600. Maybe I should try to contact GOG support again.

Anyway, some more questions: Does DDraw.dll work on Windows XP (since DirectX 11 is required)? What happens if you launch XWA on XP with the DDraw.dll present in the XWA folder?

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

Post by JeremyaFr » Fri Feb 20, 2015 1:53 am

# xwa_ddraw_d3d11 on Windows XP:
xwa_ddraw_d3d11 requires DirectX 11 wich is not available on Windows XP. If you launch XWA on XP with the new DDraw.dll, you will see an error message saying that d3d11.dll is missing.

# 32bitmode patch
* This apply without using the new DDraw.dll
On some systems (depending on OS, video card and drivers version), XWA doesn't work correctly while in 16-bit mode.

# force800x600 patch
The point of forcing 800x600 is to prevent the game from changing the resolution choice. After the game sets the resolution, it resets the resolution option using the new resolution width. So when the user replace a resolution with a new resolution whose the width corresponds to an other resolution width, the game changes the resolution choice. It would be better to disable that rather than forcing a resolution.

# default installation
In general, it is not recommended to apply to a default installation the patches that are specific to some systems. If included, they should be opt-in.

Weedman4lbg
Recruit
Posts: 5
Joined: Wed Feb 18, 2015 4:20 pm

Post by Weedman4lbg » Fri Feb 20, 2015 10:15 am

Weedman4lbg wrote:
JeremyaFr wrote:Hello,
In the Downloads section,
  • download XwaExePatcher and apply the recommanded fixes (triangling and wireframe overlay)
  • download and install xwa_hook_main and xwa_hook_d3dinfos_textures
This will fix the glitches in the hangar.
Tnx man u made me happy once again :) btw I've applied only the recommanded fixes from XwaExePatcher + xwa_hook_main and the hangar glitches are gone.

If I apply xwa_hook_d3dinfos_textures the game crashes after load...

I assume it's ok to play only with the recommended patches + xwa_hook_main ... :)

Many tnx to all involved in this great forum!!!
I'm having some random crashes for example when hitting the Esc key within the hangar...

I've applied only the recommanded fixes from XwaExePatcher + xwa_hook_main

If I apply xwa_hook_d3dinfos_textures the game crashes during the loading...

The reason for this random crashes may be because I'm playing without xwa_hook_d3dinfos_textures but I'm not shure... And I don't know why the game crashes after applying xwa_hook_d3dinfos_textures, it should be something on my side.....

Any help is highly appreciated... :hilfe:
I use the original two cd version (v2.02) with this new wrapper (v1.1.3)

My system: win7 x64 with 7970 GPU and 2600K CPU, XWAUCPv1.0 is installed, xwahacker was used only for res tweak, I use "RunFirst.exe" to set only one core for the game...

Video drivers: 14.301.1013-141117a-177876E (14.11.2 Beta)

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

Post by JeremyaFr » Fri Feb 20, 2015 5:32 pm

# With xwa_hook_main, you have some random crashes.
Installing xwa_hook_main alone has no effect. So it should not cause any crash.

# xwa_hook_d3dinfos_textures causes crash during loading
Have you followed all the instructions in the readme files?
If you reduce the size value in hook_d3dinfos_textures.cfg (for instance, by setting Size = 2000), does the crash occur?

Post Reply