Modding Help Problems with Alt Ability

Discussion in 'Starbound Modding' started by SpazDiesFirst360.0, Mar 5, 2018.

  1. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    I tired making a multi grenade launcher, but SB decides that my weapon ability is questionable, and it responds with:
    Code:
    [18:52:05.141] [Error] Could not instantiate item '[wa_multigrenadelauncher, 1, {}]'. (LuaException) Error code 2, [string "/items/buildscripts/abilities.lua"]:27: (AssetException) Path 'items/active/weapons/other/multigrenadelauncher/wa_multigrenade.weaponability' must be absolute
    [0] 7ff6c46c7153 Star::captureStack
    [1] 7ff6c46c5ede Star::StarException::StarException
    [2] 7ff6c46e72e4 Star::validatePath
    [3] 7ff6c46e0d6f Star::Assets::json
    [4] 7ff6c4d7d066 Star::LuaBindings::RootCallbacks::assetJson
    [5] 7ff6c4d70594 std::_Invoker_functor::_Call<Star::Json (__cdecl*const & __ptr64)(Star::Root * __ptr64,Star::String const & __ptr64),Star::Root * __ptr64 const & __ptr64,Star::String>
    [6] 7ff6c4d72ab6 std::invoke<Star::Json (__cdecl*const & __ptr64)(Star::Root * __ptr64,Star::String const & __ptr64),Star::Root * __ptr64 const & __ptr64,Star::String>
    [7] 7ff6c4d70fe4 std::_Invoke_ret<Star::Json (__cdecl*const & __ptr64)(Star::Root * __ptr64,Star::String const & __ptr64),Star::Root * __ptr64 const & __ptr64,Star::String>
    [8] 7ff6c4d70c52 std::_Call_binder<std::_Unforced,0,1,Star::Json (__cdecl*const)(Star::Root * __ptr64,Star::String const & __ptr64),std::tuple<Star::Root * __ptr64,std::_Ph<1> > const ,std::tuple<Star::String && __ptr64> >
    [9] 7ff6c4d6ee53 std::_Binder<std::_Unforced,Star::Json (__cdecl&)(Star::Root * __ptr64,Star::String const & __ptr64),Star::Root * __ptr64 & __ptr64,std::_Ph<1> const & __ptr64>::operator()<Star::String>
    [10] 7ff6c4d795fa <lambda_859f04ab1d9377192727f867a8cd2ac1>::operator()
    [11] 7ff6c4d6f79f std::_Invoker_functor::_Call<<lambda_859f04ab1d9377192727f867a8cd2ac1> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [12] 7ff6c4d72430 std::invoke<<lambda_859f04ab1d9377192727f867a8cd2ac1> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [13] 7ff6c4d716f9 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_859f04ab1d9377192727f867a8cd2ac1> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [14] 7ff6c4d7c22b std::_Func_impl<<lambda_859f04ab1d9377192727f867a8cd2ac1>,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
    [15] 7ff6c469481d 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()
    [16] 7ff6c46937af <lambda_a03bcae4599b53751a446949639a4d5e>::operator()
    [17] 7ff6c461b938 luaD_precall
    [18] 7ff6c46346e1 luaV_execute
    [19] 7ff6c461b443 luaD_call
    [20] 7ff6c461bc1b luaD_rawrunprotected
    [21] 7ff6c461b650 luaD_pcall
    [22] 7ff6c4611b64 lua_pcallk
    [23] 7ff6c469b930 Star::LuaEngine::pcallWithTraceback
    [24] 7ff6c484e1d7 Star::LuaEngine::callFunction<Star::String,Star::Json,Star::Json,Star::Maybe<float>,Star::Maybe<unsigned __int64> >
    [25] 7ff6c484fa64 Star::LuaFunction::invoke<Star::LuaTupleReturn<Star::Json,Star::Json>,Star::String,Star::Json,Star::Json,Star::Maybe<float>,Star::Maybe<unsigned __int64> >
    [26] 7ff6c485025e Star::LuaContext::invokePath<Star::LuaTupleReturn<Star::Json,Star::Json>,Star::String,Star::Json,Star::Json,Star::Maybe<float>,Star::Maybe<unsigned __int64> >
    [27] 7ff6c485dcf3 Star::ItemDatabase::itemConfig
    [28] 7ff6c485d716 Star::ItemDatabase::item
    [29] 7ff6c47ae7ed <lambda_709778657e9cbcc2f956ea96537df7fc>::operator()
    [30] 7ff6c4b9a54b std::_Func_class<void,Star::WorldServer * __ptr64,std::shared_ptr<Star::Player> >::operator()
    [31] 7ff6c4b9513e <lambda_20f0259dbef9ecda253d6c189a402755>::operator()
    [32] 7ff6c4c9307f Star::WorldServerThread::executeAction
    [33] 7ff6c4ba76d1 Star::UniverseServer::executeForClient
    [34] 7ff6c47b59e5 Star::CommandProcessor::spawnItem
    [35] 7ff6c47b2572 Star::CommandProcessor::handleCommand
    [36] 7ff6c47b8327 Star::CommandProcessor::userCommand
    [37] 7ff6c4b81deb std::_Invoker_pmf_pointer::_Call<Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64 & __ptr64,unsigned short,Star::String,Star::String>
    [38] 7ff6c4b88f0d std::invoke<Star::String (__cdecl Star::CommandProcessor::*& __ptr64)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64 & __ptr64,unsigned short,Star::String,Star::String>
    [39] 7ff6c4b84efb std::_Invoke_ret<Star::String (__cdecl Star::CommandProcessor::*& __ptr64)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64 & __ptr64,unsigned short,Star::String,Star::String>
    [40] 7ff6c4b81e5a std::_Call_binder<std::_Unforced,0,1,2,3,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,std::tuple<Star::CommandProcessor * __ptr64,std::_Ph<1>,std::_Ph<2>,std::_Ph<3> >,std::tuple<unsigned short && __ptr64,Star::String && __ptr64,Star::String && __ptr64> >
    [41] 7ff6c4b8195f std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64>::operator()<unsigned short,Star::String,Star::String>
    [42] 7ff6c4b81d89 std::_Invoker_functor::_Call<std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64> & __ptr64,unsigned short,Star::String,Star::String>
    [43] 7ff6c4b88fc0 std::invoke<std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64> & __ptr64,unsigned short,Star::String,Star::String>
    [44] 7ff6c4b84ffe std::_Invoke_ret<Star::String,std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64> & __ptr64,unsigned short,Star::String,Star::String>
    [45] 7ff6c4b9b51b std::_Func_impl<std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64>,std::allocator<int>,Star::String,unsigned short,Star::String,Star::String>::_Do_call
    [46] 7ff6c478da66 std::_Func_class<Star::String,unsigned short,Star::String,Star::String>::operator()
    [47] 7ff6c4790f4c Star::ChatProcessor::handleCommand
    [48] 7ff6c478e63f Star::ChatProcessor::broadcast
    [49] 7ff6c4bac6b0 Star::UniverseServer::processChat
    [50] 7ff6c4baf72b Star::UniverseServer::run
    [51] 7ff6c46c3c5e Star::ThreadImpl::runThread
    [52] 7ffc895e1fe4 BaseThreadInitThunk
    [53] 7ffc89a6efb1 RtlUserThreadStart
    stack traceback:
        [C]: in ?
        [C]: in field 'assetJson'
        [string "/items/buildscripts/abilities.lua"]:27: in global 'addAbility'
        [string "/items/buildscripts/abilities.lua"]:59: in global 'setupAbility'
        [string "/items/buildscripts/buildunrandweapon.lua"]:21: in function <[string "/items/buildscripts/buildunrandweapon.lua"]:6>
    


    Entire log is here:
    Code:
    [18:48:39.539] [Info] Root: Preparing Root...
    [18:48:39.539] [Info] Root: Done preparing Root.
    [18:48:39.540] [Info] Client Version 1.3.3 (windows x86_64) Source ID: c21069b204d626bfe673a047a2100d2fcd0766d4 Protocol: 743
    [18:48:39.540] [Info] Root: Scanning for asset sources in directory '..\assets\'
    [18:48:43.064] [Info] Root: Scanning for asset sources in directory '..\mods\'
    [18:48:46.394] [Warn] Root: Unrecognized file in asset directory 'mods_go_here', skipping
    [18:48:46.591] [Info] Root: Detected asset source named 'base' at '..\assets\packed.pak'
    [18:48:46.591] [Info] Root: Detected asset source named 'FrackinUniverse' at '..\mods\FrackinUniverse.pak'
    [18:48:46.591] [Info] Root: Detected asset source named 'QuickbarMini' at '..\mods\QuickbarMini.pak'
    [18:48:46.591] [Info] Root: Detected asset source named 'WolFenFLCN-11Gunship' at '..\mods\WolFenFLCN-11Gunship.pak'
    [18:48:46.591] [Info] Root: Detected asset source named 'bld_buildtools' at '..\mods\buildtools.pak'
    [18:48:46.591] [Info] Root: Detected asset source named 'Disabled drop for Survival Mode' at '..\mods\dropdisabledsurvival.pak'
    [18:48:46.591] [Info] Root: Detected asset source named 'ms_masssmeltermod_fu' at '..\mods\ms_masssmeltermod_fu.pak'
    [18:48:46.591] [Info] Root: Detected asset source named 'Planet Transponder' at '..\mods\planettransponder.pak'
    [18:48:46.592] [Info] Root: Detected asset source named 'terr_terraguns' at '..\mods\terraguns.pak'
    [18:48:46.592] [Info] Root: Detected asset source named 'weaponsaddition' at '..\mods\weaponsaddition.pak'
    [18:48:46.592] [Info] Root: Detected asset source named 'FrackinRaces' at '..\mods\frackinraces.pak'
    [18:48:46.592] [Info] Root: Detected unnamed asset source at '..\assets\user'
    [18:48:46.592] [Info] Loading assets from: '..\assets\packed.pak'
    [18:48:49.503] [Info] Loading assets from: '..\mods\FrackinUniverse.pak'
    [18:48:52.109] [Info] Loading assets from: '..\mods\QuickbarMini.pak'
    [18:48:52.110] [Info] Loading assets from: '..\mods\WolFenFLCN-11Gunship.pak'
    [18:48:52.121] [Info] Loading assets from: '..\mods\buildtools.pak'
    [18:48:52.122] [Info] Loading assets from: '..\mods\dropdisabledsurvival.pak'
    [18:48:52.123] [Info] Loading assets from: '..\mods\ms_masssmeltermod_fu.pak'
    [18:48:52.125] [Info] Loading assets from: '..\mods\planettransponder.pak'
    [18:48:52.126] [Info] Loading assets from: '..\mods\terraguns.pak'
    [18:48:52.129] [Info] Loading assets from: '..\mods\weaponsaddition.pak'
    [18:48:52.330] [Info] Loading assets from: '..\mods\frackinraces.pak'
    [18:48:52.717] [Info] Loading assets from: '..\assets\user'
    [18:48:59.339] [Info] Assets digest is dbdeabf21675132303d453edff619617d571a4a10df76ec488e49da543e79140
    [18:48:59.340] [Info] Root: Loaded Assets in 19.7994 seconds
    [18:48:59.360] [Info] Application: Initializing SDL Video
    [18:48:59.373] [Info] Application: Initializing SDL Joystick
    [18:48:59.674] [Info] Application: Initializing SDL Sound
    [18:48:59.835] [Info] Initialized Steam services
    [18:48:59.838] [Info] Application: Creating SDL Window
    [18:48:59.964] [Info] Application: Enabling VSync with late swap tearing
    [18:49:00.445] [Info] Application: Opened default audio device with 44.1khz / 16 bit stereo audio, 2048 sample size buffer
    [18:49:00.451] [Info] OpenGL version: '4.0.0 - Build 10.18.10.4358' vendor: 'Intel' renderer: 'Intel(R) HD Graphics' shader: '4.00 - Build 10.18.10.4358'
    [18:49:00.468] [Info] Application: initialization...
    [18:49:00.497] [Info] Root: Loaded Configuration in 0.0283305 seconds
    [18:49:00.509] [Info] Application: renderer initialization...
    [18:49:00.591] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 128
    [18:49:00.592] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 64
    [18:49:00.600] [Info] Root: Loaded ImageMetadataDatabase in 3.30829e-06 seconds
    [18:49:00.748] [Info] Application: main update loop...
    [18:49:00.785] [Info] No subscribed user generated content
    [18:49:00.958] [Info] Root: Loaded NameGenerator in 0.168767 seconds
    [18:49:02.515] [Info] Root: Loaded PlantDatabase in 1.5565 seconds
    [18:49:08.441] [Info] Root: Loaded ObjectDatabase in 7.65158 seconds
    [18:49:13.458] [Info] Root: Loaded ProjectileDatabase in 10.9432 seconds
    [18:49:15.207] [Info] Root: Loaded NpcDatabase in 1.74838 seconds
    [18:49:15.256] [Info] Root: Loaded StagehandDatabase in 0.0493481 seconds
    [18:49:15.443] [Info] Root: Loaded VehicleDatabase in 0.187088 seconds
    [18:49:15.644] [Info] Root: Loaded PlayerFactory in 0.199975 seconds
    [18:49:16.398] [Info] Root: Loaded MonsterDatabase in 7.95645 seconds
    [18:49:16.410] [Info] Root: Writing runtime configuration to '..\storage\starbound.config'
    [18:49:16.418] [Info] Root: Loaded VersioningDatabase in 0.0173559 seconds
    [18:49:16.418] [Info] Root: Loaded EntityFactory in 0.773942 seconds
    [18:49:16.986] [Info] Root: Loaded ParticleDatabase in 0.567933 seconds
    [18:49:21.528] [Info] Root: Loaded MaterialDatabase in 5.10994 seconds
    [18:49:21.630] [Info] Root: Loaded TerrainDatabase in 0.0823358 seconds
    [18:49:25.453] [Info] Root: Loaded BiomeDatabase in 3.82324 seconds
    [18:49:25.483] [Info] Root: Loaded LiquidsDatabase in 0.0296382 seconds
    [18:49:26.274] [Info] Root: Loaded StatusEffectDatabase in 0.790214 seconds
    [18:49:29.575] [Info] Root: Loaded DamageDatabase in 3.30178 seconds
    [18:49:29.623] [Info] Root: Loaded EffectSourceDatabase in 0.046633 seconds
    [18:49:29.884] [Info] Root: Loaded FunctionDatabase in 0.262097 seconds
    [18:49:30.541] [Info] Root: Loaded TreasureDatabase in 0.656011 seconds
    [18:49:34.998] [Info] Root: Loaded DungeonDefinitions in 4.45725 seconds
    [18:49:34.998] [Info] Root: Loaded TilesetDatabase in 0.000103975 seconds
    [18:49:35.015] [Info] Root: Loaded StatisticsDatabase in 0.0162088 seconds
    [18:49:35.015] [Info] Root: Loaded EmoteProcessor in 0.000201807 seconds
    [18:49:35.126] [Info] Root: Loaded SpeciesDatabase in 0.110958 seconds
    [18:49:35.437] [Info] Root: Loaded QuestTemplateDatabase in 0.310697 seconds
    [18:49:35.449] [Info] Root: Loaded AiDatabase in 0.0111192 seconds
    [18:49:35.480] [Info] Root: Loaded TechDatabase in 0.0316076 seconds
    [18:49:35.564] [Info] Root: Loaded CodexDatabase in 0.0835433 seconds
    [18:49:37.514] [Info] Root: Loaded BehaviorDatabase in 1.95005 seconds
    [18:49:37.526] [Info] Root: Loaded DanceDatabase in 0.0113286 seconds
    [18:49:37.625] [Info] Root: Loaded SpawnTypeDatabase in 0.0994246 seconds
    [18:49:37.876] [Info] Root: Loaded RadioMessageDatabase in 0.250775 seconds
    [18:50:03.743] [Info] Root: Loaded ItemDatabase in 47.3446 seconds
    [18:50:11.605] [Info] Root: Loaded CollectionDatabase in 33.7284 seconds
    [18:50:20.489] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 256
    [18:51:10.917] [Info] UniverseServer: Acquiring universe lock file
    [18:51:11.057] [Info] UniverseServer: Loading settings
    [18:51:11.079] [Info] UniverseServer: Starting UniverseServer with UUID: 58bb014148a3f0782a7d3d99c9d1053a
    [18:51:11.189] [Info] UniverseServer: Logged in player 'Francis' locally
    [18:51:11.189] [Info] UniverseServer: Logged in account '<anonymous>' as player 'Francis' from address local
    [18:51:11.233] [Info] UniverseServer: Loading system world (297398234, -861936595, 96669568) from disk storage
    [18:51:11.264] [Info] UniverseClient: Joined server as client 1
    [18:51:11.625] [Info] UniverseServer: Reviving player at ClientShipWorld:059341efcc91f5c15d9987846b00b9b9
    [18:51:11.625] [Info] UniverseServer: Client 'Francis' <1> (local) connected
    [18:51:11.628] [Info] UniverseServer: Loading client ship world ClientShipWorld:059341efcc91f5c15d9987846b00b9b9
    [18:51:12.539] [Info] Protected dungeonIds for world set to (65524)
    [18:51:12.952] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 64
    [18:51:12.952] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 128
    [18:51:13.034] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 256
    [18:51:13.035] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 256
    [18:51:13.035] [Info] Setting steam rich presence connection as steam id 76561198170196578
    [18:51:13.055] [Error] Cannot set Steam achievement kill10poptops
    [18:51:16.948] [Info] UniverseServer: Warping player 1 to ClientShipWorld:059341efcc91f5c15d9987846b00b9b9=980.737.1007
    [18:52:05.141] [Error] Could not instantiate item '[wa_multigrenadelauncher, 1, {}]'. (LuaException) Error code 2, [string "/items/buildscripts/abilities.lua"]:27: (AssetException) Path 'items/active/weapons/other/multigrenadelauncher/wa_multigrenade.weaponability' must be absolute
    [0] 7ff6c46c7153 Star::captureStack
    [1] 7ff6c46c5ede Star::StarException::StarException
    [2] 7ff6c46e72e4 Star::validatePath
    [3] 7ff6c46e0d6f Star::Assets::json
    [4] 7ff6c4d7d066 Star::LuaBindings::RootCallbacks::assetJson
    [5] 7ff6c4d70594 std::_Invoker_functor::_Call<Star::Json (__cdecl*const & __ptr64)(Star::Root * __ptr64,Star::String const & __ptr64),Star::Root * __ptr64 const & __ptr64,Star::String>
    [6] 7ff6c4d72ab6 std::invoke<Star::Json (__cdecl*const & __ptr64)(Star::Root * __ptr64,Star::String const & __ptr64),Star::Root * __ptr64 const & __ptr64,Star::String>
    [7] 7ff6c4d70fe4 std::_Invoke_ret<Star::Json (__cdecl*const & __ptr64)(Star::Root * __ptr64,Star::String const & __ptr64),Star::Root * __ptr64 const & __ptr64,Star::String>
    [8] 7ff6c4d70c52 std::_Call_binder<std::_Unforced,0,1,Star::Json (__cdecl*const)(Star::Root * __ptr64,Star::String const & __ptr64),std::tuple<Star::Root * __ptr64,std::_Ph<1> > const ,std::tuple<Star::String && __ptr64> >
    [9] 7ff6c4d6ee53 std::_Binder<std::_Unforced,Star::Json (__cdecl&)(Star::Root * __ptr64,Star::String const & __ptr64),Star::Root * __ptr64 & __ptr64,std::_Ph<1> const & __ptr64>::operator()<Star::String>
    [10] 7ff6c4d795fa <lambda_859f04ab1d9377192727f867a8cd2ac1>::operator()
    [11] 7ff6c4d6f79f std::_Invoker_functor::_Call<<lambda_859f04ab1d9377192727f867a8cd2ac1> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [12] 7ff6c4d72430 std::invoke<<lambda_859f04ab1d9377192727f867a8cd2ac1> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [13] 7ff6c4d716f9 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_859f04ab1d9377192727f867a8cd2ac1> & __ptr64,Star::LuaEngine & __ptr64,unsigned __int64,Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData> * __ptr64>
    [14] 7ff6c4d7c22b std::_Func_impl<<lambda_859f04ab1d9377192727f867a8cd2ac1>,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
    [15] 7ff6c469481d 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()
    [16] 7ff6c46937af <lambda_a03bcae4599b53751a446949639a4d5e>::operator()
    [17] 7ff6c461b938 luaD_precall
    [18] 7ff6c46346e1 luaV_execute
    [19] 7ff6c461b443 luaD_call
    [20] 7ff6c461bc1b luaD_rawrunprotected
    [21] 7ff6c461b650 luaD_pcall
    [22] 7ff6c4611b64 lua_pcallk
    [23] 7ff6c469b930 Star::LuaEngine::pcallWithTraceback
    [24] 7ff6c484e1d7 Star::LuaEngine::callFunction<Star::String,Star::Json,Star::Json,Star::Maybe<float>,Star::Maybe<unsigned __int64> >
    [25] 7ff6c484fa64 Star::LuaFunction::invoke<Star::LuaTupleReturn<Star::Json,Star::Json>,Star::String,Star::Json,Star::Json,Star::Maybe<float>,Star::Maybe<unsigned __int64> >
    [26] 7ff6c485025e Star::LuaContext::invokePath<Star::LuaTupleReturn<Star::Json,Star::Json>,Star::String,Star::Json,Star::Json,Star::Maybe<float>,Star::Maybe<unsigned __int64> >
    [27] 7ff6c485dcf3 Star::ItemDatabase::itemConfig
    [28] 7ff6c485d716 Star::ItemDatabase::item
    [29] 7ff6c47ae7ed <lambda_709778657e9cbcc2f956ea96537df7fc>::operator()
    [30] 7ff6c4b9a54b std::_Func_class<void,Star::WorldServer * __ptr64,std::shared_ptr<Star::Player> >::operator()
    [31] 7ff6c4b9513e <lambda_20f0259dbef9ecda253d6c189a402755>::operator()
    [32] 7ff6c4c9307f Star::WorldServerThread::executeAction
    [33] 7ff6c4ba76d1 Star::UniverseServer::executeForClient
    [34] 7ff6c47b59e5 Star::CommandProcessor::spawnItem
    [35] 7ff6c47b2572 Star::CommandProcessor::handleCommand
    [36] 7ff6c47b8327 Star::CommandProcessor::userCommand
    [37] 7ff6c4b81deb std::_Invoker_pmf_pointer::_Call<Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64 & __ptr64,unsigned short,Star::String,Star::String>
    [38] 7ff6c4b88f0d std::invoke<Star::String (__cdecl Star::CommandProcessor::*& __ptr64)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64 & __ptr64,unsigned short,Star::String,Star::String>
    [39] 7ff6c4b84efb std::_Invoke_ret<Star::String (__cdecl Star::CommandProcessor::*& __ptr64)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64 & __ptr64,unsigned short,Star::String,Star::String>
    [40] 7ff6c4b81e5a std::_Call_binder<std::_Unforced,0,1,2,3,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,std::tuple<Star::CommandProcessor * __ptr64,std::_Ph<1>,std::_Ph<2>,std::_Ph<3> >,std::tuple<unsigned short && __ptr64,Star::String && __ptr64,Star::String && __ptr64> >
    [41] 7ff6c4b8195f std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64>::operator()<unsigned short,Star::String,Star::String>
    [42] 7ff6c4b81d89 std::_Invoker_functor::_Call<std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64> & __ptr64,unsigned short,Star::String,Star::String>
    [43] 7ff6c4b88fc0 std::invoke<std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64> & __ptr64,unsigned short,Star::String,Star::String>
    [44] 7ff6c4b84ffe std::_Invoke_ret<Star::String,std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64> & __ptr64,unsigned short,Star::String,Star::String>
    [45] 7ff6c4b9b51b std::_Func_impl<std::_Binder<std::_Unforced,Star::String (__cdecl Star::CommandProcessor::*)(unsigned short,Star::String const & __ptr64,Star::String const & __ptr64) __ptr64,Star::CommandProcessor * __ptr64,std::_Ph<1> const & __ptr64,std::_Ph<2> const & __ptr64,std::_Ph<3> const & __ptr64>,std::allocator<int>,Star::String,unsigned short,Star::String,Star::String>::_Do_call
    [46] 7ff6c478da66 std::_Func_class<Star::String,unsigned short,Star::String,Star::String>::operator()
    [47] 7ff6c4790f4c Star::ChatProcessor::handleCommand
    [48] 7ff6c478e63f Star::ChatProcessor::broadcast
    [49] 7ff6c4bac6b0 Star::UniverseServer::processChat
    [50] 7ff6c4baf72b Star::UniverseServer::run
    [51] 7ff6c46c3c5e Star::ThreadImpl::runThread
    [52] 7ffc895e1fe4 BaseThreadInitThunk
    [53] 7ffc89a6efb1 RtlUserThreadStart
    stack traceback:
        [C]: in ?
        [C]: in field 'assetJson'
        [string "/items/buildscripts/abilities.lua"]:27: in global 'addAbility'
        [string "/items/buildscripts/abilities.lua"]:59: in global 'setupAbility'
        [string "/items/buildscripts/buildunrandweapon.lua"]:21: in function <[string "/items/buildscripts/buildunrandweapon.lua"]:6>
    [18:53:45.809] [Info] UniverseClient: Client disconnecting...
    [18:53:45.916] [Info] Client received world stop packet, leaving: Removed
    [18:53:46.624] [Info] UniverseServer: Client 'Francis' <1> (local) disconnected for reason:
    [18:53:46.625] [Info] UniverseServer: Stopping idle world ClientShipWorld:059341efcc91f5c15d9987846b00b9b9
    [18:53:49.405] [Info] UniverseServer: Stopping UniverseServer
    [18:53:49.711] [Info] Clearing steam rich presence connection
    [18:53:51.390] [Info] Application: quit requested
    [18:53:51.391] [Info] Application: quitting...
    [18:53:51.391] [Info] Application: shutdown...
    [18:53:51.730] [Info] Root: Shutting down Root
    [18:53:53.251] [Info] Application: Destroying SDL Window
    [18:53:53.391] [Info] Application: stopped gracefully
    


    The weaponabilities.config.patch:
    Code:
    [
      {
        "op": "add",
        "path": "/assaultriflemelee",
        "value": "/items/active/weapons/melee/abilities/broadsword/assaultriflemelee/assaultriflemelee.weaponability"
      },
      {
        "op": "add",
        "path": "/superrocketspear",
        "value": "/items/active/weapons/melee/abilities/spear/superrocketspear/superrocketspear.weaponability"
      },
      {
        "op": "add",
        "path": "/supershockwave",
        "value": "/items/active/weapons/melee/abilities/hammer/supershockwave/supershockwave.weaponability"
      },
      {
        "op": "add",
        "path": "/rocketlaunchermelee",
        "value": "/items/active/weapons/melee/abilities/broadsword/rocketlaunchermelee/rocketlaunchermelee.weaponability"
      },
      {
        "op": "add",
        "path": "/swordlaserbeam",
        "value": "/items/active/weapons/melee/abilities/broadsword/swordlaserbeam/swordlaserbeam.weaponability"
      },
      {
        "op": "add",
        "path": "/electricbowshot",
        "value": "/items/active/weapons/bow/abilities/electricbowshot.weaponability"
      },
      {
        "op": "add",
        "path": "/tacticalflashlight",
        "value": "/items/active/weapons/ranged/abilities/tacticalflashlight/tacticalflashlight.weaponability"
      },
      {
        "op": "add",
        "path": "/flareshot",
        "value": "/items/active/weapons/ranged/abilities/flareshot/flareshot.weaponability"
      },
      {
        "op": "add",
        "path": "/superpickslash",
        "value": "/items/active/weapons/melee/pickaxe/superpickslash.weaponability"
      },
      {
        "op": "add",
        "path": "/wa_multiflamer",
        "value": "/items/active/weapons/other/multiflamer/wa_multiflamer.weaponability"
      },
      {
        "op": "add",
        "path": "/wa_multirocketlauncher",
        "value": "/items/active/weapons/other/multirocketlauncher/wa_multirocketlauncher.weaponability"
      },
      {
        "op": "add",
        "path": "/wa_hammerthrow",
        "value": "/items/active/weapons/melee/abilities/hammer/wa_hammerthrow/wa_hammerthrow.weaponability"
      },
      {
        "op": "add",
        "path": "/wa_moltenspew",
        "value": "/items/active/weapons/melee/abilities/broadsword/moltenspew/wa_moltenspew.weaponability"
      },
      {
        "op": "add",
        "path": "/wa_slayerslash",
        "value": "/items/active/weapons/melee/abilities/broadsword/wa_slayerslash/wa_slayerslash.weaponability"
      },
      {
        "op": "add",
        "path": "/wa_multiclip",
        "value": "/items/active/weapons/other/sidearm/wa_multiclip.weaponability"
      },
      {
        "op": "add",
        "path": "/wa_multigrenade",
        "value": "items/active/weapons/other/multigrenadelauncher/wa_multigrenade.weaponability"
      }
    ]
    


    Here is the weapon ability:
    Code:
    {
      "animationCustom" : {
        "animatedParts" : {
          "stateTypes" : {
            "ammoType" : {
              "default" : "1",
              "states" : {
                "1" : {
                  "frames" : 1,
                  "properties" : {
                    "particleEmittersOff" : [ ]
                  }
                },
                "2" : {
                  "frames" : 1,
                  "properties" : {
                    "particleEmittersOff" : [ ],
                    "particleEmittersOn" : [ ]
                  }
                },
                "3" : {
                  "frames" : 1,
                  "properties" : {
                    "particleEmittersOff" : [ ],
                    "particleEmittersOn" : [ ]
                  }
                },
                "4" : {
                  "frames" : 1,
                  "properties" : {
                    "particleEmittersOff" : [ ],
                    "particleEmittersOn" : [ ]
                  }
                },
                "5" : {
                  "frames" : 1,
                  "properties" : {
                    "particleEmittersOff" : [ ],
                    "particleEmittersOn" : [ ]
                  }
                },
                "6" : {
                  "frames" : 1,
                  "properties" : {
                    "particleEmittersOff" : [ ],
                    "particleEmittersOn" : [ ]
                  }
                },
                "7" : {
                  "frames" : 1,
                  "properties" : {
                    "particleEmittersOff" : [ ],
                    "particleEmittersOn" : [ ]
                  }
                }
              }
            }
          },
    
          "parts" : {
            "middle" : {
              "properties" : {
                "image" : null
              },
    
              "partStates" : {
                "ammoType" : {
                  "1" : {
                    "properties" : {
                      "image" : "<partImage>:wooden.<frame><paletteSwaps>"
                    }
                  },
                  "2" : {
                    "properties" : {
                      "image" : "<partImage>:explosive.<frame><paletteSwaps>"
                    }
                  },
                  "3" : {
                    "properties" : {
                      "image" : "<partImage>:ice.<frame><paletteSwaps>"
                    }
                  },
                  "4" : {
                    "properties" : {
                      "image" : "<partImage>:electric.<frame><paletteSwaps>"
                    }
                  },
                  "5" : {
                    "properties" : {
                      "image" : "<partImage>:poison.<frame><paletteSwaps>"
                    }
                  },
                  "6" : {
                    "properties" : {
                      "image" : "<partImage>:hgravity.<frame><paletteSwaps>"
                    }
                  },
                  "7" : {
                    "properties" : {
                      "image" : "<partImage>:ngravity.<frame><paletteSwaps>"
                    }
                  }
                }
              }
            }
          }
        },
    
        "particleEmitters" : {
          "fireAmmo" : {
            "transformationGroups" : ["weapon"],
            "offsetRegion" : [0, 0, 1.5, 0],
            "emissionRate" : 3.0,
            "particles" : [
              { "particle" : "fireember" },
              { "particle" : "fireember" },
              { "particle" : "fireember" }
            ]
          },
          "iceAmmo" : {
            "transformationGroups" : ["weapon"],
            "offsetRegion" : [0, 0, 1.5, 0],
            "emissionRate" : 3.0,
            "particles" : [
              { "particle" : "iceaura" }
            ]
          },
          "electricAmmo" : {
            "transformationGroups" : ["weapon"],
            "offsetRegion" : [0, 0, 1.5, 0],
            "emissionRate" : 1.0,
            "particles" : [
              { "particle" : "teslabolt" },
              { "particle" : "electricalburn" },
              { "particle" : "electricalburn" },
              { "particle" : "electricswoosh2" },
              { "particle" : "electricswoosh2" }
            ]
          },
          "poisonAmmo" : {
            "transformationGroups" : ["weapon"],
            "offsetRegion" : [0, 0, 1.5, 0],
            "emissionRate" : 1.0,
            "particles" : [
              { "particle" : "poisondrip2" },
              { "particle" : "poisondrip2" },
              { "particle" : "poisondrip2" }
            ]
          },
          "hGravityAmmo" : {
            "transformationGroups" : ["weapon"],
            "offsetRegion" : [0, 0, 1.5, 0],
            "emissionRate" : 1.5,
            "particles" : [
              { "particle" : "shadowsmoke" }
            ]
          },
          "nGravityAmmo" : {
            "transformationGroups" : ["weapon"],
            "offsetRegion" : [0, 0, 1.5, 0],
            "emissionRate" : 1.5,
            "particles" : [
              { "particle" : "shadowsmoke" }
            ]
          }
    
        },
    
        "sounds" : {
          "switchAmmo" : [ "/sfx/gun/reload/shotgun_reload_clip3.ogg" ]
        }
      },
    
      "ability" : {
        "type" : "wa_multigrenade",
        "name" : "Grenade Switch",
        "scripts" : ["/items/active/weapons/other/multiflamer/wa_multiflamer.lua"],
        "class" : "TerraAmmo1",
    
        "adaptedAbilityIndex" : 1,
    
        "ammoTypes" : [
          {
            "projectileType" : "clustergrenade",
            "energyUsage" : 25
          },
          {
            "projectileType" : "bouncyclustergrenade",
            "energyUsage" : 20
          },
          {
            "projectileType" : "gravitybomb",
            "energyUsage" : 20
          },
          {
            "projectileType" : "grenade",
            "energyUsage" : 20
          },
          {
            "projectileType" : "proximitymine",
            "energyUsage" : 20
          },
          {
            "projectileType" : "impactgrenade",
            "energyUsage" : 30
          },
          {
            "projectileType" : "shrapnelbomb",
            "energyUsage" : 25
          }
        ],
    
        "stances" : {
          "idle" : {
            "armRotation" : 0,
            "weaponRotation" : 0,
            "twoHanded" : true,
            "allowRotate" : true,
            "allowFlip" : true
          },
          "switch" : {
            "aimAngle" : 0,
            "armRotation" : -40,
            "weaponRotation" : 60,
            "weaponAngularVelocity" : -150,
            "armAngularVelocity" : 100,
            "twoHanded" : true,
            "duration" : 0.4,
            "allowRotate" : false,
            "allowFlip" : true
          }
        }
      }
    }
    
     
    Last edited: Mar 7, 2018
  2. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    I find it strange that all my other ammo switch abilities work, but this one does not. Maybe SB isn't handling the file path very well...
     
  3. Random_NPC1996

    Random_NPC1996 Scruffy Nerf-Herder

    Code:
    {
        "op": "add",
        "path": "/wa_multiclip",
        "value": "/items/active/weapons/other/sidearm/wa_multiclip.weaponability"
      },
      {
        "op": "add",
        "path": "/wa_multigrenade",
        "value": "items/active/weapons/other/multigrenadelauncher/wa_multigrenade.weaponability"
      }
    "value": "items/active/weapons/other/multigrenadelauncher/wa_multigrenade.weaponability"
    you did not have the slash thingy? ( " / " <---- this? ) at the value start part before items....

    EDIT: This is the weaponability.config.patch part of your file
     
  4. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    Well, that would explain it. Thank you for the help.
     

Share This Page