Create a text file
Put this at the top:
Add your shit to itCode:#! /bin/zsh cd "${0:h}"
Change the extension to command
Double click it to run it like you would a Windows batch file
Done
|
Update: Added Requirements.
Files with the extension .exe are NOT compatible in any way with Mac OSX anything, you can only open .exe files on Windows.
Also: To expand a file that has been compressed you need a decompresser, I have helped an un named person who didn't have one, so here's a link for you. WinRar doesn't come for Mac btw so please don't nail me for advertising something
Stuffit Expander "WinRar for Macs"
Update: Support sig for lulz.
Copy paste that puppy and you get what's in my sig. I just know you are all jealous of my PS skills. Don't forget to add the first [ on the url and img tags please .Code:url=http://www.rune-server.org/runescape-development/rs-503-client-server/tutorials/232816-rsps-mac.html]img]http://img27.imageshack.us/img27/3403/rspsformacsig.png[/img][/url]
Contents
Intro
508 - 517 - 525
562 - 569 - And Beyond?
Tips/Tricks
Credits
Intro
Welcome to my guide on running an RSPS on your Mac. In the guide I will cover the method for running the most common DEOBs for servers from 508 to 569. The first thing you will need is a client to run. I personally use the R--- L---- status page to find the servers I play, but you can get them where ever you want.
For the guide I will be using the Connan Ftw 525 Client, and the Pk Madness 569 Client. You can download them here, or use your own client.
Connan Ftw 525
Pk Madness 569
The only other requirement is a very basic understanding of computer copy/pasting, and drag and dropping, and Mac OS X 10.5.X. If you don't have 10.5.X then it may still work, I just haven't personally tested it.
508 - 517 - 525
Starting with the more common 500+ batch, my 525 example. The process for 525 is the same for 508 and 517.
Now the very, very, very easiest way is to simply open your clients folder, and search for the file Loader.class. Once you find that file double click it and your client might run. You want to click the name of the folder you are searching at the top of the Finder window and type in Loader.class. Here is a picture...
If that worked, great. If not you will have to do a bit more technical stuff. This is also my favorite way of running a client quickly.
First, open up Terminal by either searching for it in Spotlight...
Or any method you choose thats mine. Next type "cd_" into Terminal with a space after it, and no quotes. Then open your client folder and drag the folder called "src" to the terminal window. Hit enter, you will get another line in the Terminal window, if unsuccessful Terminal will tell you, and if you were successful it will look like this...
If it did that good, if not, try again.
The next step is to go to your "run.bat" file and copy this line...
Paste that into Terminal, hit enter, and the client should start to run. Now for repeatability purposes, you should make a TextEdit file with the commands to run the client. I HIGHLY recommend this because it makes things very easy. Just open up TextEdit, and copy paste what you put into Terminal...
Now, go to the format toolbar and click "make plain text" and ok. Then save that as any name you choose, and type in ".sh" after it. To run the client open Terminal, type in "sh_" with space, no quotes, drag the file to the Terminal window, and hit enter.
That concludes the 508 - 517 - 525 section of the guide.
562 - 569 - And Beyond?
Ok short intro.
You NEED to read the 508 - 517 - 525 section, I don't want to repeat myself down here.
I don't have much experience with 562+ because I prefer 517/525. But I have tried a few 562+ and have the basics for them down.
Unlike the 508/517/525s, 562+ uses a new method of running, I THINK this is because 562 has the Rune Tek 5 engine instead of the old engine, it might just be the people who started the 562s.
The first step is to combine files. You need to take the "bin", "cache", and "lib" folders, and put them into the "src" folder...
Now that that is done go to Terminal and to "cd_" like in the above section, and open up "run.bat". Observant people will notice the semicolons in the code. These need to be replaced by colons, this is just a slight difference between Mac and Windows. After you fix those semicolons, you can copy and paste just like in the above section...
If it worked great job, and have fun playing.
Tips and Tricks
These are just simple things to speed up the process, or make text shorter.
Use the Run.bat file!
The run.bat file is already in plain text, so you don't need to make it plain text yourself. Just delete the stuff you don't need, and add in what you do.
Copy and Paste, not .sh
This is my preferred method of running the servers. Simply keep the text you copied from Terminal in a text document on your desktop. When you want to play, open the document, select all (Command+A), copy (Command+C), click the Terminal window, and paste (Command+V). That will run the server the same as using the .sh file.
Try an application
If you're feeling adventurous, why not make your server's client into a simple run application so you don't need to use Terminal? Try it out in Automator, or AppleScript. Here's my version of the click to run client. It runs Connan Ftw 525, so make sure you download that first if you want to try the runner. Just follow the instructions in the Information file.
Credits
Me
I am it on the lonely list of credits, I wrote this guide myself based on an earlier guide I wrote for one server, I think this version is much better so I gave you this one.
If you have any questions feel free to post or pm.
Create a text file
Put this at the top:
Add your shit to itCode:#! /bin/zsh cd "${0:h}"
Change the extension to command
Double click it to run it like you would a Windows batch file
Done
Didn't work for me, I get a window saying I don't have sufficient privileges.
Tried with and without the second cd line, I'm also an admin on my computer if that changes it. Do you use a Mac? Or does that work for Linux/Windows?Code:#! /bin/zsh cd "${0:h}" cd /Users/steven/Desktop/RSPS/pkmadness569/src java -cp bin:lib/clientlibs.jar client 0 live english game0
Edit: I tried saving my normal file as a .command, also failed due to not having sufficient privileges.
Or is there another way to run as an admin besides being an admin?I'm also an admin on my computer if that changes it.
... I ~~~AM~~~ an admin, that isn't a typo with a missing not. And, I'm not sure a .command file will do anything, I've tested it with simply,Originally Posted by Mr Steve
echo Steven
and even that is disallowed because of insufficient privileges. Maybe there is a way to get them to work and I just don't know it. And echos work in shell files and when typed right into Terminal, so it isn't that Macs cant understand the echo command.
bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |