SineVector241 / VoiceCraft-MCBE_Proximity_Chat

VoiceCraft software to implement proximity VC for Minecraft Bedrock Edition
GNU General Public License v3.0
103 stars 19 forks source link

Error in BDS Software loading voicecraft #114

Open Floatingjacob opened 1 week ago

Floatingjacob commented 1 week ago

whenever i launch the bds server the terminal says ` [2024-11-11 18:01:02:571 ERROR] [Scripting] Unhandled promise rejection: TypeError: cannot read property 'subscribe' of undefined

[2024-11-11 18:01:02:571 ERROR] [Scripting] Unhandled promise rejection: TypeError: cannot read property 'subscribe' of undefined

[2024-11-11 18:01:02:571 ERROR] [Scripting] Plugin [VoiceCraft Addon BP - 1.0.0] - [main.js] ran with error: [TypeError: cannot read property 'subscribe' of undefined at (Commands/CommandSystem.js:84) `

Steps to reproduce the behavior

download Voicecraft server&packs version v1.0.7, install them according to the guide, change sections of the behavior pack manifest from { "module_name": "@minecraft/server", "version": "1.14.0-beta" }, { "module_name": "@minecraft/server-net", "version": "1.0.0-beta" }, { "module_name": "@minecraft/server-ui", "version": "1.1.0-beta" }

to { "module_name": "@minecraft/server", "version": "1.14.0" }, { "module_name": "@minecraft/server-net", "version": "1.0.0-beta" }, { "module_name": "@minecraft/server-ui", "version": "1.1.0" } Expected behavior the server should the start the world normally, but at the end of loading it should say ` [2024-11-11 18:01:02:571 ERROR] [Scripting] Unhandled promise rejection: TypeError: cannot read property 'subscribe' of undefined

[2024-11-11 18:01:02:571 ERROR] [Scripting] Unhandled promise rejection: TypeError: cannot read property 'subscribe' of undefined

[2024-11-11 18:01:02:571 ERROR] [Scripting] Plugin [VoiceCraft Addon BP - 1.0.0] - [main.js] ran with error: [TypeError: cannot read property 'subscribe' of undefined at (Commands/CommandSystem.js:84) ] `

Platform

SineVector241 commented 1 week ago

You need to use the server beta modules because voicecraft commands rely on the ChatSend event

Floatingjacob commented 1 week ago

when i use the beta modules it gives me an error. let me change it back to send you the errors

SineVector241 commented 1 week ago

the server should give you the latest beta version module to input.

Floatingjacob commented 1 week ago

the server should give you the latest beta version module to input.

so, it just needs to be the latest beta modules?

SineVector241 commented 1 week ago

yup

Floatingjacob commented 1 week ago

ok, ill try that.

Floatingjacob commented 1 week ago

i am still getting

` [2024-11-11 18:33:00:164 ERROR] [Scripting] Unhandled promise rejection: TypeError: cannot read property 'subscribe' of undefined

[2024-11-11 18:33:00:164 ERROR] [Scripting] Unhandled promise rejection: TypeError: cannot read property 'subscribe' of undefined

[2024-11-11 18:33:00:164 ERROR] [Scripting] Plugin [VoiceCraft Addon BP - 1.0.0] - [main.js] ran with error: [TypeError: cannot read property 'subscribe' of undefined at (Commands/CommandSystem.js:84) ] `

SineVector241 commented 1 week ago

Are you using 1.15.0-beta

Floatingjacob commented 1 week ago

no, i am using 1.17.0-beta

SineVector241 commented 1 week ago

I dunno. Should be working according to the microsoft documentation here https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/worldbeforeevents?view=minecraft-bedrock-experimental

Floatingjacob commented 1 week ago

okay, i will mess around some more and tell you if i figure it out.

Floatingjacob commented 1 week ago

would it be possible to make the js files manually import specific versions of the @minecraft/server module?

SineVector241 commented 1 week ago

no. that is not possible.

Floatingjacob commented 1 week ago

okay