Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  FlyingGuns on 1.3.2  (Read 3432 times)
0 Members and 1 Guest are viewing this topic.
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Posted 2004-06-27 15:23:23 »

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:

1  
2  
      <!-- 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:

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


Opinions?


HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Chman

Junior Member




Nothing more that... Java games are cool !


« Reply #1 - Posted 2004-06-28 06:06:32 »

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 !
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #2 - Posted 2004-06-28 06:11:34 »

Smiley

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....)

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

JGO Kernel


Medals: 171
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #3 - Posted 2004-06-28 06:14:00 »

Yep

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

Grin

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

Offline Breakfast

Senior Member




for great justice!


« Reply #4 - Posted 2004-06-28 12:26:42 »

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.
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #5 - Posted 2004-06-28 12:42:26 »

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?

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Chman

Junior Member




Nothing more that... Java games are cool !


« Reply #6 - Posted 2004-06-28 13:01:52 »

Quote
anybody wants to help setting up a mission system?


I could help you on the design part if you want (missions' objectives, story...).
Offline aNt

Senior Member




AFK


« Reply #7 - Posted 2004-06-28 17:04:17 »

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
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #8 - Posted 2004-06-28 18:23:43 »

Quote
no windows xp


but?

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

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Breakfast

Senior Member




for great justice!


« Reply #9 - Posted 2004-06-28 18:31:37 »

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...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Breakfast

Senior Member




for great justice!


« Reply #10 - Posted 2004-06-28 18:33:41 »

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

Senior Member




Friendly fire isn't friendly!


« Reply #11 - Posted 2004-06-28 18:35:52 »

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


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.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline aNt

Senior Member




AFK


« Reply #12 - Posted 2004-06-30 15:47:31 »

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

Senior Newbie




Plöp!


« Reply #13 - Posted 2004-07-01 06:53:43 »

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

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
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
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #14 - Posted 2004-07-01 07:10:48 »

Quote

1  
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 


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?

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #15 - Posted 2004-07-01 07:21:32 »

From MasterControl.java:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
   /**
     * 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?


HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline markush

Senior Newbie




Plöp!


« Reply #16 - Posted 2004-07-01 08:29:00 »

Quote


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?


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...
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #17 - Posted 2004-07-01 09:17:18 »

Do other linux users here exp. the same?

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #18 - Posted 2004-07-02 05:59:09 »

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

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


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?



HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline AlecLombra

Senior Newbie




Java games rock!


« Reply #19 - Posted 2004-07-24 22:59:44 »

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

Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #20 - Posted 2004-07-26 04:28:58 »

The Java3D extension will need at least some local rights for it must be allowed to execute native code.

For FG itself, the permission to open sockets must be granted, later also file access might be necessary.
Requesting all-permissions now is just due to my lazyness Smiley

Having a Sun-certified extension download from java.net would be the best option indeed. I'm pretty sure they have something like that in mind, just it might take longer bc. they also have to deal with legal/political issues? I'd even volunteer to provide the JNLP and ant scripts, but I'm afraid they'd never allow me to Sun-sign jars   Roll Eyes

I think of moving the extension over to sourceforge which gives me a lot of bandwitdh. Currently though, with Java3D's popularity, bandwidth absolutely is not an issue Sad


HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline gware

Junior Newbie




Java games rock!


« Reply #21 - Posted 2004-07-26 20:58:23 »

Hi nice game. How did u learn to do the 3d? could you point me to any good resources?

How long have u been working on this project?
Thanks for any info.
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #22 - Posted 2004-07-27 04:59:59 »

We had a general understanding of 3D graphics (what a Zbuffer is, why culling is needed and how it might work, how texturing works....) and then we just started off with the examples and the online documentation.

Technically, FlyingGuns 3D is rather simple! Theres no fancy stuff in it. Basic and plain Java3D.

Maybe the most difficult thing is loading the models .... but this is gracefully covered by the starfire loader Smiley

For things like terrain, we conciously avoided complicated algorithms but attacked the problem by gameplay: WW1 planes go slo, turn tight and action is located in a narrow area. This removes the need for high visibility ranges Smiley

The project is running for more than 2 years meanwhile, but always very slow. As an average, I think the effort is <1h/week.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline AlecLombra

Senior Newbie




Java games rock!


« Reply #23 - Posted 2004-08-25 17:51:24 »

Hi,

quick feedback: I tried to switch the Cassos installation to loading java3d as an extension.

I got this error:
javax.sound.sampled.LineUnavailableException: Failed to allocate clip data: Requested buffer too large.
     at com.sun.media.sound.MixerClip.implOpen(Unknown Source)
     at com.sun.media.sound.MixerClip.open(Unknown Source)
     at com.sun.media.sound.MixerClip.open(Unknown Source)
     at com.sun.j3d.audioengines.javasound.JSClip.initDataLine(Unknown Source)
     at com.sun.j3d.audioengines.javasound.JSSample.load(Unknown Source)
     at com.sun.j3d.audioengines.javasound.JavaSoundMixer.prepareSound(Unknown Source)
     at javax.media.j3d.SoundScheduler.attachSoundData(Unknown Source)
     at javax.media.j3d.SoundScheduler.processSoundAtom(Unknown Source)
     at javax.media.j3d.SoundScheduler.calcSchedulingAction(Unknown Source)
     at javax.media.j3d.SoundScheduler.renderChanges(Unknown Source)
     at javax.media.j3d.SoundScheduler.processMessages(Unknown Source)
     at javax.media.j3d.StructureUpdateThread.doWork(Unknown Source)
     at javax.media.j3d.J3dThread.run(Unknown Source)

It did not show up before so I suppose this could come from the newer version of java3d 1.3.2.

I hope to see this bug corrected (why would my 30Mo wave file be too big? Naaahh... I just do what I want Smiley ) or to be able to load version 1.3.1 as an extension.

FYI I checked the java3d webstart site. Very good initiative Smiley. Thing is the links to the releases seem down.

I would have gladly prepared the 1.31 extension myself but after seeing the j3daudio.jar disappear in yours I figured it was out of my understanding :p

Thanks again, even without music Cassos! can be launched directly Smiley

Alec

Cassos! free with java3d
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #24 - Posted 2004-08-25 18:22:10 »

Two notes:

1. the person on linux having probs is waaaaaay out of date. 1.4.2-b28 DOES NOT WORK. You NEED to upgrade your JVM (you are 3 versions behind!). Herk's j3d install works fine on linux with a recent VM installed for me...

2. Herk: I want to put a copy of each of the common webstart extensions on JGF for people to reference MAINLY so that the chances of a game using a direct href that you've already installed with another game are vastly increased Cheesy. Originally, I was just hoping to persuade tech and lib authors to do it themselves, but so many are dragging their heels that we *need* a central set of them. If we're doing that anyway, and soon to give people free binary hosting on JGF, we might as well get as much as possible on one server to reduce the reliance on multiple servers just to play individual games (nb: if any server serving any of the extensions your game references go down, of course the whole game refuses to start! Arrggh!)

If there were a way to give webstart a list of alternative mirrors for a given extension, I'd ask if we could simply mirror your J3D pack. But I don't believe that's possible Sad', so...would you consider maintaining a build for JGF? I'd basically just give you all admin rights over an area of the site where you could directly change the binaries, change the webpage + instructions etc, so you could do everything with minimal hassle (and of course as the maintainer you can put a plug for your homepage on there Wink). Of course, if you prefer running it off your site, there's no reason for you to change!

We're not ready yet, but if you like the idea let me know and we'll try and get something setup before JGF v3 launches.

malloc will be first against the wall when the revolution comes...
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (45 views)
2014-09-23 14:38:19

radar3301 (27 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (32 views)
2014-09-21 01:30:30

moogie (40 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!