Help my custom piece won't work

Discussion in 'Programming' started by Hawaw_Dacar2, Jun 23, 2019.

  1. Hawaw_Dacar2

    Hawaw_Dacar2
    Expand Collapse

    Joined:
    May 21, 2019
    Messages:
    37
    I do some custom piece for the covet

    but they won't work

    Created codes

    "hatch_engine_internals_though": {
    "information":{
    "authors":"BeamNG",
    "name":"tough Long Block",
    "value":1000,
    }
    "slotType" : "hatch_engine_internals",
    "mainEngine":{
    //max rpm physically capable of
    "maxRPM":900000000,
    //engine durability
    "cylinderWallTemperatureDamageThreshold":165,
    "headGasketDamageThreshold":99999900000,
    "pistonRingDamageThreshold":99999900000,
    "connectingRodDamageThreshold":99999900000,
    "maxTorqueRating": -1,
    "maxOverTorqueDamage": -1,
    ],
    },
    "hatch_engine_ecu_ultra": {
    "information":{
    "authors":"Hawaw",
    "name":"ULTRA ECU",
    "value":125,
    }
    "slotType" : "hatch_engine_ecu",
    "mainEngine":{
    "hasRevLimiter":true,
    "idleRPM":850,
    "revLimiterRPM":10200,
    "revLimiterType":"timeBased",
    "revLimiterCutTime":0.01,
    ],
    },
    }
     
  2. Alex_Farmer557

    Alex_Farmer557
    Expand Collapse

    Joined:
    Dec 28, 2016
    Messages:
    3,541
    you need { at the very top of the code
     
  3. Hawaw_Dacar2

    Hawaw_Dacar2
    Expand Collapse

    Joined:
    May 21, 2019
    Messages:
    37
    ok thx
    --- Post updated ---
    not work
     
  4. Alex_Farmer557

    Alex_Farmer557
    Expand Collapse

    Joined:
    Dec 28, 2016
    Messages:
    3,541
    line 19 should be }, not ],
    same with line 34
    try this
     

    Attached Files:

  5. Hawaw_Dacar2

    Hawaw_Dacar2
    Expand Collapse

    Joined:
    May 21, 2019
    Messages:
    37
    still not appear :(
     
  6. Alex_Farmer557

    Alex_Farmer557
    Expand Collapse

    Joined:
    Dec 28, 2016
    Messages:
    3,541
    i got it to work for me. where did you put the file?
     
  7. Hawaw_Dacar2

    Hawaw_Dacar2
    Expand Collapse

    Joined:
    May 21, 2019
    Messages:
    37
    In a winrar file
     

    Attached Files:

  8. Alex_Farmer557

    Alex_Farmer557
    Expand Collapse

    Joined:
    Dec 28, 2016
    Messages:
    3,541
    you'll need to rename it to something other that hatch_engine as that causes issues
     
  9. Hawaw_Dacar2

    Hawaw_Dacar2
    Expand Collapse

    Joined:
    May 21, 2019
    Messages:
    37
    THAT WORK THANK YOU

    i will post the mod do you want to be credited ?
     
  10. Alex_Farmer557

    Alex_Farmer557
    Expand Collapse

    Joined:
    Dec 28, 2016
    Messages:
    3,541
    no, it's your work
     
  11. Hawaw_Dacar2

    Hawaw_Dacar2
    Expand Collapse

    Joined:
    May 21, 2019
    Messages:
    37
    ok no probleme
     
  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