Take On Mars

Take On Mars

View Stats:
(outdated/update in work)remapping and adding more features to Joystick/Hotas and gamepads(WIP)
Hello Fellas

i found a great tool http://glovepie.org/ (this is for free) with this we can remap anything to anything!!

so i began a little scripting with it!

....


if u have a suggestion or request for remaps feel free to ask, also any helps are welcome!

*remaps for another Brands/typ of sticks are welcome (post/share here)

**coming Soon**
adding support for a generic Gamepad (4axes 12 keys)

**
extra thx and all credits from the code goes to GlovePie Forum where i grabbed some stuff


Have Fun...
-------------------------------------------------Update--------------------------------------------------------------------------
***For T.Flight Hotas X

;...my; what the... im fly ..uhm... roving.... a damn friggin rover... immersions overhaul for T.Flight HotasX

oh well iz can fly drones to ....

Features;

Control the primary control panel with throttle
*note hardware remapp is need between Y/X axis and Hotas/throttle slider/Zaxis

Control the secondary control panel with Joystick like mouse input
*note you can toggle primary and secondary inputs, Toggle Cam, HUD,GUI, Night/Thermal-vision, Zoom, also u can control the mouse cursor!


-----------------
you can press Select to toggle between vehicle or Zero GDrone fly modus



--------------------


**important..u may have to clean/remap some inputs in the key configuration menu
(ingame like the "shortcut to controll room")
to match the keys in this "script"

---------------''''''Code for GlovePie'''''' (copy and paste)---------------------------
//Alpa 0.21 by AP

//For T.Fligh Hotas X
//How to setup this scrip!
//Download the Tool "GlovePie" copy and paste this content
//into GlovePie, press RUN and start Take on Mars!
//Remapp T.Flight X/Y axis to Z/slider axis on ur second preset from T.Flight
//
//Remaps ingame;
//Global
//Zoom In - add 0 (Zero)
//Zoom Out - add 9
//Vehicle;
//Primary Up/Roll Right - delete Left Stick
//Primary Next - Delete Right Bumper
//Primary Prev - Delete Left Bumper
//Secondary Next - Delete Right Trigger
//secondary Prev - Delete Left Trigger
//
//Space Program
//Shortcut: Mission Control - delete Button Back

//Features;
//this script comes with a main Feature to fly Zero G Drones
//standard is this set to control ground vehicles and Robotic Arms + mouse
//Press "select" on T.Flight to switch between Vehicle and Drone controll!
//Stick movement in ZeroG drone are Fake analog inputs via Arrow keys
//this is because the Drones dont like mouse
//maybe you have to reverse X/y Slider/Z axis!

;Vehicle - Fly mode switch
var.Toggle = Joystick.Button11
;remapped mouse buttons
var.mouseLeft = Joystick.Button1
var.mouseRight = Joystick.Button3
;CameraZoom
var.ZoomIn = Joystick.Button6
var.ZoomOut = Joystick.Button5
;Toggle Primary and Secoundary Input Panel
var.PrimNext = Joystick.Button2
var.SecNext = Joystick.Button4
;Cycle HUD Mode
var.HudToggle = Joystick.Button7
;Toggle Nightvision
var.NightToggle = Joystick.Button12
;Cycle 1st/3rd Persp
var.persp = Joystick.Button10
;Toglle GUI
var.GUI = Joystick.Button9
;Camera 3/4 switch / in flymode up/down
var.PovUp = Joystick.Pov1Up
var.PovDown = Joystick.Pov1Down
;Camera 1/2 switch
var.PovLeft = Joystick.Pov1Left
var.PovRight = Joystick.Pov1Right
;Joystick
var.joySlider = Joystick.Slider
var.joyZ = Joystick.z
var.JoyZr = Joystick.Zrot


Mouse.LeftButton = var.mouseLeft
Mouse.RightButton = var.mouseRight
Key.0 = Var.ZoomIn
Key.9 = var.ZoomOut
Key.E = var.PrimNext
Key.PageDown = var.SecNext
Key.H = var.HudToggle
Key.N = var.NightToggle
Key.C = var.persp
Key.G = var.GUI
Key.One = var.PovLeft
Key.Two = var.PovRight
;Toggle Jpystick output (mouse or arrow) ZeroG probe wont fly well with mouse
if pressed (var.Toggle) then var.altpan++
if var.altpan > 1 then var.altpan = 0
if var.altpan = 1 then
Key.Shift = var.PovUp
Key.Control = var.PovDown
if var.joySlider > 0.1 then
wait 0.1
press Key.End
wait 0.1
release Key.End
end if
if var.joySlider > 0.5 then
wait 0.05
press Key.End
wait 0.05
release Key.End
end if
if var.joySlider > 0.7 then
wait 0.05
press Key.End
wait 0.02
release Key.End
end if
if var.joySlider > 0.9 then
press Key.End
end if
if var.joySlider < -0.1 then
wait 0.1
press Key.Home
wait 0.1
release Key.Home
end if
if var.joySlider < -0.5 then
wait 0.05
press Key.Home
wait 0.05
release Key.Home
end if
if var.joySlider < -0.7 then
wait 0.02
press Key.Home
wait 0.02
release Key.Home
end if
if var.joySlider < -0.9 then
press Key.Home
end if
if var.joyZ > 0.1 then
wait 0.1
press Key.Down
wait 0.1
release Key.Down
end if
if var.joyZ > 0.5 then
wait 0.05
press Key.Down
wait 0.05
release Key.Down
end if
if var.joyZ > 0.7 then
wait 0.02
press Key.Down
wait 0.02
release Key.Down
end if
if var.joyZ > 0.9 then
press Key.Down
end if
if var.joyZ < -0.1 then
wait 0.1
press Key.Up
wait 0.1
release Key.Up
end if
if var.joyZ < -0.5 then
wait 0.05
press Key.Up
wait 0.05
release Key.Up
end if
if var.joyZ < -0.7 then
wait 0.02
press Key.Up
wait 0.02
release Key.Up
end if
if var.joyZ < -0.9 then
press Key.Up
end if
if var.JoyZr < -0.1 then
wait 0.1
press Key.Left
wait 0.1
release Key.Left
end if
if var.JoyZr > 0.3 then
wait 0.09
press Key.Right
wait 0.09
release Key.Right
end if
if var.JoyZr < -0.5 then
wait 0.05
press Key.Left
wait 0.05
release Key.Left
end if
if var.JoyZr < -0.7 then
wait 0.02
press Key.Left
wait 0.02
release Key.Left
end if
if var.JoyZr < -0.9 then
press Key.Left
end if
if var.JoyZr > 0.1 then
wait 0.15
press Key.Right
wait 0.11
release Key.Right
end if
if var.JoyZr > 0.3 then
wait 0.09
press Key.Right
wait 0.09
release Key.Right
end if
if var.JoyZr > 0.5 then
wait 0.05
press Key.Right
wait 0.05
release Key.Right
end if
if var.JoyZr > 0.7 then
wait 0.02
press Key.Right
wait 0.02
release Key.Right
end if
if var.JoyZr > 0.9 then
press Key.Right
end if
end if
if var.altpan = 0 then
Mouse.DirectInputX = Mouse.DirectInputX + 10*deadzone(var.joySlider)
Mouse.DirectInputY = Mouse.DirectInputY - 10*deadzone(var.joyZ)
Key.Three = var.PovUp
Key.Four = var.PovDown
end if
-------------------------------------------------End-of-GlovePie-Script--------------------------------------------------
space room for upcoming contents
...*snip

greetz
AP
Last edited by Acid Phreak; 17 Apr, 2015 @ 10:27am