porting to mac

Hi,

I have a request for my game to be available to mac.
I am using LWJGL and slick as libraries.
To make an executable for windows I use jarsplice to make a fat jar and a widows executable.
In jarsplice I have to select the necesary jar files plus all the native files of the libraries.
So my question is, if I just select the natives for mac instead of the windows natives and then create a .app in jarsplice, will it be able to run on mac?
I don’t own or don’t know anyone who has a mac so I cant test this myself.
Any ideas?

From the wiki :slight_smile:

So i’m sure that should work, though I don’t use LWJGL

You can make a jar with jarsplice by dumping ALL of the natives required in. Then you can also make an exe and app file. It’ll only run the correct OS’s natives.

Maybe this tutorial will help you.

Thanks guys,
Jar splice creates an app bundle which is a folder with some sub folders.
I have a few folders with game sources like sounds and settings which are placed in the games folder.
Any idea where where to put these folders in the app bundle?
the created bundle looks like this:

Gridworld.app
Contents
MacOS
JavaApplicationStub (file)
mac_launch_fd.sh
Resources
icon_16.icns
Java
app.jar
info.plist
PkgInfo (file)

My guess is I would have to place the resources either in the Java folder because the jar file is in there, or in the resources folder.
Any one knows?
For the windows version the executable is in the same folder as the resources folder
the windows version looks like something like this:
Gridworld
Gridworld.exe
Sounds (folder)
Settings (folder)
Saved Worlds (folder)
Creatures (folder)

Also, anyone with a mac willing to test my game?
All you have to do is see if it runs, I will put your name in the credits of course.
If you are, send me a pm with your email.

thanks,

You also need to test if you game can even run on a mac! :slight_smile:
Often times, when people create applications using openGL on windows, they mix core and deprecated functionality. Macs are really fiddly about which functions you can use. A core profile on a mac can only use OpenGL 3+ functions, and using anything else will result in your application erroring.

Thanks.
Lets hope it works.