Modding Help player.config error

Discussion in 'Starbound Modding' started by africalinguist, Jul 13, 2017.

  1. africalinguist

    africalinguist Orbital Explorer

    i am trying to add some furniture to starbound but when the game tries to load the mod gives this:

    [08:04:57.849] [Info] Root: Preparing Root...
    [08:04:57.851] [Info] Root: Done preparing Root.
    [08:04:57.851] [Info] Client Version 1.3.1 (windows x86_64) Source ID: 09b4358d76e61cf447ecb3e11612af0c2f387fad Protocol: 742
    [08:04:57.851] [Info] Root: Scanning for asset sources in directory '..\assets\'
    [08:04:58.924] [Info] Root: Scanning for asset sources in directory '..\mods\'
    [08:04:58.926] [Warn] Root: Unrecognized file in asset directory 'mods_go_here', skipping
    [08:04:58.927] [Info] Root: Detected asset source named 'base' at '..\assets\packed.pak'
    [08:04:58.927] [Info] Root: Detected asset source named 'morefurnituremod' at '..\mods\More_Furniture_Mod'
    [08:04:58.927] [Info] Root: Detected unnamed asset source at '..\assets\user'
    [08:04:58.927] [Info] Loading assets from: '..\assets\packed.pak'
    [08:05:00.402] [Info] Loading assets from: '..\mods\More_Furniture_Mod'
    [08:05:00.407] [Info] Loading assets from: '..\assets\user'
    [08:05:02.382] [Info] Assets digest is fab47505decbee5ec7a056444aa4aeec2cf5c171f3fb209f5d84f329771f45c3
    [08:05:02.382] [Info] Root: Loaded Assets in 4.53099 seconds
    [08:05:02.397] [Info] Application: Initializing SDL Video
    [08:05:02.404] [Info] Application: Initializing SDL Joystick
    [08:05:02.427] [Info] Application: Initializing SDL Sound
    [08:05:02.433] [Info] Failed to initialize Steam platform services
    [08:05:02.433] [Info] Application: No platform services available
    [08:05:02.433] [Info] Application: Creating SDL Window
    [08:05:02.489] [Info] Application: Enabling VSync with late swap tearing
    [08:05:02.540] [Info] Application: Opened default audio device with 44.1khz / 16 bit stereo audio, 2048 sample size buffer
    [08:05:02.547] [Info] OpenGL version: '4.0.0 - Build 10.18.10.3316' vendor: 'Intel' renderer: 'Intel(R) HD Graphics 4000' shader: '4.00 - Build 10.18.10.3316'
    [08:05:02.566] [Info] Application: initialization...
    [08:05:02.569] [Info] Root: Loaded Configuration in 0.00312345 seconds
    [08:05:02.578] [Info] Application: renderer initialization...
    [08:05:02.609] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 128
    [08:05:02.610] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 64
    [08:05:02.616] [Info] Root: Loaded ImageMetadataDatabase in 2.99339e-06 seconds
    [08:05:02.719] [Info] Application: main update loop...
    [08:05:02.774] [Info] Root: Loaded NameGenerator in 0.0514745 seconds
    [08:05:03.287] [Info] Root: Loaded PlantDatabase in 0.512901 seconds
    [08:05:04.361] [Info] Root: Loaded ObjectDatabase in 1.63038 seconds
    [08:05:05.067] [Info] Root: Loaded ProjectileDatabase in 1.77912 seconds
    [08:05:05.072] [Info] Root: Loaded MonsterDatabase in 0.710585 seconds
    [08:05:05.078] [Info] Root: Writing runtime configuration to '..\storage\starbound.config'
    [08:05:05.083] [Info] Root: Loaded StagehandDatabase in 0.0108063 seconds
    [08:05:05.101] [Info] Root: Loaded VehicleDatabase in 0.0179496 seconds
    [08:05:05.439] [Error] Exception caught loading asset: /player.config, (AssetException) Could not read JSON asset /player.config
    [0] 7ff61b667713 Star::captureStack
    [1] 7ff61b66649e Star::StarException::StarException
    [2] 7ff61b666588 Star::StarException::StarException
    [3] 7ff61b676c40 Star::AssetException::AssetException
    [4] 7ff61bfa9bf1 `<lambda_80e152f0e8987fd28e54fe8e75d4e933>::eek:perator()'::`1'::catch$25
    [5] 7ffdb9edc220 _C_specific_handler
    [6] 7ffdb9ed29b2 _FrameUnwindFilter
    [7] 7ffdc1e02a63 RtlCaptureContext
    [8] 7ff61b6796ed <lambda_80e152f0e8987fd28e54fe8e75d4e933>::eek:perator()
    [9] 7ff61b671d3f std::_Invoker_functor::_Call<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [10] 7ff61b6746d6 std::invoke<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [11] 7ff61b6727b0 std::_Invoke_ret<std::shared_ptr<Star::Assets::AssetData>,<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [12] 7ff61b67a2e6 std::_Func_impl<<lambda_80e152f0e8987fd28e54fe8e75d4e933>,std::allocator<int>,std::shared_ptr<Star::Assets::AssetData>

    then goes on to give a trillion other errors. this error might be related to my patching player.config:

    [
    {
    "op" : "add",
    "path" : "/defaultBlueprints/tier1/-",
    "value" : { "item" : "mf_floatingconsole" }
    },{
    "op" : "add",
    "path" : "/defaultBlueprints/tier1/-",
    "value" : { "item" : "mf_futuristictable" }
    ]

    I have double and triple-checked the item names and i dont know why this is happening

    {
    "objectName" : "mf_floatingconsole",
    "colonyTags" : ["human","electronic","wired"],
    "rarity" : "Common",
    "description" : "A control console with a lever.",
    "shortdescription" : "Floating Console",
    "race" : "generic",
    "category" : "wire",
    "price" : 100,
    "printable" : false,
    "lightColor" : [23, 33, 38],

    "flickerPeriod" : 0.3,
    "flickerMinIntensity" : 0.95,
    "flickerMaxIntensity" : 1,
    "flickerPeriodVariance" : 0.1,
    "flickerIntensityVariance" : 0.0,

    "apexDescription" : "It's a control console with a big touch screen.",
    "avianDescription" : "A control panel with buttons that I can press, if I wish to.",
    "floranDescription" : "Control conssole has buttonsss.",
    "glitchDescription" : "Wary. Something might happen if I interact with this control panel.",
    "humanDescription" : "It's a control console. The back end seems to be floating.",
    "hylotlDescription" : "This electronic device is used to remotely control things.",
    "novakidDescription" : "A control console. What'd happen if I press the buttons?",

    "inventoryIcon" : "icon.png",
    "orientations" : [
    {
    "image" : "floatingconsole.png:<color>.on",
    "flipImages" : true,
    "direction" : "left",
    "lightPosition" : [0, 1],

    "imagePosition" : [-8, 0],
    "frames" : 3,
    "animationCycle" : 0.5,

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ]
    },
    {
    "image" : "floatingconsole.png:<color>.on",
    "direction" : "right",
    "lightPosition" : [0, 1],

    "imagePosition" : [-8, 0],
    "frames" : 3,
    "animationCycle" : 0.5,

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ]
    }
    ],

    "scripts" : [
    "/objects/wired/switch/switch.lua",
    "/scripts/npcToyObject.lua"
    ],
    "scriptDelta" : 5,

    "animation" : "floatingconsole.animation",
    "animationCustom" : {
    "sounds" : {
    "on" : [ "/sfx/objects/console_generic_switchon.ogg" ],
    "off" : [ "/sfx/objects/console_generic_switchoff.ogg" ]
    }
    },
    "animationParts" : {
    "bg" : "floatingconsole.png",
    "fg" : "floatingconsolelit.png"
    },
    "animationPosition" : [-8, 0],

    "outputNodes" : [ [0, 0] ],

    "npcToy" : {
    "ownerOnly" : true,
    "influence" : [
    "console"
    ],
    "defaultReactions" : {},
    "preciseStandPositionLeft" : [-0.5, 0.0],
    "preciseStandPositionRight" : [2.0, 0.0],
    "maxNpcs" : 1
    }
    }



    {
    "objectName" : "mf_futuristictable",
    "colonyTags" : ["commerce"],
    "printable" : false,
    "rarity" : "Common",
    "description" : "A cool futuristic table",
    "shortdescription" : "Futuristic Table",
    "race" : "generic",
    "category" : "furniture",
    "price" : 25,

    "apexDescription" : "A very simple wooden table.",
    "avianDescription" : "The simplest of tables.",
    "floranDescription" : "Sssimple wood table.",
    "glitchDescription" : "Bored. A very simple table.",
    "humanDescription" : "Not much to say about this table.",
    "hylotlDescription" : "A table, very simple in every way.",
    "novakidDescription" : "Just a table.",

    "inventoryIcon" : "futuristictable.png",
    "orientations" : [
    {
    "dualImage" : "futuristictable.png:<color>",

    "imagePosition" : [-16, 0],
    "frames" : 1,
    "animationCycle" : 1.0,

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ],
    "collision" : "platform"

    }
    ]
    }

     
    Last edited: Jul 13, 2017
  2. cpeosphoros

    cpeosphoros Orbital Explorer

    You are missing a closing curly bracket just before the last square bracket in the .patch file.

    Also, the small emoticons in the log are very cute. ;)

    As an advice, try to format your code in some way which let you clearly see things you may be missing.

    This is your code, formatted:

    Code:
    [
        {
            "op" : "add",
            "path" : "/defaultBlueprints/tier1/-",
            "value" : { "item" : "mf_floatingconsole" }
        },
        {
            "op" : "add",
            "path" : "/defaultBlueprints/tier1/-",
            "value" : { "item" : "mf_futuristictable" }
    ]


    This way, You'd not have missed the bracket.
     
    bk3k likes this.

Share This Page