Cosmic Trip on Linux test

Well, more specifically, on Red Hat 8.

I put a new web start link here:
www.mycgiserver.com/~movegaga/cosmictrip.jnlp

It should work on both windows and red hat 8, but since I don’t have a linux machine I can’t test it.
Could someone please have a go and see if it works?

Another question:
I define the native libs of lwjgl in the jnlp file like this:

Does anybody know how to tell different Linux brands apart? (There’s a suse and red hat version of lwjgl)
I read through the specs but couldn’t find anything about this…

Thanks,
Erik

Doesn’t work on redhat 9 (with nvidia driver installed)

Java Web Start 1.4.2-beta Konsol, startades Wed Jun 04 17:11:10 CEST 2003
Java 2 Runtime Environment: Version 1.4.2-beta av Sun Microsystems Inc.
Loggar till filen: /home/dala/logg
Game starting.
java.lang.Exception: Problem starting loop
at net.movegaga.BaseWindow.start(BaseWindow.java:210)
at net.movegaga.GameWindow.main(GameWindow.java:268)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:837)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:797)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:675)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:390)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
at com.sun.javaws.Launcher.run(Launcher.java:167)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.Exception: Problem initialising GL
at net.movegaga.BaseWindow.createGLWindow(BaseWindow.java:160)
at net.movegaga.BaseWindow.start(BaseWindow.java:173)
… 12 more
Caused by: java.lang.Exception: No compatible display mode available.

My XF86Config:

Section “Device”
Identifier “Videocard0”
Driver “nvidia”
VendorName “Videocard vendor”
BoardName “NVIDIA GeForce 2 MX (generic)”
VideoRam 32768
EndSection

Section “Screen”
Identifier “Screen0”
Device “Videocard0”
Monitor “Monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1024x768” “800x600” “640x480”
EndSubSection
EndSection
;D

:-[

Can this have anything to do with the fact that I explicitly exclude any 24 bit modes?
I did that because it’s very slow on many video cards.

The preferred mode of Cosmic Trip is 800x600x32 @60hz, if 32 bit is not available it chooses a 16 bit mode, if 60hz is unavailable it chooses any other refresh rate it can find.

Thanks,
Erik

Hmm, I added an extra section with some 16 bit modes - doesn’t seem to work - if you include som printouts on what you get maybe we can sport what is wrong? :slight_smile:

yay! it works if I restart the X-server and go into 800x600 16bpp

Very fun game :wink:

Cool :smiley:

Can’t linux switch videomodes in software?
I guess I’ll have to be more clever in how I set the display mode ::slight_smile:

Erik

hmm i get the same error with windows…

“Caused by: java.lang.Exception: No compatible display mode available.” ?

1st: congrats on using JWS. I refuse to download and install a zip and download it again and again to keep up with the latest version and to have to fight with dll/so hell. JWS solves all these issues perfectly.

2nd: cool sound/graphics - when it’s not pausing everything is smooth and quite nice.

3rd: there were some pauses, but I was running the jvm in remote debugging mode. Running in a normal jvm was perfectly smooth.

4: I’m guessing the XVidMode extension isn’t used to set the resolution? The resolution changes, but the virtual desktop size stays the same. It would be great if that were fixed.

Cheers.

Regarding your 4th point: LWJGL is using XF86VidMode and the virtual desktop is always the same, no matter what resolution your monitor is running. So that is hardly a LWJGL bug. I heard the XRand extension might fix this, but XF86VidMode will not help you.

  • elias

Maybe you could use SDL to change resolutions for you as it does this correctly.

Which SDL function does that?

  • elias