Mac: Difference between revisions

From PZwiki
mNo edit summary
(Fixed the "process complete" error, and explained about downloading the client and auto-updating. Thanks! -Bill)
Line 3: Line 3:
== Playing without browsers ==
== Playing without browsers ==


Create a file called ProjectZomboid.command and put this in it:
First, make sure you have logged in at least once with your account details using Safari, so that you have at least downloaded the client.
 
Next, open TextEdit (In /Applicatons) and create a new file with the following text:
  #!/bin/bash
  #!/bin/bash
  DATA=$HOME/Library/Caches/Java/cache/lwjglcache/cloud.projectzomboid.com/ProjectZomboid;
  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
  java -Xmx1024m -Djava.library.path=$DATA/natives -cp $DATA/zombie.jar:$DATA/lwjgl.jar:$DATA/lwjgl_util.jar zombie.GameWindow


Save it and open Terminal.app (In /Applications/Utilities). Type this '''and make sure you leave a space at the end''':
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
  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'''.
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.
Now ProjectZomboid.command can be started by double-clicking on it in the Finder.

Revision as of 18:10, 3 June 2011

Project Zomboid works great on a Mac, but only when not running in a browser as far as I can tell.

Playing without browsers

First, make sure you have logged in at least once with your account details using Safari, so that you have at least 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)