I am trying to make 2 lightbars on the van, it's ok when i use only one lightbar, but if i select the 2nd lightbar in the menu, the front (official) one start to explore and the game is totally lag. I though it was the nodes and beams are wrong but I have already edit it (little...), but I dont know how to solve it : / ( thats happen when the selfCollision turned off too )
@howard9068 , the issue is caused by the duplicated nodes names, i've renamed nodes (and beams) on your jbeam file and it work now Code: { "van_lightbar_dred": { "information":{ "authors":"BeamNG", "name":"2nd Red Light Bar", "value":1000, } "slotType" : "van_mod", "controller": [ ["fileName"], ["lightbar", { "defaultModeIndex": 1, "modes": [ ["name", "config"] ["Chase", [ ["electric", "value", "duration"], ["lightbar_r1", 0, 0.1], ["lightbar_r2", 1, 0.1], ["lightbar_r1", 1, 0.1], ["lightbar_r2", 0, 0.1], ], ], ], }], ], "glowMap":{ "old_lightbar_r1": {"simpleFunction":"lightbar_r1", "off":"old_lightbar_r1", "on":"old_lightbar_on"}, "old_lightbar_r2": {"simpleFunction":"lightbar_r2", "off":"old_lightbar_r2", "on":"old_lightbar_on"}, }, "props": [ ["func" , "mesh" , "idRef:", "idX:", "idY:" , "baseRotation" , "rotation" , "translation" , "min", "max", "offset", "multiplier"] { "lightRange":0 "lightColor":{"r":255, "g":0, "b":0, "a":255} "flareName":"vehicleHeadLightFlare" "flareScale":0.5 "cookieName":"art/special/BNG_light_cookie_headlight.png" } ["lightbar_r2" , "SPOTLIGHT" , "lb3r", "lb3", "lb4r", {"x":90, "y":90, "z":0} , {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.5, "z":-0.12},"deformGroup":"lightbar_RR"}], ["lightbar_r1" , "SPOTLIGHT" , "lb3l", "lb3", "lb4l", {"x":90, "y":90, "z":0} , {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.5, "z":0.12},"deformGroup":"lightbar_RL"}], ], "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["old_lightbar_a", ["van_lightbar"], [], {"pos":{"x": 0.0, "y":2.60, "z":2.04}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.45, "y":1.35, "z":1.35}}], //light {"deformGroup":"lightbar_R", "deformMaterialBase":"old_lightbar_r1", "deformMaterialDamaged":"old_lightbar_dmg"} ["old_red_r", ["van_lightbar"], [], {"pos":{"x": 0.0, "y":2.60, "z":2.04}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.45, "y":1.35, "z":1.35},"deformSound":"GlassBreakSound3", "deformVolume":0.5}], {"deformGroup":"lightbar_L", "deformMaterialBase":"old_lightbar_r2", "deformMaterialDamaged":"old_lightbar_dmg"} ["old_red_l", ["van_lightbar"], [], {"pos":{"x": 0.0, "y":2.60, "z":2.04}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.45, "y":1.35, "z":1.35},"deformSound":"GlassBreakSound4", "deformVolume":0.5}], {"deformGroup":""} ], "nodes": [ ["id", "posX", "posY", "posZ"], {"group":"van_lightbar"}, {"collision":true} {"selfCollision":true} {"nodeMaterial":"|NM_GLASS"}, {"frictionCoef":0.7}, {"nodeWeight":1}, ["2lb1", 0.0, 2.725, 2.222], ["2lb2", 0.0, 2.568, 2.222], ["2lb3", 0.0, 2.725, 2.088], ["2lb4", 0.0, 2.5, 2.088], ["2lb1l", 0.70, 2.725, 2.222], ["2lb2l", 0.70, 2.568, 2.222], ["2lb3l", 0.70, 2.725, 2.06], ["2lb4l", 0.70, 2.5, 2.06], ["2lb1r", -0.70, 2.725, 2.222], ["2lb2r", -0.70, 2.568, 2.222], ["2lb3r", -0.70, 2.725, 2.06], ["2lb4r", -0.70, 2.5, 2.06], {"group":""}, ], "beams": [ ["id1:", "id2:"], {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0}, {"beamSpring":801000,"beamDamp":50}, {"beamDeform":9750,"beamStrength":"FLT_MAX"}, //left side {"deformationTriggerRatio":0.1}, {"deformGroup":"lightbar_L"} ["2lb1","2lb2"], ["2lb1","2lb3"], ["2lb1","2lb4"], ["2lb1","2lb1l"], ["2lb1","2lb2l"], ["2lb1","2lb3l"], ["2lb1","2lb4l"], ["2lb2","2lb3"], ["2lb2","2lb4"], ["2lb2","2lb1l"], ["2lb2","2lb2l"], ["2lb2","2lb3l"], ["2lb2","2lb4l"], ["2lb3","2lb4"], ["2lb3","2lb1l"], ["2lb3","2lb2l"], ["2lb3","2lb3l"], ["2lb3","2lb4l"], ["2lb4","2lb1l"], ["2lb4","2lb2l"], ["2lb4","2lb3l"], ["2lb4","2lb4l"], ["2lb1l","2lb2l"], ["2lb1l","2lb3l"], ["2lb1l","2lb4l"], ["2lb2l","2lb3l"], ["2lb2l","2lb4l"], ["2lb3l","2lb4l"], //right side {"deformGroup":"2lightbar_R"} ["2lb1","2lb2"], ["2lb1","2lb3"], ["2lb1","2lb4"], ["2lb1","2lb1r"], ["2lb1","2lb2r"], ["2lb1","2lb3r"], ["2lb1","2lb4r"], ["2lb2","2lb3"], ["2lb2","2lb4"], ["2lb2","2lb1r"], ["2lb2","2lb2r"], ["2lb2","2lb3r"], ["2lb2","2lb4r"], ["2lb3","2lb4"], ["2lb3","2lb1r"], ["2lb3","2lb2r"], ["2lb3","2lb3r"], ["2lb3","2lb4r"], ["2lb4","2lb1r"], ["2lb4","2lb2r"], ["2lb4","2lb3r"], ["2lb4","2lb4r"], ["2lb1r","2lb2r"], ["2lb1r","2lb3r"], ["2lb1r","2lb4r"], ["2lb2r","2lb3r"], ["2lb2r","2lb4r"], ["2lb3r","2lb4r"], //attachment {"beamSpring":601000,"beamDamp":50}, {"beamDeform":24000,"beamStrength":42720}, //left {"deformGroup":"2lightbar_L"} {"breakGroup":"2lightbar_left"}, ["2lb3l","r2ll"], ["2lb3l","r3ll"], ["2lb4l","r2ll"], ["2lb4l","r3ll"], ["2lb1l","r2ll"], ["2lb1l","r3ll"], ["2lb2l","r2ll"], ["2lb2l","r3ll"], ["2lb3l","r2"], ["2lb3l","r3"], ["2lb4l","r2"], ["2lb4l","r3"], ["2lb1l","r2"], ["2lb1l","r3"], ["2lb2l","r2"], ["2lb2l","r3"], {"breakGroup":""}, //right {"deformGroup":"2lightbar_R"} {"breakGroup":"2lightbar_right"}, ["2lb3r","r2rr"], ["2lb3r","r3rr"], ["2lb4r","r2rr"], ["2lb4r","r3rr"], ["2lb1r","r2rr"], ["2lb1r","r3rr"], ["2lb2r","r2rr"], ["2lb2r","r3rr"], ["2lb3r","r2"], ["2lb3r","r3"], ["2lb4r","r2"], ["2lb4r","r3"], ["2lb1r","r2"], ["2lb1r","r3"], ["2lb2r","r2"], ["2lb2r","r3"], {"breakGroup":""}, {"deformGroup":""} ], "triangles": [ ["id1:","id2:","id3:"], {"dragCoef":14}, //rear end {"groundModel":"plastic"}, {"group":"van_rlightbar"}, ["2lb1r", "2lb3r", "2lb3"], ["2lb1r", "2lb3", "2lb1"], ["2lb3", "2lb3l", "2lb1l"], ["2lb3", "2lb1l", "2lb1"], ["2lb2l", "2lb4l", "2lb4"], ["2lb2l", "2lb4", "2lb2"], ["2lb4", "2lb4r", "2lb2r"], ["2lb2", "2lb4", "2lb2r"], ["2lb1l", "2lb2l", "2lb1"], ["2lb2l", "2lb2", "2lb1"], ["2lb2", "2lb2r", "2lb1r"], ["2lb1", "2lb2", "2lb1r"], ["2lb1l", "2lb3l", "2lb4l"], ["2lb1l", "2lb4l", "2lb2l"], ["2lb2r", "2lb4r", "2lb3r"], ["2lb2r", "2lb3r", "2lb1r"], ], } }
But weird things appear again I know it's jbeam's problem, but how can i solve it? ( I dont really understand the wiki cause i am not english ) Flying Light bar : / Sorry for so many problem .
Hey, some of the beams are not set properly. These beams are there to connect your lightbar to the body. You have to take a look at this section of your jbeam.