Online Sim Racing netKar PRO


    glovepie

    Share

    paul thomas
    Driver
    Driver

    Posts : 269
    Join date : 2010-10-02
    Age : 50
    Location : wales

    glovepie

    Post by paul thomas on Mon Jan 31, 2011 1:17 pm

    Someone on DL was asking how to map clear visor to the steering wheel obversely logitec users can use the logitec control panel.

    Heres a way Fanatec users can do the samething

    download glovepie

    http://glovepie.org/...ie_download.php

    cut, paste and run the following script:- clear visor plus
    keyboard on the go seat adjustments with additional pitch adjustment.

    y,u up and down
    h, j right and left
    c,v pitch + -
    z,x forwards and backwards
    ___________________

    (L) = joystick0.Button8


    if (var.init=false) then
    var.defp = FakeTrackIR.pitch
    var.defx = FakeTrackIR.x
    var.defy = FakeTrackIR.y
    var.defz = FakeTrackIR.z
    var.init=true
    endif


    if pressed(y) then
    FakeTrackIR.y += 0.003 // up
    elseif pressed(u) then
    FakeTrackIR.y -= 0.003 // down
    elseif pressed(h) then
    FakeTrackIR.x += 0.003 // right
    elseif pressed(j) then
    FakeTrackIR.x -= 0.003 // left
    elseif pressed(c)then
    FakeTrackIR.pitch += 1 // pitch +
    elseif pressed(v) then
    FakeTrackIR.pitch -= 1 // pitch -
    elseif pressed((z)) then
    FakeTrackIR.z += 0.003 // forward
    elseif pressed((x)) then
    FakeTrackIR.z -= 0.003 // back
    elseif pressed((Enter)) then // reset to default
    FakeTrackIR.z = var.defz
    FakeTrackIR.y = var.defy
    FakeTrackIR.x = var.defx
    endif

    paul thomas
    Driver
    Driver

    Posts : 269
    Join date : 2010-10-02
    Age : 50
    Location : wales

    Re: glovepie

    Post by paul thomas on Thu Feb 03, 2011 4:46 am

    script for goto pits and repair damage all with the left dpad button.

    cursorposx and y need to be worked out for different resolution the example below is
    for 1216 by 698.





    (L) = joystick0.Button8
    if joystick0.Pov1Left then
    press keyboard.esc;
    wait 15ms
    release keyboard.esc;
    mouse.cursorposX = 600;
    mouse.cursorposy =270;
    press mouse.leftButton;
    wait 15ms;
    release mouse.leftButton ;
    mouse.cursorposX = 820;
    mouse.cursorposy =630;
    press mouse.leftButton;
    wait 15ms;
    release mouse.leftButton ;
    endif

    works with the fanatec, might work with g25/7

    paul thomas
    Driver
    Driver

    Posts : 269
    Join date : 2010-10-02
    Age : 50
    Location : wales

    Re: glovepie

    Post by paul thomas on Fri Feb 18, 2011 2:04 am

    Handbrake using paddle shift up


    (ins) = joystick0.Button3
    (L) = joystick0.Button8
    if joystick0.Pov1Left then
    press keyboard.esc;
    wait 15ms
    release keyboard.esc;
    mouse.cursorposX = 600;
    mouse.cursorposy =270;
    press mouse.leftButton;
    wait 15ms;
    release mouse.leftButton ;
    mouse.cursorposX = 820;
    mouse.cursorposy =630;
    press mouse.leftButton;
    wait 15ms;
    release mouse.leftButton ;
    endif

    Martin Hussey
    Driver
    Driver

    Posts : 273
    Join date : 2010-08-06
    Age : 28

    Re: glovepie

    Post by Martin Hussey on Fri Feb 18, 2011 2:48 pm

    Paul, for the handbrake is it not easier to simply keypress Insert when binding handbrake to a wheel button?

    Key.Insert = Joystick.Button10
    Key.Insert = EnsureRange(Joystick.Button10, 0,1)

    That binds a key to a button, without overcomplicating things.

    Unless the Fanatec works in some hideously complicated way.

    Nice work on the other bits, though Smile

    EDIT: Actually, its even simpler than that.. Key.Insert = Joystick.Button10 is all thats needed for it to function. The second line was some crap from when i was testing. Very Happy

    Converted your return to box script for the G25 on a 1680*1050 monitor

    if joystick.Button19 then
    press keyboard.esc;
    wait 15ms
    release keyboard.esc;
    mouse.cursorposX = 840;
    mouse.cursorposy =411;
    press mouse.leftButton;
    wait 15ms;
    release mouse.leftButton ;
    mouse.cursorposX = 1145;
    mouse.cursorposy =965;
    press mouse.leftButton;
    wait 15ms;
    release mouse.leftButton ;
    endif

    Just needs the button number changed for whatever button is desired on the wheel Smile

    paul thomas
    Driver
    Driver

    Posts : 269
    Join date : 2010-10-02
    Age : 50
    Location : wales

    Re: glovepie

    Post by paul thomas on Fri Feb 18, 2011 11:52 pm

    "Paul, for the handbrake is it not easier to simply keypress Insert when binding handbrake to a wheel button?"

    not sure what your getting at Martin
    (ins) = joystick0.Button3 is the same thing as
    Key.Insert = Joystick.Button10 ?

    Anyway feel free to post the scripts on your site.

    Martin Hussey
    Driver
    Driver

    Posts : 273
    Join date : 2010-08-06
    Age : 28

    Re: glovepie

    Post by Martin Hussey on Sat Feb 19, 2011 12:11 am

    Ahhh, i get it now. Sorry i misunderstood your post. You've added each bit onto the list of scripts. I thought each one was a separate script.

    We (and by we i mean a collaborative effort where my part is mostly cheering and waving pom poms Razz ) have managed to come up with a way to make the driver look as they turn. eg if the driver turns hard right, he/she turns their head to look into the corner. Works excellently in all but the Vintage. Difficult to judge the angle of the car. makes for lots of spins.

    FakeTrackIR.yaw = (MapRange(Joystick.x,-1,1,-100,100))

    Change the bit in bold to change how much the driver looks into the corner.

    We're trying to figure out how to make it turn exponentially. But thats proving far more tricky. At this point we can make it do it in one direction, but it doesnt seem to like doing the other.

    paul thomas
    Driver
    Driver

    Posts : 269
    Join date : 2010-10-02
    Age : 50
    Location : wales

    Re: glovepie

    Post by paul thomas on Sat Feb 19, 2011 1:53 am

    Another option is to bind mem and view on the wheel.
    Only work with the fixed wheel and is dependant on fov and seat positions.

    an example for the F16 with fov of 60, 0 seat postions at 1024 by 768, and fixed wheel.

    if joystick0.button16 then
    mouse.cursorposX = 600;
    mouse.cursorposy =670;
    press mouse.leftButton;
    wait 15ms;
    release mouse.leftButton ;
    wait 300ms;

    endif

    if joystick0.button19 then
    mouse.cursorposX = 580;
    mouse.cursorposy =680;
    press mouse.leftButton;
    wait 15ms;
    release mouse.leftButton ;
    wait 300ms;
    endif

    Martin Hussey
    Driver
    Driver

    Posts : 273
    Join date : 2010-08-06
    Age : 28

    Re: glovepie

    Post by Martin Hussey on Sat Feb 19, 2011 7:22 pm

    Paul, what axis is the fanatec wheel movement? Logitech is X axis. is the fanatec the same?

    paul thomas
    Driver
    Driver

    Posts : 269
    Join date : 2010-10-02
    Age : 50
    Location : wales

    Re: glovepie

    Post by paul thomas on Sat Feb 19, 2011 7:51 pm


    [CONTROLLERS]
    CON0=Porsche Wheel
    CON1=Clubsport Pedals

    [STEER]
    JOY=0
    AXLE=0
    FF=1
    SCALE=1
    FACTOR=1
    LOCK=900

    [THROTTLE]
    JOY=1
    AXLE=3
    MIN=1
    MAX=-1.1

    [BRAKES]
    JOY=1
    AXLE=4
    MIN=1
    MAX=-1

    [CLUTCH]
    JOY=1
    AXLE=5
    MIN=1
    MAX=-1

    Martin Hussey
    Driver
    Driver

    Posts : 273
    Join date : 2010-08-06
    Age : 28

    Re: glovepie

    Post by Martin Hussey on Sat Feb 19, 2011 8:13 pm

    I meant within GlovePIE.

    For the TrackIR view yaw script to work with fanatec, we need the correct wheel axis.

    paul thomas
    Driver
    Driver

    Posts : 269
    Join date : 2010-10-02
    Age : 50
    Location : wales

    Re: glovepie

    Post by paul thomas on Sun Feb 20, 2011 1:24 pm

    the joystick values button etc sould be the same for glovepie.

    Sponsored content

    Re: glovepie

    Post by Sponsored content

      Similar topics

      -

      Current date/time is Sun Dec 17, 2017 2:44 pm