[GUIDE] Installing BTW on Mac OS X without extra tools

If you're having problems with your installation of Better Than Wolves, or if you've woken up in the future and are beginning to doubt the nature of reality, here's the place to post about it.
Post Reply
bandcamper
Posts: 11
Joined: Fri Oct 09, 2015 8:35 am

[GUIDE] Installing BTW on Mac OS X without extra tools

Post by bandcamper »

An homage to FC.

If utilities are a problem (or perhaps you want to script it), you don't need MCPatcher or winrar, or anything else to reliably install BTW on OS X El Capitan, as long as you can bring up a terminal and type.

Ingredients:
  • * The freshest BTW zip from the download page
    * Vanilla Minecraft installed, with profile created using version 1.5.2, and successfully run at least once. (OS X used to prompt you to install a legacy version of Java (1.6.0), which you seems to no longer be required.)
    * The 1.5.2 server jar - if you want to patch the server, which we'll download from Mojang here.

Steps (client):
Spoiler
Show
  1. * Prepare for our patched version inside the Minecraft install

    Code: Select all

    $ cd ~/Library/Application\ Support/minecraft/versions
    $ rm -fr 1.5.2-btw
    $ mkdir 1.5.2-btw
    $ cp 1.5.2/1.5.2.jar 1.5.2-btw/1.5.2-btw.jar
    $ sed s/1\.5\.2/1.5.2-btw/ < 1.5.2/1.5.2.json > 1.5.2-btw/1.5.2-btw.json 
    * Unzip the btw archive wherever you saved it.

    Code: Select all

    $ cd ~/Downloads
    $ unzip -d BTWMod4-A2TimingRodentb BTWMod4-A2TimingRodentb.zip 
    * Head in there

    Code: Select all

    $ cd BTWMod4-A2TimingRodentb 
    * Read the readme. Are you crazy?

    Code: Select all

    $ open readme.txt
    * Use the jar utility to do the patch

    Code: Select all

    $ /usr/bin/jar uf ~/Library/Application\ Support/minecraft/versions/1.5.2-btw/1.5.2-btw.jar -C MINECRAFT-JAR .
    * Remove the META-INF

    Code: Select all

    $ zip -d ~/Library/Application\ Support/minecraft/versions/1.5.2-btw/1.5.2-btw.jar META-INF/MANIFEST.MF META-INF/MOJANG_C.SF META-INF/MOJANG_C.DSA
    * Change your profile to use the 1.5.2-btw version, run minecraft and join the few.
Steps (server):
Spoiler
Show
  1. * Unzip the btw archive to somewhere long term.

    Code: Select all

    $ cd ~/Downloads
    $ unzip -d BTWMod4-A2TimingRodentb BTWMod4-A2TimingRodentb.zip
    $ mv BTWMod4-A2TimingRodentb ~/btwserver 
    * Head in there

    Code: Select all

    $ cd ~/btwserver
    * Read the readme. Yep.

    Code: Select all

    $ open readme.txt
    * Fetch the base jar

    Code: Select all

    $ curl -O http://assets.minecraft.net/1_5_2/minecraft_server.jar 
    * Do the patch using java tools

    Code: Select all

    $ /usr/bin/jar uMf minecraft_server.jar -C MINECRAFT_SERVER-JAR .
    * Start it!

    Code: Select all

    $ /usr/bin/java -Xmx1G -Xms1G -jar minecraft_server.jar nogui 
Updated for OS X Sierra and TimingRodentb!
Last edited by bandcamper on Sun Dec 04, 2016 1:07 am, edited 7 times in total.
User avatar
magikeh
Posts: 945
Joined: Mon Jul 04, 2011 9:57 pm
Location: Top -o- the Tower

Re: Installing BTW on Mac OS X using terminal only

Post by magikeh »

