Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Egoscio
    @Egoscio
    I believe demi means things like avatar.js
    Which would be pretty cool in a scriptcraft environment
    Tony Gravagno
    @TonyGravagno
    Personally, I think there is enough for the one developer of this project to do to strengthen the core, raison d'ĂȘtre. It's fascinating to consider the possibilities for integration with Node (Avatar, etc) or other libraries. But that's outside the scope of the resources for this project. I understand that without interest and questions that no project moves forward. So discussion is healthy. But I recommend that people keep in mind that if they want to branch off into these other really cool areas that they're probably going to need to do it on their own, and come back here with more answers than questions.
    And while contributing code to FOSS is awesome, we've seen that @walterhiggins doesn't really want to expand the core code here to support peripheral features which, arguably, could be retrofitted from elsewhere. So I'd recommend integrations like this to be external and complimentary to ScriptCraft, rather than trying to build more into it.
    Egoscio
    @Egoscio
    I understand that the intended purpose of scriptcraft is to promote programming for kids. It is for that reason that I suggested to those who are interested in using it in a professional production environment to fork the project and add their intended core features / extensions.
    I would've done the same myself, were I still interested in Minecraft.
    Tony Gravagno
    @TonyGravagno
    It doesn't look like there is a disagreement.
    For anyone interested, there is now a Facebook page and a Twitter account : https://www.facebook.com/ScriptCraftJS and https://twitter.com/ScriptCraftJS You'll note from the Learn More link at Facebook that this plugin is being positioned as a learning tool for all ages, as well as for common plugin development. So there are at least two things going on now - the plugin needs to be supported, and we're going to try to build community around it. With community we might get more devs contributing. That will help the core, which is good for anyone who uses it, but that could also help to make progress on some of the things we've been discussing here, whether they go into core or a fork.
    Egoscio
    @Egoscio
    Nice
    Wenxuan Zhao
    @vizv
    Hi all
    I'm new to nashorn
    and I'm trying to port ScriptCraft to Sponge server
    Right now the plugin works and some javascript runs fine
    however I have a weird issue about nashorn
    For Sponge, sending a message requires an argument with type Text
    Wenxuan Zhao
    @vizv
    And the helper method Text.of(String) should returns a Text object: https://jd.spongepowered.org/5.0.0/org/spongepowered/api/text/Text.html#of--
    LiteralText is inherited from Text however when I use it in JavaScript it gives me an error saying "Cannot cast org.spongepowered.api.text.LiteralText to org.spongepowered.api.text.Text"
    Is there a way to cast a class to its superclass in nashorn?
    thanks
    and var newtext = java.lang.Class.forName('org.spongepowered.api.text.Text').cast(text);
    none of them works
    Wenxuan Zhao
    @vizv
    Note: org.spongepowered.api.text.Text is a abstract class.
    and the only valid signatures for method sendMessage() are [(org.spongepowered.api.text.Text), (org.spongepowered.api.text.TextTemplate)]
    Wenxuan Zhao
    @vizv
    If I put ['sendMessage(org.spongepowered.api.text.TextTemplate)'](org.spongepowered.api.text.TextTemplate.of()); it gives Cannot cast org.spongepowered.api.text.TextTemplate to org.spongepowered.api.text.TextTemplate
    really????
    Wenxuan Zhao
    @vizv
    onyone?
    @walterhiggins
    Wenxuan Zhao
    @vizv
    Is this project deprecated?
    Egoscio
    @Egoscio
    Uh no
    I've never used sponge so idk
    I gotta production server on the latest version of spigot using ScriptCraft
    Totally works fine
    Wenxuan Zhao
    @vizv
    Well, that's why I'm trying to port to sponge :D
    Wenxuan Zhao
    @vizv
    I think I shall try reflect, that may works
    Tony Gravagno
    @TonyGravagno
    The project certainly isn't deprecated. This one channel isn't actively watched by many people. For this project, at the moment, IM isn't the main comms method, we're using asynchronous media like the Google Group, Facebook, Twitter, and now a YouTube channel. (Please Like+Subscribe). At some point more people will be here. For now I suggest the question on casting isn't specific to this project, it's a question that is answered in Rhino/Nashorn docs/forums. HTH
    Tony Gravagno
    @TonyGravagno
    And a new website is being built with a LOT of features, for educators, parents, people learning JS, plugin developers, and ScriptCraftJS core contributors. This project is definitely moving forward. Stick with it.
    demipixel
    @demipixel
    @TonyGravagno Also I'd really look forward to a more serious aspect of ScriptCraft. I'm plenty familiar was JS and Java, but I feel like JS really makes coding go faster. Anyway, I'm trying to work on a server written purely in SC and it's been going well... just wish more people were able to use it seriously in addition to being an education tool!
    Arky
    @arky
    Hi, I have minecraft server running according to the instructions here https://github.com/walterhiggins/ScriptCraft/blob/master/README.md
    How do I start the client to connect to my local server
    My default client 'java -jar ~/.minecraft/launcher.jar ' takes me to register page.
    Thanks!
    Arky
    @arky
    Sorry 'java -jar Minecraft.jar' makes get a account registration step. I don't have an account, is there any other way to connect to local server
    MiniDigger
    @MiniDigger
    you don't launch minecraft like that, use Mojangs launcher to launch it. you need to pass the jar way more options, like the Auth token. the launcher handles that for you.
    Arky
    @arky
    @MiniDigger Ah!