Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
power2084

Avatar / Picture

Registered:
Posts: 64
Reply with quote  #1 
Hello all, Geekfest 2018 starts in 36 hours and I will be deploying an Artemis bridge.

The helm position will be controlled with a PS3 Dualshock Controller. All is fine with the settings
except I would like to modify further the controls to my likings and I need help because
I don't know exactly what to change in the controls.ini file.

Currently (see the contents of the file below), the R2 button increses impulse and L2 button decreases it (these are the two LOWER buttons in front of the controller). Also, the left analog stick up/down makes the ship dive/climb.

What I would like is for the R2 + L2 buttons to do nothing, and the left analog up/down to increase/decrease throttle. So, what should I change in the file ?

Thanks for your replies.
----------------------------------------------

; -------------------------------------------------------------------------------------
; this is the control indirection file for the PC Artemis exe.
; this file contains modifiable settings for how the keyboard and joystick interface with the game.
; as such, it's really only applicable to clients, not servers.
; at the end of this file, you'll find a list of the acceptable labels for each keyboard key.
; -------------------------------------------------------------------------------------

; this is a comment because it starts with a semicolon. You can type anything on this line. The INI parser will ignore it

;Artemis controls for use with a DualShock 3 controller, using MotioninJoy and JoyToKey
;Thanks to pupbrad and his information here: http://artemis.forumchitchat.com/post/joystick-setup-6557941
;Thanks to this DualShock 3/Windows tutorial: http://www.winmatrix.com/forums/index.php?/topic/30456-how-to-use-ps3-controller-on-windows-7-and-windows-8/
;Created for Artemis 2.0 by nareau@gmail.com on 2014-01-26
;Most recent version of this file can be found here: http://goo.gl/ALX9x0
;Bindings for JoyToKey can be found here: http://goo.gl/RqRu0w
;Triangle: Reverse
;Circle: Request Dock
;X: Warp Speed Up
;Square: Warp Speed Down
;L1: Zoom out
;R1: Zoom In
;L2: Impulse Down
;R2: Impulse Up
;Left Stick (X-Axis): Turn port/starboard
;Left Stick (Y-Axis): Climb/dive

;Bind these using JoyToKey:
;L3: Request Dock (R)
;R3: Request Dock (R)
;Hat Up/D-Pad Up: Front View (F2)
;Hat Left/D-Pad Left: Left View (F3)
;Hat Right/ D-Pad Right: Right View (F4)
;Hat Down/D-Pad Down: Rear View (F5)
;PS Button: Sector (F7)
;Select: Tactical (F6)
;Start: Status (F8)

PREV_CLIENT_CONSOLE = UI_INPUT_F9
NEXT_CLIENT_CONSOLE = UI_INPUT_F10

MAIN_SCREEN_FRONT = UI_INPUT_F2
MAIN_SCREEN_LEFT = UI_INPUT_F3
MAIN_SCREEN_RIGHT = UI_INPUT_F4
MAIN_SCREEN_REAR = UI_INPUT_F5
MAIN_SCREEN_TACTICAL = UI_INPUT_F6
MAIN_SCREEN_SECTOR = UI_INPUT_F7
MAIN_SCREEN_STATUS = UI_INPUT_F8

RUDDER_LEFT = UI_INPUT_KEY_A
RUDDER_LEFT = UI_INPUT_LEFT
RUDDER_RIGHT = UI_INPUT_KEY_D
RUDDER_RIGHT = UI_INPUT_RIGHT
IMPULSE_UP = UI_INPUT_KEY_W
IMPULSE_UP = UI_INPUT_UP
IMPULSE_DOWN = UI_INPUT_KEY_S
IMPULSE_DOWN = UI_INPUT_DOWN
RUDDER_CENTER = UI_INPUT_RETURN
BUTTON_CLIMB = UI_INPUT_INSERT
BUTTON_DIVE = UI_INPUT_DELETE

MAP_ZOOM_IN = UI_INPUT_UP
MAP_ZOOM_OUT = UI_INPUT_DOWN

MAP_SELECT_CLOSEST = UI_INPUT_KEY_Y
MAP_SELECT_NEXT = UI_INPUT_KEY_U
MAP_SELECT_PREV = UI_INPUT_KEY_I

TOGGLE_WARP_1 = UI_INPUT_KEY_1
TOGGLE_WARP_2 = UI_INPUT_KEY_2
TOGGLE_WARP_3 = UI_INPUT_KEY_3
TOGGLE_WARP_4 = UI_INPUT_KEY_4

INCREASE_WARP_LEVEL = UI_INPUT_PAGE_UP
;X (BUTT0)
INCREASE_WARP_LEVEL = UI_INPUT_JOY0_BUTT0
DECREASE_WARP_LEVEL = UI_INPUT_PAGE_DOWN
;Square (BUTT2)
DECREASE_WARP_LEVEL = UI_INPUT_JOY0_BUTT2
STOP_WARP = UI_INPUT_SPACE


HELM_TOGGLE_REVERSE = UI_INPUT_ESCAPE
;Triangle (BUTT3)
HELM_TOGGLE_REVERSE = UI_INPUT_JOY0_BUTT3

NORMALIZE_ALL_POWER = UI_INPUT_SPACE

NORMALIZE_ALL_COOLANT = UI_INPUT_RETURN

TOGGLE_HELP_OVERLAY = UI_INPUT_F1


STORE_ENG_SETTINGS_0 = UI_INPUT_KEY_1
SHIFT = YES
RETRIEVE_ENG_SETTINGS_0 = UI_INPUT_KEY_1
SHIFT = NO
STORE_ENG_SETTINGS_1 = UI_INPUT_KEY_2
SHIFT = YES
RETRIEVE_ENG_SETTINGS_1 = UI_INPUT_KEY_2
SHIFT = NO
STORE_ENG_SETTINGS_2 = UI_INPUT_KEY_3
SHIFT = YES
RETRIEVE_ENG_SETTINGS_2 = UI_INPUT_KEY_3
SHIFT = NO
STORE_ENG_SETTINGS_3 = UI_INPUT_KEY_4
SHIFT = YES
RETRIEVE_ENG_SETTINGS_3 = UI_INPUT_KEY_4
SHIFT = NO
STORE_ENG_SETTINGS_4 = UI_INPUT_KEY_5
SHIFT = YES
RETRIEVE_ENG_SETTINGS_4 = UI_INPUT_KEY_5
SHIFT = NO
STORE_ENG_SETTINGS_5 = UI_INPUT_KEY_6
SHIFT = YES
RETRIEVE_ENG_SETTINGS_5 = UI_INPUT_KEY_6
SHIFT = NO
STORE_ENG_SETTINGS_6 = UI_INPUT_KEY_7
SHIFT = YES
RETRIEVE_ENG_SETTINGS_6 = UI_INPUT_KEY_7
SHIFT = NO
STORE_ENG_SETTINGS_7 = UI_INPUT_KEY_8
SHIFT = YES
RETRIEVE_ENG_SETTINGS_7 = UI_INPUT_KEY_8
SHIFT = NO
STORE_ENG_SETTINGS_8 = UI_INPUT_KEY_9
SHIFT = YES
RETRIEVE_ENG_SETTINGS_8 = UI_INPUT_KEY_9
SHIFT = NO
STORE_ENG_SETTINGS_9 = UI_INPUT_KEY_0
SHIFT = YES
RETRIEVE_ENG_SETTINGS_9 = UI_INPUT_KEY_0
SHIFT = NO

ENG_NEXT_SYSTEM = UI_INPUT_KEY_D
ENG_PREV_SYSTEM = UI_INPUT_KEY_A
ENG_INCREASE_SYSTEM = UI_INPUT_KEY_W
ENG_DECREASE_SYSTEM = UI_INPUT_KEY_S
ENG_INCREASE_SYSTEM_COOLANT = UI_INPUT_KEY_E
ENG_DECREASE_SYSTEM_COOLANT = UI_INPUT_KEY_C

