Advertisement
evan203

citybys_engine_ce.jbeam

Feb 17th, 2019
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.09 KB | None | 0 0
  1. {
  2. "citybus_engine_ce": {
  3. "information":{
  4. "authors":"phoob",
  5. "name":"Customizable Gavril TCM 8.9L Diesel Engine",
  6. "value":16500,
  7. },
  8. "slotType" : "citybus_engine",
  9. "slots": [
  10. ["type", "default", "description"]
  11. //engine
  12. ["citybus_transmission","citybus_transmission_4A", "Transmission"],
  13. ["citybus_radiator","citybus_radiator", "Radiator"],
  14. ["citybus_turbo","citybus_turbo_280", "Turbocharger", {"coreSlot":true}],
  15. ["citybus_engine_ecu","citybus_engine_ecu", "Engine Management",{"coreSlot":true}],
  16. //exhaust and intake are linked from body section because they mount to body
  17. ["n2o_system","", "Nitrous Oxide System"],
  18. ["citybus_engine_internals","citybus_engine_internals", "Engine Long Block",{"coreSlot":true}],
  19. ],
  20. "variables": [
  21. ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
  22. ["$rpm1", "range", "RPM", "Engine", 300, 250, 900, "RPM Torque Postion 1", "This is defines where the 1st torque variable will be 'set'"{"stepDis":50}]
  23. ["$rpm2", "range", "RPM", "Engine", 600, 500, 1800, "RPM Torque Position 2", "This is defines where the 2nd torque variable will be 'set'"{"stepDis":50}]
  24. ["$rpm3", "range", "RPM", "Engine", 900, 750, 2700, "RPM Torque Position 3", "This is defines where the 3rd torque variable will be 'set'"{"stepDis":50}]
  25. ["$rpm4", "range", "RPM", "Engine", 1200, 1000, 3600, "RPM Torque Position 4", "This is defines where the 4th torque variable will be 'set'"{"stepDis":50}]
  26. ["$rpm5", "range", "RPM", "Engine", 1500, 1250, 4500, "RPM Torque Position 5", "This is defines where the 5th torque variable will be 'set'"{"stepDis":50}]
  27. ["$rpm6", "range", "RPM", "Engine", 1800, 1500, 5400, "RPM Torque Position 6", "This is defines where the 6th torque variable will be 'set'"{"stepDis":50}]
  28. ["$rpm7", "range", "RPM", "Engine", 2100, 1750, 7500, "RPM Torque Position 7", "This is defines where the 7th torque variable will be 'set'"{"stepDis":50}]
  29. ["$rpm8", "range", "RPM", "Engine", 2400, 2000, 9600, "RPM Torque Position 8", "This is defines where the 8th torque variable will be 'set'"{"stepDis":50}]
  30. ["$rpm9", "range", "RPM", "Engine", 2700, 2250, 11000, "RPM Torque Position 9", "This is defines where the 9th torque variable will be 'set'"{"stepDis":50}]
  31. ["$rpma", "range", "RPM", "Engine", 3000, 2500, 12000, "RPM Torque Position 10", "This is defines where the 10th torque variable will be 'set'"{"stepDis":50}]
  32. ["$torque0", "range", "Nm", "Engine", 0, 0, 1500, "Torque 0 RPM", "Amount of torque at 0 RPM"{"stepDis":0.25}]
  33. ["$torque1", "range", "Nm", "Engine", 400, 0, 1500, "Torque Value 1", "Amount of torque at the RPM defined in RPM Torque Position 1"{"stepDis":0.25}]
  34. ["$torque2", "range", "Nm", "Engine", 575, 0, 1500, "Torque Value 2", "Amount of torque at the RPM defined in RPM Torque Position 2"{"stepDis":0.25}]
  35. ["$torque3", "range", "Nm", "Engine", 675, 0, 1500, "Torque Value 3", "Amount of torque at the RPM defined in RPM Torque Position 3"{"stepDis":0.25}]
  36. ["$torque4", "range", "Nm", "Engine", 725, 0, 1500, "Torque Value 4", "Amount of torque at the RPM defined in RPM Torque Position 4"{"stepDis":0.25}]
  37. ["$torque5", "range", "Nm", "Engine", 750, 0, 1500, "Torque Value 5", "Amount of torque at the RPM defined in RPM Torque Position 5"{"stepDis":0.25}]
  38. ["$torque6", "range", "Nm", "Engine", 745, 0, 1500, "Torque Value 6", "Amount of torque at the RPM defined in RPM Torque Position 6"{"stepDis":0.25}]
  39. ["$torque7", "range", "Nm", "Engine", 735, 0, 1500, "Torque Value 7", "Amount of torque at the RPM defined in RPM Torque Position 7"{"stepDis":0.25}]
  40. ["$torque8", "range", "Nm", "Engine", 715, 0, 1500, "Torque Value 8", "Amount of torque at the RPM defined in RPM Torque Position 8"{"stepDis":0.25}]
  41. ["$torque9", "range", "Nm", "Engine", 635, 0, 1500, "Torque Value 9", "Amount of torque at the RPM defined in RPM Torque Position 9"{"stepDis":0.25}]
  42. ["$torquea", "range", "Nm", "Engine", 550, 0, 1500, "Torque Value 10", "Amount of torque at the RPM defined in RPM Torque Position 10"{"stepDis":0.25}]
  43. ["$idle", "range", "RPM", "Engine", 700, 0, 2000, "Idle RPM", "RPM at which the engine idles. (The throttle isn't pressed)"{"stepDis":25}]
  44. ["$max", "range", "RPM", "Engine", 5800, 2250, 12000, "Max RPM", "Maximum RPM the engine can handle. Change RPM Torque Positons accordingly"{"stepDis":50}]
  45. ["$aparticulates", "range", " ", "Engine", 0.052, 0, 1.0, "Particulates", "Amount of emission (particles) the engine produces (0.50+ = Black smoke) "{"stepDis":0.01}]
  46. ["$burnefficiency", "range", " ", "Engine", 0.33, 0, 1, "Efficiency", "How effective the engine is. Higher value = improved fuel economy and less heat"{"stepDis":0.01}]
  47. ["$shiftdown", "range", "RPM", "Engine", 3000, 1000, 6000, "Shift down RPM", "When the engine will shift down, only affects Arcade shifting"{"stepDis":50}]
  48. ["$shiftup", "range", "RPM", "Engine", 5800, 2750, 9000, "Shift up RPM", "When the engine will shift up, only affects Arcade shifting"{"stepDis":50}]
  49. ["$aweight", "range", "*8 kg", "Engine", 31, 20, 70, "Engine Weight", "The engine has eight nodes so for realistic engine weight, take this value *8"{"stepDis":25}]
  50. ["$arpmrough", "range", "", "Engine", 75, 10, 1000, "RPM Roughness", "This is a test"{"stepDis":0.1}]
  51. ],
  52. "powertrain" : [
  53. ["type", "name", "inputName", "inputIndex"],
  54. ["combustionEngine", "mainEngine", "dummy", 0],
  55. ],
  56. "mainEngine":{
  57. "torque":[
  58. ["rpm", "torque"]
  59. [0, "$torque0"],
  60. ["$rpm1", "$torque1"],
  61. ["$rpm2", "$torque2"],
  62. ["$rpm3", "$torque3"],
  63. ["$rpm4", "$torque4"],
  64. ["$rpm5", "$torque5"],
  65. ["$rpm6", "$torque6"],
  66. ["$rpm7", "$torque7"],
  67. ["$rpm8", "$torque8"],
  68. ["$rpm9", "$torque9"],
  69. ["$rpma", "$torquea"],
  70. ],
  71.  
  72. "idleRPM":"$idle",
  73. "maxRPM":"$max",
  74. "inertia":3,
  75. "friction":30,
  76. "idleRPMRoughness":"$arpmrough",
  77. "revLimiterType":"soft"
  78. "dynamicFriction":0.3
  79. "burnEfficiency":"$burnefficiency",
  80. "torqueReactionNodes:":["en4l","en3l","en1r"]
  81. "particulates":"$aparticulates",
  82. "energyStorage": "mainTank",
  83. "requiredEnergyType":"diesel",
  84.  
  85. //cooling and oil system
  86. "thermalsEnabled":true
  87. "engineBlockMaterial":"iron"
  88. "oilVolume":25
  89.  
  90. //engine durability
  91. "maxTorqueRating": 50000,
  92. "maxOverTorqueDamage": 50000,
  93.  
  94. "cylinderWallTemperatureDamageThreshold":160
  95. "headGasketDamageThreshold":1500000
  96. "pistonRingDamageThreshold":1500000
  97. "connectingRodDamageThreshold":1500000
  98.  
  99. //node beam interface
  100. "waterDamage": {"[engineGroup]:":["intake"]}
  101. "radiator": {"[engineGroup]:":["radiator"]}
  102. "engineBlock": {"[engineGroup]:":["engine_block"]}
  103. "breakTriggerBeam":"engine",
  104. "uiName":"Engine",
  105.  
  106. "soundConfig": "soundConfig",
  107. },
  108. "soundConfig": {
  109. "sampleName": "I6D", //"L6",
  110. "mainGain": -3,
  111. "maxLoadMix": 0.8,
  112. "minLoadMix": 0.1,
  113. "onLoadGain":1,
  114. "offLoadGain":0.76,
  115. //"eqLowGain": 0,
  116. //"eqLowFreq": 50,
  117. //"eqLowWidth": 0,
  118. //"eqHighGain": 0,
  119. //"eqHighFreq": 4000,
  120. //"eqHighWidth": 0.1,
  121. //"lowCutFreq": 60,
  122. //"eqFundamentalGain": 0,
  123. },
  124. "vehicleController": {
  125. //**highShiftDown can be overwritten by automatic transmissions**
  126. "highShiftDownRPM":"$shiftup",
  127. //**highShiftUp can be overwritten by intake modifications**
  128. "highShiftUpRPM":"$shiftdown"
  129. },
  130. "flexbodies": [
  131. ["mesh", "[group]:", "nonFlexMaterials"],
  132. ["citybus_engine", ["citybus_engine_R","citybus_engine_L"]],
  133. ["citybus_compressor", ["citybus_frame"]],
  134. {"deformGroup":"pipes_break", "deformMaterialBase":"citybus", "deformMaterialDamaged":"invis"},
  135. ["citybus_pipes", ["citybus_frame_upper","citybus_engine_L","citybus_engine_piping"]],
  136. ["citybus_compressorbelt", ["citybus_frame","citybus_engine_R","citybus_engine_L"]],
  137. {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
  138. ],
  139. "nodes": [
  140. ["id", "posX", "posY", "posZ"],
  141. {"selfCollision":true}
  142. {"collision":true}
  143. //--ENGINE CUBE--
  144. {"nodeWeight":125},
  145. {"frictionCoef":0.5},
  146. {"nodeMaterial":"|NM_METAL"},
  147. {"group":"citybus_engine_L"},
  148. {"engineGroup":"engine_block"}
  149. ["en1l", 0.24, 6.03, 0.44,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":700,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":"thermals","conductionRadius":0.21}],
  150. ["en2l", 0.24, 5.2, 0.36,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":700,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":"thermals","conductionRadius":0.21}],
  151. ["en3l", 0.24, 5.95, 1.42,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":700,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":"thermals","conductionRadius":0.21}],
  152. ["en4l", 0.24, 5.12, 1.35,{"isExhaust":"mainEngine","chemEnergy":1000,"burnRate":0.39,"flashPoint":700,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":"thermals","conductionRadius":0.21}],
  153. {"group":"citybus_engine_R"},
  154. ["en1r", -0.24, 6.03, 0.44],
  155. {"engineGroup":["engine_block","exhaust_manifold"]},
  156. ["en2r", -0.24, 5.2, 0.36],
  157. {"engineGroup":"engine_block"},
  158. ["en3r", -0.24, 5.95, 1.42],
  159. ["en4r", -0.24, 5.12, 1.35],
  160. {"group":"citybus_engine_piping"},
  161. {"nodeWeight":2.5},
  162. ["in0", -0.78, 5.55, 1.46, {"engineGroup":"intake"}],
  163. ["ex0", 1.06, 6.02, 1.35],
  164. ["ex6", 1.06, 6.02, 1.75],
  165. {"engineGroup":""}
  166. {"selfCollision":true}
  167. {"collision":true}
  168. {"group":""},
  169. ],
  170. "beams": [
  171. ["id1:", "id2:"],
  172. //--ENGINE CUBE--
  173. {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
  174. {"beamSpring":20001000,"beamDamp":5000},
  175. {"beamDeform":250000,"beamStrength":"FLT_MAX"},
  176. ["en1r","en1l"],
  177. ["en1r","en2r"],
  178. ["en1r","en2l"],
  179. ["en1r","en3r"],
  180. ["en1r","en3l"],
  181. ["en1r","en4r"],
  182. ["en1r","en4l"],
  183. ["en1l","en2r"],
  184. ["en1l","en2l"],
  185. ["en1l","en3r"],
  186. ["en1l","en3l"],
  187. ["en1l","en4r"],
  188. ["en1l","en4l"],
  189. ["en2r","en2l"],
  190. ["en2r","en3r"],
  191. ["en2r","en3l"],
  192. ["en2r","en4r"],
  193. ["en2r","en4l"],
  194. ["en2l","en3r"],
  195. ["en2l","en3l"],
  196. ["en2l","en4r"],
  197. ["en2l","en4l"],
  198. ["en3r","en3l"],
  199. ["en3r","en4r"],
  200. ["en3r","en4l"],
  201. ["en3l","en4r"],
  202. ["en3l","en4l"{"isExhaust":"mainEngine"}],
  203. ["en4r","en4l"],
  204.  
  205. //engine mounts
  206. {"beamSpring":4001000,"beamDamp":2500},
  207. {"beamDeform":50000,"beamStrength":295000},
  208. {"deformGroup":"pipes_break","deformationTriggerRatio":0.1},
  209. ["en1l", "fm18l",{"name":"engine","disableMeshBreaking":true,"disableTriangleBreaking":true}],
  210. ["en1r", "fm18r",{"name":"engine","disableMeshBreaking":true,"disableTriangleBreaking":true}],
  211. ["en3r", "fm18r"],
  212. ["en3l", "fm18l"],
  213. ["en1r", "fm18l"],
  214. ["en1l", "fm18r"],
  215.  
  216. ["en2l", "fs16l"],
  217. ["en2r", "fs16r"],
  218.  
  219. ["en2l", "fm16l"],
  220. ["en2r", "fm16r"],
  221.  
  222. ["en4l", "fm16l"],
  223. ["en4r", "fm16l"],
  224. {"deformGroup":""},
  225.  
  226. //engine piping
  227. {"beamSpring":51000,"beamDamp":500},
  228. {"beamDeform":2000,"beamStrength":5000},
  229. ["ex0", "ex6"{"isExhaust":"mainEngine"}],
  230. ["ex0", "en3l"{"isExhaust":"mainEngine"}],
  231. ["ex0", "en4l"],
  232. ["ex6", "en3l"],
  233. ["ex0", "en1l"],
  234. ["ex6", "en4l"],
  235. {"beamDeform":2000,"beamStrength":10000},
  236. ["en3r", "in0"],
  237. ["en4r", "in0"],
  238. ["en1r", "in0"],
  239. ["en2r", "in0"],
  240.  
  241. //limiters
  242. {"beamType":"|SUPPORT", "beamLongBound":5},
  243. {"beamSpring":10001000,"beamDamp":250},
  244. {"beamDeform":150000,"beamStrength":850000},
  245. {"beamPrecompression":0.8},
  246. ["en4l", "sm18r"],
  247. ["en4r", "sm18l"],
  248. ["en2l", "fm18r"],
  249. ["en2r", "fm18l"],
  250.  
  251. ["en1l", "fm18ll"],
  252. ["en1r", "fm18rr"],
  253. ["en2r", "fm16rr"],
  254. ["en2l", "fm16ll"],
  255.  
  256. ["sp16l", "en2r"],
  257. ["sp16r", "en2l"],
  258. ["sp18l", "en1r"],
  259. ["sp18r", "en1l"],
  260. {"beamPrecompression":1},
  261. {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
  262. ],
  263. "triangles": [
  264. ["id1:","id2:","id3:"],
  265. {"dragCoef":5},
  266. {"groundModel":"metal"},
  267. {"optional":true},
  268. ["en1r", "tra2r", "en4r"],
  269. ["en4r", "en3r", "en1r"],
  270. ["en1r", "en1l", "tra2l"],
  271. ["tra2l", "tra2r", "en1r"],
  272. ["en3l", "en1l", "en1r"],
  273. ["en1r", "en3r", "en3l"],
  274. ["en4r", "tra2r", "tra2l"],
  275. ["tra2l", "en4l", "en4r"],
  276. ["en3r", "en4r", "en4l"],
  277. ["en4l", "en3l", "en3r"],
  278. ["tra2l", "en1l", "en3l"],
  279. ["en3l", "en4l", "tra2l"],
  280. ["tra2l", "en1l","en4l"],
  281. ["en3l", "en4l", "en1l"],
  282. {"optional":false},
  283.  
  284. {"triangleType":"NONCOLLIDABLE"},
  285. ["ex6", "ex0", "en3l"],
  286. ["en3r", "in0", "en4r"],
  287. {"triangleType":"NORMALTYPE"},
  288. {"group":""},
  289. ],
  290. },
  291. "citybus_turbo_CE": {
  292. "information":{
  293. "authors":"phoob",
  294. "name":"Custom Turbocharger",
  295. "value":6500,
  296. }
  297. "slotType" : "citybus_turbo",
  298. "flexbodies": [
  299. ["mesh", "[group]:"],
  300. ],
  301. "variables": [
  302. ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
  303. ["$wastegateStart", "range", "psi", "Turbocharger", 50, 1, 200, "Wastegate Start", "Pressure at which the wastegate begins to open"{"stepDis":0.5}]
  304. ["$wastegateLimit", "range", "psi", "Turbocharger", 55, 1, 220, "Wastegate Limit", "Pressure at which the wastegate is fully opened"{"stepDis":0.5}]
  305. ["$exhaustpower", "range", " ", "Turbocharger", 18000, 2000, 100000, "Exhaust Power", "Arround 5000 to 12000 per psi of max boost is recommended, How quickly the turbo spools"{"stepDis":500}]
  306. ],
  307. "turbocharger": {
  308. "volumePer10kRPM":0.2
  309. "pitchPer10kRPM": 0.2,
  310. "wastegateStart":"$wastegateStart",
  311. "wastegateLimit":"$wastegateLimit",
  312. "maxExhaustPower":"$exhaustpower",
  313. "backPressureCoef": 0.00005,
  314. "bovEnabled":false,
  315. "bovSoundVolumeCoef": 0.0
  316. "frictionCoef": 12,
  317. "inertia":15,
  318. "damageThresholdTemperature": 750,
  319. "turboLoopName": "event:>Vehicle>Forced_Induction>Turbo_04",
  320. "pressurePSI":[
  321. //turbineRPM, pressure(PSI)
  322. [0, 1],
  323. [30000, 80],
  324. [60000, 160],
  325. [90000, 250],
  326. [150000, 280],
  327. [200000, 280],
  328. [250000, 280],
  329. [300000, 300],
  330. ],
  331. "engineDef":[
  332. //engineRPM, efficiency, exhaustFactor
  333. [0, 0.0, 0.0],
  334. ["$rpm1", 0.1, 0.1],
  335. ["$rpm2", 0.2, 0.2],
  336. ["$rpm3", 1.0, 0.75],
  337. ["$rpm4", 1.0, 0.75],
  338. ["$rpm5", 1.0, 0.75],
  339. ["$rpm6", 1.0, 0.80],
  340. ["$rpm7", 1.0, 0.85],
  341. ["$rpm8", 1.0, 0.90],
  342. ["$rpm9", 1.0, 0.95],
  343. ["$rpma", 1.0, 1.0],
  344. ],
  345. },
  346. "mainEngine": {
  347. //turbocharger name
  348. "turbocharger":"turbocharger",
  349. },
  350. }
  351. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement