not a game ... yet ...

Hi all, Subject line says it all. I’m developing a strategy game called (rather dramatically) DOMINATE (warning, name may change to something less cliched). I’ve pretty much finished up the core stuff and I’d be grateful if anyone could give it a bit of a once over. I’ve only tested it on my dev machine so far …

now, before you go any further , don’t expect anything playable here !! you can create new worlds to your hearts content and pick the number of players and … uh well thats about it. But it looks pretty !!

anyway, a picture truly says a thousand words, so there are two screenshots and a download up on the URL below. Its just zipped up, so unzip and run the Jar from some directory. java -jar persist.jar from the command line, you know the drill :slight_smile:

-edit- I’ve put up a JNLP instead of the zip, see my post below -edit-

oh, and You need the latest version of JOGL for this to run (I’m using b07)

As a guide, I’m getting about 25 FPS on my GeForce3. Its totally bandwidth bound at the moment. I have yet to convert over from using VAs to VBOs for the main geosphere to avoid that …

anyhow, heres the URL. Hope the thing actually works (gnaws fingernails )

http://www.cliodhnaquinlan.com/daire

forgot to mention, You can zoom in and out using the mousewheel …

D.

Looks really good from the screenies. I’m too lazy to try it out mind you, at least, until you’ve got a Webstartable version ready :wink:

Cas :slight_smile:

ooooow, very Populous 3 =)

yes create a webstart please;) i dont have jogl

[quote]ooooow, very Populous 3 =)
[/quote]
shhh !!!

did you actually run it ? or just commenting on the screenshots ? I think sticking up a Zip isn’t going to make anybody enthusiastic. Everybody wants their one click webstart links nowadays. I’ll see what i can do. Unfortunately its not very amenable to webstarting (if i may briefly ‘verb’ the word webstart …). Tons of FileInputStreams all over the place and what have you.

D.

Looks very promising, but I can’t download JoGL… Connection refused to dev.java.net :-/

Chman

Hmmmm. Due to the strident demands of people to webstart it i’ve gone ahead and done it (damn you all !!) … almost …

problem is the following :
thrown in GAGETimer

java.lang.NumberFormatException: a

  at java.lang.Integer.parseInt(Ljava.lang.String;I)I(Unknown Source)

  at java.lang.Integer.parseInt(Ljava.lang.String;)I(Unknown Source)

  at com.dnsalias.java.timer.nanotimer.NanoTimer.available()Z(NanoTimer.java:12)

where it tries to decide whether the JVM is 1.5 or better. Is this my code or something screwy with GAGEtimer (god forbid !) or something to do with webstart ? it doesn’t happen when i just run the jar from the command line. my JVM is ver 1.4.2_05

heres the JNLP file (no support for anything other than windows natives cos the JOGL download sites seem to be down at the moment)

Could I get you to add a small line of code before you use GAGETimer? Just add the following anywhere before the timer is initialized:

System.out.println("Version: "+System.getProperty("java.vm.version"));

Make sure you have the console up when you run it. Then just copy the results from the Java console to a post here, and I’ll analyze what’s going on. Thanks! :slight_smile:

hokay … I fixed THAT error up. The problem was that i installed JRockit the other day to check it out , and it either re-installed webstart or reset the webstart JRE to itself.
Any way, this is what JRockit was returning as a java version :

pretty wierd huh ?? no wonder JBanes version code wasn’t working. This is probably a bug in the JRocket VM , I’ve never seen a more malformed version string than that :slight_smile:

anyway, the JNLP is up at :

http://www.cliodhnaquinlan.com/daire/dominate.jnlp BUT I presume theres some hosting problem because it comes up as straight text , MIME types anyone ? so its time to knock open that copy of Webstart and paste it into the location bar by hand !!

Regards ,

D.

The webstart link doesn’t work for me, I get a JoGL error.

I’ve finally downloaded jogl, I’ve ran the game and… A lot of exceptions occured during the game (AWT related exceptions, input bases from what I’ve seen). The game freeze regularly (loading time ? bad timer configuration ?)…

