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 Oct 05, 2014 7:09 pm

This don't come from the drivers.

Just in case, I have recompiled the dll.

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Sun Oct 05, 2014 7:19 pm

JeremyaFr wrote:This don't come from the drivers.

Just in case, I have recompiled the dll.
Same error, but different details.

https://dl.dropboxusercontent.com/u/885 ... 282%29.txt

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

Post by JeremyaFr » Sun Oct 05, 2014 9:12 pm

Hi,
I've inspected the code where the crash occured.
The code fills a struct with 0. I don't understand why it crashes on your system.

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Mon Oct 06, 2014 5:49 pm

I tried to reinstall previous video drivers without good results. I tried to run the launcher in compatibility mode: nothing. Maybe i'm missing something like another version of Microsoft Visual C++? Could be usefull reinstalling everyone of them?

Anyway this is my dxdiag: https://www.dropbox.com/s/wdl9ufum1dnvt ... g.txt?dl=0
If anyone will have something could be useful, please state it 'cause i'm missing this game :)

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

Post by JeremyaFr » Mon Oct 06, 2014 7:21 pm

Here is a test console app:
EDIT: link removed
Last edited by JeremyaFr on Tue Oct 07, 2014 3:53 pm, edited 1 time in total.

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Mon Oct 06, 2014 8:05 pm

It seems that i was missing a dll.
Now i get this, using the dll inside your test folder: https://www.dropbox.com/s/v8vq3ys68pqgr ... 9.txt?dl=0

Did you change something?

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

Post by JeremyaFr » Mon Oct 06, 2014 9:02 pm

Anco wrote:It seems that i was missing a dll.
What dll was it?
Maybe you can try to reinstall the c++ runtime.
Anco wrote:Did you change something?
I have removed unnecessary struct emptyings.
Now an access violation (c0000005) occurs on reading in strncpy from xwa exe.

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Mon Oct 06, 2014 10:01 pm

JeremyaFr wrote:What dll was it?
Maybe you can try to reinstall the c++ runtime.
It was msvcp120.dll. I reinstalled a c++ runtime and the problem seemed to be gone.
JeremyaFr wrote: I have removed unnecessary struct emptyings.
Now an access violation (c0000005) occurs on reading in strncpy from xwa exe.
So you think it is still related to some c++? Sorry but i'm bit ignorant in this part of programming

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

Post by JeremyaFr » Mon Oct 06, 2014 10:22 pm

The question is: why the dll doesn't crash on an other system?

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Tue Oct 07, 2014 3:19 pm

This is really hilarious...

