Starbound-WEdit icon indicating copy to clipboard operation
Starbound-WEdit copied to clipboard

error when using furniture

Open zerisius opened this issue 6 years ago • 1 comments

everytime you use furniture like beds or chairs and try to move your char around, you will get teleportet to the core (where you die)

[16:00:13.294] [Error] Exception while calling script init: (LuaException) Error code 2, [string "/scripts/rect.lua"]:17: attempt to index a nil value (local 'rectangle') stack traceback: [C]: in metamethod '__index' [string "/scripts/rect.lua"]:17: in field 'll' [string "/scripts/rect.lua"]:69: in field 'rotate' [string "/stats/effects/bed/bed.lua"]:9: in function <[string "/stats/effects/bed/bed.lua"]:3> [0] 7ff712dc7153 Star::captureStack [1] 7ff712dc5ede Star::StarException::StarException [2] 7ff712d9a4c1 Star::LuaEngine::handleError [3] 7ff712f8931b Star::LuaEngine::callFunction<> [4] 7ff712f8c712 Star::LuaFunction::invoke<Star::VariantStar::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData > [5] 7ff713432273 Star::LuaContext::invokePath<Star::VariantStar::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData > [6] 7ff713433e0b Star::LuaBaseComponent::init [7] 7ff7131ec056 Star::StatusController::addUniqueEffect [8] 7ff7131f8e71 Star::StatusController::updatePersistentUniqueEffects [9] 7ff7131f67c3 Star::StatusController::setPersistentEffects [10] 7ff7130d2012 Star::Player::update [11] 7ff7132fa178 <lambda_9fc580ae40b93070d912cafafa15880e>::operator() [12] 7ff712f1a5d7 Star::EntityMap::updateAllEntities [13] 7ff713312659 Star::WorldClient::update [14] 7ff71327b753 Star::UniverseClient::update [15] 7ff712d0e557 Star::ClientApplication::updateRunning [16] 7ff712d0ce4f Star::ClientApplication::update [17] 7ff71350aa72 Star::SdlPlatform::run [18] 7ff71350ac2d Star::runMainApplication [19] 7ff712d0ff76 WinMain [20] 7ff7136f8daf __scrt_common_main_seh [21] 7ffc33073034 BaseThreadInitThunk [22] 7ffc339c1461 RtlUserThreadStart

zerisius avatar Sep 28 '18 23:09 zerisius

The issue seems to be related to the bed script trying to create particles around the players hitbox. When you have noclip enabled you have no hitbox, which causes the error. Warping to the core probably has to do with the fact that it can't find a valid location to put when leaving the bed. Before, I removed the collision poly because you'd "warp" outside of walls instead of staying in place. I just reintroduced the poly, but without a size. This seems to resolve the issue without affecting normal noclip behaviour.

You can download the unreleased version of WEdit with the fix or wait for a new release.

Thanks for reporting this issue and sorry for the delayed response!

Silverfeelin avatar Jan 30 '19 00:01 Silverfeelin