Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  Print  
  Java Applets on Game Jolt  (Read 3770 times)
0 Members and 1 Guest are viewing this topic.
Offline kappa
« League of Dukes »

JGO Kernel
*****

Posts: 2360
Medals: 59


★★★★★


« Reply #30 on: 2009-09-01 09:45:31 »

For Slick its very simple. LWJGL's applet loader will handle all the native stuff for you, you simply put all the natives for each platform in separate jars (like you'd do for webstart) and that applet loader will automatically only download the native jar for the platform its run on.

More detailed instructions for slick can be found in this thread. An easy way to create this is grab the example lwjgl applet package from lwjgl.org and modify it to fit your project. Briefly on gamejolt you upload lwjgl_util_applet.jar as your main jar and all the other jars as supplimentary files. Then you point to them using parameters so that the lwjgl applet loader knows where to look.

An added benefit of using lwjgl's applet loader is that it has support to use pack200+lzma compression on your jars, so that the download size is even smaller. Theres already about half a dozen slick applets on gamejolt.
Offline TheAnalogKid
« League of Dukes »

JGO Wizard
*****

Posts: 1307
Medals: 2



« Reply #31 on: 2009-09-01 10:01:25 »

Hey, that great!  Cheesy I'll do that then.

Thanks!

Offline TheAnalogKid
« League of Dukes »

JGO Wizard
*****

Posts: 1307
Medals: 2



« Reply #32 on: 2009-09-01 12:36:02 »

I see that in Java 6 doc, pack200 seems to support only gz and not lzma. Am I right? If that's the case, which tool (link please) do you use to produce lzma?

Games published by our own members! Go get 'em!
Offline kappa
« League of Dukes »

JGO Kernel
*****

Posts: 2360
Medals: 59


★★★★★


« Reply #33 on: 2009-09-01 12:50:21 »

grab the file http://sourceforge.net/projects/p7zip/files/java_lzma/4.23.01/java_lzma_4.23.1.tar.bz2/download it has a file called JLzma.jar inside it you can use that to create lzma files.

Have a look at the LWJGL Ant build.xml file to see how you can create pack200.lzma files easily with Ant.
Offline CROS

JGO n00b
*

Posts: 24



« Reply #34 on: 2009-09-01 13:14:59 »

Thanks for saving the day, Kapta!  Cheesy
Offline TheAnalogKid
« League of Dukes »

JGO Wizard
*****

Posts: 1307
Medals: 2



« Reply #35 on: 2009-09-07 10:46:59 »

FYI, my issues are solved.

CROS, "Visit Game's Web Site" link doesn't point to the developer's web site but on Online Puzzle Games page.

Also, do you plan to improve the upload for Java applets? It's really laborious; 1 jar at a time, and after each upload the game restarts, which causes yet another delay.  Undecided An idea for you: have the option to upload a zip that contains multiple jars with the option to specify "include in archive tag". Or really support the upload of multiple jars at once.

Offline CROS

JGO n00b
*

Posts: 24



« Reply #36 on: 2009-09-07 18:02:45 »

Multiple file uploading support is planned.

In the game website, you have to include http://

It now longer shows the game as you're uploading, so the process should be quicker now.
Offline TheAnalogKid
« League of Dukes »

JGO Wizard
*****

Posts: 1307
Medals: 2



« Reply #37 on: 2009-09-08 09:13:33 »

That's great!

Cool.

Pages: 1 [2]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.1 seconds with 20 queries.