The game seems very interesting but I can play it :’(

AMD 3000+
ATI 9800Pro@XT
1 Go ram

Do you want me to list all exceptions ? (might take some pages :P)

Chman

[quote]The webstart link doesn’t work for me, I get a JoGL error.

I’ve finally downloaded jogl, I’ve ran the game and… A lot of exceptions occured during the game (AWT related exceptions, input bases from what I’ve seen). The game freeze regularly (loading time ? bad timer configuration ?)…

The game seems very interesting but I can play it :’(

AMD 3000+
ATI 9800Pro@XT
1 Go ram

Do you want me to list all exceptions ? (might take some pages :P)

Chman
[/quote]
A couple of sample exceptions might do the trick. It might be something on my dev machine that i didn’t put into the Jar or something. AWT exceptions though, thats quite odd. Just one or two might help me track down some problem. There might be an issue with ATI cards , I’ve only tested it on my GF3 so far. What error do you get when you try the webstart link ? The webstart link works fine for me except that as you noted above, it pauses fairly regularly. It might be a GC thing. The same jar works perfectly from the command line.

Note that there isn’t actually an actual GAME there yet ! this was just a compatibility check for the graphics engine and the GUI code. I thought people might like to play around with the generation of the planets aswell :slight_smile:

Thanks for trying it out.

D.

It looks really nice from the screen shots, but unfortunetly I get this at launch. It looks like the JNLP still needs some work:

java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1098)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1045)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:896)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:468)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
at com.sun.javaws.Launcher.run(Launcher.java:165)
at java.lang.Thread.run()V(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: no jawt in java.library.path
at java.lang.ClassLoader.loadLibrary(Ljava.lang.Class;Ljava.lang.String;Z)V(Unknown Source)
at java.lang.Runtime.loadLibrary0(Ljava.lang.Class;Ljava.lang.String;)V(Unknown Source)
at java.lang.System.loadLibrary(Ljava.lang.String;)V(Unknown Source)
at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:51)
at net.java.games.jogl.impl.NativeLibLoader.(NativeLibLoader.java:46)
at net.java.games.jogl.impl.GLContext.(GLContext.java:50)
at net.java.games.jogl.impl.windows.WindowsGLContextFactory.createGLContext(WindowsGLContextFactory.java:93)
at net.java.games.jogl.GLCanvas.(GLCanvas.java:70)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:150)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:118)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:85)
at com.persist.dominate.Dominate.run(Dominate.java:28)
at com.persist.dominate.Dominate.main(Dominate.java:139)
… 8 more

Thats odd …
jawt is the AWT jni interface which i presume JOGL uses in some capacity. Anybody have any ideas why this would be thrown, Jawt should certainly be in the java.library.path What version JVM have you got as I vaguely remember reading some issue regarding JOGL and 1.5 but i can’t be too sure. Graphics card and drivers ? Can anybody else think of any straws i could clutch at ??

-edit-have you any problems running the jogl demos from https://jogl-demos.dev.java.net/ ?? -edit-

D.

Your engine test works great for me on both JDK 1.4.2 and 1.5.

The ATI problems may be due to multithreading bugs in ATI’s drivers. JOGL 1.1 b08 should solve all of these issues. Until it is released (hopefully within a few days) you could try adding the following to the section of your JNLP file:


<property name="ATI_WORKAROUND" value="true"/>

I don’t know what is causing the UnsatisfiedLinkError; is that coming from a JDK or a JRE? If a JRE, which javaws.exe was used to open the JNLP file, the one in \Windows\System32 or the one inside the JRE installation?

the one in \Windows\System32 or the one inside the JRE installation?

Usually the one from the JRE is used (it’s also that one if you doubleclick a jar file).

You can check that rather easily… just take a look at the file association and you’ll see.

[quote]Your engine test works great for me on both JDK 1.4.2 and 1.5.

The ATI problems may be due to multithreading bugs in ATI’s drivers. JOGL 1.1 b08 should solve all of these issues. Until it is released (hopefully within a few days) you could try adding the following to the section of your JNLP file:


<property name="ATI_WORKAROUND" value="true"/>

I don’t know what is causing the UnsatisfiedLinkError; is that coming from a JDK or a JRE? If a JRE, which javaws.exe was used to open the JNLP file, the one in \Windows\System32 or the one inside the JRE installation?
[/quote]
excellent ! thanks for trying it out. Did you run it from the JNLP or by downloading the jar ? Out of curiousity, what FPS did you get (console) on which card ?

D.

[quote]Did you run it from the JNLP or by downloading the jar ? Out of curiousity, what FPS did you get (console) on which card ?
[/quote]
I ran it from the JNLP file (which I downloaded manually) and got about 67 FPS on a Windows XP laptop, 1.4 GHz Pentium M, NVidia Quadro FX Go700.

Nice one, Thanks for the info. 67 fps is pretty good considering the state its in at the moment. I’m currently moving the rendering of the planet and the instanced geometry to VBO’s instead of VA’s. Should provide a nice speed boost. Although VBO’s are giving me gip at the moment. Hopefully somebody on the JOGL forums can help me out :slight_smile:

No other difficultys with it ? Exceptions , stuttering or anything of the sort ?

D.