So i am trying to make a mod for the Pessima, and i figured i'd start with the engine. So i make the engine, do the editing in the .jbeam, and when i load up the game it's not showing up. Can anyone help me? Code: "pessima_engine_crazy": { "information":{ "authors":"EtyxNyx", "name":"2.0L DOHC I4 P35 Engine", "value":750, } "slotType" : "pessima_engine", "slots": [ ["type", "default", "description"] ["pessima_exhaust","pessima_exhaust", "Exhaust"], ["pessima_transmission","pessima_transmission_4A", "Transmission"], ["pessima_intake_dohc","pessima_intake_dohc", "Intake",{"coreSlot":true}], ], "powertrain": [ ["type", "name", "inputName", "inputIndex"], ["combustionEngine", "mainEngine", "dummy", 0], ], "mainEngine":{ "torque":[ ["rpm", "torque"] [500, 80.54], [600, 86.76], [700, 92.16], [800, 97.34], [900, 102.07], [1000, 106.01], [1100, 108.53], [1200, 110.67], [1300, 112.24], [1400, 114.55], [1500, 116.27], [1600, 118.6], [1700, 120.7], [1800, 122.85], [1900, 124.93], [2000, 126.21], [2100, 127.99], [2200, 130.04], [2300, 132.66], [2400, 135.23], [2500, 137.93], [2600, 140.91], [2700, 144.61], [2800, 148.07], [2900, 152.2], [3000, 156.86], [3100, 161.69], [3200, 167.51], [3300, 173.68], [3400, 181.69], [3500, 190.45], [3600, 202.69], [3700, 217.39], [3800, 235.78], [3900, 259.15], [4000, 281.74], [4100, 306.6], [4200, 330.27], [4300, 349.41], [4400, 362.88], [4500, 372.57], [4600, 375.92], [4700, 377.01], [4800, 376.71], [4900, 375.12], [5000, 373.65], [5100, 371.87], [5200, 369.06], [5300, 365.21], [5400, 362.19], [5500, 360.32], [5600, 358.49], [5700, 356.58], [5800, 353.96], [5900, 352.44], [6000, 351.33], [6100, 350.27], [6200, 348], [6300, 345.64], [6400, 343.14], [6500, 340.76], [6600, 338.26], [6700, 334.51], [6800, 330.69], [6900, 326.19], [7000, 321.69], [7100, 318.22], [7200, 312.98], [7300, 309.06], [7400, 304.92], [7500, 299.99], [7600, 294.21], [7700, 287.61], [7800, 281.14], [7900, 273.95], ], "idleRPM":900, "maxRPM":8000, "inertia":0.18, "friction":16 "dynamicFriction":0.02 "burnEfficiency":0.34 "torqueReactionNodes:":["e1l","e2l","e4r"] "particulates":0.02 "energyStorage": "mainTank", "requiredEnergyType":"gasoline", //cooling and oil system "thermalsEnabled":false "engineBlockMaterial":"aluminum" "oilVolume":4 //engine durability "cylinderWallTemperatureDamageThreshold":120 "headGasketDamageThreshold":1500000 "pistonRingDamageThreshold":1500000 "connectingRodDamageThreshold":2000000 //node beam interface "waterDamage": {"[engineGroup]:":["engine_intake"]}, "radiator": {"[engineGroup]:":["radiator"]}, "engineBlock": {"[engineGroup]:":["engine_block"]}, "breakTriggerBeam":"engine", }, "vehicleController": { "clutchLaunchStartRPM":2000, "clutchLaunchTargetRPM":2600, //**highShiftDown can be overwritten by automatic transmissions** "highShiftDownRPM":[0,0,0,2800,3300,3600,3800,3800] //**highShiftUp can be overwritten by intake modifications** "highShiftUpRPM":6300 }, "flexbodies": [ ["mesh", "[group]:", "nonFlexMaterials"], ["pessima_engine_dohc", ["pessima_engine"]], ], "nodes": [ ["id", "posX", "posY", "posZ"], //--2.0L I4 Engine-- {"selfCollision":false}, {"collision":true} {"nodeMaterial":"|NM_METAL"}, {"frictionCoef":0.5}, {"group":"pessima_engine"}, {"engineGroup":"engine_block"} {"nodeWeight":17}, ["e1r", 0.18, -1.62, 0.24,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}], ["e1l", 0.18, -1.38, 0.24], ["e2r", -0.29, -1.62, 0.24,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}], ["e2l", -0.29, -1.38, 0.24], {"engineGroup":["engine_block","engine_intake"]} ["e3r", 0.18, -1.66, 0.75,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}], ["e3l", 0.18, -1.28, 0.75], ["e4r", -0.29, -1.66, 0.75,{"isExhaust":true,"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}], ["e4l", -0.29, -1.28, 0.75], ["tc1", 0, -1.65, 0.42], {"engineGroup":""} {"group":""}, ], "beams": [ ["id1:", "id2:"], {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0}, {"beamSpring":8400600,"beamDamp":150}, {"beamDeform":540000,"beamStrength":"FLT_MAX"}, //engine ["e1r","e1l"], ["e2r","e2l"], ["e3r","e3l"], ["e4r","e4l"], ["e1r","e2r"], ["e1l","e2l"], ["e3r","e4r"], ["e3l","e4l"], ["e1r","e3r"], ["e1l","e3l"], ["e2r","e4r"{"isExhaust":true}], ["e2l","e4l"], ["e2r","e3r"], ["e2l","e3l"], ["e2r","e3l"], ["e2l","e3r"], ["e1r","e4r"], ["e1l","e4l"], ["e1r","e4l"], ["e1l","e4r"], ["e1r","e2l"], ["e1l","e2r"], ["e3r","e4l"], ["e3l","e4r"], ["e1r","e3l"], ["e1l","e3r"], ["e2r","e4l"], ["e2l","e4r"], ["tc1","e3l"], ["tc1","e3r"], ["tc1","e4l"], ["tc1","e4r"], ["tc1","e1l"], ["tc1","e1r"], ["tc1","e2l"], ["tc1","e2r"], {"beamSpring":60600,"beamDamp":50}, {"beamDeform":1000,"beamStrength":2000}, //rad tube beams {"breakGroup":"radtube"}, ["e3r","f15l"], ["e3r","f15"], ["e3r","f15l"], ["e3r","f15"], {"breakGroup":""}, {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0}, ], }
{ if you use notepad, out your cursor on every bracket so it will turn red, and check if the matching opening or closing bracket will turn red too if you do that.
Ending bracket checked? and I will take a closer look at your code, but I'm on phone so I can't test.
{ Enginebladibladibla{ More blablabla }, } Or just use the pessima engine and copy paste your stuff into the old one. And don't forget to check the brackets with notepad.
i did copy it. But was i supposed to put the engine stuff in the original jbeam, or in a new one in the mod folder?
oh i just left the name engine.jbeam... oops and should the mod .jbeam have all the pessima engines or just my new one?
If it isn't in the same subfolder as the normal engine, so vehicles/pessima/engine.jbeam it will overwrite the normal part so there may still be an error
If you don't use it, yes, this makes the mod more future proof. So your mod is now randomname.zip/vehicles/pessima/anothername/engine_idkwhat.jbeam?
Yeah. thank you so much, i'm dumb. (not my fault i'm dumb today, asshole in a Legacy decided he'd rather hit me while i was crossing the road than wait and i hit my head) and it still isn't working
Is it in documents/BeamNG/mods? And did you check all the brackets and stuff. And what is the problem? If it doesn't show up in the parts selector you may have made a mistake in the slottype or the folder structure. And if the car doesn't show up it is usually a bad bracket or ' or another stupid small syntax thing. Then you want to look in the console to see what line causes the (first) error
the car's showing up, it's just not showing the engine in the parrt selector. I feel really dumb. What does slottype mean? My folder structure is documents/Beamng.Drive/mods/engine.zip/vehicles/pessima/engine_etyxnyx.jbeam
I dont know if that works, I always add an extra folder: documents/Beamng.Drive/mods/engine.zip/vehicles/pessima/etyxnyx/engine_etyxnyx.jbeam You can try that