Operation Flashpoint Dragon Rising OFDR Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

TrackIR poor man's mod

5 posters

Go down

TrackIR poor man's mod Empty TrackIR poor man's mod

Post by p3nnyw1s3 Mon 05 Aug 2013, 14:20

Does this still work with OFPDR?
I tried the old thing using GlovePie, trackirfix and templars script.
Didnt work for me atleast.
Anyone else stumpled across some problems with it?

p3nnyw1s3

Points : 40
Reputation : 1
Join date : 2013-07-31

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by ThePhantomMenace Mon 05 Aug 2013, 15:36

You also need the freelook.xml mod to make that work.  You need to make sure you're running everything as admin to make it work.  I have another script that allows you to toggle freelook on/off.

Code:
var.resx = 1600 //horizontal resolution in game
var.resy = 900  //vertical resolution in game
var.centre = 1  //0 = do not recentre view 1 = centre view
if key.LeftAlt then
  if var.freelook == 0
    if var.firststep == 0  then //this centres the mouse on the first frame
      mouse.CursorPosX = var.resx/2
      mouse.CursorPosY = var.resy/2
      var.firststep = 1
    end if
    var.freelook = 1
  else
    var.freelook = 0
  end if
  wait 500ms
end if
if var.freelook == 0 then
  if var.centre == 1 then //recenters trackir
    if FakeTrackIR.yaw > 0 then
      FakeTrackIR.yaw = FakeTrackIR.yaw - ((FakeTrackIR.yaw/10)+0.1)
      if FakeTrackIR.yaw < 0 then
        FakeTrackIR.yaw = 0
      end if
    end if
    if FakeTrackIR.yaw < 0 then
      FakeTrackIR.yaw = FakeTrackIR.yaw - ((FakeTrackIR.yaw/10)-0.1)
      if FakeTrackIR.yaw > 0 then
        FakeTrackIR.yaw = 0
      end if
    end if
    if FakeTrackIR.pitch > 0 then
      FakeTrackIR.pitch = FakeTrackIR.pitch - ((FakeTrackIR.pitch/10)+0.1)
      if FakeTrackIR.pitch < 0 then
        FakeTrackIR.pitch = 0
      end if
    end if
    if FakeTrackIR.pitch < 0 then
      FakeTrackIR.pitch = FakeTrackIR.pitch - ((FakeTrackIR.pitch/10)-0.1)
      if FakeTrackIR.pitch > 0 then
        FakeTrackIR.pitch = 0
      end if
    end if
  end if
  var.firststep = 0
else  //the following converts the mouse to trackir data
  FakeTrackIR.yaw = MapRange(mouse.CursorPosX, 0, var.resx,-65,65)
  FakeTrackIR.pitch = MapRange(mouse.CursorPosY, 0, var.resy,60,-60)
end if

You must change the 2 vars at the top of the script to match your screen resolution.
You can also change the look speed by messing with the numbers in the bottom of the script in the MapRange part.  I'm not sure where the freelook.xml file would be available on the internet, but it was released with IW2 so if you find a repository for that it will likely be in there.  Hope this helps a bit.

Cheers Very Happy

ThePhantomMenace

Points : 31
Reputation : 8
Join date : 2013-05-20

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by dewi316 Mon 05 Aug 2013, 20:24

https://www.youtube.com/watch?feature=player_detailpage&v=wz4UKwLM2AI&t=56

wonder if this could be adapted for DR?
Gonna get one of these when released
dewi316
dewi316
Veteran

Location : swansea
Points : 178
Reputation : 21
Join date : 2012-12-19

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by p3nnyw1s3 Mon 05 Aug 2013, 22:12

Tx Phantom!
Gonna look into that right now..

*EDIT*
Was it the freelookconfigs.xml?

p3nnyw1s3

Points : 40
Reputation : 1
Join date : 2013-07-31

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by p3nnyw1s3 Mon 05 Aug 2013, 22:33

Not working!
Does the system still have to be english?
Because i remember some problem if windows wasnt english...

p3nnyw1s3

Points : 40
Reputation : 1
Join date : 2013-07-31

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by p3nnyw1s3 Tue 06 Aug 2013, 00:12

ThePhantomMenace wrote:You also need the freelook.xml mod to make that work.  You need to make sure you're running everything as admin to make it work.  I have another script that allows you to toggle freelook on/off.

Code:
var.resx = 1600 //horizontal resolution in game
var.resy = 900  //vertical resolution in game
var.centre = 1  //0 = do not recentre view 1 = centre view
if key.LeftAlt then
  if var.freelook == 0
    if var.firststep == 0  then //this centres the mouse on the first frame
      mouse.CursorPosX = var.resx/2
      mouse.CursorPosY = var.resy/2
      var.firststep = 1
    end if
    var.freelook = 1
  else
    var.freelook = 0
  end if
  wait 500ms
end if
if var.freelook == 0 then
  if var.centre == 1 then //recenters trackir
    if FakeTrackIR.yaw > 0 then
      FakeTrackIR.yaw = FakeTrackIR.yaw - ((FakeTrackIR.yaw/10)+0.1)
      if FakeTrackIR.yaw < 0 then
        FakeTrackIR.yaw = 0
      end if
    end if
    if FakeTrackIR.yaw < 0 then
      FakeTrackIR.yaw = FakeTrackIR.yaw - ((FakeTrackIR.yaw/10)-0.1)
      if FakeTrackIR.yaw > 0 then
        FakeTrackIR.yaw = 0
      end if
    end if
    if FakeTrackIR.pitch > 0 then
      FakeTrackIR.pitch = FakeTrackIR.pitch - ((FakeTrackIR.pitch/10)+0.1)
      if FakeTrackIR.pitch < 0 then
        FakeTrackIR.pitch = 0
      end if
    end if
    if FakeTrackIR.pitch < 0 then
      FakeTrackIR.pitch = FakeTrackIR.pitch - ((FakeTrackIR.pitch/10)-0.1)
      if FakeTrackIR.pitch > 0 then
        FakeTrackIR.pitch = 0
      end if
    end if
  end if
  var.firststep = 0
else  //the following converts the mouse to trackir data
  FakeTrackIR.yaw = MapRange(mouse.CursorPosX, 0, var.resx,-65,65)
  FakeTrackIR.pitch = MapRange(mouse.CursorPosY, 0, var.resy,60,-60)
end if

You must change the 2 vars at the top of the script to match your screen resolution.
You can also change the look speed by messing with the numbers in the bottom of the script in the MapRange part.  I'm not sure where the freelook.xml file would be available on the internet, but it was released with IW2 so if you find a repository for that it will likely be in there.  Hope this helps a bit.

Cheers Very Happy

 How exactly are making this work?
What version of the game are u using?

p3nnyw1s3

Points : 40
Reputation : 1
Join date : 2013-07-31

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by ThePhantomMenace Tue 06 Aug 2013, 04:49

1.  Copy the freelookconfig.xml file or whatever it's called into data_win/media/vehicles folder.  If it doesn't exist create it, but it should be in the proper folder structure in the download from IW2.
2.  Start glove pie and copy the script I posted into the window.  Save it as whatever you want to call it.  I call it togglefreelook.
3.  Start the TrackIRFixer.exe or whatever it's called.  It will wait to detect OFDR.
4.  Start OFDR.  When the game starts the trackIR fixer should detect it and patch it.  You may need to restart the game again.
5.  Go back to Glove Pie and press the button to run the script.
6.  Go back in to DR or restart it if you haven't already and start a mission.  If everything worked right, when you jump in a vehicle press the left alt key to toggle the freelook on/off.  When you toggle it off it will automatically return to center.

I have the Acid mod patched version of the 1.02 exe.  Although I haven't used the freelook mod since my last install, this is the procedure that has yielded the desired result for me in the past.  Hopefully this will work for you as well.

Cheers Very Happy

ThePhantomMenace

Points : 31
Reputation : 8
Join date : 2013-05-20

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by p3nnyw1s3 Tue 06 Aug 2013, 10:38

Thx bro!
Even using your howto i couldnt get it to work.
Guess I need to have an english installed OS.

p3nnyw1s3

Points : 40
Reputation : 1
Join date : 2013-07-31

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by JoeDogs Wed 07 Aug 2013, 06:49

You have done everything right. I have tried the same thing for years and it has not worked for me either

JoeDogs
Veteran

Location : Norway
Points : 260
Reputation : 12
Join date : 2012-12-26
Age : 58

https://www.facebook.com/JoeDogs-Channel-874283856100522

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by ThePhantomMenace Wed 07 Aug 2013, 11:15

I wonder if it would be possible for someone that successfully patched the OFDR.exe to upload a copy of it to see if it will work for you guys.

ThePhantomMenace

Points : 31
Reputation : 8
Join date : 2013-05-20

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by TheGeneral Wed 07 Aug 2013, 14:05

I think glovepie has a part in getting this to work. If you go on youtube and search templars videos, he got this work but it only works in vehicles.  See if there is any info there. I'll dig around and see ifi can find the original post and whether i saved his thread from the old forums. Not home right now so youll have to hang fire forthw time being.
TheGeneral
TheGeneral
Admin

Points : 780
Reputation : 35
Join date : 2012-12-15

http://maniacaldog.wix.com/keepdralive

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by p3nnyw1s3 Wed 07 Aug 2013, 15:00

I remember me and templar having a discussion about this. And the conclusion we made was that the os had to be an english install. However this was the vanilla 1.0 version of DR. No patches etc, back when we could extract the .000 files etc. Even if we couldnt use the files we extracted it gave some knowledge about the structure.

Ive tried to get hold of the extractor and the scripts. But the guy who made them thought he did more harm releasing them so they're pretty much gone. And i've lost my old backup with everything ofdr related.

Back on topic; How many of you got this working are using an english installed os? Have anyone else got this working who arent using english installed os?

p3nnyw1s3

Points : 40
Reputation : 1
Join date : 2013-07-31

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by TheGeneral Wed 07 Aug 2013, 20:13



 

the link in the description doesn't work!
TheGeneral
TheGeneral
Admin

Points : 780
Reputation : 35
Join date : 2012-12-15

http://maniacaldog.wix.com/keepdralive

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by JoeDogs Wed 07 Aug 2013, 20:54

using an english installed

JoeDogs
Veteran

Location : Norway
Points : 260
Reputation : 12
Join date : 2012-12-26
Age : 58

https://www.facebook.com/JoeDogs-Channel-874283856100522

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by ThePhantomMenace Thu 08 Aug 2013, 03:19

I'm on an english os.

ThePhantomMenace

Points : 31
Reputation : 8
Join date : 2013-05-20

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by dewi316 Sun 08 Sep 2013, 13:33

https://www.youtube.com/watch?feature=player_detailpage&v=OKwA_wDO3o0

Something for you racing fans,
Could anyone say if the RIFT could be used with DR
dewi316
dewi316
Veteran

Location : swansea
Points : 178
Reputation : 21
Join date : 2012-12-19

Back to top Go down

TrackIR poor man's mod Empty Re: TrackIR poor man's mod

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum