Community Forum

setting up controls with mouse translate_Y

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created20.04.2020 17:26

Dave Chuckry (CaptainD430) 20.04.2020 17:26
<movingTool node="upper_deck" playSound="true" isEasyControlTarget="false" >
<controls axis="AXIS_FRONTLOADER_ARM2" invertAxis="false" mouseSpeedFactor="0.2" iconName="CRANE_ARM2_TRANSLATE_Y"/>

this is what i have am i missing something maybe transmax transmin i dont know what numbers i would use for that any advice or link to post that deals with this already thanks

Bilbo Beutlin (BBeutlin) 20.04.2020 18:09
Of course the 'movingTool' properties must be defined explicitely.
There are tons of examples in the game default vehicles.
You can easily find them with a good text editor, eg. in Notepad++
Search in files / pattern "<movingTool" / filter "*.xml" / folder "{FS game}/data/vehicles"

Unknown 20.04.2020 23:08
As Bilbo Beutlin said, your movingTool is undefined right now. With what you have there, you tell the game that a certain node moves and is mouse controlled, but you haven't told the game what you want to happen when the player moves the mouse.

Dave Chuckry (CaptainD430) 29.04.2020 21:59
<movingTool node="upper_deck" yes it is defined

Unknown 29.04.2020 23:41
No that defines the node, that's only part of the definition. In general in coding you need WHAT, WHEN and HOW.
With the node=" " you define WHAT part should move. With AXIS_FRONTLOADER_ARM2 you define WHEN the part should move. Now you need to define HOW the part should move. As Bilbo said, lots of examples in basegame vehicles. Just take a look at the XML's of a telehandler or something like that.

Note: Log in to post. Create a new account here.