Jump to content

[CustomNPCs][1.7.10d][Scripting] Scala scripts fail without any error messages


Sylfid

Recommended Posts

Scala version: 2.11.6

 

After placing "scala-compiler.jar" in the mods folder I can select Scala as language in the Scripter UI, but none of the scripts run and nothing gets written to the console or the minecraft log files (fml-client-latest.log, CustomNPCs-latest.log, latest.log).

 

Using ECMA works, and due to the similarities in variables and calling functions, the test code I'm using should function for both languages.

 

Any chance you can help here? Are there any environment variables it depends on, or do I need to add the scala\lib folder to classpath? Or is there a log file I forgot to look in for the exception?  :)

 

Code should be irrelevant (if the code wasn't compiling it should give an exception) but just in case, it's in the spoiler

 

 

Init

print("Test");

Interact

var time = world.getTime() % 24000

npc.say("Hello, the time is " + time)

event.setCancelled(true)

 

 

 

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.