I'm running it without problems in the Preview Version of Windows 10 that i'm trying on another PC. (obviously now i've got problems make the system recognizing my joystick lol). Now i can't really understand why in my windows 7 pc it is crashing. And i can't understand why this game hates me :D

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

Post by JeremyaFr » Tue Oct 07, 2014 3:59 pm

No, the game doesn't hate you.
I think that, on your Win7 system, there is a problem with the c++ runtime dlls.

On your Win10tp, if a device is not recognized, you can install the drivers made for Win8 or older ones.

AlexNCC1989
Recruit
Posts: 5
Joined: Mon Nov 18, 2013 7:09 pm

Post by AlexNCC1989 » Sat Oct 11, 2014 12:06 am

Is there a solution to the choppy framerate? you mentioned about a cache, and that you can disable it, is there a way to disable it?

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

Post by JeremyaFr » Sun Oct 12, 2014 2:53 pm

Hi,

The cache I have mentioned is related to textures. I suspected it to not work correctly. Therefore I have traced its activities. What I have found is that the cache does what it was designed for. So there is none anomaly here.

When you measure the xwa process activity, you can see that the gpu usage is low and the cpu usage (on one core) is high.

AlexNCC1989
Recruit
Posts: 5
Joined: Mon Nov 18, 2013 7:09 pm

Post by AlexNCC1989 » Mon Oct 13, 2014 3:58 am

I see, The DLL is still a WIP, right? I hope the DLL can make the game run as smoothly like before. The only problem is the frame rate... (I don't care less about the starfield! I just want to blow up some TIEs)

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

Post by JeremyaFr » Tue Oct 14, 2014 9:50 pm

An update:
  • a couple of performance optimizations (reduce fps drops)
  • added SSE2 requirement in the readme

User avatar
Ramshu
Cadet 2nd Class
Posts: 74
Joined: Sat Sep 21, 2013 10:42 am
Contact:

Post by Ramshu » Tue Oct 14, 2014 11:16 pm

new issue detected!!

When use your ddraw.dll, i can't record or stream the game using nvidia shadowplay.

"Nasios pa vola"

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Wed Oct 15, 2014 9:51 am

With the new update, it works even on my windows7 system! Thank you very much!

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

Post by Darksaber » Wed Oct 15, 2014 12:33 pm

Plus with this new dll, in the Pilot Proving Ground, in the hangar there seems to be some Infinite Triangulation where there wasn't with the previous dll just the issue with the FPS
“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 » Wed Oct 15, 2014 3:27 pm

The triangling issues are not caused by the dll. They are caused by the exe.

With the previous dll, triangling issues were not clearly visible. Now, they are more visible.

To solve these issues, the following modifications are needed:

Code: Select all

At offset 193C4A, replace 750C with 9090.
At offset 193C53, replace 02 with 08.
See "Triangling to infinity" problem workaround for more informations.

User avatar
Ramshu
Cadet 2nd Class
Posts: 74
Joined: Sat Sep 21, 2013 10:42 am
Contact:

Post by Ramshu » Wed Oct 15, 2014 6:08 pm

JeremyaFr wrote:The triangling issues are not caused by the dll. They are caused by the exe.

With the previous dll, triangling issues were not clearly visible. Now, they are more visible.

To solve these issues, the following modifications are needed:

Code: Select all

At offset 193C4A, replace 750C with 9090.
At offset 193C53, replace 02 with 08.
See "Triangling to infinity" problem workaround for more informations.
Lol nice info, thanks!

I have good news, using the last ddraw.dll "ligthing/difuse ligthing" works perfect.

"Nasios pa vola"

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

Post by Darksaber » Wed Oct 15, 2014 9:17 pm

Yes, thank you very much :)
“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

AlexNCC1989
Recruit
Posts: 5
Joined: Mon Nov 18, 2013 7:09 pm

Post by AlexNCC1989 » Thu Oct 16, 2014 4:08 am

JeremyaFr, I wish I could shake your hand right f--king now!! The game works excellent! Now run a few tests on it to get the perfect graphics setup.

Thank You so much for giving this game new life.

buartos
Recruit
Posts: 1
Joined: Thu Oct 16, 2014 6:44 am

Post by buartos » Thu Oct 16, 2014 6:48 am

This is wonderful, I was searching for long time solution for this problem. At last it allows me to play in 3D HW mode. But there is one problem I encounter, occationally when flying games tent to freeze (happens on button press or just when flying), there is on error message. Could you verify that is related to your .dll. I am pretty sure it did not happened when I was playining before using your library.

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Thu Oct 16, 2014 2:28 pm

Sometimes i get this CTD:
https://dl.dropboxusercontent.com/u/885 ... 284%29.txt

I think it's the problem that buartos has reported before this post.

H-Lock
Recruit
Posts: 1
Joined: Fri Oct 17, 2014 9:26 am

Post by H-Lock » Fri Oct 17, 2014 9:44 am

Thanks a lot! I haven't played XWA in four years, and boy does this do a big difference!
After applying the upgrade I had a bad fps in missions, but with the new dll, everything works flawlessly with my Nvidia Geforce 9800 GT on 64bit Win7. It looks amazing!

I had an issue because i inadvertently installed the 64bit version of the C++ package, and I got an error (0xc000007b), however, when I installed the 32bit version everything went smooth from there!

Keep up the good work! :D

Post Reply