X-Wing Alliance VR mod

Here you can find help for how to best run and setup your XWA VR experience.
Post Reply

Re: X-Wing Alliance VR mod

Wiiplay123
Cadet 4th Class
Posts: 16
Joined: Fri Oct 03, 2014 9:08 pm

Post by Wiiplay123 » Sun Dec 27, 2020 11:34 pm

m0rgg wrote:
Fri Dec 25, 2020 11:55 pm
That sounds like you don't have the CockpitLook hook working properly. Either you don't have the setting configured in CockpitLook.cfg (tracker_type = SteamVR) or you don't have the proper hook installed (Hook_CockpitLook.dll).
I've checked for both of those and they're both fine. I posted a video earlier of the same issue but back then it didn't work in the hangar, but now it works in the hangar, but still stops working after I leave the hangar and start the actual mission. It worked fine on Windows 10 last time I checked, but I've never managed to get it working on Windows 7. Really wish I could play on Windows 7 because it's my favorite Windows to use.

The problem with Windows 10 is that the HTC Vive refuses to work on Windows 10 without internet, because Windows 10 doesn't save the drivers that it downloads from Windows Update.

EDIT: Sorry it took so long to reply btw, the internet just came back on today and it reminded me that I meant to check this thread again.

User avatar
m0rgg
Cadet 2nd Class
Posts: 64
Joined: Wed Apr 01, 2020 10:33 pm

Post by m0rgg » Mon Dec 28, 2020 6:12 am

The DLL is compiled with Win10 target, that's probably why it uses the CreateFile2 API you mentioned in the other thread that is not available in Win7 (good troubleshooting btw!).

If the root cause is only that, I can't change it right now but probably there is no strong reason not to compile it with an earlier version of the Windows SDK. blue_max would need to confirm though.

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

Post by blue_max » Wed Dec 30, 2020 7:20 am

m0rgg wrote:
Mon Dec 28, 2020 6:12 am
If the root cause is only that, I can't change it right now but probably there is no strong reason not to compile it with an earlier version of the Windows SDK. blue_max would need to confirm though.
I don't think there's going to be any problem if we switch to an older version of the SDK. We can try that.

Wiiplay123
Cadet 4th Class
Posts: 16
Joined: Fri Oct 03, 2014 9:08 pm

Post by Wiiplay123 » Thu Dec 31, 2020 1:55 am

The main issue is still that Hook_CockpitLook.dll not working right on Windows 7, looks like it was compiled with the newer Windows SDK too and I've tried compiling it myself with the older Windows SDK but I can't tell if I'm actually doing it right because my Visual Studio setup is such a mess, and the DLL that comes out behaves the exact same way as the Windows 10 SDK one.

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

Post by JeremyaFr » Thu Dec 31, 2020 7:29 pm

Hello,
You can check that "targetver.h" is included before "windows.h".

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

Post by blue_max » Thu Dec 31, 2020 11:39 pm

Also make sure you're compiling the "master" branch in both the ddraw and CockpitLook projects. I know I've got a lot of branches all over the place (sorry!) but the master branch is currently up-to-date and we intend to keep it that way.

Wiiplay123
Cadet 4th Class
Posts: 16
Joined: Fri Oct 03, 2014 9:08 pm

Post by Wiiplay123 » Sat Jan 02, 2021 3:05 am

Ok, didn't realise I needed to compile the latest DDraw.dll too.

Looked like it was going to be easy, but figuring out how to get a working DirectXTK.lib is an absolute nightmare because apparently I'm supposed to compile the entire thing myself but at this point I have no clue what I'm doing anymore. I'm trying to build it with Windows SDK 8.1 and it's saying stuff like "C++ does not support default-int" and "operator InterfaceType is not a recognized operator or type"

Running out of time to work on it today, I'll have to keep working on it tomorrow.

User avatar
m0rgg
Cadet 2nd Class
Posts: 64
Joined: Wed Apr 01, 2020 10:33 pm

Post by m0rgg » Sat Jan 02, 2021 4:45 am

Have you tried using the DirectXTK_Desktop_2017_Win7.sln from DirectXTK project?

Wiiplay123
Cadet 4th Class
Posts: 16
Joined: Fri Oct 03, 2014 9:08 pm

Post by Wiiplay123 » Sun Jan 03, 2021 3:24 am

m0rgg wrote:
Sat Jan 02, 2021 4:45 am
Have you tried using the DirectXTK_Desktop_2017_Win7.sln from DirectXTK project?
Yeah, that's the one I'm trying. Apparently I also need some NuGet packages that are missing, so I gotta learn how to use that too.

EDIT: Got the package installed, 24 errors left to fix, probably all to do with this "operator InterfaceType" issue that only has two results on Google.
EDIT 2: c:\program files (x86)\windows kits\8.1\include\winrt\wrl\client.h(129): error C2833: 'operator InterfaceType' is not a recognized operator or type [E:\DirectXTK-master\DirectXTK_Desktop_2017.vcxproj]
and then a ton of other errors after that that seem to be related to that one line failing. I manually set WindowsTargetPlatformVersion to 8.1 so it would compile for Windows 7.
EDIT 3: Got it compiled using the newer Windows SDK that was supposed to compile it, but it runs REALLY slowly once I get into the hangar and still doesn't fix the head tracking problem.

Knarfe
Cadet 4th Class
Posts: 11
Joined: Mon Feb 01, 2021 1:03 pm

Post by Knarfe » Tue Feb 02, 2021 10:03 am

Does the VR Mod work with the Reverb G 2 and the Steam version of XWA?

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

Post by blue_max » Tue Feb 02, 2021 7:03 pm

Knarfe wrote:
Tue Feb 02, 2021 10:03 am
Does the VR Mod work with the Reverb G 2 and the Steam version of XWA?
It should work with the Steam version of XWA and it supports SteamVR as well. So if your headset is compatible with SteamVR, then it should work. In addition to that, if your headset can directly display side-by-side images and can be detected as a monitor, then you can also use the DirectSBS mode to get better performance.

Knarfe
Cadet 4th Class
Posts: 11
Joined: Mon Feb 01, 2021 1:03 pm

Post by Knarfe » Wed Feb 03, 2021 8:36 am

The Reverb G2 is compatible with Steam VR so it should work. I´ll try it this weekend.

Post Reply