The Long Dark

The Long Dark

Ver estatísticas:
Este tópico foi trancado
HotDogAuChou 29/set./2014 às 19:05
Xbox Controller Script. For GlovePie
Here is a script for using a controller with the long dark.

Credits to Killadelphia for the template of this script I have used (was for RUST)

To use this script you need to download GlovePie.

Make sure your Xbox 360 controller is plugged in before you start,

Open up GlovePie, click File---- New --- Paste in the script that I wrote down there---

Click Run, go Play!

Controls:

right trigger: action (left click)
left trigger: throw (right click)

right bumper: craft menu (tab)
left bumper : inventory (i)
a: run (i suggest you toggle the togglerun option )
b: crouch
x: reload
y: holster

pause: pause (duh)
select: light match.

Right bumper: up arrow (for inventory)
left bumper : down arrow

up arrow : decoy
down arrow: lantern
left arrow: firearm
righ arrow: flare.

You may switch controls by editing the script (pretty easy)

Search GlovePie in google to install.
Cheers!

Script:

//Set right stick inversion preference (True or False)
var.Inverted = false

//Set dead zones (Values between 0 and 1)
var.LdeadX = 0.25
var.LdeadY = 0.25
var.RdeadX = 0.25
var.RdeadY = 0.25

//Left Stick – Movement

keyboard.W = Xinput.Joy1Y > var.LdeadY
keyboard.S = Xinput.Joy1Y < -var.LdeadY
keyboard.A = Xinput.Joy1X < -var.LdeadX
keyboard.D = Xinput.Joy1X > var.LdeadX

// Right Stick – Mouse Pointer
// To change the lookspeed, increase or decrease the number preceding the deadzone - default is 20
if Xinput.Joy2X < -var.RdeadX or Xinput.Joy2X > var.RdeadX then Mouse.DirectInputX = Mouse.DirectInputX + 20*deadzone(Xinput.Joy2X)
if var.Inverted = true then{
if Xinput.Joy2Y < -var.RdeadY or Xinput.Joy2Y > var.RdeadY then Mouse.DirectInputY = Mouse.DirectInputY + 20*deadzone(Xinput.Joy2Y)
}else{
if Xinput.Joy2Y < -var.RdeadY or Xinput.Joy2Y > var.RdeadY then Mouse.DirectInputY = Mouse.DirectInputY - 20*deadzone(Xinput.Joy2Y)
}

// 360 Bumpers
keyboard.Tab = Xinput.RightShoulder
keyboard.I = Xinput.LeftShoulder

//360 Triggers
mouse.RightButton = Xinput.LeftTrigger
mouse.LeftButton = Xinput.RightTrigger

//360 Buttons ABXY
keyboard.Shift = Xinput.A
keyboard.R = Xinput.X
keyboard.H = Xinput.Y
keyboard.ctrl = Xinput.B

//360 dPad
keyboard.1 = Xinput.Right and not Xinput.RightTrigger
keyboard.2 = Xinput.Down and not Xinput.RightTrigger
keyboard.3 = Xinput.Left and not Xinput.RightTrigger
keyboard.4 = Xinput.Up and not Xinput.RightTrigger

//360 Start and Select
keyboard.esc = Xinput.start
keyboard.M = Xinput.back

//360 Stick Clicks
keyboard.Down = Xinput.LeftThumb
keyboard.Up = Xinput.RightThumb
< >
Exibindo comentários 115 de 16
HotDogAuChou 29/set./2014 às 19:43 
oh and if anybody has any hardcore skills with this, It would need a fix for the mouse aiming and movement, as it doesnt take into account the acceleration of Sticks or various angles. It only goes up down left right, not according to degrees of the sticks. Also, I could also add a way to navigate the menus using the stickpads, if anybody is interested.

On a last note, please add feedback on this script :P

Thank you!
RSRising 29/set./2014 às 22:40 
OH gotta try this! Will give input ASAP. AWESOME! Keyboard free in this game is ideal. Kudos Huuk45!
HotDogAuChou 30/set./2014 às 4:55 
Tell me if you get it working on your side, If not I will make a more complete guide on how to do this and maybe ask for it to be stickyed.
HotDogAuChou 30/set./2014 às 8:20 
Also forgot to add, once you've pasted the code, you can save it for easyer access next time.
just name it TheLongDark.pie and open it when playing TLD.
cheers!
ra_mull 2/out./2014 às 14:35 
I tried this, but the game crashed to desktop when I tried to load the game. Hmmm... although this could've been something to do with an older save and a couple updates since then. I'll have to try again with a new game.
HotDogAuChou 2/out./2014 às 18:04 
mine works fine so it's probably a client side issue
ra_mull 3/out./2014 às 13:51 
Yeah, new update caused D3D 11 to crash when starting a game. Did that a few updates ago as well. Haven't had a chance to try it yet still.
Última edição por ra_mull; 3/out./2014 às 13:52
ra_mull 3/out./2014 às 14:16 
This script works great! Thanks for the post.
Anyone have the script for xpadder?
DrF()()d 29/jun./2015 às 5:08 
dud one word for you. amazeing
ernestww 29/jun./2015 às 7:06 
Escrito originalmente por Sgt. Rex Power Colt:
Anyone have the script for xpadder?

There are profiles for TLD on the xpadder site, you need an account. I find it easier to just select my own keyboard buttons.

bethany 29/jun./2015 às 10:50 
Escrito originalmente por ernestww:
Escrito originalmente por Sgt. Rex Power Colt:
Anyone have the script for xpadder?

There are profiles for TLD on the xpadder site, you need an account. I find it easier to just select my own keyboard buttons.

You shouldn't need it anymore just for controller functionality -- We added native support in a recent update.
ernestww 29/jun./2015 às 20:04 
Escrito originalmente por hinterlandcommunity_bethany:
Escrito originalmente por ernestww:

There are profiles for TLD on the xpadder site, you need an account. I find it easier to just select my own keyboard buttons.

You shouldn't need it anymore just for controller functionality -- We added native support in a recent update.

Thank you Bethany,

I will try the native interface again. We xpadder types are a fussy lot and like the programability of the thing, :),,,
Satoru 10/out./2015 às 16:40 
Escrito originalmente por Huuk45:
oh and if anybody has any hardcore skills with this, It would need a fix for the mouse aiming and movement, as it doesnt take into account the acceleration of Sticks or various angles. It only goes up down left right, not according to degrees of the sticks. Also, I could also add a way to navigate the menus using the stickpads, if anybody is interested.

On a last note, please add feedback on this script :P

Thank you!
change value 40 for sensitivity, controls are invert, swap up/down input for standard

var.MouseSensitivity = screen.width/256

Key.W = (XInput.LeftStickY > .40)
Key.S = (XInput.LeftStickY < -.40)
Key.E = (XInput.LeftStickX > .40)
Key.Q = (XInput.LeftStickX < -.40)

if (XInput.RightStickY > .40) mouse.RightButton + mouse.DirectInputY += var.MouseSensitivity^(XInput.RightStickY) //cursor right
if (XInput.RightStickY < -.40) mouse.RightButton + mouse.DirectInputY -= -var.MouseSensitivity^1*(XInput.RightStickY) //cursor left
if (XInput.RightStickX > .40) mouse.RightButton + mouse.DirectInputX += var.MouseSensitivity^(XInput.RightStickX) //cursor down
if (XInput.RightStickX < -.40) mouse.RightButton + mouse.DirectInputX -= -var.MouseSensitivity^1*(XInput.RightStickX) //cursor up
Última edição por Satoru; 10/out./2015 às 16:54
Dread Arkive 10/out./2015 às 17:03 
Necro post? Native support works perfectly.
< >
Exibindo comentários 115 de 16
Por página: 1530 50

Publicado em: 29/set./2014 às 19:05
Mensagens: 16