| Category | Farming Simulator 25 |
| Created | 17.03.2025 21:03 |
| Jorn Van Soesbergen (jornvs123) | 17.03.2025 21:03 |
|---|---|
| Hello. Im working on a mod and im trying to add a trailer attacher point to the vehicle. I have made a custom vehicle type with the specialisation AttacherJoints added. However when i load the game it gives an error telling me that im indexing nil with addAttacherJoint. I am 100% sure that the node i made is correctly maped and in the i3d file. Is there someone who could help me out Moddesc: <?xml version="1.0" encoding="utf-8" standalone="no"?> <modDesc descVersion="92" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs25/modDesc.xsd"> <author>Jron</author> <version>1.0.0.0</version> <title> <en>Plantera PalletFlipper</en> </title> <description> <en><![CDATA[ Category: Pallets Price: $150 ]]></en> </description> <iconFilename>Plantera.dds</iconFilename> <multiplayer supported="true"/> <storeItems> <storeItem xmlFilename="PalletFlipper.xml"/> </storeItems> <brands> <brand name="PLANTERA" title="Plantera" image="brand/brand.dds"/> </brands> <vehicleTypes> <type name="PalletFlipper" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua"> <specialization name="vehicleSettings" /> <specialization name="baseMaterial" /> <specialization name="tipOccluder" /> <specialization name="foliageBending" /> <specialization name="dynamicallyLoadedParts" /> <specialization name="mountable" /> <specialization name="dashboard" /> <specialization name="animatedVehicle" /> <specialization name="tensionBeltObject" /> <specialization name="wearable" /> <specialization name="washable" /> <specialization name="enterable" /> <specialization name="cylindered" /> <specialization name="attacherJoints" /> </type> </vehicleTypes> </modDesc> Vehicle xml part: <attacherJoints> <attacherJoint node="trailerAttacherJoint" jointType="trailer" lowerRotLimit="0 0 0" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1"> <schema position="1 0" rotation="0" invertX="false"/> </attacherJoint> <sounds> <attach template="attach01" linkNode="0>" /> </sounds> </attacherJoints> Error log: 2025-03-17 20:54 Error: Running LUA method 'update'. dataS/scripts/vehicles/specializations/AttacherJoints.lua:3531: attempt to index nil with 'addAttacherJoint' 2025-03-17 20:54 Error: Running LUA method 'update'. dataS/scripts/vehicles/specializations/AttacherJoints.lua:3531: attempt to index nil with 'addAttacherJoint' |
|
| Farm Mods Tv (farmmodstv) | 19.03.2025 12:48 |
|---|---|
| In the typename section, you missed 'parent'. Example; <type name="baseFillable" parent="baseAttachable" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua"> <specialization name="fillUnit" /> <specialization name="fillVolume" /> <specialization name="cover" /> </type> |
|
| Jorn Van Soesbergen (jornvs123) | 21.03.2025 16:13 |
|---|---|
| Wel i changed it but i stil get the error: 2025-03-21 16:04 Error: Running LUA method 'update'. dataS/scripts/vehicles/specializations/AttacherJoints.lua:995: attempt to index nil with 'hydraulic' Is there a funtion that i forgot or something? |
|
| Farm Mods Tv (farmmodstv) | 26.03.2025 19:44 |
|---|---|
| Is there something like the following in specializations? Because as far as I know, "hydraulic" specialization is not used. <specialization name="hydraulic" /> |
|
| Farm Mods Tv (farmmodstv) | 26.03.2025 19:44 |
|---|---|
| Is there something like the following in specializations? Because as far as I know, "hydraulic" specialization is not used. <specialization name="hydraulic" /> |
|
Note: Log in to post. Create a new account here.