Wow this looks really good, and if something I hope to get into one day. I am currently learning Java using 2D Graphics. Would you be able to link me to any resources you used to learn off of?
This is looking great so far! What do you plan on doing when it is finished? Open source? Newgrounds?
I don't know yet. It will depend on how far this project gets (whether or not it will actually become a playable game). Also, I don't really like the idea that anybody can download the source code, edit it, and spread it. Maybe I'll make the game free to play, and sell the source for $3-6. Or maybe the other way round. As long as it's under heavy development, I can't promise anything.
I've been adding new features continuously, although most are just performance/coding upgrades, so there's not much to see yet. However, I did add a simple tree generation algorithm to the world, which I'm still enhancing. It will be added to the next release.
Still coming along great! How long have you known Java for and where did you learn it? (:
I had a very basic knowledge of Java for over a year, but I really started learning it eight months ago, so I'm still pretty new to Java programming. Once I think I have enough basic knowledge of Java and LWJGL, I'll probably start learning C++ and OpenGL. Oh, and TCP too, because I eventually want to learn how to do multiplayer.
Changes:
-Added backface culling, which should give a small performance boost;
-Some changes to the grass block;
-Dirt looks less reddish now;
-Numerous code cleanups.
I hardcoded it to use native/Windows, yes. I'll see if Java has native support for checking the OS. If it does, I'll make it find the right DLLs at runtime. If not, I'll find another way.
To all non-Windows users: Could you help me debugging? Just download Pre_04.1_DEBUG.rar, extract it and run it as usual. Follow the instructions in the console/terminal/whatever it's called.
That's great. Now I only need to know the exact system output for Mac OS; then I can automate it. For now, I've updated it to pre_4.1, which asks the user which OS he has.
Hello, I am a Mac User. I downloaded the file, opened the .rar file, and ran RUN.bat. My terminal began jumping, however nothing happened. I then opened up my terminal and typed:
Exception in thread "main" java.lang.NoClassDefFoundError: swiss_cheese/jar
Caused by: java.lang.ClassNotFoundException: swiss_cheese.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
/Users/(My Name)/Desktop/swiss_cheese_pre_04.1_DEBUG/RUN.bat: line 2: pause: command not found
Hello, I am a Mac User. I downloaded the file, opened the .rar file, and ran RUN.bat. My terminal began jumping, however nothing happened. I then opened up my terminal and typed:
Exception in thread "main" java.lang.NoClassDefFoundError: swiss_cheese/jar
Caused by: java.lang.ClassNotFoundException: swiss_cheese.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
/Users/(My Name)/Desktop/swiss_cheese_pre_04.1_DEBUG/RUN.bat: line 2: pause: command not found
Hope I helped :tongue.gif:
I'm not sure if Mac users can actually run a .BAT script at all. Please try to use these commands in the terminal:
cd /Users/(Your name Name)/Desktop/
java -jar swiss_cheese_pre_04.1_DEBUG.jar
I have virtually 0 experience with Macs, so this may not work. Please tell me whether it works or not.
About the game:
I am currently struggling with two features at the same time:
-Adding textures
-Adding gravity & collision detection
As soon as I get (one of) these working, a new update will be posted.
/Users/(My Name)/Desktop/swiss_cheese_pre_04.1_DEBUG/swiss_cheese.jar: line 1: PK: command not found
/Users/(My Name)/Desktop/swiss_cheese_pre_04.1_DEBUG/swiss_cheese.jar: line 2:??Q@: command not found
/Users/(My Name)/Desktop/swiss_cheese_pre_04.1_DEBUG/swiss_cheese.jar: line 3:??Q@v^?$$META-INF/MANIFEST.MFManifest-Version:: No such file or directory
/Users/(My Name)/Desktop/swiss_cheese_pre_04.1_DEBUG/swiss_cheese.jar: line 4: Ant-Version:: command not found
/Users/(My Name)/Desktop/swiss_cheese_pre_04.1_DEBUG/swiss_cheese.jar: line 5: syntax error near unexpected token `('
/Users/(My Name)/Desktop/swiss_cheese_pre_04.1_DEBUG/swiss_cheese.jar: line 5' `Created-By: 1.7.0_01-b08 (Oracle Corporation)
My-Name-MacBook-Air:Desktop (My Name)$
I made a mistake in the code. Try this one please :smile.gif:
cd /Users/(Your name Name)/Desktop/
java -jar swiss_cheese_pre_04.1_DEBUG/swiss_cheese.jar
Quote from Terminal »
Thank you for helping with debuggin! Please copy the exact contents of the line displayed below:
Mac OS X
The line of text above here should contain the name of your OS. Please post it on the Minecraft Forum thread.
The application will now exit.
Wow, I simply adapted your code for the real game. It works like a charm, but I'm having trouble with the seed. Terminal gives me an error every time I enter a seed :sleep.gif:
Error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /Users/(My Name)/Desktop\native\macosx/liblwjgl.jnilib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1706)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1020)
at org.lwjgl.Sys$1.run(Sys.java:70)
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 lwjgl_test_02.Render3D.getTime(Render3D.java:155)
at lwjgl_test_02.Render3D.run(Render3D.java:182)
at lwjgl_test_02.Main.main(Main.java:90)
My-Name-MacBook-Air:Desktop My-Name$
Adapted Code:
cd /Users/(Your Name)/Desktop/
java -jar swiss_cheese_snapshot/swiss_cheese.jar
Goodluck.
Want a place to advertise your Minecraft server? try MyMCStatus.net now!
I don't know yet. It will depend on how far this project gets (whether or not it will actually become a playable game). Also, I don't really like the idea that anybody can download the source code, edit it, and spread it. Maybe I'll make the game free to play, and sell the source for $3-6. Or maybe the other way round. As long as it's under heavy development, I can't promise anything.
I had a very basic knowledge of Java for over a year, but I really started learning it eight months ago, so I'm still pretty new to Java programming. Once I think I have enough basic knowledge of Java and LWJGL, I'll probably start learning C++ and OpenGL. Oh, and TCP too, because I eventually want to learn how to do multiplayer.
SELL IT!!! EARN UR MOOLAZ!!!
._. Yes another internet sig. Click and win minecraft!
Changes:
-Added backface culling, which should give a small performance boost;
-Some changes to the grass block;
-Dirt looks less reddish now;
-Numerous code cleanups.
A weird issue cancels the rendering of the trees out completely. I haven't yet found out what it is.
Download the latest version here
He did, it's an error related to him using Java 1.5 due to some issues with his computer.
I still need someone with a Mac to test this. Someone please help me out :happy.gif:
I'm not sure if Mac users can actually run a .BAT script at all. Please try to use these commands in the terminal:
I have virtually 0 experience with Macs, so this may not work. Please tell me whether it works or not.
About the game:
I am currently struggling with two features at the same time:
-Adding textures
-Adding gravity & collision detection
As soon as I get (one of) these working, a new update will be posted.
I remember MCP using .sh files (I believe its Shell). I will try the new code.
Error using that code:
I tried using and I got
cd /Users/(Your name Name)/Desktop/
java -jar swiss_cheese_pre_04.1_DEBUG/swiss_cheese.jar
:smile.gif:
Error: