Nex Gen LWJGL Applets!

Agreed, one of the main reasons to have the first few screens was the “Trust Dialog Box” that pops up. I don’t think it leads to a nice user experience if, as soon as the page loads that trust dialog pops up. Hence the play button, so that the user knows why its there and more likely to click yes. Second screen is needed to get rid of the ugly grey applet box, the remaining could easily be changed. Think oNyx’s post looks like a great solution to remedy this.

oNyx that looks like an awesome solution to streamline it into a smooth loading process, would also get rid of seeing a lagged ajax loading gif which happens atm when jvm starts.

Sounds like an error in the game code, hopefully not an applet issue, get any output on console?

  1. those area’s should be blank, guess they should be cleared or overwritten when window is switched, again game code issue and not applet, but thx for pointing it out
  2. yeh sorry about that as an alternative to WASD movement you can still use the cursor keys to move around.

Not sure lwjgl has multiple monitors support yet, will ask one of the lwjgl dev’s.

Yup looks like behavior of the new Java N plugin, great stuff comming with the new Java Plugin, guess they still have some issues but they are fixing them pretty fast. Using the new “seperate_vm” parameter here, since we load native files with lwjgl, starting a new VM allows to load same natives multiple times on different vm’s.

I thought you cuold influence tthe target monitor by Display.setLocation(x, y), and IIRC it picked the ‘nearest fit’

hmm… would that work if you have a Display.setFullscreen(true) set?

That sounds like a distrubing bug, could be a number of isses, which graphics cards are you on?
Could also be due to caching problem, since its run from cache after first run, can you delete the cache and see if it works again, its located in the temp folder getProperty(“java.io.tmpdir”). So should be under “(temp folder)/kappa.javaunlimited.net/betashot” just delete the folder.

Nothing on the console… I played it on Windows and it worked ok. It seems that the code that makes the big boss ship flash when it’s hit is messing up somehow in linux

hmm could be a video driver bug or something, whats gfx card and driver are you using?
Same flash effect is also used when your ship is killed and respawns white, does that bit work for you?
btw game was made on linux, so works fine for me here :slight_smile:

Graphics card is a 6800 Ultra.

Closing FF and trying again results in the same exception. Closing FF, deleting the cache dir and trying again does work. Oddly, trying to delete the cache with FF still running (but the applet not running) fails as FF still has file locks on the cached files (something to do with the VM still existing while FF is open?).

Java version 1.6.0_03-b05.

k thx for that, does look like some sort of caching issue, will investigate this tonight, hopefully its not something to do with files being locked by OS so that they can’t be accessed a second time.

and yes the vm does continue to run on once an applet is started and closed, it only shuts down once browser is shutdown also the reason why if you reject a certificate you have to restart browser to be able to accept it again.

If everything else fails, you can make dynamicly randomize the URLs like: mylib.dll?random=1237856892375 (timestamp)

That way it will never use the cache, but I don’t know whether it interfers with System.load(…)

Very good work, and a great showpiece for the new capabilities of LWJGL!

(I only saw the progress meter, then just a blank screen. I accepted the cert, but I blame our extremely restrictive corporate firewall…I’ll try this again from home)

I love it, and my immidiate free time is now going to be spent on getting something as cool mocked up on my site!

Kudos!

A shiny diagram of the loading sequence:

http://kaioa.com/k/laddd2b.png

(click to enlarge)

Accordingly to that paper (I mentioned earlier) it’s absolutely fine if the progress bar stalls for a bit at the beginning. In this case it’s the startup phase of the VM. Absolutely nothing will happen there for a few seconds, but that’s alright.

The downloading will typically take longer (especially with slower connections) than the actual loading. So, it would be a good idea to use a 60/40, 70/30 or even a 80/20 percentage split (instead of a default-ish 50/50 one). Accordingly to that paper (again) it feels subjectively faster if the progress bar speeds up towards the end.

[quote]oNyx that looks like an awesome solution to streamline it into a smooth loading process, would also get rid of seeing a lagged ajax loading gif which happens atm when jvm starts.
[/quote]
I agree - looks good, oNyx!

[quote]Hmm odd problem that, applet is cached once it is downloaded, so the next time it is run it just loads from cache (could be a corrupt download or something). Code should be cached in the temp directory, think on mac the temp directory is private:/tmp (which is got by getProperty(“java.io.tmpdir”)), so look for something like private:/tmp/domain/gamename, e.g. “kappa.javaunlimited.net” folder in temp directory.
[/quote]
Ok so I deleted /tmp/kappa.javaunlimited.net and I was able to run again (and I tried fullscreen this time, and it worked very smoothly - great work!). However, the same problem occurred after that - I have to delete that tmp folder in order to play again.

works excellent on IE 6/WinXP AMD 1.7GH ATI X800 85 fps windowed and fullscreen.

First time load:

Vista, IE 7, ATI HD2400 PRO

After 75% of the progressbar, the applet turns black.
When going to the desktop and back, I can still see my desktop where the applet is supposed to be (so, no framebuffer update at all!)

got any output or exception on the console? also which java version are you on? thx

thx for trying, did it continue to work as expected for you despite that exception?

Kinda unnocent looking Exception

Wed Apr 23 20:24:04 CEST 2008 ERROR:Unable to determine Slick build number
Wed Apr 23 20:24:05 CEST 2008 INFO:Starting display 640x480
Wed Apr 23 20:24:05 CEST 2008 ERROR:Resource not found: org/newdawn/slick/data/default_00.tga
java.lang.RuntimeException: Resource not found: org/newdawn/slick/data/default_00.tga
	at org.newdawn.slick.a.g.a(Unknown Source)
	at org.newdawn.slick.c.b.a(Unknown Source)
	at org.newdawn.slick.m.<init>(Unknown Source)
	at org.newdawn.slick.m.<init>(Unknown Source)
	at org.newdawn.slick.m.<init>(Unknown Source)
	at org.newdawn.slick.m.<init>(Unknown Source)
	at org.newdawn.slick.a.<init>(Unknown Source)
	at org.newdawn.slick.c.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.newdawn.slick.k.<init>(Unknown Source)
	at org.newdawn.slick.p.j(Unknown Source)
	at utils.a.a(Unknown Source)
	at utils.f.a(Unknown Source)
	at utils.d.run(Unknown Source)
EXITED MAIN GAME LOOP
Display.destroy() called

Bah, I can’t edit my posts…

Java version: 1.6.0_05

k, thx for that will have to get a non proguarded version up, to see where its failing.