FlyingGuns on 1.3.2

I uploaded the first release of FlyingGuns using the new libs.

The new files are installed as a WebStart extension so that no prior Java3D installation is necessary.

Should work in Win32, Linux and Solaris(v9).

Anybody can use Java3D from a WebStart installation now be putting this line into the JNLP file:


      <!-- Load Java3D as an extension. -->
      <extension name="Inoffical Java3D" href="http://www.hardcode.de/java3dext/java3dext.jnlp"/>

Can somebody please test it? Esp. on Linux and, if possible, on Solaris.

On Solaris, I have no clue about the ‘arch’ tag for this V9 stuff. I guessed:

      <resources os="Solaris" arch="sparcv9">

Opinions?

Works great with some lags using 800x600x32 display mode (windowed). Here are my cpu specs :

AMD 3000+
512 DDR
Radeon 9200

Anyway the game looks promising ! You should now make a full integrated GUI and some missions for one player mode…
Very nice work !

:slight_smile:

Just removed overlay GUI in favor of swing, mainly for the fact that the overlay system I used sucked.

Any ideas for singleplayer missions? (although the focus will stay on MP gaming…)

Yep

  1. Bomb the house
  2. Bomb the tree
  3. Shoot down the plane…

;D

Or maybe:

  1. Escort a truck convoy (give air cover)
  2. Land and pick up prisoners return them to base
  3. Trainning mission? Fly to and around the markers

PS. Incidently, hadn’t tried it for ages since I got rid of Java3D from my machine. Webstart -> Java3D -> Bonza! Ran like a charm and had plenty. Nice one!

Kev

One of the greatest games I ever played was a WW1 arcade flight sim that let you play all the missions in a split-screen 2 player co-op mode. Do not understimate how fun co-op games are or how much people enjoy them.

A typical Chocks away mission was along the lines of “fly to runway 1, destroy the control tower and the aa gun, fly back” - it was pretty rudimentary, but the missions were really fun.

Hm, replacing split-screen by the network helps to overcome focus issues (whome does the joystick belong to?)

anybody wants to help setting up a mission system?

[quote]anybody wants to help setting up a mission system?
[/quote]
I could help you on the design part if you want (missions’ objectives, story…).

java.lang.NoClassDefFoundError: javax/media/j3d/Node

  at com.flyingguns.app.foo.Client.<init>(Unknown Source)

  at com.flyingguns.app.foo.Client.main(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at com.sun.javaws.Launcher.executeApplication(Unknown Source)

  at com.sun.javaws.Launcher.executeMainClass(Unknown Source)

  at com.sun.javaws.Launcher.continueLaunch(Unknown Source)

  at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)

  at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

  at com.sun.javaws.Launcher.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

no windows xp

[quote]no windows xp
[/quote]
but?

Did it ask for permission to install Java3D extension? Did it download anything at all?

I may be up for that, actually. I’ve not got a world of time on my hands at the moment, but I can take a look and see if I can see how it might work anyways…

Same error struck here. I should have j3d already, so I don’t know what was up with that.

[quote]Same error struck here. I should have j3d already, so I don’t know what was up with that.
[/quote]
Having Java3D in this case is bad. Should still work, but now the ‘old’ Java3D is taken in favour of the new resulting in sound issues.

But the stacktrace clearly tells that NO Java3D has been found.

yep it downloaded it all.
and i dont have java3d installed… didnt think
i needed it with the webstart?

Getting this error with java 1.5.0-beta-b32c on linux:

java.lang.reflect.InvocationTargetException
      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:494)
      at com.sun.javaws.Launcher.executeApplication(Launcher.java:1122)
      at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1069)
      at com.sun.javaws.Launcher.continueLaunch(Launcher.java:918)
      at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:499)
      at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:256)
      at com.sun.javaws.Launcher.run(Launcher.java:175)
      at java.lang.Thread.run(Thread.java:566)
Caused by: java.lang.UnsatisfiedLinkError: /usr/lib/j2sdk1.5-sun/jre/lib/i386/libjawt.so: libmawt.so: cannot open shared object file: No such file or directory
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1737)
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1654)
      at java.lang.Runtime.loadLibrary0(Runtime.java:817)
      at java.lang.System.loadLibrary(System.java:986)
      at javax.media.j3d.MasterControl$23.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.media.j3d.MasterControl.loadLibraries(Unknown Source)
      at javax.media.j3d.VirtualUniverse.<clinit>(Unknown Source)
      at com.flyingguns.threed.ThreedEnv.<init>(Unknown Source)
      at com.flyingguns.threed.ThreedEnv.init(Unknown Source)
      at com.flyingguns.app.foo.Client.<init>(Unknown Source)
      at com.flyingguns.app.foo.Client.main(Unknown Source)
      ... 11 more

Works fine with java 1.4.2-b28.

Markus

Oh oh … do you know wether this file is present?

Looks like a real basic JRE issue?

Did you succeed in running a ‘normal’ Java3D app on Linux?

From MasterControl.java:


   /**
     * Method to load the native libraries needed by Java 3D. This is
     * called by the static initializer in VirtualUniverse <i>before</i>
     * the MasterControl object is created.
     */
    static void loadLibraries() {
             // This works around a native load library bug
             try {
            java.awt.Toolkit toolkit = java.awt.Toolkit.getDefaultToolkit();
            toolkit = null;   // just making sure GC collects this
             } catch (java.awt.AWTError e) {
             }

      // Load the JAWT native library
      java.security.AccessController.doPrivileged(
          new java.security.PrivilegedAction() {
          public Object run() {
            System.loadLibrary("jawt");
            return null;
          }
      });

.......
    }

I suspect this code causes the problem? If this is systematic … should be file a bugreport then?

the file is missing in /usr/lib/java/jre/lib/i386 but i found it in /usr/lib/java/jre/lib/i386/xawt so i made a symbolic link. It starts now and presents me with the option dialog. When I click “start game” i get a loading screen and see the main window coming up. but it closes at once, without exception or ewrror message. I told webstart to protocol things, but don’t know where it stores the log file…

Do other linux users here exp. the same?

[quote]java.lang.NoClassDefFoundError: javax/media/j3d/Node

  at com.flyingguns.app.foo.Client.<init>(Unknown Source)

[/quote]
Another thing that comes into my mind now is that this message indicates that the current client is loaded at all! (or maybe loaded but not used).

the current client does check for Java3D availibilty and shows a dialog in case its not …

Maybe its a good idea to clear the webstart cache once?

Hi,

Great job with java3d as an extension !

However this brings back to me one of my nightmares: the webstart message “we strongly suggest you do not launch this application as it is not certified…” etc(something like that).

With Cassos! I had managed to make the game so that it wouldn’t require any security rights and ran without this horrible message. However using java3d as an extension brings back this message as it supposes that the extension is ran in an all-permission way.

Of course my first question would be “Can the extension run without restricted rights?” but I suppose it cannot and some foolish tests I made confirmed it.

The next question would then be do you have any hint of sun(for example) releasing this extension with proper certificates etc…?

I also keep wondering why you did not try to restaint the security rights for flyingguns too? Am I the only one to be frightened by this message or is it something I missed?

Of course I know that any .exe downloaded from the internet could be as dangerous, however there isn’t always a message suggesting you don’t launch it and I feel that the common user doesn’t realize that.

Finally, I’m still hesitating between the horrible message or the lousy java3d install. Considering I choose the horrible message, I am wondering about bandwith/availability problems of your server. Can I make a mirror? If yes tell me if/where you want to be mentionned.

Thanks again

Alec