Okay, so Im sure your mostly very new here. When i first signed up for this forums, i did see questions like this. I know everyone is saying to create a 317 first but thats really old so I dont blame them. So here it is, how to start your own RS Server.
NOTE: The server I will be giving you is ALMOST incompleted. You can walk, teleport, friendslist, commands, and some other stuff but most like doors and NPC dont have. Im only here to show you how to start, im not showing you how to add. There are guides for that
ALSO NOTE: Im using Windows 7 for this, its very similar to Windows XP but probably different for other OS systems. If you wish, you can download a Virtual Computer to follow along. Your going to need a Windows CD for this which you can borrow from anyone. As for acquiring a Virtual PC, download VirtualBox [Only registered and activated users can see links. ]
Retrieving a Server
Now, lots of servers here are broken I must admit but this is not the only forum, there is RuneLocus where its even worse (where I came from) and I saw lots of these questions. For this tutorial, we will be using [Only registered and activated users can see links. ] which is a 614/634 based on Dementhium
[Only registered and activated users can see links. ] [Only registered and activated users can see links. ] NOTE: These files have been uploaded using [Only registered and activated users can see links. ]
NOTE: Feel free to look for other servers that interest you but be aware they may be broken or have some errors. What Im providing you is one that worked for me when I had no experience.
Setting up your Java
If you haven't realized by now, RuneScape runs on a programming language called Java. Java is trusted and used on many devices around us like Android. Because of Java, if someone were to create a program or file using Java, it can run on any other operating system because its the same language.
First, lets make sure you have the necessary programs to run your server. Go to your computer and go to your Hard Drive (C:/) and look for Program Files. You may come across that you have 2 like the picture below:
If you do, dont worry, no problem will happen and if you dont, then your still good. Check for a folder called "Java" and you should come across something like this:
If you noticed, I have 2 types of folders, one called "JDK" and one called "JRE". There both used for Java AND ARE REQUIRED! If you dont have one of them or both, you can download them [Only registered and activated users can see links. ] (NOTE: This will take you directly to the offical Java Download page, download both from that site.
Fixing the Errors.... NOTE: Im only trying to cover the most commen errors gotten while running any server. There are lots of types of errors but like i said, im covering the commen ones. If Im missing some, please post the error (preferably with a picture) and how to fix it.
Outdated XStream
Due to the newer types of Java's, your XStream becomes old, if you do have an old XStream, you will get an error something like this:
[Only registered and activated users can see links. ] (NOTE: This will lead you to a PasteBin with a similar error)
How to Fix this Error:
Do not be surprised that you get this, most people are updating to the latest Java which causes this. Many people will say to download the newest version of XStream from the official page located [Only registered and activated users can see links. ].
Still, it may cause the problem. From what I remember, there is a missing file in the XStream itself and luckily, I acquired a working version. Click [Only registered and activated users can see links. ] to download the working XStream files (NOTE: This link will take you to a download version hosted on MultiUpload)
Once you have downloaded these files, go back to your RuneUnited Server and find a file called "lib", go into it and you should see 4 files like these:
Delete the 2 files called "xpp.jar" and "xstream.jar" and replace it with the 2 files in the .zip file you downloaded above. Then, Compile and run the server, it should work.
Cannot find Specific Path
When you try to run or compile the server, you may get an error that looks like this:
How to fix:
Its very easy, what its saying is that it cannot find the compiler which is located in the Java folder. In order to fix this, go to your "Program Files" located in your drive (C:/ in my situation) and copy the path and then paste it into the Notepad, save, and run the .bat script
Making your server live!
If you have fixed it or you want to play the current version with others, they need a way to connect to it. When you run your server, it "broadcasts" and any client can connect. The thing is, how people will connect to you because if you have a Dynamic IP (Which most people have nowadays), your IP will change and you will loose your players. We are going to create a No-IP account
Create an account
First step is to head over to the No-IP Homepage which can be found at [Only registered and activated users can see links. ] and create an account
Fill out the information given and then login, and click on "Add a Host", then fill out the information here:
Now, go ahead and download the No-IP DUC program [Only registered and activated users can see links. ] (NOTE: This link will take you to the offical download from the No-IP website)
Once you download, login and click "Select Host", check your host and click "Save", and then refresh.
Port-Forward NOTE: If you ARE NOT using a router to connect to the internet (meaning your connecting to the internet through a cable), you can SKIP THIS. If your using a wireless connection, then continue.
First of all, you need to find out how to connect to your wireless router. Many wireless routers like NETGEAR have a address, a username, and a password of the router under it like [Only registered and activated users can see links. ] with the commen username "admin" and the commen password, "password" or "admin".
If those dont work, you can find out about your router by Googling it or by heading over to [Only registered and activated users can see links. ]
If your already there or you know, you might want to download the portforward checker which makes sure your port is actually open, you can download it [Only registered and activated users can see links. ]. If you dont want to download programs, you can use [Only registered and activated users can see links. ] which does the same but is less accurate and may give a false negative/positive.
Making your Client connect to your Server
Now that you have your computer forwarded and your NO-IP configured, run your server. Now, go to the RuneUnited Client folder and search for a file called "launch.java", then open up Notepad and drag the .java file into the Notepad. There are 2 spots where you put your IP
First Spot
For the first spot, scroll down a little and you should see:
Code:
public static boolean rs = false;
public static Properties aProperties1 = new Properties();
public JFrame aJFrame2;
public JPanel aJPanel3 = new JPanel();
public static String ip = "Put your ip here";
Now replace "Put your ip here" with your actual IP, in this case, its 127.0.0.1 for me so it would look like this:
Code:
public static boolean rs = false;
public static Properties aProperties1 = new Properties();
public JFrame aJFrame2;
public JPanel aJPanel3 = new JPanel();
public static String ip = "127.0.0.1";
Now scroll down all the way to the bottom until you see this:
Code:
public URL getCodeBase() {
URL url;
try {
if (rs) {
url = new URL("http://world16.runescape.com");
} else {
url = new URL("and your ip here too");
}
} catch (Exception exception) {
exception.printStackTrace();
return null;
Replace "and your ip here too" with your IP again EXCEPT THIS TIME, you add "http://" to it so it would look like this for me:
Code:
public URL getCodeBase() {
URL url;
try {
if (rs) {
url = new URL("http://world16.runescape.com");
} else {
url = new URL("http://127.0.0.1");
}
} catch (Exception exception) {
exception.printStackTrace();
return null;
}
return url;
Now, save the file and make sure your server is launched. Also turn off your Firewall so nothing is blocking it, if your firewall pops up saying that "Java" needs to connect or something like that, allow it. Now just go ahead and start your client!
Wait! How do I make myself admin?
First of all, create an account by simply putting your username and password that you desire and login. Now go to the server folder and look for a file called "ActionSender.java", drag the file into Notepad and scroll down a little until you see this:
Code:
public class ActionSender {
public static int messageCounter = 1;
public static final Random r = new Random();
public static final String[] OWNERS = {"Hope"};
public static final String[] ADMINS = {"Evisonny"};
public static final String[] MODERATORS = {"Hackz4life", "Jeremy"};
private static short frameIndex;
public static short getFrameIndex() {
return frameIndex;
Change "OWNERS", "ADMINS", and "MODERATORS" to whatever you desire.
Wait! What about commands?
Only owners and admins can spawn NPCs, armour, tele, and others.
Setlevel: This command allows you to change your skill levels, for example, if i wanted 99 attack, i can type "setlevel 0 99" where 0 is the skill number. To find the others, just keep trying
Tele: There is a text document with a list of coordinates in the sever file, type "tele" and put the numbers and hit enter
Teleto: If you wish to teleport to a player, type "teleto test111" where test111 is the username
Teletome: If you wish to teleport a player to you, type "teletome test111" where test111 is the player
Item: There is a text document showing all the item numbers, all you have to do is type "item XXXX 1" where XXXX is the item number and 1 is how many of the item you wish
Kick/Ban: If you wish to kick/ban a player from your server, type "kick/ban test111" where test111 is the username (WARNING: If you decide to type your username, you can kick or ban yourself from the server)
There is lots more to go around, thats where you come in and start finding it
Enjoy!
This must have took a long time to write it, good job !
Thanks, after all the asking, i never gave back, this is one of the guides. It did take me about a week (I have school, tests, HW, and others) and im glad im done.