Ahaha much Thanks, I've just set my server up, and I need help with just the player.java (tried making myself admin), but after inserting the
Code:
Code:
if (username.equalsIgnoreCase("USERNAME")) { rights = 7;
}
I keep receiving this
error in run_game.bat (server) on trying to login:
[Launcher] Game Server took 8373 milli seconds to launch.
[Login client] Received packet
ACKET_CONSOLEMSG
[Login server] Hello there from login!
[LoginPacketsDecoder]
[Login client] Received packet
ACKET_LOGINRSP
java.lang.Error: Unresolved compilation problem:
Syntax error, insert ";" to complete BlockStatements
at com.rs.game.player.Player.init(Player.java:510)
at com.rs.executor.PlayerHandlerThread.initPlayer(Pla yerHandlerThread.java:202)
at com.rs.executor.PlayerHandlerThread.processLoginSe ssion(PlayerHandlerThread.java:149)
at com.rs.executor.PlayerHandlerThread.run(PlayerHand lerThread.java:63)
I've looked at my
player.java code, line 510 where I made the aforesaid insertion of code (to make myself owner), take a look:
Code:
if (!lobby) {
setDirection(Utils.getAngle(0, -1));
logicPackets = new ConcurrentLinkedQueue<LogicPacket>();
switchItemCache = Collections.synchronizedList(new ArrayList<Integer>());
World.addPlayer(this);
World.updateEntityRegion(this);
} else {
World.addLobbyPlayer(this);
}
if (Settings.DEBUG)
Logger.log(this, "Initiated player: " + username);
}
I've done the same for the
PlayerHandlerThread:
line 61 to 65
Code:
Iterator<Map.Entry<Integer, LoginDetails>> it$ = waitingLoginSessions.entrySet().iterator();
while (it$.hasNext()) {
if (processLoginSession(it$.next().getValue()))
it$.remove();
}
143 to 147
Code:
if (details.response_status == 255) { // we need to wait bit more and then retry
details.waitTime = Utils.currentTimeMillis() + Settings.LOGIN_SERVER_RETRY_DELAY;
details.step = 3;
}
200 to 203
Code:
private final void initPlayer(Player player, LoginDetails details) {
try {
player.init(details.session, details.lobby, details.username, details.displayName, details.macAddress, details.email, details.rights, details.messageIcon, details.masterLogin, details.donator, details.extremeDonator, details.support, details.gfxDesigner, details.muted, details.lastVote, details.displayMode, details.screenWidth, details.screenHeight, details.machineInfo, new IsaacKeyPair(details.sessionKeys));
if (details.lobby) {
Also, someone told me I don't need to edit the player.java file to become owner, and that I can just "use the settings".. where exactly are those settings?
Thanks a lot again!
P.S., I was talking about Mx3 all the while.