COMMS_RED_ALERT = UI_INPUT_KEY_R

SERVER_OPTION_TOGGLE = UI_INPUT_ESCAPE


HELM_REQUEST_DOCK = UI_INPUT_KEY_R
;Circle (BUTT1)
HELM_REQUEST_DOCK = UI_INPUT_JOY0_BUTT1

TOGGLE_SHIELDS = UI_INPUT_KEY_Q


RAISE_SHIELDS = UI_INPUT_KEY_K
LOWER_SHIELDS = UI_INPUT_KEY_L

TOGGLE_AUTO_BEAMS = UI_INPUT_KEY_B

CONSOLE_ZOOM_IN = UI_INPUT_KEY_T
;R1 (BUTT5)
CONSOLE_ZOOM_IN = UI_INPUT_JOY0_BUTT5
CONSOLE_ZOOM_OUT = UI_INPUT_KEY_Y
;L1 (BUTT4)
CONSOLE_ZOOM_OUT = UI_INPUT_JOY0_BUTT4

SCIENCE_SCAN_BUTTON = UI_INPUT_RETURN

BEAM_FREQUENCY_LEFT = UI_INPUT_LEFT
BEAM_FREQUENCY_RIGHT = UI_INPUT_RIGHT
CONVERT_TORP_TO_ENERGY = UI_INPUT_KEY_U
SHIFT = YES
CONVERT_ENERGY_TO_TORP = UI_INPUT_KEY_I
SHIFT = YES

SELECT_TORP_TYPE_0 = UI_INPUT_KEY_1
SHIFT = NO
SELECT_TORP_TYPE_1 = UI_INPUT_KEY_2
SHIFT = NO
SELECT_TORP_TYPE_2 = UI_INPUT_KEY_3
SHIFT = NO
SELECT_TORP_TYPE_3 = UI_INPUT_KEY_4
SHIFT = NO

CYCLE_TORP_TUBE_0 = UI_INPUT_KEY_7
CYCLE_TORP_TUBE_1 = UI_INPUT_KEY_8
CYCLE_TORP_TUBE_2 = UI_INPUT_KEY_9
CYCLE_TORP_TUBE_3 = UI_INPUT_KEY_0

FIRE_TORP_TUBE_0 = UI_INPUT_KEY_1
SHIFT = YES
FIRE_TORP_TUBE_1 = UI_INPUT_KEY_2
SHIFT = YES
FIRE_TORP_TUBE_2 = UI_INPUT_KEY_3
SHIFT = YES
FIRE_TORP_TUBE_3 = UI_INPUT_KEY_4
SHIFT = YES

;Left stick: X-Axis
ANALOG_RUDDER = UI_INPUT_JOY0_AXIS0
ANALOG_RUDDER = UI_INPUT_JOY0_AXIS3
DEADZONE = 0.0
MULTIPLY = 1.0
POWER = 1.0
ADD = 0.0
HIGH_BOUND = 1.0
LOW_BOUND = -1.0

;L2 and R2 (same as Impulse Up and Impulse Down above
ANALOG_THROTTLE = UI_INPUT_JOY0_AXIS2

; -------------------------------------------------------------------------------------
; this commented section should be uncommented if you have a throttle on your joystick.
; these settings are for a ThrustMaster T-flight HotasX.
;ANALOG_THROTTLE = UI_INPUT_JOY0_AXIS2
;ABSOLUTE = YES
;MULTIPLY = -0.5
;ADD = 0.5


;JOY_WARP_1 = UI_INPUT_JOY0_BUTT0
;JOY_WARP_2 = UI_INPUT_JOY0_BUTT1
;JOY_WARP_3 = UI_INPUT_JOY0_BUTT2
;JOY_WARP_4 = UI_INPUT_JOY0_BUTT3

; -------------------------------------------------------------------------------------
; this commented section should be uncommented if you have a joystick or yoke, and you want to climb and dive by pushing forward and backward.
;Left Stick Y-Axis
ANALOG_CLIMB_DIVE = UI_INPUT_JOY0_AXIS1
ANALOG_CLIMB_DIVE = UI_INPUT_JOY0_AXIS4
MULTIPLY = 1.0

; -------------------------------------------------------------------------------------
; joystick modifiers
; -------------------------------------------------------------------------------------
; the analog joystick axes have a set of optional modifiers that can be used to precisely tune
; how your joystick herdware works with Artemis.
;
; after reading the joystick axis from the hardware, and getting back a value in the
; range of -1 to 1, these modifiers are applied IN ORDER:
;
; DEADZONE
; default is 0.0
; typical values are 0.0 to 0.3
; This modifier cuts out the center of the joystick's range of motion, making the
; motion more stable for joysticks that have "twitchy" outputs. If your joystick
; is wiggling or otherwise unstable even when your hand isn't on it, this modifier
; can help.
;
; MULTIPLY
; default is 1.0
; typical values are 1.0 OR -1.0
; This modifier multiplys it's value by the joystick output. It can be used to
; expand or reduce a joystick's range of motion, but it's most useful to invert
; the joystick's output.
;
; POWER
; default is 1.0
; typical values are 1.0 to 2.0
; This modifier gets the power of the joystick output, where the exponent is the
; value of POWER. Giving this a value greater than 1.0 makes the center of the
; joystick movement more precise, at the expense of precision when the joystick
; is near its maximum range of motion.
;
; ADD
; default is 0.0
; This modifier simply adds the number to the joystick output. If your joystick
; doesn't prperly center, you can use this to compensate.
;
; HIGH_BOUND
; default is 1.0
; This modifier keeps the joystick output from going any higher than the value.
;
; LOW_BOUND
; default is -1.0
; This modifier keeps the joystick output from going any lower than the value.
;

ryleyra

Registered:
Posts: 2,910
Reply with quote  #2 
I believe this should do it (note this is only a guess as I haven't actually tried the file)

change this:

;L2 and R2 (same as Impulse Up and Impulse Down above
ANALOG_THROTTLE = UI_INPUT_JOY0_AXIS2

to this:

;L2 and R2 (same as Impulse Up and Impulse Down above
;ANALOG_THROTTLE = UI_INPUT_JOY0_AXIS2

and change this:

;Left Stick Y-Axis
ANALOG_CLIMB_DIVE = UI_INPUT_JOY0_AXIS1
ANALOG_CLIMB_DIVE = UI_INPUT_JOY0_AXIS4

to this:

;Left Stick Y-Axis
ANALOG_THROTTLE = UI_INPUT_JOY0_AXIS1
ANALOG_THROTTLE = UI_INPUT_JOY0_AXIS4

optionally, this should cause the left stick to control impulse but the right stick will still control up/down:

;Left Stick Y-Axis
ANALOG_THROTTLE = UI_INPUT_JOY0_AXIS1
ANALOG_CLIMB_DIVE = UI_INPUT_JOY0_AXIS4

Note that according to this, joystick axes 0 and 1 are the left stick, and 3 and 4 are the right stick. Joystick axis 2 is actually the L2 and R2 shoulder triggers, which act as analog triggers. If I'm reading this right, the original settings should have made you go forward with R2, faster the harder you pull on the trigger, and backwards with L2. That should be the way it works with a joystick, you push the stick all the way forward to go at 100% Impulse, and all the way back to go backwards with 100% Impulse.
power2084

Avatar / Picture

Registered:
Posts: 64
Reply with quote  #3 
Thank you good friend Ryleyra !! Your modifications worked well   [smile][redface][smile]

Although, I didn't try the last optional part you suggested.

The controls work the way I want, now !   [biggrin]

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.