[Tut]Basics of 508 servers

Newbie Spellweaver
Joined
Feb 18, 2007
Messages
99
Reaction score
0
Ok, well this is just a quick tutorial on how to run the basics of 508 server's. I may add more information soon, not sure.

Thread contents;
1. Running a 508 server
2. Opening/running a 508 client
3. Making yourself admin

1. Running a 508
Firstly, you will need to get a 508 server source (Not posting a link as they are from another forum). Once you have the source, and you have extracted it, you shall need to go in to the CMD file, and edit the run.bat file to suite your JDK version, and then open it, tell people your IP and then they can connect.

2. Opening/running a 508 client
Well, to play a 508 server, you obviosly need a 508 client! Once you have a 508 client and cache, you need to make a new folder in your C:\ drive and drag the cache file in there, and then run your client once you have edited it to suite your connection details, to do this, you need to edit client.java, search (ctrl+f) for 127.1.0.0, or me6.runescape.com, then you need to edit that to your IP

3. Making yourself admin
To make yourself, and others admin you shall need to go into login.java (rs2>palidino76>io), once you are in that directory, open up the login.java file and search (ctrl+f) for p.rights = 2; there shall be a username already there, edit that to what your username on the server is/shall be. You can also make it p.rghts = 1; for when you are making another person mod.

Please note, this was the first tutorial I have ever wrote in my three years of coding different languages, please tell me how I could improve it for later tutorials.
 
Nice one, hopefully plus900 will understand how to make servers now :D

lmao joke man XD!

But good one, ill rep ya
 
Lol at your comment Joe, hopefully he will? xD, I'm having to help with his atm, he uses tutorials, its like EWWW, seen as though hes probably coded Java for a lot longer than me, as I only started doing it properly when I got a 508, I was a tut noob on 377<3

Anyway, thanks for rep, and how do you rep people?
 
I did as u told i went in the login file and i changed the name but
when i log in. im still nothing, Nothing happend..
i didnt had a crown or so.
so, i went back to the login.java file but there still stands my name =S
What do i do now :S?
 
For those who would like to use kind of complicated way of fixing compiler:
1) Download the latest JDK . It should be "jdk1.6.0_11"
2) Install it.
3) Go to "C:\Program Files\Java\" and make sure you have folder called "jdk1.6.0_11" in there.
If you have then you can fix the compiler.
4) Now go to the compiler and make a right click on it and chose "Edit"
5) It should show you a text document:
Example of my compiler:
Code:
@echo off
cd ../src
@echo ------------ Compiling Main ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/*.java
@echo ------------ Compiling players ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/players/*.java
@echo ------------ Compiling players update ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/players/update/*.java
@echo ------------ Compiling players items ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/players/items/*.java
@echo ------------ Compiling IO ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/io/*.java
@echo ------------ Compiling IO packets ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/io/packets/*.java
@echo ------------ Compiling NET ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/net/*.java
@echo ------------ Compiling Util ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/util/*.java
@echo ------------ Compiling World Mapdata ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/world/mapdata/*.java
@echo ------------ Compiling World Items ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/world/items/*.java
@echo ------------ Compiling NPCs ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/npcs/*.java
@echo ------------ Compiling NPCs Update ------------
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . -d ../bin/ ./naikboi/rs2/npcs/update/*.java
@echo ------------ Compiling Complete ------------
pause

Notice that I'm using "jdk1.6.0_06"

Now:
You may see some lines like these :
Code:
@echo ------------ Compiling Main ------------
javac -cp . -d ../bin/ ./naikboi/rs2/*.java

What you may do is delete the JAVAC and type in your javac.exe's dir.
It should be : "C:\Program Files\Java\jdk1.6.0_11"
Notice that it depends on what version of JDK are you using.
WARNING: DO NOT FORGET "C:\Program Files\Java\jdk1.6.0_11"

Now if you have done that whit all of the lines , you can save and close the file , and run it , should work now .

Hope it helped any one .
 
@echo off
cd ../src
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/players/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/players/update/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/players/items/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/players/combat/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/io*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/io/packets/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/net/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/util/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/world/mapdata/*.java
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/world/items/*.java
pause

but im using the phatt one so i need other tekst in it what do i type in? i gotr jdk 1.6.0
 
so now i came on something like this

@echo off
cd ../Bulby
@echo ------------ Compiling Main ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/io/*.java
@echo ------------ Compiling players ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/players/*.java
@echo ------------ Compiling players update ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/players/update/*.java
@echo ------------ Compiling players items ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/players/items/*.java
@echo ------------ Compiling IO ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/io/*.java
@echo ------------ Compiling IO packets ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/io/packets/*.java
@echo ------------ Compiling NET ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/net/*.java
@echo ------------ Compiling Util ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/util/*.java
@echo ------------ Compiling World Mapdata ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/world/mapdata/*.java
@echo ------------ Compiling World Items ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/world/items/*.java
@echo ------------ Compiling NPCs ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/npcs/*.java
@echo ------------ Compiling NPCs Update ------------
"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -cp . -d ../bin/ ./Bulby/npcs/update/*.java
@echo ------------ Compiling Complete ------------
pause
 
Ok, well this is just a quick tutorial on how to run the basics of 508 server's. I may add more information soon, not sure.

Thread contents;
1. Running a 508 server
2. Opening/running a 508 client
3. Making yourself admin

1. Running a 508
Firstly, you will need to get a 508 server source (Not posting a link as they are from another forum). Once you have the source, and you have extracted it, you shall need to go in to the CMD file, and edit the run.bat file to suite your JDK version, and then open it, tell people your IP and then they can connect.

2. Opening/running a 508 client
Well, to play a 508 server, you obviosly need a 508 client! Once you have a 508 client and cache, you need to make a new folder in your C:\ drive and drag the cache file in there, and then run your client once you have edited it to suite your connection details, to do this, you need to edit client.java, search (ctrl+f) for 127.1.0.0, or me6.runescape.com, then you need to edit that to your IP

3. Making yourself admin
To make yourself, and others admin you shall need to go into login.java (rs2>palidino76>io), once you are in that directory, open up the login.java file and search (ctrl+f) for p.rights = 2; there shall be a username already there, edit that to what your username on the server is/shall be. You can also make it p.rghts = 1; for when you are making another person mod.

Please note, this was the first tutorial I have ever wrote in my three years of coding different languages, please tell me how I could improve it for later tutorials.

The last part is kinda stupid, why would you load the player rights from the server instead of the player file itself
should go into the character file using notepad++ or changing the save type to a txt document
 
Back