Looks like a nice improvement from 1.1, still not there yet for me, but javafx development has a great side effect of improving client side java things such as applets and jws, which is only good for java gaming

Guess Sun are keeping up with their tradition of messing up the versioning with 1.2 (why not just call it 2.0?), once they reach 1.5 they'll be like oh wait the version isn't increasing fast enough lets call it 5.0 . A quick look at Flex and Silverlight versioning their on versions 4.0 and 3.0.

Exception in thread "AWT-EventQueue-0" com.sun.media.jmc.OperationUnsupportedException: Media player peer cannot set media time to given time:62.209285905 at com.sun.media.jmcimpl.plugins.javapeer.MediaPlayer.setMediaTime(MediaPlayer.java:741) at com.sun.media.jmcimpl.plugins.javapeer.MediaPlayer.start(MediaPlayer.java:618) at com.sun.media.jmc.MediaProvider.play(MediaProvider.java:640) at javafx.scene.media.MediaPlayer.play(MediaPlayer.fx:212) at microbotwars.RenderWindow$3.lambda(RenderWindow.fx:121) at microbotwars.RenderWindow$3.lambda(RenderWindow.fx:121)

If I uncomment out the line "player.currentTime=0s;" it doesn't change songs.

Other changes I done to fix the music, just crashes the app (Ill post it when I get it again) or freezes the app(the song still plays) and need to force close.

Exception in trigger:java.lang.NullPointerException at com.sun.media.jmcimpl.plugins.javapeer.MediaPlayer.setMediaTime(MediaPlayer.java:735) at com.sun.media.jmc.MediaProvider.setMediaTime(MediaProvider.java:675) at javafx.scene.media.MediaPlayer$_SBECL.onChange(MediaPlayer.fx:335) at com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(ObjectVariable.java:142) at com.sun.javafx.runtime.location.ObjectVariable.replaceValue(ObjectVariable.java:104) at com.sun.javafx.runtime.location.ObjectVariable.set(ObjectVariable.java:115) at javafx.scene.media.MediaPlayer.set$currentTime(MediaPlayer.fx:333) at microbotwars.RenderWindow$3.lambda(RenderWindow.fx:130) at microbotwars.RenderWindow$3.lambda(RenderWindow.fx:130) at microbotwars.RenderWindow$3.invoke(RenderWindow.fx:108) at microbotwars.RenderWindow$3.invoke(RenderWindow.fx:108) at microbotwars.RenderWindow$3.invoke(RenderWindow.fx:108) at microbotwars.RenderWindow$3.invoke(RenderWindow.fx:108) at com.sun.javafx.runtime.Entry$2.run(Entry.java:105) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source).....Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.sun.media.jmcimpl.plugins.javapeer.MediaPlayer.getMediaTime(MediaPlayer.java:779) at com.sun.media.jmc.MediaProvider.getMediaTime(MediaProvider.java:686) at javafx.scene.media.MediaPlayer.updateTime(MediaPlayer.fx:352) at javafx.scene.media.MediaPlayer$_MediaTimerTaskCallback$1.invoke(MediaPlayer.fx:655) at javafx.scene.media.MediaPlayer$_MediaTimerTaskCallback$1.invoke(MediaPlayer.fx:655) at com.sun.javafx.runtime.Entry$2.run(Entry.java:105) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

Thanks, I'll forward your feedback to the media team. I think they had a work around for the setMediaTime exceptions.

One thing I want to point right away - don't set new url to the media, instead create a new Media and set it to the player.If you plan to play few media files, create Media instances for all of them, dont' re-create them every time you want to play a clip.

Do you know much about the node side of things?I'm trying to add fxz art for tiles on my game: http://www.java-gaming.org/topics/micro-bot-wars-javafx/20547/view.htmlCurrently I'm using groups and cloning the nodes which is fine for the amount of tiles.But when I use fxz for my tiles the ram shoots from 70 megs to over 350. Is it possible for node to share there image data? All these tiles are the same, it shouldn't be that much ram? should it?If there's no way, then I guess I'll leave them as basic squares.

Quote

Regarding color adjust crash: does that happen with any node, or only with particular fxz?

I'll give it a try.

Quote

Could you send me the fxz if it's the latter? Or attach it to the bug report:

I know a lot about nodes, but not much about the Production Suite (the stuff that produces, loads and reconstructs the fxz/d files).

FYI, there's some sort of misconfiguration with your jar file - it doesn't contain Main. Have you recompiled it with javafx1.2 packager?

Quote

Currently I'm using groups and cloning the nodes which is fine for the amount of tiles.But when I use fxz for my tiles the ram shoots from 70 megs to over 350. Is it possible for node to share there image data? All these tiles are the same, it shouldn't be that much ram? should it?

If you're using the cloning I think it may be duplicating the data although it still shouldn't be that much of a problem - your fxzs are relatively small (and they aren't represented as images when loaded by the runtime, they're vector graphics).

I'll point the Production Suite folks at this post. We're still busy with J1 though.

Quote

If there's no way, then I guess I'll leave them as basic squares.I'll give it a try.If its only that fxz I'll post it up there.

FYI, there's some sort of misconfiguration with your jar file - it doesn't contain Main. Have you recompiled it with javafx1.2 packager?

No, I'm using 1.1 still in that release. I am working on a new update with JavaFX 1.2.I might just do a small update soon so its 1.2.

Quote

If you're using the cloning I think it may be duplicating the data although it still shouldn't be that much of a problem - your fxzs are relatively small (and they aren't represented as images when loaded by the runtime, they're vector graphics).

The file size range from 1 - 4kbMy grid is about 35x50, the tiles are 16x16 pixels in size.

Quote

I'll point the Production Suite folks at this post. We're still busy with J1 though.

Regarding color adjust crash: does that happen with any node, or only with particular fxz?

Any fxz it seems.

Quote

FYI, there's some sort of misconfiguration with your jar file - it doesn't contain Main. Have you recompiled it with javafx1.2 packager?

Try the game now.

Quote

One thing I want to point right away - don't set new url to the media, instead create a new Media and set it to the player.If you plan to play few media files, create Media instances for all of them, dont' re-create them every time you want to play a clip.

This may be caused by a caching version mismatch. Could you please clear your java cache (in the Java control panel) and see if it helps?Also, you may have a ~/.jnlp-applet directory (documentes and settings/username/.jnlp-applet), make sure to remove it as well.

This may be caused by a caching version mismatch. Could you please clear your java cache (in the Java control panel) and see if it helps?Also, you may have a ~/.jnlp-applet directory (documentes and settings/username/.jnlp-applet), make sure to remove it as well.

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