1. Stuck, Having problems with creating your mod? Let us help you: Mod Support

Unsolved Expected dictionary key near line...

Discussion in 'Mod Support' started by WinnebagoMan, Feb 23, 2018.

  1. WinnebagoMan

    WinnebagoMan
    Expand Collapse

    Joined:
    Oct 6, 2015
    Messages:
    105
    I am trying to add some of SgtFido's engines to the Moonhawk, but I can't get any further than this because the game refuses to load the vehicle due to this error. The console shows it as "expected dictionary key near line 192, '],' "I've tried my best to make sure all the brackets terminate where they're supposed to around like 192, but I'm guessing this error is caused by something elsewhere as commenting out everything around line 192 doesn't change anything.

    Code:
    "chevy_engine_v8_hawk": {
        "information":{
            "authors":"gabester, modded by AR162b, Sergent Fido and Synsol",
            "name":"Chevy 305 V8",
        }
       "slotType" : "moonhawk_engine",
        
        "slots": [
            ["type", "default", "description"]
            ["moonhawk_exhaust_R","moonhawk_exhaust_R", "Right Exhaust"],
            ["moonhawk_exhaust_L","moonhawk_exhaust_L", "Left Exhaust"],
            ["moonhawk_transmission","moonhawk_transmission_4M", "Transmission"],
        ],
        "flexbodies":[
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["chevy_engine_v8", ["moonhawk_engine"]],
             ["moonhawk_header_v8", ["moonhawk_engine","moonhawk_exhaust_L","moonhawk_exhaust_R"]],
             ["chevy_engine_v8_gearsupport", ["moonhawk_engine"]],
             //["chevy_header_v8_gas", ["moonhawk_engine","moonhawk_exhaust_L","moonhawk_exhaust_R"]],
             //["oldsmobile_307_gasoline_airfilter", ["moonhawk_engine"]],
             //["chevy_engine_v8_parts", ["moonhawk_engine"]],
             //["oldsfullsize_radtube_v8", ["oldsfullsize_radiator","oldsfullsize_radsupport","moonhawk_engine"]],
             //["oldsfullsize_coolanttube_v8", ["oldsfullsize_body","oldsfullsize_engine"]],
             //["oldsfullsize_aircotube_v8", ["oldsfullsize_body","oldsfullsize_engine"]],
              
        ],
        "props": [
            ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"]
            
                ["rpmspin"  , "oldsmobile_engine_v8_fan_gas", "e2r","e2l","e4r",  {"x":0, "y":0, "z":0}, {"x":0, "y":1, "z":0}    , {"x":0, "y":0, "z":0}, -360, 360, 0, 1  ,{"breakGroup":"oldsfullsize_props"}],
            
            ["rpmspin"  , "oldsmobile_engine_v8_alternator_pulley_gas", "e2r","e2l","e4r",  {"x":0, "y":0, "z":0}, {"x":0, "y":1, "z":0}    , {"x":0, "y":0, "z":0}, -360, 360, 0, 1   ,{"breakGroup":"oldsfullsize_props"}],
        
            ["rpmspin"  , "oldsmobile_engine_v8_crankshaft_pulley_gas", "e2r","e2l","e4r",  {"x":0, "y":0, "z":0}, {"x":0, "y":1, "z":0}    , {"x":0, "y":0, "z":0}, -360, 360, 0, 1 ,{"breakGroup":"oldsfullsize_props"}],
            
            ["rpmspin"  , "oldsmobile_engine_v8_steering_pulley_gas", "e2r","e2l","e4r",  {"x":0, "y":0, "z":0}, {"x":0, "y":1, "z":0}    , {"x":0, "y":0, "z":0}, -360, 360, 0, 1 ,{"breakGroup":"oldsfullsize_props"}],
            
            ["rpmspin"  , "oldsmobile_engine_v8_airco_pulley_gas", "e2r","e2l","e4r",  {"x":0, "y":0, "z":0}, {"x":0, "y":1, "z":0}    , {"x":0, "y":0, "z":0}, -360, 360, 0, 1 ,{"breakGroup":"oldsfullsize_props"}],
            
             ],
            
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["combustionEngine", "mainEngine", "dummy", 0],
        ],
        "mainEngine":{
                "torque":[
           ["rpm", "torque"]
            [0, 0],
            [200, 80],
            [500, 182],
            [1000, 297],
            [1600, 351],
            [2400, 361],
            [3300, 346],
            [4200, 312],
            [5000, 136],
            [7000, 85],
            [8000, 45],
            ],
            //"idleRPMRoughness":100,
            //"idleRPMRoughnessRate":100
            "idleRPM":550,
            "maxRPM":4600,
            "revLimiterRPMDrop":0,
            "inertia":0.24,
            "friction":18
            "dynamicFriction":0.025
            "burnEfficiency":0.29
            "torqueReactionNodes:":["e1l","e2l","e4r"]
            "particulates":0.079
            "energyStorage": "mainTank",
            "requiredEnergyType":"gasoline",
    
            //cooling and oil system
            "thermalsEnabled":true
            "engineBlockMaterial":"iron"
            "oilVolume":8
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":140
            "headGasketDamageThreshold":1500000
            "pistonRingDamageThreshold":1500000
            "connectingRodDamageThreshold":2000000
    
            //node beam interface
            "waterDamage": {"[engineGroup]:":["engine_intake"]}
            "radiator": {"[engineGroup]:":["radiator"]}
            "engineBlock": {"[engineGroup]:":["engine_block"]}
            "breakTriggerBeam":"engine",
      
          /*    "soundConfig": "soundConfig",
     },
        "soundConfig": {
            "sampleName": "V8_OLD1",
            "mainGain": -18,
            "maxLoadMix": 0.7,
            "minLoadMix": 0,
            "eqLowGain": -5,
            "eqLowFreq": 150,
            //"eqLowWidth": 0,
            "eqHighGain": -5,
            "eqHighFreq": 6000,
            //"eqHighWidth": 0,
            //"eqFundamentalGain": -15,*/
    
        },
        "vehicleController": {
            "clutchLaunchStartRPM":1400,
            "clutchLaunchTargetRPM":1800,
            //**highShiftDown can be overwritten by automatic transmissions**
            "highShiftDownRPM":[0,0,0,1800,2400,2600,2600,2600]
            //**highShiftUp can be overwritten by intake modifications**
            "highShiftUpRPM":4500
        },
        
        "engine":{
            "soundGroup":"v8_gas_307",
                },
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //5.7L V8 Engine
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"selfCollision":false},
             {"collision":true}
    
             {"group":"oldsfullsize_engine"},
                  {"engineGroup":"engine_block"}
            
             {"nodeWeight":18},
            
    {"chemEnergy":2000,"burnRate":0.39,"flashPoint":6,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":550,"baseTemp":500,"conductionRadius":0.13}
             ["e1r", -0.13, -1.185, 0.32],
             ["e1l", 0.13, -1.185, 0.32],
    {"chemEnergy":2000,"burnRate":0.39,"flashPoint":6,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":550,"baseTemp":500,"conductionRadius":0.2}
            ["e2r", -0.13, -1.705, 0.32],
             ["e2l", 0.13, -1.705, 0.32],
    {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false},
             {"selfCollision":true},
             {"engineGroup":"engine_intake"}
             ["e3r", -0.32, -1.185, 0.78],
             ["e3l", 0.32, -1.185, 0.78],
             ["e4r", -0.32, -1.705, 0.78{"isExhaust":true}],
             ["e4l", 0.32, -1.705, 0.78],
                     {"engineGroup":""}
             {"group":""},
            
            
        ],
        
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":1201000,"beamDamp":100},
              {"beamDeform":80000,"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"],
              ["e2l","e4l"],
              
              ["e2r","e3r"],
              ["e2l","e3l"],
              ["e2r","e3l"],
              ["e2l","e3r"],
              
              ["e1r","e4r"{"isExhaust":true}],
              ["e1l","e4l"],
              ["e1r","e4l"],
              ["e1l","e4r"],
              
              ["e1r","e2l"],
              ["e1l","e2r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
              
              ["e1r","e3l"],
              ["e1l","e3r"],
              ["e2r","e4l"],
              ["e2l","e4r"],
    
                  
    
    //engine visual damage
    
              
              {"deformGroup":"oldsfullsize_enginetubes_break"},
            
              {"beamSpring":50000,"beamDamp":20},
              {"beamDeform":2000,"beamStrength":2000},
            
               ["e3l","if1l"],
               ["e3l","if1l"],
               ["e3l","if2l"],
               {"deformGroup":""},
              
                       ["e3r","if1r"{"disableMeshBreaking":true,"breakGroup":"oldsfullsize_props","deformGroup":"oldsfullsize_props"}],
               ["e3r","if1r"{"disableMeshBreaking":true,"breakGroup":"oldsfullsize_props","deformGroup":"oldsfullsize_props"}],
               ["e3r","if2r"{"disableMeshBreaking":true,"breakGroup":"oldsfullsize_props","deformGroup":"oldsfullsize_props"}],
        
              //{"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    
    
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                {"group":"oldsfullsize_engine"},
                //front and rear
                ["e4r","e4l","e2r"],
                        ["e4l","e2l","e2r"],
                ["e3l","e3r","e1l"],
                ["e3r","e1r","e1l"],
                //bottom
                      ["e2r","e2l","e1r"]
                      ["e2l","e1l","e1r"]
                    {"group":""},
        
        ],
    
    
    }
     
  2. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    5,900
    Is this own engine file? If it it, then you need to have { at first line and add one } to last line, but when looking quickly I didn't spot much else, but I did take only a quick peek.

    Technically you should make copy of Moonhawk engine and then change torque and other numbers of that copy of Moonhawk engine to match engine you want, that way graphical stuff, nodes and beams, etc. don't get messed up.

    When you have that working, then you can start changing graphical side if you want, but that probably needs blender usage as engine mesh placing probably needs to be changed etc.
     
  3. WinnebagoMan

    WinnebagoMan
    Expand Collapse

    Joined:
    Oct 6, 2015
    Messages:
    105
    This is part of an engine file with other engines, and I wanted to use the original engine code because it already has all the vars set and the correct names for the meshes in the DAE.
     
  4. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    5,900
    I would need to do little checking with Moonhawk and Olds full size to be able to produce any useful information, however quite sleepy now, so unless someone else steps in I try to look into this tomorrow with bit fresher brain.
     
  5. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    5,900
    It really would be better if you would copy vars and flexbody sections only to Moonhawk engine.

    Engine meshes will be probably at different positions, so you will need to move them in Blender anyway, renaming them so that they would not conflict and updating flexmesh sections in jbeam anyway.

    Are you sure that error is in engine file? Also if there is issues before line 192 in engine file, with some other engine or lines between different engines, that can also cause error and sometimes it can point wrong position, so you need to check all brackets before that line.

    Also remember that without Fido's permission you can't publish the mod.
     
  6. WinnebagoMan

    WinnebagoMan
    Expand Collapse

    Joined:
    Oct 6, 2015
    Messages:
    105
    It is in the engine file, and I guess I will try using the default Moonhawk file. I do know I can't publish this without Sgt's permission, this was more of a personal project, there are already a lot of engines for the moonhawk.
     
  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