Modding Help Status effect issues

Discussion in 'Starbound Modding' started by disguisy, Jan 24, 2018.

  1. disguisy

    disguisy Void-Bound Voyager

    so I was trying to make a new status effect that heals insanely fast, got the bandage thing to work, but the status effect I made kept crashing the game, I don't think it's a syntax error because it's basically a copy of the nanowrapheal with names and values changed. Do I need to put it in a config.patch file or something?
    Here's the code
    {
    "name" : "Miraclewrapheal",
    "effectConfig" : {
    "healAmount" : 1000,
    "emissionRate" : 200
    },
    "defaultDuration" : .05,

    "scripts" : [
    "heal.lua"
    ],

    "animationConfig" : "heal.animation",

    "label" : "Healing",
    "icon" : "/interface/statuses/heal.png"
    }
     
  2. bk3k

    bk3k Oxygen Tank

    What's your log have to say?
     
  3. disguisy

    disguisy Void-Bound Voyager

    I looked through all of them, this is the only error I could find
    Exception caught loading asset: /stats/effects/heal/Miraclewrapheal.statuseffect, (AssetException) Could not read JSON asset /stats/effects/heal/Miraclewrapheal.statuseffect
     
  4. bk3k

    bk3k Oxygen Tank

    It had to say more than that, although some might be hard to read. Use the insert/code button to add the whole thing here.
     
  5. disguisy

    disguisy Void-Bound Voyager

    here...
    Code:
    [21:02:30.001] [Error] Exception caught loading asset: /stats/effects/heal/Miraclewrapheal.statuseffect, (AssetException) Could not read JSON asset /stats/effects/heal/Miraclewrapheal.statuseffect
    [0] 7ff7c6657153 Star::captureStack
    [1] 7ff7c6655ede Star::StarException::StarException
    [2] 7ff7c6655fc8 Star::StarException::StarException
    [3] 7ff7c6666b60 Star::AssetException::AssetException
    [4] 7ff7c6f9a391 `<lambda_80e152f0e8987fd28e54fe8e75d4e933>::operator()'::`1'::catch$25
    [5] 7ff923dec1e0 _C_specific_handler
    [6] 7ff923de2d03 _TypeMatch
    [7] 7ff943c141f3 RtlCaptureContext
    [8] 7ff7c666964d <lambda_80e152f0e8987fd28e54fe8e75d4e933>::operator()
    [9] 7ff7c6661b2f std::_Invoker_functor::_Call<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [10] 7ff7c66645f6 std::invoke<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [11] 7ff7c66625a0 std::_Invoke_ret<std::shared_ptr<Star::Assets::AssetData>,<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [12] 7ff7c666a286 std::_Func_impl<<lambda_80e152f0e8987fd28e54fe8e75d4e933>,std::allocator<int>,std::shared_ptr<Star::Assets::AssetData> >::_Do_call
    [13] 7ff7c6a0a337 std::_Func_class<std::shared_ptr<Star::DamageDatabase> >::operator()
    [14] 7ff7c6673d68 Star::Assets::processAssetData
    [15] 7ff7c6671e18 Star::Assets::loadJson
    [16] 7ff7c667111d Star::Assets::loadAsset
    [17] 7ff7c666e32f Star::Assets::doLoad
    [18] 7ff7c6677e4d Star::Assets::workerMain
    [19] 7ff7c6653737 <lambda_acdb4815e022f76f36408ff78907d178>::operator()
    [20] 7ff7c6653c5e Star::ThreadImpl::runThread
    [21] 7ff941841fe4 BaseThreadInitThunk
    [22] 7ff943bdefb1 RtlUserThreadStart
    Caused by: (JsonParsingException) Cannot parse json file: /stats/effects/heal/Miraclewrapheal.statuseffect
    [0] 7ff7c6657153 Star::captureStack
    [1] 7ff7c6655ede Star::StarException::StarException
    [2] 7ff7c6655fc8 Star::StarException::StarException
    [3] 7ff7c6667a60 Star::JsonParsingException::JsonParsingException
    [4] 7ff7c6f9b666 `Star::Assets::readJson'::`1'::catch$264
    [5] 7ff923dec1e0 _C_specific_handler
    [6] 7ff923de2d03 _TypeMatch
    [7] 7ff943c141f3 RtlCaptureContext
    [8] 7ff7c667436a Star::Assets::readJson
    [9] 7ff7c666964d <lambda_80e152f0e8987fd28e54fe8e75d4e933>::operator()
    [10] 7ff7c6661b2f std::_Invoker_functor::_Call<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [11] 7ff7c66645f6 std::invoke<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [12] 7ff7c66625a0 std::_Invoke_ret<std::shared_ptr<Star::Assets::AssetData>,<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [13] 7ff7c666a286 std::_Func_impl<<lambda_80e152f0e8987fd28e54fe8e75d4e933>,std::allocator<int>,std::shared_ptr<Star::Assets::AssetData> >::_Do_call
    [14] 7ff7c6a0a337 std::_Func_class<std::shared_ptr<Star::DamageDatabase> >::operator()
    [15] 7ff7c6673d68 Star::Assets::processAssetData
    [16] 7ff7c6671e18 Star::Assets::loadJson
    [17] 7ff7c667111d Star::Assets::loadAsset
    [18] 7ff7c666e32f Star::Assets::doLoad
    [19] 7ff7c6677e4d Star::Assets::workerMain
    [20] 7ff7c6653737 <lambda_acdb4815e022f76f36408ff78907d178>::operator()
    [21] 7ff7c6653c5e Star::ThreadImpl::runThread
    [22] 7ff941841fe4 BaseThreadInitThunk
    [23] 7ff943bdefb1 RtlUserThreadStart
    Caused by: (JsonParsingException) Error parsing json: unexpected character parsing word at 7:23
    [0] 7ff7c6657153 Star::captureStack
    [1] 7ff7c6655ede Star::StarException::StarException
    [2] 7ff7c666440c Star::inputUtf8Json<char * __ptr64>
    [3] 7ff7c667436a Star::Assets::readJson
    [4] 7ff7c666964d <lambda_80e152f0e8987fd28e54fe8e75d4e933>::operator()
    [5] 7ff7c6661b2f std::_Invoker_functor::_Call<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [6] 7ff7c66645f6 std::invoke<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [7] 7ff7c66625a0 std::_Invoke_ret<std::shared_ptr<Star::Assets::AssetData>,<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64>
    [8] 7ff7c666a286 std::_Func_impl<<lambda_80e152f0e8987fd28e54fe8e75d4e933>,std::allocator<int>,std::shared_ptr<Star::Assets::AssetData> >::_Do_call
    [9] 7ff7c6a0a337 std::_Func_class<std::shared_ptr<Star::DamageDatabase> >::operator()
    [10] 7ff7c6673d68 Star::Assets::processAssetData
    [11] 7ff7c6671e18 Star::Assets::loadJson
    [12] 7ff7c667111d Star::Assets::loadAsset
    [13] 7ff7c666e32f Star::Assets::doLoad
    [14] 7ff7c6677e4d Star::Assets::workerMain
    [15] 7ff7c6653737 <lambda_acdb4815e022f76f36408ff78907d178>::operator()
    [16] 7ff7c6653c5e Star::ThreadImpl::runThread
    [17] 7ff941841fe4 BaseThreadInitThunk
    [18] 7ff943bdefb1 RtlUserThreadStart
     
  6. bk3k

    bk3k Oxygen Tank

    Ah change .05 to 0.05
     
    AtomicPegasus likes this.
  7. disguisy

    disguisy Void-Bound Voyager

    Sucha small syntax error, so much frustration.
    Thank you.
     
  8. Sidrat

    Sidrat Big Damn Hero

    It could have been a missing comma, this is slightly more annoying in that missing a leading 0 before a decimal point should be handled properly, where as a missing comma is more understandable in that it's expecting the end of the line.
     

Share This Page