Modding Help Trying to finish my first mod, but it crashes my game

Discussion in 'Starbound Modding' started by Crombell, Aug 3, 2016.

  1. Crombell

    Crombell Space Hobo

    Basically it's a reskinned violium broadsword with a different ability.
    Below are the files I have in my 'mods' directory

    starbound/mods/MoonlightGreatsword/.metdata.
    {
    "author" : "Crombell",
    "description" : "Adds the Moonlight Greatsword from Dark Souls 1 to Starbound.",
    "friendlyName" : "MoonlightGreatsword",
    "name" : "MoonlightGreatsword",
    "Version" : "1"
    }


    (I don't really know what the difference is between 'name' and 'friendlyname' as I haven't seen it in-game)

    starbound/mods/MoonlightGreatsword/player.config.patch
    [
    {
    "op":"add",
    "path":/defaultBlueprints/tier1/-",
    "value":{"item":"moonlightgreatsword"}
    }
    ]


    starbound/mods/MoonlightGreatsword/items/active/weapons/protectorate/moonlightgreatsword/blade.frames
    {
    "frameGrid" : {
    "size" : [27, 44],
    "dimensions" : [9, 2],
    "names" : [
    ["extend.1", "extend.2", "extend.3", "extend.4", "extend.5", null, null, null, null],
    ["active.1", "active.2", "active.3", "active.4", "active.5", "active.6", "active.7", "active.8", "active.9"]
    ]
    },

    "aliases" : {
    "retract.1" : "extend.5",
    "retract.2" : "extend.4",
    "retract.3" : "extend.3",
    "retract.4" : "extend.2",
    "retract.5" : "extend.1"
    }
    }


    starbound/mods/MoonlightGreatsword/items/active/weapons/protectorate/moonlightgreatsword/moonlightgreatsword.activeitem
    {
    "itemName" : "moonlightgreatsword",
    "price" : 960,
    "level" : 6,
    "maxStack" : 1,
    "rarity" : "Legendary",
    "description" : "This ceremonial brass shortsword condenses and projects cooling moonlight in its shape.",
    "shortdescription" : "Moonlight Greatsword",
    "tooltipKind" : "sword",
    "category" : "broadsword",
    "twoHanded" : true,
    "itemTags" : ["weapon", "melee", "broadsword"],

    "inventoryIcon" : "mlgsicon.png",

    "animation" : "/items/active/weapons/melee/broadsword/energybroadsword.animation",
    "animationParts" : {
    "handle" : "mlgshandle.png",
    "handleFullbright" : "mlgshandlefullbright.png",
    "blade" : "mlgsblade.png"
    },
    "animationCustom" : {
    "sounds" : {
    "fire" : [ "/sfx/melee/laser_weapon_swing1.ogg", "/sfx/melee/laser_weapon_swing2.ogg", "/sfx/melee/laser_weapon_swing3.ogg" ],
    "fire2" : [ "/sfx/melee/laser_weapon_swing1.ogg", "/sfx/melee/laser_weapon_swing2.ogg", "/sfx/melee/laser_weapon_swing3.ogg" ],
    "fire3" : [ "/sfx/melee/laser_weapon_swing1.ogg", "/sfx/melee/laser_weapon_swing2.ogg", "/sfx/melee/laser_weapon_swing3.ogg" ]
    }
    },

    "scripts" : ["/items/active/weapons/melee/energymeleeweapon.lua"],

    "activeTime" : 3.0,

    "elementalType" : "ice",

    "primaryAbilityType" : "broadswordcombo",
    "primaryAbility" : {
    "fireTime" : 0.83,
    "baseDps" : 11.5,

    "stances" : {
    "windup1" : {
    "duration" : 0.15
    }
    }
    },

    "altAbilityType" : "travelingslash",

    "builder" : "/items/buildscripts/buildunrandweapon.lua"
    }


    starbound/mods/MoonlightGreatsword/recipes/anvil3/weapons/seperator/moonlightgreatsword.recipe
    {
    "input" : [
    { "item" : "refinedferozium", "count" : 6 },
    { "item" : "solariumstar", "count" : 3 },
    { "item" : "copperbar", "count" : 6 }
    ],
    "output" : { "item" : "moonlightgreatsword", "count" : 1 },
    "groups" : [ "craftingseparator", "weapons", "all" ]
    }



    How badly have I fucked myself?
     
  2. Errors4l

    Errors4l Spaceman Spiff

    Perhaps it would be a good idea to look at (and share) the errors found in your starbound.log (located in Starbound/storage) after the game crashes.

    Your player.config.patch is missing a quote:
    "path":"/defaultBlueprints/tier1/-",

    FriendlyName refers to the name displayed in the mod manager (cog in the bottom right corner of the main menu), whereas the name refers to the 'identifier', used to make sure multiple mods with the same name aren't loaded and to correct the load order (if necessary).
     
  3. Naddox

    Naddox Cosmic Narwhal

    file name should be '_metadata' and not '.metdata'
    Friendly name is the name you see when you look at the list of mods loaded. name is the mod-ID name and is used by starbound and other mods.

    Missing a quote after "path" :


    The rest of this looks fine.

    Please post your starbound\storage\starbound.log file.
     
  4. Crombell

    Crombell Space Hobo

    Thank you both, I will correct the errors in my code and relaunch the game, then post the error log in case it crashes again
     
  5. Crombell

    Crombell Space Hobo

    The game does not crash anymore, but there are still two issues with the weapon:

    In the main menu, it doesn't display a mod author or version number of the mod.

    The sword can be found in the seperator weapon pool, can be made, the mlgsicon.png and mlgshandle.png sprites work fine, however the game freezes for a while when you try to attack with it, and remains immobile at the end of the first swing. The mlgsblade.png sprites do not appear either.

    It seems to be an issue with the animations.

    edit: Should I make a dropbox with the weapon sprite art so you can have a look to see if it's wrong in any way?
     
  6. Naddox

    Naddox Cosmic Narwhal

    Post the log file.
     
  7. Crombell

    Crombell Space Hobo

    The game did not crash, is there a way to display the possible error logs manually?
     
  8. Naddox

    Naddox Cosmic Narwhal

    The log will generate after every time you run the game. The game does not have to crash for errors to show up in the log file.
     
  9. Crombell

    Crombell Space Hobo



    Code:
    [14:19:29.076] [Error] Cannot set Steam achievement kill10poptops
    [14:19:29.321] [Info] UniverseServer: Warping player 1 to ClientShipWorld:d23c4647eea1f72614f987fdaf66d22a=1040.53.1028
    [14:19:34.282] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.1', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.1'
    [14:19:34.302] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.2', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.2'
    [14:19:34.333] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.3', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.3'
    [14:19:34.367] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.4', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.4'
    [14:19:34.399] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.5', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.5'
    [14:19:34.431] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.1', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.1'
    [14:19:34.597] [Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/items/active/weapons/weapon.lua"]:41: [string "/items/active/weapons/weapon.lua"]:101: [string "/items/active/weapons/melee/meleecombo.lua"]:123: (MapException) Key 'iceswoosh' not found in OrderedMap::get()
    [0] 13f361ee3 Star::captureStack
    [1] 13f360c6e Star::StarException::StarException
    [2] 13f56f259 Star::OrderedMapWrapper<std::unordered_map,Star::String,Star::NetworkedAnimator::ParticleEmitter,std::allocator<std::pair<Star::String const ,Star::NetworkedAnimator::ParticleEmitter> >,Star::hash<Star::String,void>,std::equal_to<Star::String> >::get
    [3] 13f575c45 Star::NetworkedAnimator::setParticleEmitterOffsetRegion
    [4] 13f938a27 <lambda_f71c31dffc6c99e313b43dccac013d37>::operator()
    [5] 13f933f7f std::_Invoker_functor::_Call<<lambda_f71c31dffc6c99e313b43dccac013d37> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [6] 13f935250 std::invoke<<lambda_f71c31dffc6c99e313b43dccac013d37> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [7] 13f934d2e std::_Invoke_ret<Star::Variant<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,Star::LuaVariadic<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> > >,<lambda_f71c31dffc6c99e313b43dccac013d37> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [8] 13f93968b std::_Func_impl<<lambda_f71c31dffc6c99e313b43dccac013d37>,std::allocator<int>,Star::Variant<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,Star::LuaVariadic<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> > >,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>::_Do_call
    [9] 13f3304bd std::_Func_class<Star::Variant<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,Star::LuaVariadic<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> > >,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>::operator()
    [10] 13f32f554 <lambda_a03bcae4599b53751a446949639a4d5e>::operator()
    [11] 13f2ba798 luaD_precall
    [12] 13f2d3541 luaV_execute
    [13] 13f2baa7b luaD_rawrunprotected
    [14] 13f2bad9f lua_resume
    [15] 13f2b7b0f auxresume
    [16] 13f2b77e8 luaB_coresume
    [17] 13f2ba798 luaD_precall
    [18] 13f2d3541 luaV_execute
    [19] 13f2bb2aa unroll
    [20] 13f2bb03e resume
    [21] 13f2baa7b luaD_rawrunprotected
    [22] 13f2bad9f lua_resume
    [23] 13f2b7b0f auxresume
    [24] 13f2b77e8 luaB_coresume
    [25] 13f2ba798 luaD_precall
    [26] 13f2d3541 luaV_execute
    [27] 13f2ba2a3 luaD_call
    [28] 13f2baa7b luaD_rawrunprotected
    [29] 13f2ba4b0 luaD_pcall
    [30] 13f2b09d4 lua_pcallk
    [31] 13f337530 Star::LuaEngine::pcallWithTraceback
    [32] 13f8ca705 Star::LuaEngine::callFunction<float,Star::String,bool,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [33] 13f8cc0c6 Star::LuaFunction::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String,bool,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [34] 13f8cbf35 Star::LuaBaseComponent::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [35] 13f8cd250 Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [36] 13f8cd18b Star::LuaActorMovementComponent<Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [37] 13f8deae1 Star::ActiveItem::update
    [38] 13f78c640 Star::ToolUser::tick
    [39] 13f6264a0 Star::Player::update
    [40] 13f8098e8 <lambda_9fc580ae40b93070d912cafafa15880e>::operator()
    [41] 13f480487 Star::EntityMap::updateAllEntities
    [42] 13f81f018 Star::WorldClient::update
    [43] 13f79a8b7 Star::UniverseClient::update
    [44] 13f2ad8a7 Star::ClientApplication::updateRunning
    [45] 13f2ac18f Star::ClientApplication::update
    [46] 13f9e14d1 Star::SdlPlatform::run
    [47] 13f9e168d Star::runMainApplication
    [48] 13f2aeff6 WinMain
    [49] 13fbc1303 __scrt_common_main_seh
    [50] 76cf59bd BaseThreadInitThunk
    [51] 76e2a2e1 RtlUserThreadStart
    stack traceback:
     [C]: in ?
     [C]: in function '_ENV.error'
     [string "/items/active/weapons/weapon.lua"]:41: in method 'update'
     [string "/items/active/weapons/melee/energymeleeweapon..."]:31: in function <[string "/items/active/weapons/melee/energymeleeweapon..."]:30>
    [0] 13f361ee3 Star::captureStack
    [1] 13f360c6e Star::StarException::StarException
    [2] 13f3360a1 Star::LuaEngine::handleError
    [3] 13f8ca71e Star::LuaEngine::callFunction<float,Star::String,bool,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [4] 13f8cc0c6 Star::LuaFunction::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String,bool,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [5] 13f8cbf35 Star::LuaBaseComponent::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [6] 13f8cd250 Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [7] 13f8cd18b Star::LuaActorMovementComponent<Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [8] 13f8deae1 Star::ActiveItem::update
    [9] 13f78c640 Star::ToolUser::tick
    [10] 13f6264a0 Star::Player::update
    [11] 13f8098e8 <lambda_9fc580ae40b93070d912cafafa15880e>::operator()
    [12] 13f480487 Star::EntityMap::updateAllEntities
    [13] 13f81f018 Star::WorldClient::update
    [14] 13f79a8b7 Star::UniverseClient::update
    [15] 13f2ad8a7 Star::ClientApplication::updateRunning
    [16] 13f2ac18f Star::ClientApplication::update
    [17] 13f9e14d1 Star::SdlPlatform::run
    [18] 13f9e168d Star::runMainApplication
    [19] 13f2aeff6 WinMain
    [20] 13fbc1303 __scrt_common_main_seh
    [21] 76cf59bd BaseThreadInitThunk
    [22] 76e2a2e1 RtlUserThreadStart
    [14:19:34.625] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.2', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.2'
    [14:19:34.649] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.3', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.3'
    [14:19:34.671] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.4', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.4'
    [14:19:34.706] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.5', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.5'
    [14:19:34.737] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.6', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.6'
    [14:19:34.780] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.7', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.7'
    [14:19:34.834] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.8', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.8'
    [14:19:34.884] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.9', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.9'
    


    Sorry, I'm very new to this forum
     
    Last edited: Aug 3, 2016
  10. Naddox

    Naddox Cosmic Narwhal

    Can you edit your post please and put a code wrapper around log and a spoiler wrapper around that please?

    Edit:
    Code:
    [14:19:34.282] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.1', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.1'
    [14:19:34.302] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.2', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.2'
    [14:19:34.333] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.3', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.3'
    [14:19:34.367] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.4', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.4'
    [14:19:34.399] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.5', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:extend.5'
    [14:19:34.431] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.1', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.1'
    [14:19:34.597] [Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/items/active/weapons/weapon.lua"]:41: [string "/items/active/weapons/weapon.lua"]:101: [string "/items/active/weapons/melee/meleecombo.lua"]:123: (MapException) Key 'iceswoosh' not found in OrderedMap::get()
    


    and..

    Code:
    [14:19:34.625] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.2', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.2'
    [14:19:34.649] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.3', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.3'
    [14:19:34.671] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.4', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.4'
    [14:19:34.706] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.5', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.5'
    [14:19:34.737] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.6', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.6'
    [14:19:34.780] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.7', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.7'
    [14:19:34.834] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.8', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.8'
    [14:19:34.884] [Error] Could not load image asset '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.9', using placeholder default.
    (AssetException) No associated frames file found for image '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png' while resolving image frame '/items/active/weapons/protectorate/moonlightgreatsword/mlgsblade.png:active.9'
    
     
  11. Crombell

    Crombell Space Hobo

    Renaming blade.frames to mlgsblade.frames so it matches the .png file seems to have made the animations work properly, but the blade still gets stuck at the end of its first attack animation.

    I don't know what part of the error log I should post, exactly
    Code:
    [15:24:26.029] [Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/items/active/weapons/weapon.lua"]:41: [string "/items/active/weapons/weapon.lua"]:101: [string "/items/active/weapons/melee/meleecombo.lua"]:123: (MapException) Key 'iceswoosh' not found in OrderedMap::get()
    [0] 13f1a1ee3 Star::captureStack
    [1] 13f1a0c6e Star::StarException::StarException
    [2] 13f3af259 Star::OrderedMapWrapper<std::unordered_map,Star::String,Star::NetworkedAnimator::ParticleEmitter,std::allocator<std::pair<Star::String const ,Star::NetworkedAnimator::ParticleEmitter> >,Star::hash<Star::String,void>,std::equal_to<Star::String> >::get
    [3] 13f3b5c45 Star::NetworkedAnimator::setParticleEmitterOffsetRegion
    [4] 13f778a27 <lambda_f71c31dffc6c99e313b43dccac013d37>::operator()
    [5] 13f773f7f std::_Invoker_functor::_Call<<lambda_f71c31dffc6c99e313b43dccac013d37> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [6] 13f775250 std::invoke<<lambda_f71c31dffc6c99e313b43dccac013d37> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [7] 13f774d2e std::_Invoke_ret<Star::Variant<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,Star::LuaVariadic<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> > >,<lambda_f71c31dffc6c99e313b43dccac013d37> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [8] 13f77968b std::_Func_impl<<lambda_f71c31dffc6c99e313b43dccac013d37>,std::allocator<int>,Star::Variant<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,Star::LuaVariadic<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> > >,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>::_Do_call
    [9] 13f1704bd std::_Func_class<Star::Variant<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,Star::LuaVariadic<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> > >,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>::operator()
    [10] 13f16f554 <lambda_a03bcae4599b53751a446949639a4d5e>::operator()
    [11] 13f0fa798 luaD_precall
    [12] 13f113541 luaV_execute
    [13] 13f0faa7b luaD_rawrunprotected
    [14] 13f0fad9f lua_resume
    [15] 13f0f7b0f auxresume
    [16] 13f0f77e8 luaB_coresume
    [17] 13f0fa798 luaD_precall
    [18] 13f113541 luaV_execute
    [19] 13f0fb2aa unroll
    [20] 13f0fb03e resume
    [21] 13f0faa7b luaD_rawrunprotected
    [22] 13f0fad9f lua_resume
    [23] 13f0f7b0f auxresume
    [24] 13f0f77e8 luaB_coresume
    [25] 13f0fa798 luaD_precall
    [26] 13f113541 luaV_execute
    [27] 13f0fa2a3 luaD_call
    [28] 13f0faa7b luaD_rawrunprotected
    [29] 13f0fa4b0 luaD_pcall
    [30] 13f0f09d4 lua_pcallk
    [31] 13f177530 Star::LuaEngine::pcallWithTraceback
    [32] 13f70a705 Star::LuaEngine::callFunction<float,Star::String,bool,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [33] 13f70c0c6 Star::LuaFunction::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String,bool,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [34] 13f70bf35 Star::LuaBaseComponent::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [35] 13f70d250 Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [36] 13f70d18b Star::LuaActorMovementComponent<Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [37] 13f71eae1 Star::ActiveItem::update
    [38] 13f5cc640 Star::ToolUser::tick
    [39] 13f4664a0 Star::Player::update
    [40] 13f6498e8 <lambda_9fc580ae40b93070d912cafafa15880e>::operator()
    [41] 13f2c0487 Star::EntityMap::updateAllEntities
    [42] 13f65f018 Star::WorldClient::update
    [43] 13f5da8b7 Star::UniverseClient::update
    [44] 13f0ed8a7 Star::ClientApplication::updateRunning
    [45] 13f0ec18f Star::ClientApplication::update
    [46] 13f8214d1 Star::SdlPlatform::run
    [47] 13f82168d Star::runMainApplication
    [48] 13f0eeff6 WinMain
    [49] 13fa01303 __scrt_common_main_seh
    [50] 76cf59bd BaseThreadInitThunk
    [51] 76e2a2e1 RtlUserThreadStart
    stack traceback:
    [C]: in ?
    [C]: in function '_ENV.error'
    [string "/items/active/weapons/weapon.lua"]:41: in method 'update'
    [string "/items/active/weapons/melee/energymeleeweapon..."]:31: in function <[string "/items/active/weapons/melee/energymeleeweapon..."]:30>
    [0] 13f1a1ee3 Star::captureStack
    [1] 13f1a0c6e Star::StarException::StarException
    [2] 13f1760a1 Star::LuaEngine::handleError
    [3] 13f70a71e Star::LuaEngine::callFunction<float,Star::String,bool,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [4] 13f70c0c6 Star::LuaFunction::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String,bool,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [5] 13f70bf35 Star::LuaBaseComponent::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [6] 13f70d250 Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [7] 13f70d18b Star::LuaActorMovementComponent<Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<std::unordered_map<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [8] 13f71eae1 Star::ActiveItem::update
    [9] 13f5cc640 Star::ToolUser::tick
    [10] 13f4664a0 Star::Player::update
    [11] 13f6498e8 <lambda_9fc580ae40b93070d912cafafa15880e>::operator()
    [12] 13f2c0487 Star::EntityMap::updateAllEntities
    [13] 13f65f018 Star::WorldClient::update
    [14] 13f5da8b7 Star::UniverseClient::update
    [15] 13f0ed8a7 Star::ClientApplication::updateRunning
    [16] 13f0ec18f Star::ClientApplication::update
    [17] 13f8214d1 Star::SdlPlatform::run
    [18] 13f82168d Star::runMainApplication
    [19] 13f0eeff6 WinMain
    [20] 13fa01303 __scrt_common_main_seh
    [21] 76cf59bd BaseThreadInitThunk
    [22] 76e2a2e1 RtlUserThreadStart
    
     
  12. Nirrudn

    Nirrudn Void-Bound Voyager

    The elemental type is causing the issue. You can see by the first line of the error it's trying to find 'iceswoosh' and can't. I'm not 100% positive, but I think you need to add a custom animation file for the sword which supports the elemental type of your weapon, as by default the energysword files appear to only support physical. Check out combobroadsword.animation for the relevant bits.

    Code:
            "partStates" : {
              "swoosh" : {
                "idle" : {
                  "properties" : {
                    "image" : ""
                  }
                },
                "fire" : {
                  "properties" : {
                    "image" : "/items/active/weapons/melee/broadsword/swoosh/<elementalType>swoosh.png:<frame>",
                    "offset" : [0, 2.5],
                    "damageArea" : [[-5, 2], [-2.5, 3], [1, 3], [4, 1.75], [5, -0.25], [5, -2.25], [4, -3.25], [0, -2.5]]
                  }
                },
                "fire2" : {
                  "properties" : {
                    "image" : "/items/active/weapons/melee/broadsword/swoosh2/<elementalType>swoosh.png:<frame>",
                    "offset" : [5.0, 1.0],
                    "damageArea" : [[-4, 1], [2.5, 1], [2.5, -2], [-4, -2]]
                  }
                },
                "fire3" : {
                  "properties" : {
                    "image" : "/items/active/weapons/melee/broadsword/swoosh3/<elementalType>swoosh.png:<frame>",
                    "offset" : [3.5, 0],
                    "damageArea" : [[-4.75, 1.5], [3, 1], [3, -1], [-4.75, -1.5]]
                  }
                }
              }
            }
    Code:
    "particleEmitters" : {
        "iceswoosh" : {
          "active" : false,
          "transformationGroups" : ["swoosh"],
          "emissionRate" : 50,
          "burstCount" : 3,
          "particles" : [
            { "particle" : "iceswoosh1"},
            { "particle" : "iceswoosh2"},
            { "particle" : "iceswoosh3"}
          ]
        }
    }
    
     
  13. Crombell

    Crombell Space Hobo

    That makes sense, should I just try and patch it in like you would when adding a blueprint in player.config?

    edit: Saying that, I'm not certain how to go about it. player.config's code doesn't appear very similar to energybroadsword.animation's at first glance
     
    Last edited: Aug 3, 2016
  14. Nirrudn

    Nirrudn Void-Bound Voyager

    You might be able to just patch the particleEmitters in energybroadsword.animation to add the iceswoosh there. If you have to modify the regular swoosh to support <elementalType> though, I would copy the entire animation file, as I think changing that would break things.
     
  15. Crombell

    Crombell Space Hobo

    So basically, just patch the entire contents of the combobroadsword.animation file into the energybroadsword.animation file?
     
  16. Nirrudn

    Nirrudn Void-Bound Voyager

    Just adding the "iceswoosh" data I pasted in above to energybroadsword.animation's /particleEmitters might get the job done. I'm just kind of guessing here based on the error message, honestly.
     
  17. Crombell

    Crombell Space Hobo

    This attempt at a patch is the culmination of guesswork and ignorance.
    ...Please be gentle.

    starbound/mods/MoonlightGreatsword/item/active/weapons/melee/broadsword/energybroadsword.animation.patch


    Code:
    [
    {
    "op":"add",
    "path":"/particleEmitters/-",
    {"iceswoosh" : {
          "active" : false,
          "transformationGroups" : ["swoosh"],
          "emissionRate" : 50,
          "burstCount" : 3,
          "particles" : [
            { "particle" : "iceswoosh1"},
            { "particle" : "iceswoosh2"},
            { "particle" : "iceswoosh3"}
          ]
        }
    }
    ]


    How bad does it look?
     
  18. Magnusito

    Magnusito Subatomic Cosmonaut

    Why don't you instead use combobroadsword.animation instead of energybroadsword.animation? Do you really want those animations to play or you just used Violium Broadsword as a base and that are some remnnants?
     
  19. Crombell

    Crombell Space Hobo

    I want those animations so bad.
     
  20. Crombell

    Crombell Space Hobo

    I finally got the sword fully functional! Thank you all for your help, I'll probably release this on the workshop once I've figured out why the author, version number and description of the mod isn't displayed in-game.
     

Share This Page