Tremulous Forum

General => Troubleshooting => Topic started by: Jalaco on May 10, 2008, 02:36:15 am

Title: How do you .PK3/.BIN's? (mac)
Post by: Jalaco on May 10, 2008, 02:36:15 am
I have a question, does anyone know how to make .Pk3's on a mac? All the ways I try aren't be read. Even if someone can tell me how to make a .Bin on a mac that would work to. Thanks in advance all!

\\^// Jalaco \\^//
Title: Re: How do you .PK3/.BIN's? (mac)
Post by: Death On Ice on May 10, 2008, 06:13:54 am
A .pk3 file is the same as a '.zip' file. The extension is just changed. A '.bin' file is completely different, try Stuffit (or comparable free utility).

I'm assuming this is for mapping. If you want to learn the structure for a '.pk3' file for mapping, check out the Tremulous mapping Wiki (http://tremmapping.pbwiki.com). Or, rename a map's '.pk3' file to make the extension '.zip', unzip it, and check it out.
Title: Re: How do you .PK3/.BIN's? (mac)
Post by: googles on May 10, 2008, 04:01:58 pm
Jally, BIN files are binary files, aka programs, pk3's are zip files renamed use by tremulous(and other quake mods) that load maps/other elements of the game
Title: Re: How do you .PK3/.BIN's? (mac)
Post by: Rocinante on May 10, 2008, 08:44:45 pm
Jally, BIN files are binary files, aka programs
Not in this context, thanks for playing (http://en.wikipedia.org/wiki/Macbinary)
Title: Re: How do you .PK3/.BIN's? (mac)
Post by: Jalaco on May 10, 2008, 11:29:30 pm
A .pk3 file is the same as a '.zip' file. The extension is just changed. A '.bin' file is completely different, try Stuffit (or comparable free utility).

I tried doing that first, but it doesnt work the archive tool codes the Zips weird or something. I cant figure out how to get Stuffit to zip for me it just unzips.

I think that mac reads the files as .Bins because thats what icon it has for them (its not the generic white paper for things it cant identify) and it says on the description MacBinary Encoded File.

I even tried making a Dmg and changing its extension to Pk3 that didnt work either.  :-\

\\^// Jalaco \\^//
Title: Re: How do you .PK3/.BIN's? (mac)
Post by: Rocinante on May 11, 2008, 12:12:05 am
If you're not afraid of the commandline, open Terminal and use 'zip'.  For example:

Code: [Select]
milton:~/tmp$ find .
.
./.DS_Store
./bar
./bar/barfile1
./bar/barfile2
./baz
./baz/bazfile
./foo
./foo/foofile
milton:~/tmp$ zip -r foo.pk3 foo bar baz
  adding: foo/ (stored 0%)
  adding: foo/foofile (stored 0%)
  adding: bar/ (stored 0%)
  adding: bar/barfile1 (stored 0%)
  adding: bar/barfile2 (stored 0%)
  adding: baz/ (stored 0%)
  adding: baz/bazfile (stored 0%)

You'll have to combine that information with the other posts around here that describe the layout of a pk3, because I don't have it committed to memory and don't care to look for it right now :>
Title: Re: How do you .PK3/.BIN's? (mac)
Post by: Death On Ice on May 11, 2008, 07:16:33 am
A simple 'ls -a' would have sufficed, Rocinante ;)
Title: Re: How do you .PK3/.BIN's? (mac)
Post by: Jalaco on May 11, 2008, 08:18:23 am
I tried changing the code around and stuff for my user but every time I get "not such directory" or "Nothing to do!" I'm confused....

\\^// Jalaco \\^//
Title: Re: How do you .PK3/.BIN's? (mac)
Post by: Rocinante on May 11, 2008, 06:01:01 pm
A simple 'ls -a' would have sufficed, Rocinante ;)

'ls -a' would have shown the directories and hidden files in the current working directory.  'find .' showed their contents as well, which was the point :>

I tried changing the code around and stuff for my user but every time I get "not such directory" or "Nothing to do!" I'm confused....

Much like in many other things, paraphrasing the error that you get is not going to help anyone figure out what the problem is and hopefully provide a solution.  Please use a [code] block to paste the command you tried and the error you received, with some context of what you wanted to do.