Author Topic: Mac Add-On Packaging  (Read 1831 times)

Can someone write a tutorial for people with macs to use so they know how to zip a file correctly? I'm finding a lot of submissions to RTB which contain a zip, with a folder inside the zip named the same as the zip, then all the files in there.

Sure, will do.

Edit: My wireless Microsoft keyboard I use on my mac is acting up, so I may not be able to do it for awhile, if someone else wants to jump in, feel free.
« Last Edit: March 07, 2009, 11:57:22 AM by laremere »

Tom

K



Once you have all the needed files (server.cs, description, ect) you need to package your Add-On.




First, you need to select all the files by 'drawing' a box around them.


Right click (or ctrl-click) any of them, and then select "Create Archive".


A file called "Archive.zip" should be created, but that filename won't work in Blockland.


Re-name (press enter) it to the correct filename. Remember that it has to start with the proper prefix.


Feel free to re-word/edit it all you want.


« Last Edit: March 07, 2009, 12:48:48 PM by Tom »

yay! now i can fix my stealth gun!

HOW DO YOU MAKE MODS ON A MAC I NEED TO KNOW!! ANY ONE??

:(

I can't find the compress function.

Nevermind, thanks for the help!

This might make people regard you with a little less ferocity TT:

I think it would help out on the long run if someone also makes a tutorial for making mods on a Mac operating system, thank you.

That way you have a better chance of getting help, plus you don't look like a total imbecile which, let's face it, you did just now, no offense.

Tom

Making a script add-on is EXACTLY THE SAME, but you just need to use a different text editor.

Making a script add-on is EXACTLY THE SAME, but you just need to use a different text editor.

For a Mac I highly recommend Unitron.

Sticky, Even though I already knew how to do this, I get a lot of people asking how to make the add-on work on a mac.

good start, see the bottom

K



Once you have all the needed files (server.cs, description, ect) you need to package your Add-On.




First, you need to select all the files by 'drawing' a box around them.


Right click (or ctrl-click) any of them, and then select "Create Archive".


A file called "Archive.zip" should be created, but that filename won't work in Blockland.


Re-name (press enter) it to the correct filename. Remember that it has to start with the proper prefix.


Feel free to re-word/edit it all you want.




and now you are stuck with a .DS_Store and possibly a .localized file, here's how to fix it

close any finder windows open to the directory with your wep.

open the terminal (this should not scare you dont worry its not complicated)

type
Code: [Select]
cd <path to your addon folder here>note: the standard mac filesystem is not case sensitive
then type
Code: [Select]
ls -ayou should see a list of all your files and some files beginning with "."

these files are "hidden" on unix, and not needed in zips so we can (and should) remove them.

to do this type the following
Code: [Select]
rm <the file>
you can not remove "." or ".." because these are not files, "." points to your current directory, that is why sometimes people tell you to type ./<some executable here> that is because you need a file path and so you are using your current directory "." and then the excutable inside it. for example when compiling something, you often type ./configure make make install ./configure is a command being run from your current directory.

.. is one directory up the file tree, so say your files are in "Weapon_DeNoobinator" which is a "folder" on your desktop, if you were to cd (cd means change current working directory) into that directory and then type
Code: [Select]
ls .. you would get a file listing of your desktop, one direcory up.

remove any un-needed files then zip the directory. You can test your mess removing skills by then unzipping the file and not going there with the finder but "ls -a"ing the diretory and if you have no mess, you are ok and can upload to rtb, if not, try again.

there is a way to see these "hidden" files in the finder. to do this type the following into the terminal.

Code: [Select]
defaults write com.apple.finder AppleShowAllFiles True
killall Finder

and yes you need a capital F in finder or it will not work

then you will see these files. do not delete the .DS_Store file from the finder because it will just put it back again, that is why we used the terminal to begin with anyway.

if you would like any more information about these commands, please feel free to type
Code: [Select]
man <command here>for what is called a "man page" basically a short manual on how to use the command.

also you may type man -k <keywords> to search the man pages for keywords or you can type man <section of the manual, its a number> <command> to read a specific section of the man page for that command.

i hope this helps, i tried to explain things assuming the littleist previous knoledge and its really not complicated, i hope you are not scared by the command line. bye the way, in general you should not bindly copy commands into the terminal, especially if they begin with sudo or su because those can gives what is called super user or "root" privlidages, as in, do whatever you like with no restrictions. (almost)

« Last Edit: April 05, 2009, 02:11:30 PM by Pedro »

ok, nao i know how to make one, nao how do i script and model


does not work

way to waste space on the topic, you could have just snipped it. anyway, it does work, you just dont know what you are doing.