Solved help adding couplers to my mod

Discussion in 'Mod Support' started by JBatic, Jul 27, 2016.

  1. JBatic

    JBatic
    Expand Collapse

    Joined:
    Jan 22, 2015
    Messages:
    1,048
    hello I was trying to add couplers to my bronco so it can tow things again. I checked the pickup tow hitch jbeam and added the parts that looked like they had to deal with couplers but now the bronco won't even show up when I pick it from the vehicle selector, so can you tell me what I am missing
     

    Attached Files:

  2. Ai'Torror

    Ai'Torror
    Expand Collapse
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,550
  3. JBatic

    JBatic
    Expand Collapse

    Joined:
    Jan 22, 2015
    Messages:
    1,048
    I copied all that from the D series and I still doesn't work ,I think I probably missed something but I don't know what is going on
    bronco w/ modified jbeam and a screenshot of lua 20160727213902_1.jpg
     

    Attached Files:

  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    Your code:
    Code:
             ["tw", 0.0, 2.76, 0.58], {"couplerTag":"tow_hitch","couplerStrength":2001000,"couplerRadius":1}],
    
    Correct code:
    Code:
             ["tw", 0.0, 2.76, 0.58, {"couplerTag":"tow_hitch","couplerStrength":2001000,"couplerRadius":1}],
    

    Don't put ] after the Z coordinate.
     
    • Like Like x 1
  5. JBatic

    JBatic
    Expand Collapse

    Joined:
    Jan 22, 2015
    Messages:
    1,048
    thanks! fixing that now
    --- Post updated ---
    ok now it is saying I have something wrong with my slots part in the towhitch jbeam but the [ has been there since I first added the towhitch so now I am back to square one. lua
    20160728104023_1.jpg
     

    Attached Files:

  6. synsol

    synsol
    Expand Collapse
    QA Lead
    BeamNG Team

    Joined:
    Aug 4, 2013
    Messages:
    1,471
    hi , it's just a closing bracket who is missing here :
    5fd60ecc77c7e9cf6dbd72a70fd053ee.png
     
  7. JBatic

    JBatic
    Expand Collapse

    Joined:
    Jan 22, 2015
    Messages:
    1,048
    fixing now and thanks a lot
    --- Post updated ---
    it works but the mesh is messed up,
     

    Attached Files:

    • screenshot_00027.png
    • screenshot_00029.png
  8. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    340
    Hey,

    is it messed up by default or after a crash?

    Is it still a problem?
     
  9. JBatic

    JBatic
    Expand Collapse

    Joined:
    Jan 22, 2015
    Messages:
    1,048
    any time you spawn the truck it happens
    I attached the latest version
     
  10. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    340
    Hey,

    I had a look at your files.

    Unfortunataly you remove the beams for the 2nd node of the tow hitch (tw2).
    Correct beams part has to look like this:

    Code:
    "beams": [
              ["id1:", "id2:"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              //--TOW HITCH--
              {"beamSpring":1601000,"beamDamp":150},
              {"beamDeform":16000,"beamStrength":500000},
              ["tw","fr19r"],
              ["tw","fr19"],
              ["tw","fr19l"],
              ["tw","fr20r"],
              ["tw","fr20"],
              ["tw","fr20l"],
    
              ["tw2","fr19r"],
              ["tw2","fr19"],
              ["tw2","fr19l"],
              ["tw2","fr20r"],
              ["tw2","fr20"],
              ["tw2","fr20l"],
    
              ["tw","tw2"],
            
        ],
    Result:



    Please make also sure that all your textures are power of 2 (Textures wiki) . Otherwise the game is dropping a bunch of errors.
     

    Attached Files:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice