SineVector241 / VoiceCraft-MCBE_Proximity_Chat

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

Server shutdown #33

Closed ModMaker101 closed 1 year ago

ModMaker101 commented 1 year ago

When I put the script in the server shuts down and Minecraft pops up with this error Server was shut down due to unhandled scripting watchdog exception.

any ideas as to what it could be?

You thing looks cool do you have a server of your own?

ModMaker101 commented 1 year ago

Can I also contribute to this?

SineVector241 commented 1 year ago

There is a reason as to why the server shuts down. It's due to the fact that the script api engine is taking too long to start. You can disable watchdog by adding in a certain piece of code inside main.js but other than that. There's not much else I can really do to make it more performant. Also yes you can contribute. This is open source.

ModMaker101 commented 1 year ago

What is the piece of code

SineVector241 commented 1 year ago
import { system } from "@minecraft/server";
 system.events.beforeWatchdogTerminate.subscribe((data) => data.cancel = true);
ModMaker101 commented 1 year ago

do I just put it in there.

ModMaker101 commented 1 year ago

In the main.js

SineVector241 commented 1 year ago

yes

ModMaker101 commented 1 year ago

okey I am trying it right now

ModMaker101 commented 1 year ago

it works

ModMaker101 commented 1 year ago

Why don't you put this in the main code?

SineVector241 commented 1 year ago

I left it out due to the possibility that the server can hang. And watchdog is supposed to protect from the server hanging.

ModMaker101 commented 1 year ago

Oh.

ModMaker101 commented 1 year ago

so can we make a different pack for this reason and put it on the releases?

ModMaker101 commented 1 year ago

I am going to work on the app and add key binds.

SineVector241 commented 1 year ago

so can we make a different pack for this reason and put it on the releases?

Yeh. Will be doing that later on this repo. https://github.com/SineVector241/VoiceCraft-MCBE_ProximityChat_Addon

ModMaker101 commented 1 year ago

Can I put some textures in if you want.

SineVector241 commented 1 year ago

To what? Add-on or software?

ModMaker101 commented 1 year ago

add-on

ModMaker101 commented 1 year ago

Screenshot 2023-05-28 195848 Look at this weird error.

ModMaker101 commented 1 year ago

the h is the error

ModMaker101 commented 1 year ago

can I add a texture????

SineVector241 commented 1 year ago

Yeh. You can. Ill review it later anyways.

SineVector241 commented 1 year ago

I suggest that you fork the repository then clone from the forked repository. Specifically fork the dev branch so you can do PR's

ModMaker101 commented 1 year ago

I am going to start on the texture pack for the addon

SineVector241 commented 1 year ago

Initial issue resolved