First of all, you will need to download the EasyRSC source that was created by xEnt. You can download the source here:
http://uppit.com/TF9JKZEasyRSC v1.1 is the most recent (clean) EasyRSC release by xEnt, which was released on the 16th March 2009.
When you have downloaded EasyRSC v1.0, if you extract the .rar file, you should now have a folder titled 'EasyRSC' which contains 3 folders. You should have:
- Client
- Server
- Distributed Client
For the time being, we will
NOT be touching the distributed client folder, as at this stage in development, you should
NOT even be thinking of hosting your server publically!
Straight after downloading EasyRSC v1.0, you will have all the necessary files to start running and editing your own RSC private server. However, we will need to make a few minor changes/checks, so that you can start editing and compiling your JAVA files into the importantly needed clsas files.
First of all, we will replace the 'ant' folder. The current 'ant' folder released with this source will still work, however there is no 'pause' on compiling. This means that if you get compiling errors, the CMD window will automatically close, therefore you can't see your errors without hitting the 'pause' button on your keyboard. I have simply edited the class files within the 'ant' folder and recompiled them so that the CMD window will automatically pause after compiling.
Download the new 'ant' folder here:
http://uppit.com/47yjlrama60x/ant.rarAfter downloading and extracting the new 'ant' folder, copy it and paste it into your 'Client'
AND 'Server' folders. When pasting it, you will be asked to confirm you want to overwrite the existing 'ant' folder.
Now you have done that, we need to make sure the 'Compile.bat' and the 'Run Server.bat' are setup correctly. Go into your 'Client' folder, right click the 'Compile.bat' file and then click 'Edit'. This will open within Notepad.
You should see the following:
- Quote :
taskkill /F /IM java.exe
set PATH=%PATH%;ant\bin
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
ant compile
In order to run the compiler successfully, we need to check the ANT and JAVA paths are set correctly. As we have the 'ant' folder within our 'Client' folder, we do
NOT need to change that path. Now we need to check and make sure the JAVA path is set to our most updated JAVA installed on our system. The bit you will need to be looking at here is the 'jdk1.6.0_03'. To check the most updated version of JAVA, follow the following steps:
- Click the 'START' button.
- Now click the 'RUN' option.
- Now type in: C:\Program Files\Java\
- Click the 'OK' button.
After clicking 'OK' you will have opened up your JAVA folder which should contain numerous folders. The folder we want is the one titled:
Your folder will have another number after the '0_', which is the number we need! On your 'Compile.bat', change the JAVA_HOME path to:
- Quote :
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11
All you need to do is change the
11 to the version you have in your folder. Once you have done that, close and save. Now repeat the same steps for your 'run_client.bat' file and for the same compile and run_server batch files in your 'Server' folder. You should
NOT need to direct your run_server batch file towards your JAVA_HOME.
If you now double click the 'run_server.bat' file, it will launch your server control panel. It will look something like this:
What we now need to do is check the 'client version' so that the client source code has the same client version as the server source code. We can do this by clicking the settings tab on the control panel, and seeing what number is entered in the 'Client Version' text box. The number should read '25'. Once you have checked the server client version, we need to check the client version within the client source code. You can do this by opening the mudclient class which is located in the following dir:
- Quote :
EasyRSC - Client - src - org - rscdaemon - client
When you have your mudclient class open, search for:
- Code:
-
GameWindowMiddleMan.clientVersion = 25;
As you can see, the client version in the mudclient class matches the server's client version. This means that it is ok to run your client and server, and log in!
Now hit the 'Start Server' button on your control panel, and it will start running the server. Once you have run the client, you can now log in with any desired username and password.
PLEASE NOTE: when updating from EasyRSC v1.0 to EasyRSC v1.1, xEnt had messed up the login process where usernames which contained a space we unable to login. The server would still create the players' CFG files, but it is impossible to login with a username which contains a space.
If you want usernames with spaces, please following my tutorial here:
http://rskingdom.com/Thread-Username-Fix