Page 1 of 1

TrackIR workaround

Posted: Tue Apr 21, 2020 12:46 am
by blue_max
UPDATE (May 22, 2020): Before trying the procedure below, make sure you run the game directly with xwingalliance.exe instead of using the launcher. Some users have reported that the launcher messes up TrackIR.

Last week, someone reported problems trying to use the native TrackIR support that I put in the CockpitLook hook. We could not find the root cause of the problem; but we did find a workaround and this person was able to play the game with it.

So, if TrackIR isn't working for you, try the following:

1. Install FreePIE:

2. Download the following file:

(EDIT: Updated on Oct 19, 2020 to fix the indentation bug)

3. The ZIP above contains two files: CockpitLook.cfg and Make a backup copy of your CockpitLook.cfg (it should be in your XWA install directory) and replace it with the CockpitLook.cfg from the ZIP file.

4. Run FreePIE.

5. In FreePIE go to File -> Open and select the "" script from the ZIP file.

6. Open TrackIR and start tracking your headset.

7. In FreePIE, go to Script -> Run Script. The window at the bottom should display values read from TrackIR. If not, check that TrackIR is running properly.

8. Leave TrackIR and FreePIE running, and run XWA. Tracking should work now.

Honestly, I don't like this very much. I prefer to have native TrackIR support and there's been only one reported instance of this issue; but I put this here in case someone needs it.

The lines in the "" script that begin with "diagnostics" are not really necessary -- they are just for debugging purposes. You may delete these lines once you're confident your setup is working properly.

Re: TrackIR workaround

Posted: Fri Oct 16, 2020 11:54 am
by Macki

i also have problems with Trackir. If i try it with the normal installer, the game crashes after the mission starting sequence. Without Trackir everything runs fine.

Tried this solution, but FreePIE gave me an error in line five "unexpected indent"

mouse emulation works

Acer Arpire3, Win10, Trackir 5.4.2.

Thanks and Cheers


Re: TrackIR workaround

Posted: Mon Oct 19, 2020 7:56 am
by blue_max
Macki wrote:
Fri Oct 16, 2020 11:54 am
Tried this solution, but FreePIE gave me an error in line five "unexpected indent"
There was a bug in the indentation of the file. I just fixed it and re-uploaded it. Please try again.