Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

Starting a 562 Server

Newbie Spellweaver
Joined
Aug 4, 2011
Messages
72
Reaction score
3
Location
Brazil
First, Some files you must download:




or

1. Extract Client and File using WinRAR

You can extract at desktop, its better view

2. Changing Your JDK Version

go to Server Folder, open 'runserver.bat' file with notepad (or just right-click and click edit)

Look for something like that

Code:
C:\Program Files\Java\jdk1.6.0_17\bin\javac

Change to you jdk version

Code:
C:\Program Files\Java\[B]JDK VERSION HERE!![/B]\bin\javac

Save and close.

3. Checking Client IP

Go to client folder, then src folder

open first file with notepad, scroll down to line 630 (can be checked with status bar on notepad)

You will see something like that

Code:
if (string.endsWith("[B]127.0.0.1[/B]"))

if the ip isnt 127.0.0.1 change it.. but i think will be at localhost ip already

Save and close

4. Running Server

At this point all ips and stuff must be okay, run the runserver.bat then open the client, it will load

5. Making it online (HAMACHI WAY)

Go to hamachi and make a network with id and pass.
Get your players to download hamachi and enter on this network
Play

5.1 Making it online (NO-IP WAY)
Download NO-IP
Make sure you got your router port opened!
Make a host
change IP on client (on local host client it dont need)
Play

I will put pics and more details soon, for more info like port openning etc, use search bar
 
Last edited:
Using hamachi is advised against, but if you choose to use it you cannot change the ip from the one they give you, and all users must join your hamachi channel.
 
starting these 500+ servers are a pain sometimes -.-
 
Everything its fine, i tested it like 10 minutes ago. all downloads are working.
 
Ok... I'm having a problem starting up the server... here's the window when it hangs up:

Preparing...
A subdirectory or file bin already exists.
1 file(s) copied.
1 file(s) moved.
Compiling core...
completed...
running server...
[2011/12/27 17:16:54] [Fatality]: rs2hd framework
[2011/12/27 17:16:54] [Fatality]: Loading Clans...
[2011/12/27 17:16:54] [Fatality]: Loaded 35 clans.
[2011/12/27 17:16:54] [Fatality]: Loaded 15500item prices.
[ Loaded Corrupted-Pkerz 562 [Beta] Shops ]
[2011/12/27 17:16:56] [Fatality]: Reading mapdata...
[2011/12/27 17:16:56] [Fatality]: Loaded mapdata.
[2011/12/27 17:16:56] [Fatality]: loaded 0 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 3 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 4 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 5 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 19 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 29 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 36 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 38 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 45 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 47 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 63 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 66 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 68 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 69 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 76 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 78 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 79 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 84 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 87 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 89 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 91 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 92 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 112 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 114 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 117 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 119 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 123 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 140 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 141 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 147 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 148 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 152 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 158 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 163 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 165 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 166 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 170 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 171 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 172 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 173 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 182 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 189 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 190 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 193 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 194 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 202 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 205 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 206 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 207 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 216 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 217 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 221 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 226 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 229 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 234 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 235 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 244 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 248 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 253 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 254 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: loaded 255 PacketHandlers.
[2011/12/27 17:16:56] [Fatality]: Loading item definitions...
[2011/12/27 17:17:01] [Fatality]: Loaded 11720 item definitions.
[2011/12/27 17:17:01] [Fatality]: Loading npc definitions...
[2011/12/27 17:17:01] [Fatality]: Loaded 105 npc definitions.
[2011/12/27 17:17:01] [Fatality]: Setting up world...
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.converters.Conversion
Exception: Cannot construct com.rs2hd.model.NPC as it does not have a no-args co
nstructor : Cannot construct com.rs2hd.model.NPC as it does not have a no-args c
onstructor
---- Debugging information ----
message : Cannot construct com.rs2hd.model.NPC as it does not have a
no-args constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces
sException
cause-message : Cannot construct com.rs2hd.model.NPC as it does not have a
no-args constructor
class : java.util.ArrayList
required-type : com.rs2hd.model.NPC
path : /list/npc
line number : 2
-------------------------------
[2011/12/27 17:17:01] [Fatality]: Cannot construct com.rs2hd.model.NPC as it doe
s not have a no-args constructor : Cannot construct com.rs2hd.model.NPC as it do
es not have a no-args constructor
---- Debugging information ----
message : Cannot construct com.rs2hd.model.NPC as it does not have a
no-args constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces
sException
cause-message : Cannot construct com.rs2hd.model.NPC as it does not have a
no-args constructor
class : java.util.ArrayList
required-type : com.rs2hd.model.NPC
path : /list/npc
line number : 2
-------------------------------
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convert(TreeUnmarshaller.java:88)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.AbstractReferenc
eUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convertAnother(TreeUnmarshaller.java:75)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convertAnother(TreeUnmarshaller.java:59)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.converters.collection
s.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:77)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.converters.collection
s.CollectionConverter.populateCollection(CollectionConverter.java:68)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.converters.collection
s.CollectionConverter.unmarshal(CollectionConverter.java:61)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convert(TreeUnmarshaller.java:81)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.AbstractReferenc
eUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convertAnother(TreeUnmarshaller.java:75)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.TreeUnmarshaller
.convertAnother(TreeUnmarshaller.java:59)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.TreeUnmarshaller
.start(TreeUnmarshaller.java:142)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.core.AbstractTreeMars
hallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.XStream.unmarshal(XSt
ream.java:907)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.XStream.unmarshal(XSt
ream.java:893)
[2011/12/27 17:17:01] [Fatality]: com.thoughtworks.xstream.XStream.fromXML(XStre
am.java:845)
[2011/12/27 17:17:01] [Fatality]: com.rs2hd.model.World.setEngine(World.java:375
)
[2011/12/27 17:17:01] [Fatality]: com.rs2hd.GameEngine.<init>(GameEngine.java:15
2)
[2011/12/27 17:17:01] [Fatality]: com.rs2hd.Server.<init>(Server.java:75)
[2011/12/27 17:17:01] [Fatality]: com.rs2hd.Main$1.run(Main.java:35)
[2011/12/27 17:17:01] [Fatality]: java.lang.Thread.run(Unknown Source)
 
Last edited:
[2011/12/27 17:17:01] [Fatality]: Cannot construct com.rs2hd.model.NPC as it doe
s not have a no-args constructor : Cannot construct com.rs2hd.model.NPC as it do
es not have a no-args constructor

In case you get an error like
Code:
Exception: Cannot construct com.rs2hd.model.*** as it does not have a no-args constructor : Cannot construct com.rs2hd.model.*** as it does not have a no-args constructor

Go to the file that error came from on the location:
src/com/rs2hd/model/***.java and open it.

In the beginning you will see:
Code:
public class *** extends *{

Go down until you see the first function and put
Code:
public ***(){}

In front of it, this will add a constructor function WITHOUT arguments to the class which from as far as I can see is required for some reason.

Don't be silly, replace *** with the class name.

This comes from someone with almost no Java knowledge. (Just PHP, C++ and Lua)

Hope this helps :thumbup1:
 
Hey, guys!

So, this is the first time ever I play around with RS server files, in fact it's been years since I last played the original game, but I got very curious and wanted to play :)

So, I came into a problem: the client I got from this thread just freezes during loading at the update part. It says it connected to the update server and never does anything after that. And I don't really know where to start.

Also, I can't seem to figure out where I can control the server more. I'd like to make my own player and start changing things but I just don't know where to go. I tried going to "127.0.0.1:43594" but the browser just sends me an empy file with no extension named "download".

Can anyone give some assistance?
 
In case you get an error like
Code:
Exception: Cannot construct com.rs2hd.model.*** as it does not have a no-args constructor : Cannot construct com.rs2hd.model.*** as it does not have a no-args constructor

Go to the file that error came from on the location:
src/com/rs2hd/model/***.java and open it.

In the beginning you will see:
Code:
public class *** extends *{

Go down until you see the first function and put
Code:
public ***(){}

In front of it, this will add a constructor function WITHOUT arguments to the class which from as far as I can see is required for some reason.

Don't be silly, replace *** with the class name.

This comes from someone with almost no Java knowledge. (Just PHP, C++ and Lua)

Hope this helps :thumbup1:
i did plased the part. still i get the error help me plese
Code:
package com.rs2hd.model;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Random;
import java.util.HashMap;
import java.util.*;
import com.rs2hd.event.Event;
import com.rs2hd.model.NPCDrop.Drop;
import com.rs2hd.GameEngine;
import com.rs2hd.content.Combat.CombatType;
import com.rs2hd.content.DeathEvent;
import com.rs2hd.model.Hits.Hit;
import com.rs2hd.util.Misc;

/**
 * Represents a 'non-player' character in the game.
 * @author Graham
 *
 */
public class NPC extends Entity {
public int giveDrop = 0;
private transient boolean IsFamiliar = false;
public transient int AttackStyle = 0;
public transient int NPCCharges = 0;
public transient boolean UsingThis = false;
public transient int NPCDamage[] = new int[14];
public transient boolean npccanloot=false;
private transient NpcWalk NpcWalk;
public NPC(){}    
public Item dropId(int id, int amt) {
    return new Item(id, amt);
}
 
I had the same problem I used MrBanjo's post and fixed it. NPC, Locator, and items had to have the code added to it.

I edited the files and uploaded them. just replace the with the old ones and the server should run good

 
Back