Elevox [a0.7_1] - Early Demo

Hello this is my game Elevox.

It’s at the moment somewhat playable but updates for real gameplay will come soon. Watch my WIP Thread for more infos.


http://www11.pic-upload.de/thumb/07.09.15/4j4jkiw6uwqk.png

http://www11.pic-upload.de/thumb/07.09.15/a75e8fvkejmf.png

http://www11.pic-upload.de/thumb/07.09.15/ceb1dzjvnr5.png

http://www11.pic-upload.de/thumb/07.09.15/a4aidl69pyz.png

Download “Elevox Launcher” (Dropbox)

WIP Thread (contains DevLog)

Notes:

  • Use Java 8 (music can’t be played without it)
  • If game doesn’t start up in about 10-20 seconds: terminate, delete “/worlds” and try again

EDIT: Wow this topic isn’t even a day old (14 hours) and I already got 400+ views and a medal :smiley: Thank you so much!

Hey what did you use to rename all the variables in your java classes to the letters of the alphabet?

I didn’t look at the source myself, but it’s probably obfuscation.

Yeah but im curious to know what software he used to do it for him because I do mine manually and it takes FOREVER

It’s beautiful scenery, worked on my windows 7 computer fine.
But the controls are frustrating, it is too hard to hit the slime monsters. I had to walk away from them then back toward them so that I was facing them when I whacked them with the hammer. Otherwise it was too hard to aim the hammer at them.
I think a typical FPS view would be better where the mouse controls where the player faces.
Good job overall, the menus worked well and the game didn’t freeze.

@Archive ProGuard

Thank you!

Hello and thank you for your positive feedback.

Yes I used ProGuard, since I worked a long time on it and don’t
want someone to just snatch the code. If you want to know how
I did something you can ask me of course.

I already stated in my WIP Thread that I will overhaul the fighting
system (with some better animations). I will maybe try to tweak the
way you walk in a circle when turning around. I can’t make the
character follow the mouse directly since he is supposed to need time
for it, what wouldn’t be nice if you can’t look around properly because
of this.

It would be nice if you could tell me what render distance you can use
with your systems (CPU, GPU, RAM).

Greetings
Amryu

This game really reminds me of Cubeworld. I had a really good time playing that game.
I didn’t play it for long, but I did enjoy it so far :slight_smile:

Well originally I got the same idea as Cube World. Shortly after I had this
idea i discovered Cube World and thought “Wow. That’s what I searched for.”

But now Cube World stopped and I felt like I could finally do this game. The
only idea that I took from Cube World was, that the blocks don’t need textures.

I’ll try to make it unique to Cube World though. My ideas were not far from
Cube World but not the same.

If you like the project, I would appreciate it if you could tell me problems,
make suggestions and tell me how well the game runs on your PC (along
with your PC Data like CPU, GPU and RAM). That will really help me.

Thank you for playing :slight_smile:

Exception in thread "main" java.lang.IllegalStateException: This function is not available.
        at org.lwjgl.system.Checks.checkFunctionAddress(Checks.java:66)
        at org.lwjgl.opengl.GL11.glMatrixMode(GL11.java:6543)
        at main.Elevox.c(Unknown Source)
        at main.Elevox.<init>(Unknown Source)
        at main.Elevox.main(Unknown Source)

Interesting…

Can you give further information?

  • Java version
  • can your repeat it if you want to
  • when exactly does it happen

Thank you

And what exactly did you mean by “Interesting…”?

Right. :slight_smile:
Running it with Java 7 or 8 makes no difference.
A white window opens, stays open for a split second and then crashes giving this error.
That’s about it.
“Interesting” was just about that it sounds like the rather basic GL11 function glMatrixMode is not supported in general, which shouldn’t be the case. No idea what we have here…

That’s odd. Is your PC older? What GPU do you have? The problem is
the error doesnt even give a line. I’ll try to look into it.

Greetings

EDIT: I guess I can’t do much about it since it is an internal GL error.
The intialization of OpenGL fails when I switch to projection and/or
modelview matrix.

That error sounds like a limited GL support, what are the requirements of this game? I’m pretty sure Dre’s pc supports GL3.2 but not up.

The error is in this code:


		glViewport(0, 0, width, height); // Reset The Current Viewport
		glMatrixMode(GL_PROJECTION);
		glLoadIdentity();
		org.lwjgl.util.glu.Project.gluPerspective(45.0f, ((float) width / (float) height), 0.1f, 2000.0f); // Calculate The Aspect Ratio Of The Window
		
		glMatrixMode(GL_MODELVIEW);
		glLoadIdentity();
		
		glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Black Background
		glClearDepth(1.0f); // Depth Buffer Setup
		glEnable(GL_DEPTH_TEST); // Enables Depth Testing
		glDepthFunc(GL_LEQUAL); // The Type Of Depth Test To Do
		glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // Really Nice Perspective Calculations
		glEnable(GL_CULL_FACE);
		glEnable(GL_LINE_SMOOTH);

or maybe deeper inside OpenGL.

Only GL11 is used here so I don’t know :confused:

I’m thinking what that gluPerspective method did, you should be calling GLU.gluPerspective right? It might be helpful if you said at which glMatrixMode call the exception occurred, there are two in the same method.

I changed a function in lwjgl util to becompatible with LWJGL 3. I only changed it because
the function glMultMatrix was changed to glMultMatrixf. But it worked for any of my friends
so far so i don’t think that’s the problem. It says IllegalStateException… I can’t say why :frowning:

I looked up the source and it could be that a flag named forwardCompatibility is set.

EDIT: It seems you got a context of GL 4. In this version matrix operations are deprecated
and more or less removed. I think I can just alter the flag I mentioned above to be compatible
again. It would be nice if we could find a way to communicate better so I can fix the error with
you. I still cant understand why they do want to make everything harder by forcing people to use
shaders but ok…

EDIT: I managed to reproduce the error now. I gave GLFW the hint to work in compatibility mode,
but if your system supports this is another question. But I think it’s supported for sure, since alot
programs wouldn’t work anymore otherwise. For some reason your PC is the only one who set this
flag to true. Please download the next version, which I’ll upload soon to see if this fix worked for you.

I tried running the game but it throws me errors. Is this due to me being a Linux user?


[LWJGL] GLFW_VERSION_UNAVAILABLE error
	Description : GLX: Failed to create context: GLXBadFBConfig
	Stacktrace  :
		org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1022)
		main.Elevox.c(Unknown Source)
		main.Elevox.<init>(Unknown Source)
		main.Elevox.main(Unknown Source)
Exception in thread "main" java.lang.RuntimeException: Failed to create the GLFW window
	at main.Elevox.c(Unknown Source)
	at main.Elevox.<init>(Unknown Source)
	at main.Elevox.main(Unknown Source)

This is, because your graphic card and/or graphic card driver doesn’t support
“OpenGL 3.2”. Try upgrading it, or wait for the next version, where this will be
fixed, so you can use this with earlier versions of OpenGL.

If you don’t have a graphic card, you’ll have to wait for the next update.

Greetings