You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I hope that everybody here is in good health.
I met a bug with the drone object.
My config is :
Scriptcraft on Fedora 29.
JDK 1.8.0-232 (wich includes Nashorn)
Spigot-1.15.2
MagicCraft (as recommended in that issue #437)
The error is :
xxx issued server command: /js drone.box(blocks.rainbow[1])
[10:48:03 INFO]: [scriptcraft] Drone build error: java.lang.ClassCastException: Cannot cast java.lang.Double to org.bukkit.block.data.BlockData while processing function wrapperFn() { [native code] }
Simple commands like "/js var drone = new Drone(self)" seems to work fine.
Is is due to something wrong in my configuration ?
Thank's for you help.
Take care.
I will give it a shot. If there is someone who would be willing to chat for a few minutes (discord?) about the most relevant background that would be great. Maybe a spigot developer who is familiar with ScriptCraft/MagikCraft? (I am new to this community.)
I'm familiar with ScriptCraft and MagikCraft, but not with this particular aspect of Spigot (which is why it is not a low-orbit task for me). Happy to chat on Discord.
Activity
TzunamiDev commentedon Mar 31, 2020
Do you have more details about this error ?, I just tried this on my server and it seems to work properly without any exceptions
wwlib commentedon Apr 2, 2020
I am seeing the same errors after installing a scriptcraft.jar that I just built from the latest development commit:
[scriptcraft] Drone build error: java.lang.ClassCastException: Cannot cast java.lang.Integer to org.bukkit.block.data.BlockData while processing function wrapperFn() { [native code] }
[scriptcraft] Drone build error: java.lang.ClassCastException: Cannot cast java.lang.Double to org.bukkit.block.data.BlockData while processing function wrapperFn() { [native code] }
I am running spigot.1.15.2.jar
Note: I updates build.xml to target 1.8 vs 1.6
java version "1.8.0_131"
Andrew
jwulf commentedon Apr 3, 2020
See this issue: #401
Drone doesn't work with 1.15.2
wwlib commentedon Apr 3, 2020
Thanks for the reply.
Is there an alternative to CraftEvil - or another way to place blocks?
wwlib commentedon Apr 3, 2020
I just cloned MagikCraft and like the npm-style setup. Happy to help if there is a way to get Drone working again.
jwulf commentedon Apr 4, 2020
Great - you are basically where everyone else is with it. It doesn't work, and we need to find a new way to implement it.
I don't use it, so I don't have a motivation to spend time in there figuring it out. If it's your jam, and you can do it - that would be awesome!
wwlib commentedon Apr 7, 2020
I will give it a shot. If there is someone who would be willing to chat for a few minutes (discord?) about the most relevant background that would be great. Maybe a spigot developer who is familiar with ScriptCraft/MagikCraft? (I am new to this community.)
jwulf commentedon Apr 7, 2020
I'm familiar with ScriptCraft and MagikCraft, but not with this particular aspect of Spigot (which is why it is not a low-orbit task for me). Happy to chat on Discord.
Link expires in 1 day: https://discord.gg/v5epMc
justinchin919 commentedon Jun 26, 2020
So summary here is ScriptCraft for MC version 1.15.2 and newer will not work due to the dependency Drone and CraftEvil?