Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 10:17:29 pm
Xith3D CommunityProjectsGames production pipeline (Moderator: clilian)Java Web Start
Pages: [1] 2 3 4
Print
Author Topic: Java Web Start  (Read 15666 times)
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« on: 20. May 2007, 01:35:59 am »

Does anyone have a working model of a java web start file for a Xith application?  It would be really cool if there was a "template" of sorts on the site for download, or something like that.  In other words, what would the JWS file for a Xith app look like, and could I just change the filepath so it would work for me?
« Last Edit: 05. June 2008, 02:04:21 pm by kukanani » Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 21. May 2007, 04:48:31 am »

Two related questions :

Do you use Eclipse ?
Would you be interested if OneClick supported JWS ?
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #2 on: 21. May 2007, 03:15:20 pm »

Yes and Yes  Wink.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #3 on: 22. May 2007, 06:56:32 pm »

Yes and Yes  Wink.
OK, after a satisfying COLLADA...
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #4 on: 22. May 2007, 10:26:13 pm »

That's cool too.  I would personally prefer to have COLLADA working first anyway  Smiley.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Jotschi
Enjoying the stay
*
Offline Offline

Posts: 55



View Profile
« Reply #5 on: 17. July 2007, 12:28:17 pm »

Any news on this topic?

Ill have to create a JWS but maybe someone prepared a template now?
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #6 on: 17. July 2007, 01:03:58 pm »

Any news on this topic?

Ill have to create a JWS but maybe someone prepared a template now?
Now that you asked it, I'm thinking about the best way to implement it.
By *it*, I meant JWS support in OneClick. For those wondering, yeah, I think JWS isn't flexible and simple enough. I prefer to duplicate functionality in OneClick if it's better like that (even dependency management).

I'm thinking of something not too complicated for dependencies/repositories.

But I'd like first to :
1. Finish the transition to Jibx (very close, guys) for my COLLADA Loader, then commit everything so that people can already use it for static models (skeletal animation's not far, too).
2. Fix the OneClick bug that's preventing the current version from working on some Windows installations, sometime (I know how to fix that).
3. Turn OneClick's package creation process into something more wizard-like and make the options saveable to an XML file (so that building packages is really easy).
4. Add a "generate JWS files" option to OneClick, maybe with facilities to sign jar files, if possible.
5. Test the new JWS functionality (with you guys Smiley ).
6. Create this repository/dependencies system.

I'll try to be fast. Try to be comprehensive.
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #7 on: 17. July 2007, 01:04:53 pm »

Meanwhile, Jotschi, you may be interested in that :
http://www.javagamesfactory.org/views/games-index
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #8 on: 17. July 2007, 01:32:25 pm »

Well, no offense Amos, but If a game is a bit large, it will take a long time to download the entire file to your computer; even just your small COLLADA loader demo took about 5 minutes because of the xith3D and xith-tk jars involved...BTW, to get your programs to run (on Windows XP SP2) was to open my Task Manager and manually kill the "javaw.exe" program.  Then the "java.exe" program opened up by itself.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #9 on: 17. July 2007, 01:46:31 pm »

Well, no offense Amos, but If a game is a bit large, it will take a long time to download the entire file to your computer; even just your small COLLADA loader demo took about 5 minutes because of the xith3D and xith-tk jars involved...BTW, to get your programs to run (on Windows XP SP2) was to open my Task Manager and manually kill the "javaw.exe" program.  Then the "java.exe" program opened up by itself.
But I take no offense here, as I am perfectly aware of what you're telling me and I above exposed the solutions to that. Though I'll make it clearer !now!.

Why was the COLLADA demo file large ?
- Xith3D + Xith-tk jars (a few Mbs)
- COLLADA schema jar (6Mbs), not needed anymore with Jibx (runtime takes something like 250Kb), plus generated COLLADA code, not needed anymore, also (don't now the size, though).
- The Demo code (a few Kbs)
- The Data (around a Mb).

What's the use of a setup with such big files ?
- Offline distribution : e.g. CDs, DVDs. In that case you really don't mind about an additional 10Mb. Really.

What's the solution for online distribution ?
- Dependency/repository system : Install Xith3D once, update if needed, and if user permits it.

This way :
- No duplication on user HDD : Xith3D run-time installed once
- Smallest download size : the app just has to say : "I depend on Xith3D version at least 3.0" ( Smiley ) and it's fine.

Does that satisfy you, kukanani, or do you still have questions ?

About the javaw.exe / java.exe, I'm also very well aware of that, from our internal testings here in MagicSpark.org team and I knew the workaround, also. The solution I will apport to this will be to let the javaw.exe process die by itself.

Why wasn't it killed before ?
- It was there to clean up the temp files when the application quits/crashes
- It's the only way to display the System.out stream IN THE SYSTEM CONSOLE (e.g. if the jar was run manually in a linux console, "java -jar oneclickedjar.jar") : another solution will be provided, e.g.
  * Either show the console if it crashes
  * Or show the console by a special key shortcut (e.g. Ctrl + Alt + Shift + § Cheesy)
  * Or suggest the user to send a bug report whenever the application crashes (reports sent automatically to Microsoft Corp.  Cool Cool no just kidding, the report address will be specified by the package creator).
Of courses these options will be decided by the package creator at build time. So things that may look annoying such as the bug-report tool can be disabled as the developer want (control, I want to give control to devs.. and to myself).


I welcome any questions and have answers ready. But it's hard to answer AND work on COLLADA at the same time Wink
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #10 on: 17. July 2007, 01:49:02 pm »

Other thing : the size of the Xith3D/Xith-tk jars will be cutted down severely in the following weeks, with the deletion of the old COLLADA loader, and of unused dependencies.
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #11 on: 17. July 2007, 06:23:32 pm »

So,

I made great progress in COLLADA Loader + JiBX step, though it takes longer than I expected (as usual, hehe). I had JiBX build problems, hopefully they're gone now (had to tune the ant script build step I added to Jagatoo). And there was several parts of the COLLADA that I hadn't bound yet and I realized that only when I changed COLLADALoader.java to use the new JiBX classes. So I'm binding all that's missing, and then finishing to convert that code and I can go through the next step.

These news are like a progress bar : not so useful, but makes the user wait.
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #12 on: 18. July 2007, 03:59:17 pm »

No answers... I must have frightened people to death. Well...

So great news !!! The JiBX step is completed. Everything runs fine, it's very fast, it's been very fastidious to get it all running, but hey it was worth the pain. I can then concentrate myself on step 2 : the OneClick Windows bug.

BTW, removing Croft's old COLLADA loader (which is unsupported anyway) would cut down the size of xith-tk a great deal... how about doing that ? Is somebody against that ?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #13 on: 18. July 2007, 04:15:20 pm »

BTW, removing Croft's old COLLADA loader (which is unsupported anyway) would cut down the size of xith-tk a great deal... how about doing that ? Is somebody against that ?

1+ for removing it. But wait about one or two weeks until everybody has read this. Or maybe move the code and .class files into the legacy-loaders.jar. This way the old loader can still be used it urgently needed.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #14 on: 18. July 2007, 05:18:28 pm »

1+ for removing it. But wait about one or two weeks until everybody has read this. Or maybe move the code and .class files into the legacy-loaders.jar. This way the old loader can still be used it urgently needed.
OK, I would do that in the near future, but would be glad if you did it yourself (because you're used to it, the legacy-loaders.jar idea is from you).
All colladaschema.jar, jaxb stuff, Croft's classes aren't needed anymore. Feel free Smiley
Logged
Pages: [1] 2 3 4
Print
Jump to:  

Theme orange-lt created by panic