Kumari - Updated - v0.5: Dec 29th

Good feedback. I didn’t put much work into the webstart version (as the note says, it’s hacked :)) - I’ll have it check the users home and put it there instead. That’s less hacky overall :D. I’ll add a post when its uploaded.

New update: Writes to the home directory for the WebStar version now (instead of /kumari):

Kumari Kandum - WebStart

New Version 0.3.5 (alpha) - WebStart version only (Windows installer version not updated).

  • Summary (since v0.3) -

General:

  • Linux and Mac should be runnable via WebStart (Needs testers)
  • Fixed WebStart version to use users home directory

Performance improvments:

  • 50% improvement during heavy particle activity (explosions, active powerups, etc.)
  • Improved overall performance (less CPU load)

Bug fixes:

  • Requires much less memory, at the cost of slowing load times
  • Fixed problem detecting suitable display modes on some computers (Windows 98/Mac)
  • Fixed GUI lag issues

Kumari Kandum - WebStart

Questions, comments, etc. always welcome and appreciated.

I still can’t play it :frowning:

Take care with backslashes. You used a backslash for locating it into the homedir. It does not seem to be translated into the correct file-seperator for Unix-like systems ( a slash) The Java VM does this for slashes though (it replaces slashes with backslashes on windows), so it would be better, if you used a slash instead.
Another Note:
The path is now (I already used the slash instead):
/Kumari/
better even would be
/.Kumari/
because .name files are interpreted as hidden and mostly contain settings and stuff (like in this case)

Another important thing would be (if we already have all those filesystem issues), that Linux has a case-sensitive file-system unlike Windows.

Did you get any errors in the WebStart console that you can post?

The Console:
Error log started - Kumari Kandum Version 0.3.5 (alpha) - December 3rd, 2005
Console log started - Kumari Kandum Version 0.3.5 (alpha) - December 3rd, 2005
Creating new Engine instance: com.vorax.VoraxEngine@1617189
Kumari home directory is: /home/arne\kumari
Copying files to local machine
Copied 113366 bytes to /home/arne\kumari\soundfx\explosion1.wav

Java Web Start Error:

java.io.IOException: Permission denied

The Exception:
java.lang.RuntimeException: java.io.IOException: Permission denied
at com.vorax.utils.LocalFilesManager.copyFile(LocalFilesManager.java:77)
at Kumari.main(Kumari.java:99)
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:585)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1108)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1055)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:898)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:469)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:217)
at com.sun.javaws.Launcher.run(Launcher.java:164)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at com.vorax.utils.LocalFilesManager.copyFile(LocalFilesManager.java:67)
… 12 more

Thanks - just switched all \ (slashes) - uploading now…

Done uploading -
Kumari Kandum - WebStart

I hope it works.

Finally got hooked enuogh to try through all my lives. Nothing happens on Game Over. Am I not supposed to be kicked back to the menu or something on GameOver?

Not implemented yet :slight_smile: - Press escape to return to main menu at that point.

with the path it works now :slight_smile:

But now I get another Error (I believe this has to do something with lwjgl):
Console:
Error log started - Kumari Kandum Version 0.3.5 (alpha) - December 3rd, 2005
Console log started - Kumari Kandum Version 0.3.5 (alpha) - December 3rd, 2005
Creating new Engine instance: com.vorax.VoraxEngine@16df84b
Kumari home directory is: /home/arne/kumari/
Copying files to local machine
Copied 113366 bytes to /home/arne/kumari/soundfx/explosion1.wav
Copied 455226 bytes to /home/arne/kumari/soundfx/fire_loop1.wav
Copied 157754 bytes to /home/arne/kumari/soundfx/levitate.wav
Copied 275616 bytes to /home/arne/kumari/soundfx/magic_alert1.wav
Copied 238524 bytes to /home/arne/kumari/soundfx/magic_alert_03.wav
Copied 315552 bytes to /home/arne/kumari/soundfx/magic_alert_08.wav
Copied 336032 bytes to /home/arne/kumari/soundfx/magic_alert_15.wav
Copied 79514 bytes to /home/arne/kumari/soundfx/missle_launch.wav
Copied 226848 bytes to /home/arne/kumari/soundfx/mod_explosion.wav
Copied 107930 bytes to /home/arne/kumari/soundfx/mod_explosion2.wav
Copied 22918 bytes to /home/arne/kumari/soundfx/small_explosion.wav
Copied 81572 bytes to /home/arne/kumari/soundfx/small_gun.wav
Copied 309918 bytes to /home/arne/kumari/soundfx/stone_roll.wav
Copied 81060 bytes to /home/arne/kumari/soundfx/stone_smallimpact1.wav
Copied 58020 bytes to /home/arne/kumari/soundfx/stone_smallimpact2.wav
Copied 60068 bytes to /home/arne/kumari/soundfx/stone_smallimpact3.wav
Copied 27802 bytes to /home/arne/kumari/soundfx/swish.wav
Copied 317600 bytes to /home/arne/kumari/soundfx/targeting_powerup.wav
Copied 428194 bytes to /home/arne/kumari/soundfx/woosh1.wav
Copied 600226 bytes to /home/arne/kumari/soundfx/woosh2.wav
Copied 208032 bytes to /home/arne/kumari/soundfx/woosh3.wav
Copied 175008 bytes to /home/arne/kumari/soundfx/woosh4.wav
Copied 77026 bytes to /home/arne/kumari/soundfx/woosh5.wav
Copied 1775464 bytes to /home/arne/kumari/music/sg1.ogg
Copied 1003053 bytes to /home/arne/kumari/music/sg4.ogg
Reading configuration data
Error reading configuration. May not exist, using defaults
Reading game data
Game data not found.
Saving game data as game.dat
Attempting to set display: 1024x768 @72Mhz
Could not choose visual
org.lwjgl.LWJGLException: Could not choose visual
at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
at org.lwjgl.opengl.LinuxDisplayPeerInfo.(LinuxDisplayPeerInfo.java:52)
at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:206)
at org.lwjgl.opengl.Display.create(Display.java:629)
at org.lwjgl.opengl.Display.create(Display.java:607)
at com.vorax.VoraxEngine.initialize(VoraxEngine.java:465)
at com.vorax.VoraxEngine.engineLoop(VoraxEngine.java:1118)
at Kumari.main(Kumari.java:116)
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:585)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1108)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1055)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:898)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:469)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:217)
at com.sun.javaws.Launcher.run(Launcher.java:164)
at java.lang.Thread.run(Thread.java:595)

Java Web Start Error:

null

Exception:
java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glGetString(GL11.java:1556)
at com.vorax.Renderer.init(Renderer.java:278)
at com.vorax.VoraxEngine.initialize(VoraxEngine.java:476)
at com.vorax.VoraxEngine.engineLoop(VoraxEngine.java:1118)
at Kumari.main(Kumari.java:116)
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:585)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1108)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1055)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:898)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:469)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:217)
at com.sun.javaws.Launcher.run(Launcher.java:164)
at java.lang.Thread.run(Thread.java:595)

Are you able to run other LWJGL games? Such as Tribal Trouble - http://www.oddlabs.com/tribaltrouble.php

Still looking for Mac and Linux testers for the WebStart version - Kumari Kandum - WebStart

Hm.

Linux goes to black screen then quits on my Linux box.

I’ll try to get a webstart console open and catch what I assume must be an exception. if I can get it Ill post it…

Alright there is an error but Java webstart closes the damn console when the app exits so I never get to see or copy it :frowning:

Any chance you could make it write errors to a file in the kumari directory?

Yes I can. TribalTrouble comes actually with its own JRE, but I simply changed the path in the start script to my current JRE and it works then, too.

[irony]Don’t you just love how cross-platform always just works?[/irony]

If it were pure java it would work :-\ , but JNI is not.

Done - Logging will go to the kumari directory under your home directory. Post the results from both the console.log and the error.log files.

Kumari Kandum - WebStart

Thanks

If TT works on arne’s setup, but your game doesn’t, it is probably caused by you requesting a pixel format that is not available. Are you forcing 24 bit colors, an alpha buffer or anything else “weird”?

Btw, running your game on a linux machine gave me a blank screen, an early exit and this in the logs:

java.io.FileNotFoundException: /home/elias/kumari/console.log (No such file or directory)

thrown from

at com.vorax.VoraxEngine.(VoraxEngine.java:579)

(sorry about the incomplete exception trace, but the javaws log format is in xml)

  • elias