Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulse Rifle makes monsters immune to damage #20

Open
binarynoise opened this issue Sep 30, 2021 · 3 comments
Open

Pulse Rifle makes monsters immune to damage #20

binarynoise opened this issue Sep 30, 2021 · 3 comments

Comments

@binarynoise
Copy link

When I've hit a monster with the rifle, It doesn't do any damage and I can't do damage with other weapons afterwards.
I found this in the logs:

[19:33:33.297] [Error] Exception while invoking lua function 'applyDamageRequest'. (LuaException) Error code 2, [string "/stats/monster_primary.lua"]:74: (StatusEffectDatabaseException) No such unique stat effect '::{"tag":"dmgTypes","t":{"fire":1,"electric":1}}'
./starbound(_ZN4Star13StarExceptionC2EPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x66) [0xa91c36]
./starbound(_ZNK4Star20StatusEffectDatabase18uniqueEffectConfigERKNS_6StringE+0x854) [0xfea674]
./starbound(_ZN4Star16StatusController19addEphemeralEffectsERKNS_4ListINS_21EphemeralStatusEffectESaIS2_EEENS_5MaybeIiEE+0x114) [0xfd46b4]
./starbound(_ZN4Star11LuaBindings25StatusControllerCallbacks19addEphemeralEffectsEPNS_16StatusControllerERKNS_4ListINS_4JsonESaIS5_EEENS_5MaybeIiEE+0x110) [0x12f5f20]
./starbound(_ZNSt17_Function_handlerIFN4Star7VariantINS1_INS0_5EmptyEJbxdNS0_9LuaStringENS0_8LuaTableENS0_11LuaFunctionENS0_9LuaThreadENS0_11LuaUserDataEEEEJNS0_11LuaVariadicIS8_EEEEERNS0_9LuaEngineEmPS8_EZNS0_9LuaDetail15FunctionWrapperIvJNS0_4ListINS0_4JsonESaISJ_EEENS0_5MaybeIiEEEE11wrapIndexesISt5_BindIFPFvPNS0_16StatusControllerERKSL_SN_ESS_St12_PlaceholderILi1EESX_ILi2EEEEJLm0ELm1EEEESt8functionISF_ET_RKNS0_13IndexSequenceIJXspT0_EEEEEUlSD_mSE_E_E9_M_invokeERKSt9_Any_dataSD_OmOSE_+0x70) [0x12fbe80]
./starbound() [0xa45e0a]
./starbound() [0x99705b]
./starbound() [0x9b1b6a]
./starbound() [0x997a27]
./starbound() [0x99657c]
./starbound() [0x997e0f]
./starbound(lua_pcallk+0x57) [0x98abb7]
./starbound(_ZN4Star9LuaEngine18pcallWithTracebackEP9lua_Stateii+0x58) [0xa40c28]
./starbound(_ZN4Star9LuaEngine12callFunctionIJNS_13DamageRequestEEEENS_7VariantINS3_INS_5EmptyEJbxdNS_9LuaStringENS_8LuaTableENS_11LuaFunctionENS_9LuaThreadENS_11LuaUserDataEEEEJNS_11LuaVariadicISA_EEEEEiDpRKT_+0x9c) [0xfe51dc]
./starbound(_ZN4Star16LuaBaseComponent6invokeINS_4ListINS_18DamageNotificationESaIS3_EEEJRKNS_13DamageRequestEEEENS_5MaybeIT_EERKNS_6StringEDpOT0_+0xd4) [0xfe5414]
./starbound(_ZN4Star16StatusController18applyDamageRequestERKNS_13DamageRequestE+0x4b) [0xfcf21b]
./starbound(_ZN4Star7Monster11applyDamageERKNS_13DamageRequestE+0x75) [0xce7385]
./starbound(_ZN4Star13DamageManager23pushRemoteDamageRequestERKNS_19RemoteDamageRequestE+0x5c) [0xbe790c]
./starbound(_ZN4Star11WorldServer21handleIncomingPacketsEtRKNS_4ListISt10shared_ptrINS_6PacketEESaIS4_EEE+0xe13) [0x11ad0a3]
./starbound(_ZN4Star17WorldServerThread6updateENS_19WorldServerFidelityE+0x122) [0x11cfe82]
./starbound(_ZN4Star17WorldServerThread3runEv+0xdb0) [0x11d1380]
./starbound(_ZN4Star10ThreadImpl9runThreadEPv+0x15) [0xa9b845]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x9609) [0x7f52bf86e609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f52bf633293]
stack traceback:
	[C]: in ?
	[C]: in field 'addEphemeralEffects'
	[string "/stats/monster_primary.lua"]:74: in function <[string "/stats/monster_primary.lua"]:21>
./starbound(_ZN4Star13StarExceptionC2EPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x66) [0xa91c36]
./starbound(_ZN4Star12LuaExceptionC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x52) [0xa4b3b2]
./starbound(_ZN4Star9LuaEngine11handleErrorEP9lua_Statei+0x392) [0xa41f42]
./starbound(_ZN4Star9LuaEngine12callFunctionIJNS_13DamageRequestEEEENS_7VariantINS3_INS_5EmptyEJbxdNS_9LuaStringENS_8LuaTableENS_11LuaFunctionENS_9LuaThreadENS_11LuaUserDataEEEEJNS_11LuaVariadicISA_EEEEEiDpRKT_+0xb7) [0xfe51f7]
./starbound(_ZN4Star16LuaBaseComponent6invokeINS_4ListINS_18DamageNotificationESaIS3_EEEJRKNS_13DamageRequestEEEENS_5MaybeIT_EERKNS_6StringEDpOT0_+0xd4) [0xfe5414]
./starbound(_ZN4Star16StatusController18applyDamageRequestERKNS_13DamageRequestE+0x4b) [0xfcf21b]
./starbound(_ZN4Star7Monster11applyDamageERKNS_13DamageRequestE+0x75) [0xce7385]
./starbound(_ZN4Star13DamageManager23pushRemoteDamageRequestERKNS_19RemoteDamageRequestE+0x5c) [0xbe790c]
./starbound(_ZN4Star11WorldServer21handleIncomingPacketsEtRKNS_4ListISt10shared_ptrINS_6PacketEESaIS4_EEE+0xe13) [0x11ad0a3]
./starbound(_ZN4Star17WorldServerThread6updateENS_19WorldServerFidelityE+0x122) [0x11cfe82]
./starbound(_ZN4Star17WorldServerThread3runEv+0xdb0) [0x11d1380]
./starbound(_ZN4Star10ThreadImpl9runThreadEPv+0x15) [0xa9b845]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x9609) [0x7f52bf86e609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f52bf633293]
@zetaPRIME
Copy link
Owner

this kind of thing is always a result of something else clobbering monster_primary.lua and/or npc_primary.lua; whoever does that needs to add the following lines to the end of the init function in their copy to restore compatibility with my stuff:

	if root.hasTech("stardustlib:enable-extenders") then -- stardustlib shim
		require "/sys/stardust/statusext.lua"
	end

@Lightveld
Copy link

Lightveld commented Jun 14, 2022

Getting a similar problem but from a different mod that has implemented the above fix, If I one shot the monster it dies just fine but becomes immortal if I don't.

Fix seems to have been added in this mod: https://steamcommunity.com/sharedfiles/filedetails/?id=2690363974
But with that mod installed, nothing changes about the below error.

[07:50:15.108] [Error] Exception while invoking lua function 'applyDamageRequest'. (LuaException) Error code 2, [string "/stats/bl3_shared/damageRequestSharedFunction..."]:124: attempt to index a function value (local 'elementalStat')
stack traceback:
	[C]: in metamethod '__index'
	[string "/stats/bl3_shared/damageRequestSharedFunction..."]:124: in global 'bl3numberParticle'
	[string "/stats/monster_primary_bl3health.lua"]:70: in global 'monstercompatFU_damageRequest'
	[string "/stats/monster_primary_FU_core.lua"]:25: in upvalue '_applyDamageRequest'
	[string "/sys/stardust/statusext.lua"]:89: in function <[string "/sys/stardust/statusext.lua"]:70>
[0] 7ff6bebfa213 Star::captureStack
[1] 7ff6bebf8f9e Star::StarException::StarException
[2] 7ff6bebccfb1 Star::LuaEngine::handleError
[3] 7ff6beff1805 Star::LuaEngine::callFunction<Star::DamageRequest>
[4] 7ff6beff2966 Star::LuaFunction::invoke<Star::List<Star::DamageNotification,std::allocator<Star::DamageNotification> >,Star::DamageRequest>
[5] 7ff6beff2828 Star::LuaBaseComponent::invoke<Star::List<Star::DamageNotification,std::allocator<Star::DamageNotification> >,Star::DamageRequest const & __ptr64>
[6] 7ff6beffd208 Star::StatusController::applyDamageRequest
[7] 7ff6bedd6b7a Star::Monster::applyDamage
[8] 7ff6becf3ae8 Star::DamageManager::pushRemoteDamageRequest
[9] 7ff6bf184cf1 Star::WorldServer::handleIncomingPackets
[10] 7ff6bf199f7b Star::WorldServerThread::update
[11] 7ff6bf199a8b Star::WorldServerThread::run
[12] 7ff6bebf6d9e Star::ThreadImpl::runThread
[13] 7ffb60b27034 BaseThreadInitThunk
[14] 7ffb60da2651 RtlUserThreadStart

@Lightveld
Copy link

Discovered the issue solely exists in their damage number display code, turning off that function in-game fixes the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants