Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in BDS Software loading voicecraft #114

Open
Floatingjacob opened this issue Nov 12, 2024 · 14 comments
Open

Error in BDS Software loading voicecraft #114

Floatingjacob opened this issue Nov 12, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@Floatingjacob
Copy link

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

  • OS: Linux Mint Cinnamon 22
  • Voicecraft server&packs version v1.0.7
  • BDS software is for minecraft 1.21.44
@Floatingjacob Floatingjacob added the bug Something isn't working label Nov 12, 2024
@SineVector241
Copy link
Owner

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

@Floatingjacob
Copy link
Author

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

@SineVector241
Copy link
Owner

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

@Floatingjacob
Copy link
Author

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

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

@SineVector241
Copy link
Owner

yup

@Floatingjacob
Copy link
Author

Floatingjacob commented Nov 12, 2024

ok, ill try that.

@Floatingjacob
Copy link
Author

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
Copy link
Owner

Are you using 1.15.0-beta

@Floatingjacob
Copy link
Author

no, i am using 1.17.0-beta

@SineVector241
Copy link
Owner

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
Copy link
Author

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

@Floatingjacob
Copy link
Author

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

@SineVector241
Copy link
Owner

no. that is not possible.

@Floatingjacob
Copy link
Author

okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants