Mac: Difference between revisions

From PZwiki
m (Deleted repeated word. -Bill)
("as far as I can tell" is not something you write in a wiki, thanks.)
Line 1: Line 1:
Project Zomboid works great on a Mac, but only when not running in a browser as far as I can tell.
Project Zomboid works great on a Mac, but only when not running in a browser.


== Playing without browsers ==
== Playing without browsers ==

Revision as of 12:20, 4 June 2011

Project Zomboid works great on a Mac, but only when not running in a browser.

Playing without browsers

First, make sure you have logged in at least once with your account details using Safari, so that you have downloaded the client.

Next, open TextEdit (In /Applicatons) and create a new file with the following text:

#!/bin/bash
DATA=$HOME/Library/Caches/Java/cache/lwjglcache/cloud.projectzomboid.com/ProjectZomboid;
java -Xmx1024m -Djava.library.path=$DATA/natives -cp $DATA/zombie.jar:$DATA/lwjgl.jar:$DATA/lwjgl_util.jar zombie.GameWindow

After you paste in the text, click on Format in the menu bar and click Make Plain Text (unless the file is already in plain text). Then save the file as ProjectZomboid.command in the location of your choice. Next open Terminal.app (In /Applications/Utilities). Type in the following text and make sure you leave a space at the end:

chmod u+x

Then drag the ProjectZomboid.command file from the Finder in the Terminal window, which will paste the path to it, then press enter.

Please remember that when you use this method your version of Project Zomboid will NOT auto-update, and you will have to login again using Safari to update your client.

Now ProjectZomboid.command can be started by double-clicking on it in the Finder.

This has been verified to work in this environment:

zombiepie$ /usr/bin/sw_vers
ProductName:    Mac OS X
ProductVersion: 10.6.7
BuildVersion:   10J869

zombiepie$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)