The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Performance Patch Update: 12w434
Phew, that was a lot of work on Chunk Leaking. It sure took lots of Maths.
But it's done! Expect a far smoother performance on this update. The behavior for physics is also much better! Sneak peak: In the next update you'll be able to finally bump your head against the ceiling.
For those people asking if they could get the source code, I have said that I won't be making it open-source. However, you CAN decompile it and make mods for it. As usual, do not distribute.
That was also why I made the plugin API. You can find the plugin tutorial on the Developer's Hub on the website. Submit your plugin and it could get featured!
If you really want to help out in the development, you could PM me to join the team. No pays though.
Is it confimed to work in Linux? I get errors when I try to start it in terminal:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at org.lwjgl.Sys$1.run(Sys.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.<clinit>(Sys.java:112)
at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
at com.github.limdingwen.SpaceCubes.Main.start(Main.java:72)
at com.github.limdingwen.SpaceCubes.Main.main(Main.java:63)
To me it looks like it can't find the lwjgl libraries.
Is it confimed to work in Linux? I get errors when I try to start it in terminal:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at org.lwjgl.Sys$1.run(Sys.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.<clinit>(Sys.java:112)
at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
at com.github.limdingwen.SpaceCubes.Main.start(Main.java:72)
at com.github.limdingwen.SpaceCubes.Main.main(Main.java:63)
To me it looks like it can't find the lwjgl libraries.
Hmm, the problem is that it shouldn't be started from the terminal, because when the JRE launches it uses the natives from the same directory.
Try this classic method:
java -jar -Djava.library.path=<OS folder in natives> <The .jar>
It sure worked for me in Terminal, launched perfectly. Please tell me if it did not work, thanks!
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Version 12w441 is out with a whole lot of changes, including Dynamic Chunk Loading (DCL) and tons of bug fixes.
The installation instructions now contain instructions on how to run using the terminal. Thanks Nimphina for reporting the bug! Report bug
Download it from the website now!
Make sure to follow the upgrading instructions on the download page too.
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
12w442 is coming your way. Expect a 100+ FPS for normal usage. If you look down though, the FPS will drop by 2 times.
What's new is, from 12w442 onwards, every copy of Space Cubes come with a Shell script, Command script and Batch file.
On a side note, I found that Windows users can't save due to Windows using a backwards slash, different from Mac and Linux. So yeah, no saving for Windows for now. This will be fixed in 12w443.
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
12w442 is out and you can expect FPS from 30 to 1000. I have included the scripts and changed the installation instructions. It should fix the launching problems.
Saving does not work on Windows. However, for Windows users (I don't have a copy), try launching it through the console so you could track down the logs. Press "V" and a debug pathname should be logged, followed by an error stating that the filename is invalid. Please tell me what the pathname was, thanks! I need it to solve the bug.
You asked what I'm doing now? Infinite worlds. I have found a more efficient method (HashMap) of storing chunks in hope of decreasing memory usage, unexpectedly implementing infinite worlds too. I have also moved around some classes, so plugins in 12w441 won't work on 12w442 and above. Now if I can just find that bug and catch it....
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Hello guys, as you know, I didn't post for about a month already. Sorry about that.
Anyway, if you had visited the website you would have known that Space Cubes is now open-source.
So that was the good news.
Now the bad news. The whole chunk system inside the core engine was so messily designed that I just couldn't progress it any further. And that means writing from scratch.
I have been learning C++ lately (it has been giving me a lot of newbie headaches) and it has been progressing... um... quite "well". So maybe I should rewrite the core engine in C++, just to learn the language - this was a learning project, wasn't it? The plugin system would run on Lua.
Hi. I have tried the steps you have provided but it seems to be not working. I believe it would work on my windows 7(although i havent tried - I will get back to you if it works), but on my ubuntu(Linux) it seems to not work. Whenever I open it, nothing happens. Just to let you know ^^
Is it confimed to work in Linux? I get errors when I try to start it in terminal:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at org.lwjgl.Sys$1.run(Sys.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.<clinit>(Sys.java:112)
at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
at com.github.limdingwen.SpaceCubes.Main.start(Main.java:72)
at com.github.limdingwen.SpaceCubes.Main.main(Main.java:63)
To me it looks like it can't find the lwjgl libraries.
I agree.
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
Anyway, I already said that I won't, because I am expecting it to become a project I can sell.
Phew, that was a lot of work on Chunk Leaking. It sure took lots of Maths.
But it's done! Expect a far smoother performance on this update. The behavior for physics is also much better!
Sneak peak: In the next update you'll be able to finally bump your head against the ceiling.
For those people asking if they could get the source code, I have said that I won't be making it open-source. However, you CAN decompile it and make mods for it. As usual, do not distribute.
That was also why I made the plugin API. You can find the plugin tutorial on the Developer's Hub on the website. Submit your plugin and it could get featured!
If you really want to help out in the development, you could PM me to join the team. No pays though.
To me it looks like it can't find the lwjgl libraries.
Try this classic method:
It sure worked for me in Terminal, launched perfectly. Please tell me if it did not work, thanks!
Still doesn't seem to work for me, followed the install instructions and your instructions from the terminal and still the same error.
Works perfectly fine on my Windows 7 desktop however, although it does not entirely fill my 1080p screen:
The installation instructions now contain instructions on how to run using the terminal. Thanks Nimphina for reporting the bug!
Report bug
Download it from the website now!
Make sure to follow the upgrading instructions on the download page too.
It has a super gain in performance. In fact, if you look into the void while standing at the edge, you could achieve 1000 fps even with a laptop!
What's new is, from 12w442 onwards, every copy of Space Cubes come with a Shell script, Command script and Batch file.
On a side note, I found that Windows users can't save due to Windows using a backwards slash, different from Mac and Linux. So yeah, no saving for Windows for now. This will be fixed in 12w443.
Saving does not work on Windows. However, for Windows users (I don't have a copy), try launching it through the console so you could track down the logs. Press "V" and a debug pathname should be logged, followed by an error stating that the filename is invalid. Please tell me what the pathname was, thanks! I need it to solve the bug.
You asked what I'm doing now? Infinite worlds. I have found a more efficient method (HashMap) of storing chunks in hope of decreasing memory usage, unexpectedly implementing infinite worlds too. I have also moved around some classes, so plugins in 12w441 won't work on 12w442 and above. Now if I can just find that bug and catch it....
Anyway, if you had visited the website you would have known that Space Cubes is now open-source.
So that was the good news.
Now the bad news. The whole chunk system inside the core engine was so messily designed that I just couldn't progress it any further. And that means writing from scratch.
I have been learning C++ lately (it has been giving me a lot of newbie headaches) and it has been progressing... um... quite "well". So maybe I should rewrite the core engine in C++, just to learn the language - this was a learning project, wasn't it? The plugin system would run on Lua.
How's the music coming along, MagicCreeper?
To me it looks like it can't find the lwjgl libraries.
I agree.
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
Strange error.