Jump to content

在加载范围内有装饰过的蜘蛛巢时,投石机攻击蜘蛛会让服务器崩溃


wmshi
  • Fixed

在天体风暴期间,加载范围内有装饰过的蜘蛛巢时,然后在黄昏用投石机攻击蜘蛛和蜘蛛女皇,一直攻击只要转化阶段到夜晚,服务器会崩溃。可以稳定复现


Steps to Reproduce

用蜘蛛人装饰蜘蛛巢,然后在天体风暴期间, 其他人物操控投石机攻击蜘蛛和蜘蛛女皇,加载范围内有装饰过得蜘蛛巢,会终端服务器,可以稳定复现。

Google Gemini----告诉我是应为装饰蜘蛛巢尝试安抚蜘蛛而产生的bug

这份服务器日志显示,游戏崩溃(Lua Error)的主要原因是在处理蜘蛛尸体(spidercorpse)的“变美”增益(bedazzle_buff)时,代码尝试访问一个不存在的“follower”组件。

以下是导致崩溃的具体技术细节:

1. 核心错误原因
日志显示了多次重复的错误信息:scripts/prefabs/spider_buffs.lua:95: attempt to index field 'follower' (a nil value) 。

触发场景:当角色(如你使用的 Webber )尝试对蜘蛛使用“装饰”或由于某种效果触发“变美”增益(bedazzle_buff)时,脚本会尝试更新目标(target)的状态 。

具体问题:代码在执行过程中,预期目标实体拥有 follower(随从)组件,但当前的物体是一个蜘蛛尸体(spidercorpse) 。尸体实体并不具备随从组件,导致脚本运行到 field 'follower' 时因为找不到该组件而崩溃 。

 

 




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...