CubeWars 0.0.1

Ok, blah3 will just have to wait until I get my server and jnlp stuff situated. Also, I dont think it will run on anything but windows right now. (added linux libraries today) When I get jnlp going, I will be able to test further.

Webstart: http://68.57.86.113:11211/cw/CubeWars.jnlp

Java 1.5 required.

Arrow keys navigate, p to pause and get more instructions, space bar fires. a and d strafe and hold down s for shields. Score per cube shot and white cubes are prizes.
Camera: use the c key to move away for better view of Grid.
Soon single player will be score based with levels…

but my true passion for this is multiplayer teams. In a very long thread here:http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=3D;action=display;num=1041649177, gregorypierce’s patience and knowledge lead me to a nearly completed version, multiplayer (though only tested with 2 people) in pure java3d. Thanks gp. Anyway, I have rewritten the base with LWJGL and I am luving the results. The shield effect is the MiddySphere and I am working on kevglasses recomendation ofr effects.

Here’s what I got when I tried the game -

Directory of C:\test

11/02/2004 12:59 PM .
11/02/2004 12:59 PM …
11/02/2004 12:23 PM 207,481 CW.jar
10/26/2004 10:08 PM 50,176 lwjgl-fmod3.dll
10/26/2004 10:08 PM 80,896 lwjgl.dll
10/26/2004 10:08 PM 165,063 lwjgl.jar
10/26/2004 09:31 PM 81,920 lwjglaudio.dll
10/26/2004 10:08 PM 22,417 lwjgl_fmod3.jar
10/26/2004 10:08 PM 1,067,104 lwjgl_media.jar
10/26/2004 10:08 PM 115,052 lwjgl_test.jar
10/26/2004 10:08 PM 71,884 lwjgl_util.jar
9 File(s) 1,861,993 bytes
2 Dir(s) 17,834,160,128 bytes free

C:\test>java -cp lwjgl.jar;lwjgl_test.jar; -jar CW.jar
begin init…
Exception in thread “main” java.lang.NoClassDefFoundError: org/lwjgl/opengl/Window
at org.mb.cubewars.CubeWars.cleanup(CubeWars.java:226)
at org.mb.cubewars.CubeWars.main(CubeWars.java:109)

C:\test>java -version
java version “1.5.0-rc”
Java™ 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot™ Client VM (build 1.5.0-rc-b63, mixed mode)

I tried version .92 and .93 lwjgl and got the same errors. :frowning:

Dr. A>

Thanks for giving it a whirl… :slight_smile:

Out of curiosity, did double clicking the jar do anything?

With the lwjgl stuf inthe same directory, I simply type
java -jar CW.jar
and it runs…

thanks again!

The Window class is gone in 0.9x. Time to refactor your game already :slight_smile:

Cas :slight_smile:

In JCreator, I am referencing lwjgl-win32-0.9 So what you are saying is that is doesnt have a Window class any more or is it jsut above 0.9?

ok, I have refactored my app for LWJGL .92. No more Window refs and used kevglass’s spave invaders to learn the changes. I have tested it on a local box and have posted it to the link in the first post. If you dont see text on the screen, hit the space bar to start…I hard coded the screen size for text renering and on machines whose video will not go lower than 1024*768, you wont see text.

thanks any and all feedback is appreciated and being drooled for.

EDIT: added camera controls
z - zoom in
x - zoom out
c - rise up
v - reset

I want to keep java libraries in a separate folders to allow better version controlling. So, I always launch apps with the following batch script.


StartCW.bat
set lib=C:/projects/java/lwjgl/lwjgl-win32-0.93/lib
set cp=%lib%/lwjgl.jar;%lib%/lwjgl_media.jar;%lib%/lwjgl_util.jar
set cp=%cp%;%lib%/lwjgl_test.jar;./lib/CW.jar

"C:\Program Files\Java\jdk1.5.0\bin\java.exe" -cp %cp% -Djava.library.path=%lib% org.mb.cubewars.CubeWars


Folder structure:
c:/test/CW/StartCW.bat
c:/test/CW/lib/CW.jar
...
c:/<theplace>/lwjgl/lwjgl-win32-0.93/lib/<all lwjgl.dll and lwjgl.jar files>

You make us a favour if you add similar batch script to your download zip files. We can then edit path references to suit our storage system.

Thanks. Was going to do that, but my ultimate goal is to Webstart the app. By the way, did you get it to run?

M

Yep, I downloaded the CW.jar, lwjgl release and made mentioned batch script to run it. It launched ok and I could move the ship and fire. Did not really try to play it or understand the goal.

My stats:
Win2kPro/256MB/Matrox G400 card

Thanks, knowing someone else got it to run is a big help!

ok. got my router situated and now I want to attempt some webstart.

http://68.57.86.113:11211/cw/CubeWars.jnlp

I am still not sure if I have everything set up right (GT6 was easy to do, but this has been a trip)

Anyway, probably still windows only till tomorrow.

thanks a ton!

Just tried the .jnlp and got this error:

An error occurred while launching/running the application.

Title: Cube Wars 0.0.1
Vendor: MB
Category: Security Error

Unsigned application requesting unrestricted access to system
Unsigned resource: http://68.57.86.113:11211/CW/lwjgl_util.jar

same here

ooops sorry. was so excited about my router. should be signed now.

hrhr ;D
java.lang.reflect.InvocationTargetException
java 1.5

That is an error I am seeing and have no idea what to do about it. The app runs from a jar. You can see the jnlp text on the error popup.
With the exception of non-windows resources, I dont see what wrong.

EDIT: I found the error and have tested it. As soon as I can get to that server, about 4pm EST US, I will make the change. Then I’ll look forward to tons of feedback :slight_smile:

Thanks,

M

[quote] java.lang.reflect.InvocationTargetException
java 1.5
[/quote]
same here

worked fine here: windows xp, java 1.5 geforcefx 5200
I felt like I could use more control over the view or maybe just a quicker rotation speed because it often takes too long to turn around and see who is shooting at you from behind. I see how this could be intentional so it feels more like you are controlling a big robot, but if not then its something you may want to consider changing.

cool thanks.

anyway here is a
Webstart: http://68.57.86.113:11211/cw/CubeWars.jnlp

z x and c control camera and v resets it.

runs fine for me! I also recommend quicker turn plus strafing