-
Notifications
You must be signed in to change notification settings - Fork 382
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
Can't get Scriptcraft core libraries working (Dec 27 2013 jar) #103
Comments
The issue has to deal with the new modules update.
_(note: it doesn't work, since the Drone module hasn't been fully converted to the new update)_ We're going to have to just wait for Walter to either update the module, or for me to make a pull request that updates the module. |
I'll look into the original error above... 20:50:20 [SEVERE] [ScriptCraftPlugin] Error:Error: require('utils',/Users/kurt/CraftBukkit/scriptcraft/plugins/classroom) @Strategetical I don't recommend using require() at the in-game prompt. require() is for use by plugin authors. The above require would not work anyway because it's using an absolute path (unless your drone.js file was located in that exact path on the filesystem). ... Like I say, I'll look into the issue @kleaf reported. |
@kleaf Can you do me a favor? At the server console can you type ...
And post the output here? Once posted you can turn off verbose scriptcraft reporting by typing...
|
@walterhiggins Yes, but guess what. This may be for just Linux, I don't know, but it worked for me. Rationale |
I can reproduce this problem on a Mac. Looking into it. |
Fixed in latest release |
#108 fixed it for me. Now |
/js 1+1, etc. are working fine, but whenever I try to use a library function like /js box(blocks.oak), I get an exception:
20:55:42 [SEVERE] javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "box" is not defined. (#1) in at line number 1
20:55:42 [SEVERE] at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:156)
20:55:42 [SEVERE] at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:170)
...
Could this be related to the severe error I get when starting Bukkit (1.6.4-R2.0)?
20:50:19 [INFO] [ScriptCraftPlugin] Enabling ScriptCraftPlugin v2.0-2013-12-27
20:50:19 [INFO] [ScriptCraftPlugin] Unzipping lib/console.js
20:50:19 [INFO] [ScriptCraftPlugin] Unzipping lib/scriptcraft.js
20:50:19 [INFO] [ScriptCraftPlugin] Unzipping plugins/alias/alias.js
20:50:19 [INFO] [ScriptCraftPlugin] Unzipping plugins/classroom/classroom.js
20:50:19 [INFO] [ScriptCraftPlugin] Unzipping plugins/commando/commando-test.js
20:50:19 [INFO] [ScriptCraftPlugin] Unzipping plugins/commando/commando.js
20:50:19 [INFO] [ScriptCraftPlugin] Unzipping lib/coffeescript.js
20:50:20 [SEVERE] [ScriptCraftPlugin] Error:Error: require('utils',/Users/kurt/CraftBukkit/scriptcraft/plugins/classroom) failed while executing module /Users/kurt/CraftBukkit/scriptcraft/plugins/classroom/classroom.js
20:50:20 [SEVERE] javax.script.ScriptException: sun.org.mozilla.javascript.internal.JavaScriptException: [object Error](Unknown source>#239) in at line number 239
20:50:20 [SEVERE] at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:156)
20:50:20 [SEVERE] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:232)
20:50:20 [SEVERE] at net.walterhiggins.scriptcraft.ScriptCraftPlugin.onEnable(Unknown Source)
20:50:20 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
20:50:20 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
20:50:20 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
20:50:20 [SEVERE] at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.java:284)
20:50:20 [SEVERE] at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.java:266)
20:50:20 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.l(MinecraftServer.java:315)
20:50:20 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.f(MinecraftServer.java:292)
20:50:20 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.a(MinecraftServer.java:252)
20:50:20 [SEVERE] at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:152)
20:50:20 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:393)
20:50:20 [SEVERE] at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
20:50:20 [INFO] Server permissions file permissions.yml is empty, ignoring it
20:50:20 [INFO] Done (4.097s)! For help, type "help" or "?"
The text was updated successfully, but these errors were encountered: