LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: elias4444 on January 27, 2006, 22:17:07

Title: Mac Testers Needed!
Post by: elias4444 on January 27, 2006, 22:17:07
I've got some friends having problems launching my games on their Macs, and since I'm too poor to go buy one, I was hoping someone out there with a Mac would be willing to try it out. I've been told it just hangs, so I haven't been able to collect any errors (which is what I'm looking for).

http://www.tommytwisters.com/spaceops/spaceops.jnlp

Please let me know. :)
Title: Mac Testers Needed!
Post by: elias4444 on January 31, 2006, 21:49:01
Anyone have a chance to try this yet? Please let me know.
Title: Mac Testers Needed!
Post by: miu on January 31, 2006, 23:34:42
Doesn't start at all on my rather ancient Mac. WebStart downloaded all files and asked to accept the security certificate, but then nothing happened.

What are your sys. requirements? Where do I look for WebStart logs?

I have:
G3 iMac 400MHz, 512 MB RAM
OS X 10.4.4, default Java 1.4.2_09
ATi Rage 128 Pro, 8 MB VRAM
Title: Mac Testers Needed!
Post by: elias4444 on January 31, 2006, 23:45:08
Mostly I'm just looking to see if it starts or not. :(

I did just find a bug that was introduced today on all platforms though. I just fixed it and re-uploaded it. So if you would, please try again and see if it works now.
Title: Still the same problem
Post by: miu on February 01, 2006, 01:33:04
I tried again, updated jars were downloaded. Unfortunately, the rest is the same as before, nothing happens after clicking "Yes" for the security dialog.

I'll try to find where Apple's WebStart keeps files and logs. I haven't played with it on the Mac OS X yet.
Title: Mac Testers Needed!
Post by: miu on February 02, 2006, 03:02:26
Update:

I read a little about Java on the Mac. Web Start caches files under:

~/Library/Caches/Java Web Start

However, while I could find files from other Java apps I web-started, there was no trace of SpaceOps anywhere. I also tried to look elsewhere with no luck, Spotlight is not giving me any hits other than the .jnlp file.

It seemed like the app was actually being downloaded when I first ran it (and then updated it), but something's not working right here...
Title: Mac Testers Needed!
Post by: elias4444 on February 02, 2006, 03:12:36
Is this on OSX? If not, please try it on OSX and let me know.

Thanks.
Title: Mac Testers Needed!
Post by: numberR on February 02, 2006, 05:18:33
it didn't work on Mac mini, Mac OS X 10.4.4 with J2SE 1.5.0_05 neither.
Title: Mac Testers Needed!
Post by: miu on February 02, 2006, 15:33:00
My old Mac is running the latest OS X, see the HW/SW specs in my first post above.

FWIW, some (less known?) facts about Java on Mac:
[list=1]
Title: Mac Testers Needed!
Post by: elias4444 on February 02, 2006, 15:38:06
Any luck getting an error log then? This is getting frustrating that I can't even figure out what's wrong.  :(

Edit: I've gone ahead and set my compiler to just Java 1.5 (no 1.4 compatibility) and specified that in the JNLP file as well - I just wanted to try it and see if perhaps it's my IDE/Compiler setup.
Title: Mac Testers Needed!
Post by: JoC on February 02, 2006, 15:57:19
Exception in thread "javawsApplicationMain" java.lang.UnsatisfiedLinkError: no macjavaws in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.sun.javaws.MacOSLocalInstallHandler.<clinit>(MacOSLocalInstallHandler.java:34)
at com.sun.javaws.LocalInstallHandlerFactory.newInstance(LocalInstallHandlerFactory.java:30)
at com.sun.javaws.LocalInstallHandler.getInstance(LocalInstallHandler.java:56)
at com.sun.javaws.Launcher.notifyLocalInstallHandler(Launcher.java:995)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:891)
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:613)

Tested with MacOsX 10.4.4
Title: Mac Testers Needed!
Post by: elias4444 on February 02, 2006, 16:20:59
Thank you!!! Ok, from a google search, it looks like that can be caused by specifying the max-heap-size in the jnlp (which I was). So I've now removed it. Could you please try again?
Title: Mac Testers Needed!
Post by: JoC on February 02, 2006, 17:52:42
Yep it worked now. :)
Got a crash when i tried join the default ip there.
Hosted and got to the screen where I choosed saucer, but i never got from that screen. Do you have to be more than one player to play?
Title: Mac Testers Needed!
Post by: elias4444 on February 02, 2006, 19:59:18
Yeah, that default IP is my own address (I've left it as the default for now since I always ask people to connect to my server). If you host, you can have other people connect to you. So far it's multiplayer only, but I'm working on some possible bots to fill player positions.

After you choose the ship you want, you press ESC to close the options menu. I'll be adding a lot more GUI enhancements in the days to come.

Thanks so much for everyone's help! Enjoy the game while it's in beta. :wink:
Title: Mac Testers Needed!
Post by: JoC on February 02, 2006, 20:51:12
Looks very good, great work.
Nice touch with that blackhole :D
Title: Mac Testers Needed!
Post by: elias4444 on February 02, 2006, 23:01:18
Thanks! I just uploaded some improvements today too (including some new ship models). I'm hoping to tackle the menus and GUIs soon too.
Title: Mac Testers Needed!
Post by: miu on February 03, 2006, 02:40:05
Now it starts on my Mac too. Can't get it to do much though, everyhting's very slow, my HW is very old.

JoC, how/where did you find the log? Just curious...

elias4x4, where do you think the real problem was?

I've seen .jnlp files on the Mac with heap sizes specified that worked  :?

Also the move to Java 1.5 shouldn't be necessary :?: This will limit your Mac audience since only Tiger (10.4) may have Java 5 (if the user downloaded it) while different flavors of Java 1.4 would cover OS 10.3 and 10.2 as well...
Title: Mac Testers Needed!
Post by: JoC on February 03, 2006, 08:14:54
Quote from: "miu"

JoC, how/where did you find the log? Just curious...

I am not at work until monday and it is there i have mac's but if i remember correctly u can turn on the log under application/utilites/java/java plugin setting...something like that.
Title: Mac Testers Needed!
Post by: elias4444 on February 03, 2006, 15:38:15
I'm not sure where the real problem was actually. I'm wondering if it has something to do with Java 5's 1.4 compiling mode. As soon as I told it to compile only to version 5, and I set the JNLP to reflect that, everything seemed to start working for people (so long as they had Java 5 installed). The odd thing is, some of my older games still work on Macs without a problem, however I may have compiled those with the actual java 1.4 rather than with Java 5.
Title: Mac Testers Needed!
Post by: miu on February 03, 2006, 22:35:52
So you were compiling on Java 5 with 1.4 compatibility?

I tried this with JDK 1.4 for 1.3 compatible bytecode but for some reason it never really worked. I had to compile with JDK 1.3 to get that.

While Java 5 may be tempting, I guess the real world adoption is quite slow. Heck, we have customers who aren't on 1.4 yet! And Java 6 is supposed to ship this year!  :lol:
Title: Mac Testers Needed!
Post by: elias4444 on February 04, 2006, 15:47:10
Yeah, before release I'll force myself to reinstall java 1.4 and compile with that. Of course, release is probably still a ways off, so maybe by then everyone will have java 5 installed.  :lol: