Lol, it was the file names. I originally used 1 file per column of data: ids and metas. Little did I know that 512 bytes would turn into 4kb because of the file name.
By the way, @PhasedTG would you like to help out in the project? I am no expert in OpenGL... the most I can get to is rendering in immediate mode. I have seen your mods and I am impressed
By the way, @PhasedTG would you like to help out in the project? I am no expert in OpenGL... the most I can get to is rendering in immediate mode. I have seen your mods and I am impressed
I am no expert on OpenGL and neither with rendering techniques. Lol, I'm still slowly learning VBO's and those mods were created like a year ago, if you want, I can check your code, and try and optimize it, might be little things you can improve on for immediate mode, I can get around 50k- 80k quads being rendered in 2D before I go under 60 FPS with immediate mode.
EDIT: tested it out again, im getting between 30k - 40k before I go under 60 fps, since the last time I changed it theirs been a bit more though but it as around 50k when I first started the game
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
A few updates!
1. I would be uploading the first test version very soon for people to test out their FPS. Please note that:
Collision detection is very basic - you can enter cubes sideways
World is only 3x3 chunks in size
Loads of block update errors.
2. I added fog
3. I saw the results in the poll just now, and I have decided: textured, but simple cubes.
I am no expert on OpenGL and neither with rendering techniques. Lol, I'm still slowly learning VBO's and those mods were created like a year ago, if you want, I can check your code, and try and optimize it, might be little things you can improve on for immediate mode, I can get around 50k- 80k quads being rendered in 2D before I go under 60 FPS with immediate mode.
Hey, thanks for replying. I am currently making a SVN respo. I'll be PM'ing you for the details. Thanks for helping out! I included you in the credits.
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Update 0.3.1 12w42a:
Pre-alpha 0.3.1 12w42a:
Added automatic chunk saving (only the one that player is in)
Fixed un-updated blocks
I will be uploading a test version soon.
Please note that in the test version: You will be able to enter and "float" in blocks by entering the sides. I am still figuring out how to fix that. There are no textures. Only colors. You can find debug information at the window title bar:
R stands for rendering time used.
P stands for processing time used.
FPS is self-explanatory.
V stands for the number of vertices the GPU has to draw.
B stands for the number of blocks the GPU has to draw. This includes blocks with only 1 face shown.
Hand stands for the object you are "holding".
Here are the keys:
WASD for walking
Mouse to look around
V to force-save the world.
R to force-respawn.
And here are the keys you can use for changing the block you are "holding"
1: Dirt
2: Grass
3: Rock
4: Cracked rock
5: Voidrock
Left-click to break blocks
Right-click to place blocks
Please note that you would be only able to place blocks BELOW your feet. It is quite buggy to: I would be adding screen-to-world code later on.
Dirt is brown.
Grass is green.
Rock is white.
Cracked Rock is gray.
VoidRock is red.
It is only a 3x3 chunk world (normal render-distance)
The program will save the world when you press "V" or on normal exit.
It will save the chunk that you are in every 5 seconds. (Because each chunk is so small, it won't lag at all.)
You can find your saves in the "saves folder" where you ran your .jar. (Changing to %appdata% soon)
Please note that the saves may mess up sometimes when I change the world height for example.
You can PM/post me your worlds so that I can put it in the Pre-alpha world downloads section.
The world will be named "TestWorld".
You can also PM/post me your FPS and details so that I can improve Space Cubes more.
I would be updating the OP and adding a download very soon. Stay tuned!
And remember, no distributing or else.... =D
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Edit: Sorry, I am still uploading and making the .bats and such Because you know, Minecraft has a wrapper (the launcher), and I haven't coded it yet. So you would have to run the terminal code yourself to run the program.
On a side note, I managed to cut down collision detection time by half by not colliding with completely culled blocks (underground). This also means that there will be a much higher chance of falling into the void by entering sideways into a block.
Edit edit: WOO! Version alpha 0.3.1 snapshot 12w42a is released! Please follow the instructions included to run it! Thanks for downloading!
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Just found out one bug: Pressing "R" to respawn causes a null pointer exception. This will be fixed in the next update.
Meanwhile, you can submit more bugs to the issue tracker.
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Quite exciting update! Version 0.4 12w431, with shadows, lighting, grass-dirt updating, untested Plugin API and more! I am really excited about this update. I mean, there is a whole bunch of realism in it with lighting. Don't expect much from it though, it is the classic type, meaning that if the block has no direct view of the sky it is dark. Still, it is a great achievement.
There is now a 50-50 chance that dirt will change into grass if nothing is directly sitting on it, and grass may change to dirt if it is blocked by some block sitting on it directly. Note that it will only update blocks in the chunk you are in. There is no detection for grass if dirt is changing, though.
Finally, we all know that we want to mod the game. This feature won't allow you to do as much as real mods, but it will at least let you do things like making everything go crazy etc.... your choice. But in this update, this is still much undocumented, if not, all, and hasn't been tested at all. Expect much from this from the next update.
Now, I do realise that I promised textures in this update, but it was delayed to the next one. Sorry guys.
Radial gravity? As in around planets? I think not... idk, I can't figure out things like this. Maybe an upside down boot or potion or something, but no guarantees.
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Pretty quick developer update: Version 0.4.0 12w432
This update came by pretty quick.... just a few hours! This is primary to address the plugin API issues and crashes in 12w431. It has been tested throughly and I am glad to say that you will be finally able to write plugins for Space Cubes!
Just have a quick question when I try to laucnh the game I get a Could not find the main class: com.github.limdingwen.SpaceCubes.Main. Program will now exit. Do you know how to fix this it might just be me. I am using the latest snapshot.
basically on minecraft the camera doesn't got that feeling of square by square, it feels more smooth there is a program called tf 2 spectator for google chrome or somethin like that but its got a blocky feeling when the camera moves.
Just have a quick question when I try to laucnh the game I get a Could not find the main class: com.github.limdingwen.SpaceCubes.Main. Program will now exit. Do you know how to fix this it might just be me. I am using the latest snapshot.
Can you try launching the Terminal/Command Prompt and typing
basically on minecraft the camera doesn't got that feeling of square by square, it feels more smooth there is a program called tf 2 spectator for google chrome or somethin like that but its got a blocky feeling when the camera moves.
Just have a quick question when I try to laucnh the game I get a Could not find the main class: com.github.limdingwen.SpaceCubes.Main. Program will now exit. Do you know how to fix this it might just be me. I am using the latest snapshot.
I just tried it out again, don't use the suggestion that I said just now, it won't work. I couldn't reproduce your error. Can you try redownloading and following the instructions? The .dlls in the "windows" folder should be in the same folder as spacecubes-alpha-0.5.0-12w432, and the folder spacecubes-alpha-0.5.0-12w432-lib should be in the same folder as the .jar. Don't take out the contents of the lib.
The Meaning of Life, the Universe, and Everything.
Location:
Singapore
Join Date:
4/30/2012
Posts:
62
Minecraft:
limdingwen
Member Details
Version 0.5.0 12w433 is out and downloadable now on website guys.
Changes include: - A better physics system (now with wall blocks) - Ground clipping
Known bugs: - Head can go through the ceiling when jumping - Much lag when walking (due to the high amount of collision detections performed)
- Buggy clipping resulting in a bad user experience
If you aren't quite a fan of blocky movements and lag, you should stick to 12w432 for now until the problems are ironed out. If you want to help out, download it!
I'm running on an integrated graphics-chip Macbook Air (GeFORCE 320M) by the way, so I don't expect my FPS to be much higher.
As usual, I appreciate bug and FPS reports, suggestions and even some help :3
What did you have in it to make it 24mb? lol.
VBO's are what you really want to use I believe.
By the way, @PhasedTG would you like to help out in the project? I am no expert in OpenGL... the most I can get to is rendering in immediate mode. I have seen your mods and I am impressed
I am no expert on OpenGL and neither with rendering techniques. Lol, I'm still slowly learning VBO's and those mods were created like a year ago, if you want, I can check your code, and try and optimize it, might be little things you can improve on for immediate mode, I can get around 50k- 80k quads being rendered in 2D before I go under 60 FPS with immediate mode.
EDIT: tested it out again, im getting between 30k - 40k before I go under 60 fps, since the last time I changed it theirs been a bit more though but it as around 50k when I first started the game
1. I would be uploading the first test version very soon for people to test out their FPS. Please note that:
Collision detection is very basic - you can enter cubes sideways
World is only 3x3 chunks in size
Loads of block update errors.
2. I added fog
3. I saw the results in the poll just now, and I have decided: textured, but simple cubes.
Have a nice day!
Hey, thanks for replying. I am currently making a SVN respo. I'll be PM'ing you for the details. Thanks for helping out! I included you in the credits.
Pre-alpha 0.3.1 12w42a:
Added automatic chunk saving (only the one that player is in)
Fixed un-updated blocks
I will be uploading a test version soon.
Please note that in the test version:
You will be able to enter and "float" in blocks by entering the sides. I am still figuring out how to fix that.
There are no textures. Only colors.
You can find debug information at the window title bar:
Dirt is brown.
Grass is green.
Rock is white.
Cracked Rock is gray.
VoidRock is red.
It is only a 3x3 chunk world (normal render-distance)
The program will save the world when you press "V" or on normal exit.
It will save the chunk that you are in every 5 seconds. (Because each chunk is so small, it won't lag at all.)
You can find your saves in the "saves folder" where you ran your .jar. (Changing to %appdata% soon)
Please note that the saves may mess up sometimes when I change the world height for example.
You can PM/post me your worlds so that I can put it in the Pre-alpha world downloads section.
The world will be named "TestWorld".
You can also PM/post me your FPS and details so that I can improve Space Cubes more.
I would be updating the OP and adding a download very soon. Stay tuned!
And remember, no distributing or else.... =D
On a side note, I managed to cut down collision detection time by half by not colliding with completely culled blocks (underground). This also means that there will be a much higher chance of falling into the void by entering sideways into a block.
Edit edit: WOO! Version alpha 0.3.1 snapshot 12w42a is released! Please follow the instructions included to run it! Thanks for downloading!
Meanwhile, you can submit more bugs to the issue tracker.
oh and it runs perfectly fine for me, but you need to do smoothing at moving the camera and also make a way to see what you are placing
Geno: Blahblahblah, random sentence.
Firebrand is this color.
Shovel Knight is this color.
Memnon is this color
Cinder is this color.
Glacius is this color.
Jago is this color.
The Batter (or just Batter) is this color
Heatshade is this col- I CHOOSE MY OWN COLORS, BABY!!!
Heatshade, please.
...Fine.
Anyway...
I am this color.
http://steamcommunity.com/id/Therealadrenalinerush/
By the way, what do you mean by smoothing the moving the camera?
To answer your question, you can see what you are placing in the title bar of the window. It should say "Hand: <Item>"
In this
excitingupdate:Added TIME!
6am to 12pm: Morning
12pm to 7pm: Afternoon
7pm to 6am: Night
Fixed the crash bug when pressing "R". Use that button to respawn!
I have uploaded a quite colorful screenshot of my world too. Take a look! But there's nothing to see, really.
There is also one secret button that resets time to morning...
In the next update:
Textures!
Skybox!
Have a good day!
I am really excited about this update. I mean, there is a whole bunch of realism in it with lighting. Don't expect much from it though, it is the classic type, meaning that if the block has no direct view of the sky it is dark. Still, it is a great achievement.
There is now a 50-50 chance that dirt will change into grass if nothing is directly sitting on it, and grass may change to dirt if it is blocked by some block sitting on it directly. Note that it will only update blocks in the chunk you are in. There is no detection for grass if dirt is changing, though.
Finally, we all know that we want to mod the game. This feature won't allow you to do as much as real mods, but it will at least let you do things like making everything go crazy etc.... your choice. But in this update, this is still much undocumented, if not, all, and hasn't been tested at all. Expect much from this from the next update.
Now, I do realise that I promised textures in this update, but it was delayed to the next one. Sorry guys.
Download in the downloads section of the OP!
Radial gravity? As in around planets? I think not... idk, I can't figure out things like this. Maybe an upside down boot or potion or something, but no guarantees.
This update came by pretty quick.... just a few hours! This is primary to address the plugin API issues and crashes in 12w431. It has been tested throughly and I am glad to say that you will be finally able to write plugins for Space Cubes!
Changes:
- Tested and fixed plugin API.
- Implemented cancellable events
The developer reference and tutorial is included in the OP.
What will you add to Space Cubes?
there is the thing
Geno: Blahblahblah, random sentence.
Firebrand is this color.
Shovel Knight is this color.
Memnon is this color
Cinder is this color.
Glacius is this color.
Jago is this color.
The Batter (or just Batter) is this color
Heatshade is this col- I CHOOSE MY OWN COLORS, BABY!!!
Heatshade, please.
...Fine.
Anyway...
I am this color.
http://steamcommunity.com/id/Therealadrenalinerush/
? Thanks for reporting this bug, I appreciate it.
According to the FAQ on the website:
Q: Why isn't Space Cubes open-source?
A: I plan to sell it one day.
Q: Then why is it free?
A: For the time-being, I allow people to download to test the game and help out.
All right, thanks.
Changes include:
- A better physics system (now with wall blocks)
- Ground clipping
Known bugs:
- Head can go through the ceiling when jumping
- Much lag when walking (due to the high amount of collision detections performed)
- Buggy clipping resulting in a bad user experience
If you aren't quite a fan of blocky movements and lag, you should stick to 12w432 for now until the problems are ironed out. If you want to help out, download it!
I'm running on an integrated graphics-chip Macbook Air (GeFORCE 320M) by the way, so I don't expect my FPS to be much higher.
As usual, I appreciate bug and FPS reports, suggestions and even some help :3