Wow! Fantastic guide, thank you. Also welcome to the community :)
Magical Shit
Show
Syruse|Work: i like magic shit
MagikEh: ...
MagikEh: >.>
MagikEh: <.<
»» MagikEh walks to the bathroom
Syruse|Work: hahaaaaaaaaa
Syruse|Work: wait
MagikEh: xD
Syruse|Work: fuck
Syruse|Work: NO
Syruse|Work: DONT
bandcamper
Posts: 11
Joined: Fri Oct 09, 2015 8:35 am

Re: Installing BTW on Mac OS X using terminal only

Post by bandcamper »

magikeh wrote:...welcome...
Thanks! But I've been here for about a year, just haven't had anything to say before now. HumpedCamel tipped me over and I felt like I needed to do something other than money for FC.

By the way, I also have an AWS CloudFormation script to bring up a transient BTW server if anyone is interested.

While I'm giving shout-outs, I would also like to thank haschischtasche for a let's play that showed me you can play skillfully and with urgency, and Xisuma's UHC series for modelling efficient caving BTW-style. I'd not really bothered with MC before BTW.

If anyone tries my patching approach and has issues, let me know here and I'll support.
esphorem
Posts: 9
Joined: Sat Nov 17, 2012 10:32 pm

Re: Installing BTW on Mac OS X using terminal only

Post by esphorem »

Thanks for posting these instructions! I haven't played Minecraft or BTW for a *long* time now, so I'm pretty rusty on this stuff. :)
One thing though: Did you mean sed s/1\.5\.2/1.5.2-btw/? As is, the dots will match any character.
bandcamper
Posts: 11
Joined: Fri Oct 09, 2015 8:35 am

Re: Installing BTW on Mac OS X using terminal only

Post by bandcamper »

esphorem wrote:...Did you mean...
Yes! - nice pickup. Fixed.
Six
Posts: 599
Joined: Sat Jun 02, 2012 6:27 am

Re: Installing BTW on Mac OS X using terminal only

Post by Six »

Thanks a bunch. I was finally wanting to update my BTW install after having not done so in quite a while, and had forgotten how I did it last time through command line. For anyone just looking to update an existing BTW install over a previous existing version, you only really need to use the jar command (after unzipping the btw zip).

I would also be very very interested in that AWS CloudFormation script you mentioned, if you could share the details on that, I've been toying with the idea of setting up a small server for friends lately.
bandcamper
Posts: 11
Joined: Fri Oct 09, 2015 8:35 am

Re: Installing BTW on Mac OS X using terminal only

Post by bandcamper »

Six wrote:...AWS CloudFormation... server for friends...
That's my scenario. I've started another post here.

If you try it and run into problems, I'd be very happy to help.
User avatar
Mr_Weax
Posts: 4
Joined: Thu Dec 31, 2015 4:21 pm

Re: Installing BTW on Mac OS X using terminal only

Post by Mr_Weax »

I'm having difficulties with the server patch.

Code: Select all

/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/jar uMf minecraft_server.jar -C MINECRAFT_SERVER-JAR
This line doesn't work, and it tells me I'm using 'jar' incorrectly.

Help is appreciated!
bandcamper
Posts: 11
Joined: Fri Oct 09, 2015 8:35 am

Re: Installing BTW on Mac OS X using terminal only

Post by bandcamper »

Mr_Weax wrote:...using 'jar' incorrectly.
No worries, can you post or send more error text? Also perhaps the result of this:

Code: Select all

$ ls -al /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/jar
Here's my output:

Code: Select all

$ ls -al /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/jar
-rwxr-xr-x  1 root  wheel  101216 15 Jul 08:22 /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/jar
$
bandcamper
Posts: 11
Joined: Fri Oct 09, 2015 8:35 am

Re: Installing BTW on Mac OS X using terminal only

Post by bandcamper »

bandcamper wrote:Updated for OS X Sierra and TimingRodentb!
And caught a bug. Things are a bit simpler under Sierra because you don't need JDK 1.6.0.

Right, now for some playtesting...
Post Reply