Newbie Spellweaver
- Joined
- Aug 15, 2012
- Messages
- 10
- Reaction score
- 0
and how do i add the missing imports and fix the brackets? i am newibe. sorry about that ;/I would suggest to add the missing imports & fix the brackets.
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!and how do i add the missing imports and fix the brackets? i am newibe. sorry about that ;/I would suggest to add the missing imports & fix the brackets.
and how do i add the missing imports and fix the brackets? i am newibe. sorry about that ;/
Thank you very much,but i still dont understand how do i add the missing imports.Ctrl + Shift + O : Organize imports
Ctrl + Shift + T : Open Type
Ctrl + Shift + F4 : Close all Opened Editors
Ctrl + O : Open declarations
Ctrl + E : Open Editor
Ctrl + / : Line Comment
Alt + Shift + R : Rename
Alt + Shift + L : extract to Local Variable
Alt + Shift + M : extract to Method
F3 : Open Declaration
Thank you very much,but i still dont understand how do i add the missing imports.
Ctrl + Shift + O : Organize imports
I would suggest to finish your server before everyone leaves.
It wont do anything.. ;u;
you are probably giving up on me already.
Yes you have MapleOne.Server? I don't server.
Yes you have MapleOne.
You can probably simply do
Before loading the script file.Code:engine.eval("load('nashorn:mozilla_compat.js');");
However search/replace seems like a much better idea as it does not duck with line numbers in the script.
Also: I don't get the Groovy fandom but whatever. Scala is a very solid JVM language though.
I believe this is only a workaround rhino scripting is pretty much dead for sometime now, at least they should rewrite the entire scripting in different scripting language or something that is not part of a JSR 292.. and lastly in today moopledev/odin needs a makeover most of the code can be written to be efficient since we are in the era of java 8 cheers
I believe that you have no clue what you are talking about. Why would a different script engine (especially a non JSR 292 script engine?! (no script engine is part of JSR 292, it does not specify any)) be better? Also: Oracle JDK 8 Nashorn is a better (and different) script engine than Rhino.
There certainly is code that can be made more pretty using Java 8 goodness but this does not nescessarily make it more "efficient".
I believe that you have no clue what you are talking about. Why would a different script engine (especially a non JSR 292 script engine?! (no script engine is part of JSR 292, it does not specify any)) be better? Also: Oracle JDK 8 Nashorn is a better (and different) script engine than Rhino.
There certainly is code that can be made more pretty using Java 8 goodness but this does not nescessarily make it more "efficient".
what Im actually trying to say is that JDKs shipped with a JavaScript scripting engine based on rhino and today it is being shipped with nashorn while this has break mostly of moopledev/odin scripts I find it abit out of portion to actually replaced by adding engine.eval("load('nashorn:mozilla_compat.js');"); rather than actually replacing it to follow nashorn.I believe this shows why on jdk chose to replace nashorn
You must be registered to see links
and secondly about odin/moopledev yes there are ways to make the code more pretty and maybe efficient but take a look at sources like v144 which is based on Lithium which is freaking terrible to be honest.. I never disagree about odin is bad or anything like this but the source today which mostly based on Lithium which has become quite horrible if you ever followed the source today peace.. some of the sources still uses mina 1.1 ? and rmi was removed in what way was it removed when all they did was to merged it in one console the public development has been dead. there has been no refactors to the code.
I believe you can find it around here and as far as I know they increase heap memory size in java cause most of them are unable to solve memory leaks.. but if original odin was around today I'm sure it would have been much much better, and today when everything is public selfishness has kicked in... peace
what Im actually trying to say is that JDKs shipped with a JavaScript scripting engine based on rhino and today it is being shipped with nashorn while this has break mostly of moopledev/odin scripts I find it abit out of portion to actually replaced by adding engine.eval("load('nashorn:mozilla_compat.js');"); rather than actually replacing it to follow nashorn.I believe this shows why on jdk chose to replace nashorn
You must be registered to see links
and secondly about odin/moopledev yes there are ways to make the code more pretty and maybe efficient but take a look at sources like v144 which is based on Lithium which is freaking terrible to be honest.. I never disagree about odin is bad or anything like this but the source today which mostly based on Lithium which has become quite horrible if you ever followed the source today peace.. some of the sources still uses mina 1.1 ? and rmi was removed in what way was it removed when all they did was to merged it in one console the public development has been dead. there has been no refactors to the code.
I believe you can find it around here and as far as I know they increase heap memory size in java cause most of them are unable to solve memory leaks.. but if original odin was around today I'm sure it would have been much much better, and today when everything is public selfishness has kicked in... peace
what Im actually trying to say is that JDKs shipped with a JavaScript scripting engine based on rhino and today it is being shipped with nashorn while this has break mostly of moopledev/odin scripts I find it abit out of portion to actually replaced by adding engine.eval("load('nashorn:mozilla_compat.js');"); rather than actually replacing it to follow nashorn.I believe this shows why on jdk chose to replace nashorn
You must be registered to see links
and secondly about odin/moopledev yes there are ways to make the code more pretty and maybe efficient but take a look at sources like v144 which is based on Lithium which is freaking terrible to be honest.. I never disagree about odin is bad or anything like this but the source today which mostly based on Lithium which has become quite horrible if you ever followed the source today peace.. some of the sources still uses mina 1.1 ? and rmi was removed in what way was it removed when all they did was to merged it in one console the public development has been dead. there has been no refactors to the code.
I believe you can find it around here and as far as I know they increase heap memory size in java cause most of them are unable to solve memory leaks.. but if original odin was around today I'm sure it would have been much much better, and today when everything is public selfishness has kicked in... peace
How about instead of complaining about the current sources and how they are so terrible, you "refactor" the code? Public development is dead because of people like you complaining when they have no idea what the hell they are talking about.
You can probably simply do
Before loading the script file.Code:engine.eval("load('nashorn:mozilla_compat.js');");
However search/replace seems like a much better idea as it does not duck with line numbers in the script.
Also: I don't get the Groovy fandom but whatever. Scala is a very solid JVM language though.
what Im actually trying to say is that JDKs shipped with a JavaScript scripting engine based on rhino and today it is being shipped with nashorn while this has break mostly of moopledev/odin scripts I find it abit out of portion to actually replaced by adding engine.eval("load('nashorn:mozilla_compat.js');"); rather than actually replacing it to follow nashorn.I believe this shows why on jdk chose to replace nashorn
You must be registered to see links
and secondly about odin/moopledev yes there are ways to make the code more pretty and maybe efficient but take a look at sources like v144 which is based on Lithium which is freaking terrible to be honest.. I never disagree about odin is bad or anything like this but the source today which mostly based on Lithium which has become quite horrible if you ever followed the source today peace.. some of the sources still uses mina 1.1 ? and rmi was removed in what way was it removed when all they did was to merged it in one console the public development has been dead. there has been no refactors to the code.
I believe you can find it around here and as far as I know they increase heap memory size in java cause most of them are unable to solve memory leaks.. but if original odin was around today I'm sure it would have been much much better, and today when everything is public selfishness has kicked in... peace
Dude u talking to me like a SpaceMan Speak english pls...