#(LuaComponentException) Duplicate callbacks named 'effect' in LuaBaseComponent

1 messages · Page 1 of 1 (latest)

foggy jay
#

My mod is causing the game to crash, this is the only thing I'm seeing in the starbound log. Only my mod is installed. How should I go about troubleshooting this? Thanks!

white jasper
#

You check the logs!

foggy jay
#

The logs is where I got this error message ;-;

#
[11:39:14.019] [Info] UniverseServer: Warping player 1 to InstanceWorld:protectorate:357549ef081fc39c68d88ffce27d930d:-
[11:39:14.176] [Error] Exception caught in client main-loop
(LuaComponentException) Duplicate callbacks named 'effect' in LuaBaseComponent
[0] 7ff73a4da213 Star::captureStack
[1] 7ff73a4d8f9e Star::StarException::StarException
[2] 7ff73ab1070b Star::LuaComponentException::LuaComponentException
[3] 7ff73ab0fa96 Star::LuaComponentException::format<Star::String>
[4] 7ff73ab10ce6 Star::LuaBaseComponent::addCallbacks
[5] 7ff73a8e187c Star::StatusController::initUniqueEffectScript
[6] 7ff73a8e12ec Star::StatusController::init
[7] 7ff73a7c012b Star::Player::init
[8] 7ff73a9f1f92 Star::WorldClient::initWorld
[9] 7ff73a9efeaa Star::WorldClient::handleIncomingPackets
[10] 7ff73a965653 Star::UniverseClient::handlePackets
[11] 7ff73a966905 Star::UniverseClient::update
[12] 7ff73a425da7 Star::ClientApplication::updateRunning
[13] 7ff73a42473d Star::ClientApplication::update
[14] 7ff73abed4d1 Star::SdlPlatform::run
[15] 7ff73abed68d Star::runMainApplication
[16] 7ff73a427731 WinMain
[17] 7ff73add07af __scrt_common_main_seh
[18] 7ffcab56257d BaseThreadInitThunk
[19] 7ffcac14aa58 RtlUserThreadStart
[11:39:14.177] [Info] UniverseClient: Client disconnecting...
#

is there an implicit variable named effects in the global lua context of some scripts? I have a variable named effects that I create myself and use. I'll try renaming it...

#

that wasn't the fix 😔

#

The problem is me calling status.setPersistentEffects in the init method of a script attached to /statusControllerSettings/primaryScriptSources/-

#

what other methods do I have available to me in a script attached to /statusControllerSettings/primaryScriptSources/-?