This is not my guide. In fact it's the guide from moparscape I am just putting it here because it is helpful and is of course a guide on how to make a server.
How to make a private serverHow to make a server
The only Chapter which is a little bit difficult for some people is the No-IP part or Port Forwarding.
Other parts are easy enough for everyone.
Do NOT use this on any other site without permission.
-Contents-
Chapter 1 - Getting JDK
Chapter 2 - Downloading and Installing No-Ip
Chapter 3 - Getting a Client
Chapter 4 - Opening 43594 (Default Port)
Chapter 5 - Port Forwarding
Chapter 6 - Getting a Source
Chapter 7 - Fixing the error 'The system could not find the path specified'
Chapter 8 - Server Edit's
Chapter 9 - Status
Chapter 10 - Lists
Chapter 11 - Tools
Chapter 1
Getting JDK
First we need JDK 6.
Download it
hereClick JDK 6 Update 5, if you do get a popup, click Yes.
Check the box 'I agree' and click on one of the 2 downloads you can choose and install it.
Chapter 2
Downloading and Installing No-IP
You can download No-IP from the official site.
Go to the official site by clicking
here.
Click on the register tab and register an account.
Once registered and logged in click the Downloads tab.
Now you will have a page with something like this.
In this tutorial I will teach everything for windows.
So click on Windows.
Now click on the link/image to download.com and you can download and install it through that page.
Once you installed No-IP you will have a button on your desktop to run it.
Run it and your No-IP will open.
It will look like this.
On the bottom you see I made one part a little bit red with a low opacity.
Click the 'Here' to add a new IP.
Let the page load and you will see this button somewhere.
Click on it to add an IP.
This page will have 2 Fields.
Hostname information and E-Mail settings.
Just ignore the E-Mail field.
The Hostname field will look like this.
At the first text field fill in your server name.
Click on the image to view the list of domains you can choose, or if your already on that real page you can see it also.
The Ip Address part will auto change to your IP, do not change it.
If it doesn't fill in your IP automatically use the IP below:
This is your IP. ^
Once you're done click 'Create Host' at the bottom and click the 'Refresh' at the No-IP Menu on your computer.
Chapter 3
Getting a client
To play a server you will need a client.
You can make your own client but for newcomers it is not very helpful.
So I will advise you to download the Moparscape client.
You can download it through this
pageJust click free, wait for the timer, type in the code and download it.
Chapter 4
Opening 43594 (Default Port)
Open your control panel. Which can be accessed from the right colum in my computers or the start menu
Open your windows firewall
Open the Exceptions tab and at the bottom you should see a button "Add Port".
Click on it, and add your server name or whatever you want it to be at the Name field.
At the Port number fill in 43594.
And make sure the TCP box has been checked.
Chapter 5
Port forwarding (Router Users, Using Linksys)
You don't use linksys? Find your router at
http://www.portforward.com/english/routers/port_forwarding/routerindex.htmand follow the tutorial.
Open your cmd by going to Start > Run > cmd.
Type in ipconfig
It will say your default gateway.
Open a web browser like internet explorer. Netscape. or firefox. Enter the default gateway address in the address bar of your browser. In the picture above the address bar has
http://www.google.com in it. Just replace all of that with the default gateway address, which is the IP of your router. By default for linksys model WRT54GC the ip should be 192.168.62.1
You should see a box prompting you for your username and password. Enter your username and password now. By default for this router brand and model the username is blank, and the password is admin. Click the Ok button to log in to your router.
Click the Applications & Gaming link near the top of the page.
The menu under that should change. In this new menu, click Port Range Forwarding.
When you're finished, click Save Settings near the bottom of the screen to save your changes.
Example:
Application Name: RSPS
Start - End Port: 43594-43594 (Change to which ports to want to enable)
Protocol: Both
To IP Address: Your IP at Start > Run > Cmd > ipconfig
Enabled: Checked/Yes
Chapter 6
Getting a source
To make your own server you need a source.
The best and easy way is by downloading it from the Download section.
But be careful! Some sources can contain trojans, keyloggers and such things.
So I advise you to just download the most used sources.
Quote
Once you downloaded it you can start editing the source.
The most things you need to edit are in client.java.
Open it and Press Ctrl + H.
In the first field fill in the source's server name.
In the second field fill in the name of your server.
Now press replace all.
Chapter 7 - The error 'The system could not find the path specified.'
Open up "My Computer".
Click "View System information"
Click "Advanced".
Click "Environment Variables".
Under "User Variables" click "New".
Name it "CLASSPATH" and for the "Variable Value" (only if you have JDK 6u5) put this in:
CLASSPATH=C:\Program Files\Java\jdk1.6.0_05\bin;%CLASSPATH%;
If you have a different version just copy and paste the code above and change the version number to your version
CLASSPATH=C:\Program Files\Java\jdk
1.6.0_02\bin;%CLASSPATH%;
Under "User Variables" click "New".
Name it "PATH" and for the "Variable Value" (only if you have JDK 6u5) put this in:
C:\Program Files\Java\jdk1.6.0_05\bin
So copy paste and change the version to your current version
C:\Program Files\Java\jdk
1.6.0_05\bin
Click "OK".
Click "OK".
Your computer now recognizes Java.
Server Edits[/color]
Making yourself an admin
Testscape & Many other sources
Go into client.java.
Press Ctrl + F.
And fill in this.
Code:
//start of moderator/admin list, 1 = mod, 2 = staff, 3 = admin
Under that you will see something like this for example.
Code:
if (playerName.equalsIgnoreCase("admin"))
{
playerRights = 3;
}
If you look at it instead of just directly editing it and not learning something you know what this is.
Its just like 'If the name of the player is: admin give him playerrights 3 (Owner rights)'
Player Rights 3 = Server Owner
Player Rights 2 = Server Admin
Player Rights 1 = Server Player Moderator
NOTE: In some basic sources like testscape the server owners can't see their own crown.
Don't be affraid, other people can see it!
In JorsaScape (Pimpscape) based servers you can just open the datafolder and admins/administrators/staff.txt and add a new player to it.
I don't know the file name really since many Jorsa/Pimpscape based sources are changing the file name.
Adding NPC's
To add NPC's you work in autospawn.cfg
Open it and you will see many things looking like eachother.
Now add this somewhere
Code:
spawn = NpcID CoordX CoordY 0 0 0 0 0 2 NPC Name
Change NpcID to the ID of the npc.
Change CoordX and CoordY to the coords where you want the npc to be.
If you don't know how to get the coords press F4 (Moparscape client).
Also, no your not a ub3r good coder when you made a command or added a npc.
Compiling
After every update in the .java files you have to compile it.
Compiling will make .class files off them and your server runs on them.
For just an easy compiler make a new text file with notepad.
Add this to it:
Code:
@echo off
title Server Compiler
"C:\Program Files\Java\jdk1.5.0_06\bin\javac.exe" -cp . *.java
pause
copy the code above paste it and change the version to your current version
@echo off
title Server Compiler
"C:\Program Files\Java\jdk
1.5.0_06\bin\javac.exe" -cp . *.java
pause
Click Save as...
And change file type to 'All Files' and name it compile.bat
Now when running the compile.bat you will compile your server.
Running the server
To run the server you just run 'Run.bat' or however it is called in your source.
I can't give you an code for it because some sources have different folders to save the class files in.
Make sure your No-IP is running!
Questions, Answers on them are allowed.
Corrections are also welcome.
Chapter 9
Checking server status
Click
here for a status checker.
Also if you want an automatic updating status image.
You can use this
Code:
[img]http://www.runelocus.com/tools/statusimg.php?server=####:43594[/img]
#### == The IP of your server
43594 == Your Server Port, change it if you have another port.
Chapter 10 - Lists
Item list -
http://runelocus.com/index.php?action=itemlistObject list -
http://runelocus.com/index.php?action=objectlistNPC List -
http://runelocus.com/index.php?action=npclist^ If you use common sense you know these don't include the new items.
Chapter 11 - Tools
Spawn command maker -
http://runelocus.com/index.php?action=cmdmakerAutospawn NPCs maker -
http://runelocus.com/index.php?action=npcspawncreatorDrops spawn maker -
http://runelocus.com/index.php?action=dropscreator^ More to come, please note that these tools only allow you to make one item/drop/npc spawn at once, we want you to learn how to make it yourself.