Jump to content

[Bug]关于thief组件中的逻辑错误


Recommended Posts

thief组件中存在一个逻辑错误,当被偷的物品堆叠数量超过1时,回调函数中的item就不能指代“被偷物品”了。详细说明如下:

在thief.lua这个文件的第21行,让“小偷”把偷来的东西丢在了地上;如果这个时候被偷物品的堆叠数量超过1,那么丢在地上的预置物和下文中的item就不是同一个了。接下来的第22行以及24行回调函数中,却直接把item当成了“被偷的物品”来使用,出现了逻辑错误。此时的item是“被偷剩下的物品”,想指代“被偷的物品”应该使用DropItem的返回值才对。

(PS:你们说论坛支持中文反馈,所以本次反馈全部使用中文,如果看到了请务必回复我,让我知道中文反馈确实是有效的而非摆设。)

2128914623_QQ20220322102340.thumb.png.5ecf7cc601458b6ea9fa0155150f1ef5.png

"There is a logic error in the thief component, when the stack of stolen items exceeds 1, the item in the callback function cannot refer to "stolen items". Details are as follows:

 

In line 21 of the thief.lua file, let the "thief" drop the stolen item on the ground; if the stack quantity of the stolen item exceeds 1 at this time, then the preset item dropped on the ground and the item below It's not the same. In the next line 22 and 24 of the callback function, the item is directly used as a "stolen item", and a logic error occurs. The item at this time is "the item left after being stolen". If you want to refer to the "stolen item", you should use the return value of DropItem.

 

(PS: You said that the forum supports Chinese feedback, so this feedback is all in Chinese. If you see it, please reply to me and let me know that the Chinese feedback is indeed effective and not just a decoration."

About your 3rd paragraph. Maybe you should translate it before posting. Otherwise there isn't much issue I guess. Also this post should be in the don't starve together bug report forum.

17 minutes ago, LaoWang27 said:

其实英文反馈也没啥用,我都提交好几个bug了他们理都没理

i have reported many bugs and most of them got fixed. Sometimes is hard to reproduce a bug, even more if the player doesnt explain properly how to trigger it, or isnt a game bug but a mod/s causing the bug

1 hour ago, LaoWang27 said:

其实英文反馈也没啥用,我都提交好几个bug了他们理都没理

:flustered:我猜他们是根据优先级(他们认为的)或者是修复的难易程度来的吧,我也提了一些bug。测试服和正式服的都有,有些修了有些没修,只能等等看惹

 

Guess they're based on priority( made by themselves) or how easy it is to fix, I've also post some bugs in both the bata and the released. Some have been repaired and some have been ignored. We can only stay and wait tbh:juggling:.

17 hours ago, ArubaroBeefalo said:

i have reported many bugs and most of them got fixed. Sometimes is hard to reproduce a bug, even more if the player doesnt explain properly how to trigger it, or isnt a game bug but a mod/s causing the bug

 

16 hours ago, dish-order man said:

:flustered:我猜他们是根据优先级(他们认为的)或者是修复的难易程度来的吧,我也提了一些bug。测试服和正式服的都有,有些修了有些没修,只能等等看惹

 

Guess they're based on priority( made by themselves) or how easy it is to fix, I've also post some bugs in both the bata and the released. Some have been repaired and some have been ignored. We can only stay and wait tbh:juggling:.

事实上我提交的bug通常会附带修复方案,即应该修改哪个文件的哪一行。

 

例子:

然而并没有任何作用

3 hours ago, LaoWang27 said:

 

事实上我提交的bug通常会附带修复方案,即应该修改哪个文件的哪一行。

 

例子:

然而并没有任何作用

no entiendo qué me quieres decir

On 2022/3/24 at PM9点58分, LaoWang27 said:

中文反应没什么用,我提交了好几个bug了

我之前就是在论坛反馈无果,于是就用B站私信反馈了,修得还挺快。结果这次B站私信反馈,他叫我来论坛发帖了,并没有什么卵用:juggling:

6 hours ago, HengZi said:

我之前就是在论坛反馈无果,于是就用B站私信反馈了,修得还挺快。结果这次B站私信反馈,他叫我来论坛发帖了,并没有什么卵用

恒佬,你看看这次更新里面的这一句是不是修的你报的这个问题来着?

Quote

Fixed a memory leak when creatures knock items out of your inventory.

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...