Hi Mircea,
great idea to link Scratch with MC - this way even younger kids can start learning...
I have however problems with plugin js file (scratch.js). Here the relevant parts of the log.
...
[23:12:40 INFO]: Starting minecraft server version 1.13.2
...
[23:12:41 INFO]: This server is running CraftBukkit version git-Spigot-e5e5c7c-4e4cde4 (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT)
...
[23:36:21 INFO]: [scriptcraft] Loading scriptcraft v3.4.0-2019-01-20
[23:36:21 INFO]: [scriptcraft] Enabling scriptcraft v3.4.0-2019-01-20
[23:36:24 INFO]: [scriptcraft] Drone using CraftEvil.setTypeIdAndData method
[23:36:26 WARN]: [scriptcraft] cow-clicker minigame is not yet supported in CanaryMod or Bukkit
[23:36:26 ERROR]: [scriptcraft] Plugin /home/myuser/ScratchMC/scriptcraft/plugins/scratch.js Error: Error executing module /home/myuser/ScratchMC/scriptcraft/plugins/scratch.js line #84 : null is not a function
index = scratchClients.length - 1;
> targetPlayer.sendTitle("Scratch","connected to " + ip);
}
[23:36:26 INFO]: Server permissions file permissions.yml is empty, ignoring it
...
Probably the versions of Bukkit, Scriptcraft and scratch.js are somehow not compatible with each other but I do not have a good idea how to debug the .js script during the startup procedure.
Additionally, commenting out of a part of the file does not impact the line number reported in the error message, so I believe this is "after" the file is loaded and scriptcraft or bukkit tries to execute it... the reported line is probably OK.
Any idea how to debug the script to provide more information?
Below some more information on versions etc.
Thanks for help in advance,
Krzysztof
mc.js:
...
var minecraftServerProcess = spawn('java', [
'-Xmx1G',
'-Xms1G',
'-XX:+UseConcMarkSweepGC',
'-jar',
'spigot-1.13.2.jar',
'nogui'] );
...
java version:
[myuser@myhost ScratchMC]$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
[myuser@myhost ScratchMC]$
NodeJS:
[myuser@myhost ScratchMC]$ node --version
v8.11.4
OS:
[myuser@myhost ScratchMC]$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
Hi Mircea,
great idea to link Scratch with MC - this way even younger kids can start learning...
I have however problems with plugin js file (scratch.js). Here the relevant parts of the log.
Probably the versions of Bukkit, Scriptcraft and scratch.js are somehow not compatible with each other but I do not have a good idea how to debug the .js script during the startup procedure.
Additionally, commenting out of a part of the file does not impact the line number reported in the error message, so I believe this is "after" the file is loaded and scriptcraft or bukkit tries to execute it... the reported line is probably OK.
Any idea how to debug the script to provide more information?
Below some more information on versions etc.
Thanks for help in advance,
Krzysztof
mc.js:
java version:
NodeJS:
OS: