LegacyScriptEngine icon indicating copy to clipboard operation
LegacyScriptEngine copied to clipboard

[Bug]: mc.spawnSimulatedPlayer 与addons中的script JS插件冲突导致报错和崩服

Open yufengya0420 opened this issue 1 year ago • 19 comments

Describe the bug

mc.spawnSimulatedPlayer 与addons中的script JS插件冲突导致报错和崩服 在服务器存档加入了某个或某些基岩版addons后,使用创建假人,导致报错和崩服 7b5a87a41df6509c744198b99591fc81

To Reproduce

不知道是LSE的问题还是模组本身的问题,因为许多addons都使用了类似js这样的插件导致不能和服务器假人同时使用,并且addon作者那边联系不上,希望LSE这边可以修复或者兼容一下这种addons 这是某个基岩版 墓碑 addon 其中包含的js文件内部代码: 9c42169e6bcc00f04a9bad489d60d4d6_720

这是资源包和行为包 Grave_B.zip Grave_R.zip

Expected behavior

不报错 不崩服 能同时使用addon和假人

Screenshots

No response

Platform

Win10

BDS Version

1.20.72

LeviLamina Version

0.11.1

LegacyScriptEngine Version

0.6.3

Additional context

No response

yufengya0420 avatar Apr 23 '24 11:04 yufengya0420

图片 在LSE 0.7.4无法复现

ShrBox avatar May 02 '24 06:05 ShrBox

图片 在LSE 0.7.4无法复现

这个资源包和行为包加一下,然后打开存档的实验性玩法(测试API,假日创作者),然后再创建假人测试一下

加了,也开了

ShrBox avatar May 02 '24 06:05 ShrBox

我改了下manifest.json,复现了

ShrBox avatar May 02 '24 08:05 ShrBox

图片 给我整不会了,Levi的SimulatedPlayer::create是从LL2抄过来的,我换成了BDS自带的也报错,给我整不会了

ShrBox avatar May 02 '24 08:05 ShrBox

我觉得是Mojang自己没处理好

ShrBox avatar May 02 '24 08:05 ShrBox

安装 https://github.com/microsoft/minecraft-gametests 中的 vanilla_gametest 就不会报错了

ShrBox avatar May 02 '24 10:05 ShrBox

安装 https://github.com/microsoft/minecraft-gametests 中的 vanilla_gametest 就不会报错了

image

装上了,这个报错是啥问题

这个行为包太久没更新,manifest.json中的依赖版本已经过期了,这是我改过manifest.json后的包 vanilla_gametest.zip

ShrBox avatar May 02 '24 11:05 ShrBox

安装 https://github.com/microsoft/minecraft-gametests 中的 vanilla_gametest 就不会报错了

image 装上了,这个报错是啥问题

这个行为包太久没更新,manifest.json中的依赖版本已经过期了,这是我改过manifest.json后的包 vanilla_gametest.zip

image

SimulatedPlayer不报错就行,这无所谓

ShrBox avatar May 02 '24 15:05 ShrBox