Community Forum

Implement attacher on a vehicle?

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created07.08.2017 03:02

Jesse Romney (firegod) 07.08.2017 03:02
Hello, I am trying to make a different type of mod. And the mod is technically two vehicles. But its a truck and a trailer. The trailer needs to be able to use the wheels to turn and sit in. And i'm trying to get the two to attach to each other and be able to drive both of them at the same time in multiplayer. Any way to put at implement attacher on a vehicle or another good way to do what i'm trying to do?

Emil Drefers (Unknown) 07.08.2017 07:28

an attacherJoint is nothing special in the world of FS, so your idea should work straightforward.

If you want to buy the vehicles in an 'already attached state' - that's also possible (see the data\vehicles\trailers\goldhofer\goldhoferStzVp3.xml)

If you are unable to attach the trailer ingame ... double check the orientation of the attacherJoint nodes in the truck and the trailer.
You can easily see how they have to be set up, if you open a default vehicle.


Jesse Romney (firegod) 08.08.2017 00:00

When ever I try to add a implement attacher to my mod I get this.

Error: Running LUA method 'loadSharedI3DFileFinished'.
dataS/scripts/vehicles/specializations/Drivable.lua(154) : attempt to index field 'attacherJointCombos' (a nil value)

How do I fix this. And when I try to start my save game with this mod already bought it wont let the game load. All just because I added this.

Put this in the VehicleTypes spot in moddesc: <specialization name="attachable" />

Put this in the Vehicle xml:
<inputAttacherJoint index="0>10" jointType="trailer" />

Emil Drefers (Unknown) 08.08.2017 06:56

if you change your vehicle it might be neccessary to start a new career/savegame.


Jesse Romney (firegod) 09.08.2017 01:43
Ok, I have it able to buy and back to a error less state. But now its not showing me that I can attach the two mods together. I have or at least think I have everything I need for the attachers to work. But they are not. Any ideas?

Emil Drefers (Unknown) 09.08.2017 07:16

two thing scom einto my mind.
1) use the console command "gsAnalayzeVehicle" to check if the attachers are really loaded and if their attributes/values are more or less correct
2) if the attacher joints are found, please double check the orientation of the 'attacher joint node' (if unsure please upload an image)


Jesse Romney (firegod) 10.08.2017 01:56
It does not say anything about the attacher joints. I might try rescripting them.

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