Solvedrr update

Posts 1–5 of 5 · Page 1 of 1
rr update
hi i updated my realm relay from a site but it doesnt work here is the cmd.exe


 
cmd
14:50:50 Connected Socket[addr=/127.0.0.1,port=50263,localport=2050]
14:50:50 Waiting for HELLO from client...
java****.EOFException
at java****.DataInputStream.readFully(Unknown Source)
at java****.DataInputStream.readUTF(Unknown Source)
at java****.DataInputStream.readUTF(Unknown Source)
at realmrelay.packets.client.HelloPacket.parseFromInp ut(HelloPacket.java
:32)
at realmrelay.packets.Packet.create(Packet.java:145)
at realmrelay****TMGRelay$2.run(ROTMGRelay.java:234)
at java.lang.Thread.run(Unknown Source)
14:50:50 Disconnected Socket[addr=/127.0.0.1,port=50263,localport=2050]


can you please post your packets.xml or what is neccessary? thanks
You using outdated HELLO packet.
Correct structure is
Code:
public class HelloPacket extends Packet {

    public String buildVersion;
    public int gameId;
    public String guid;
    public String password;
    public String secret;
    public int randomInt1;
    public int randomInt2;
    public int keyTime;

    public byte[] key = new byte[0];
    public byte[] obf0 = new byte[0];
    public byte[] string = new byte[0]; //can be deleted

    public String obf1;
    public String obf2;
    public String obf3;
    public String obf4;
    public String obf5;

    @
    Override
    public void parseFromInput(DataInput in ) throws IOException {
        
    	this.buildVersion = in.readUTF();
    	this.gameId = in.readInt();
    	this.guid = in.readUTF();
    	this.randomInt1 = in.readInt();
    	this.password = in.readUTF();
    	this.randomInt2 = in.readInt();
    	this.secret = in.readUTF();
    	
    	this.keyTime = in.readInt();
    	this.key = new byte[in.readShort()];
    	in.readFully(this.key);
    	this.obf0 = new byte[in.readInt()];
    	in.readFully(this.obf0);
    	
    	this.obf1 = in.readUTF();
        this.obf2 = in.readUTF();
        this.obf3 = in.readUTF();
        this.obf4 = in.readUTF();
        this.obf5 = in.readUTF();

    }

    @
    Override
    public void writeToOutput(DataOutput out) throws IOException {
        out.writeUTF(this.buildVersion);
        out.writeInt(this.gameId);
        out.writeUTF(this.guid);
        out.writeInt(this.randomInt1);
        out.writeUTF(this.password);
        out.writeInt(this.randomInt2);
        out.writeUTF(this.secret);
        
        out.writeInt(this.keyTime);
        out.writeShort(this.key.length);
        out.write(this.key);
        out.writeInt(this.obf0.length);
        out.write(this.obf0);
        
        out.writeUTF(this.obf1);
        out.writeUTF(this.obf2);
        out.writeUTF(this.obf3);
        out.writeUTF(this.obf4);
        out.writeUTF(this.obf5);
    }

}
Quote Originally Posted by kola95 View Post
You using outdated HELLO packet.
Correct structure is
Code:
public class HelloPacket extends Packet {

    public String buildVersion;
    public int gameId;
    public String guid;
    public String password;
    public String secret;
    public int randomInt1;
    public int randomInt2;
    public int keyTime;

    public byte[] key = new byte[0];
    public byte[] obf0 = new byte[0];
    public byte[] string = new byte[0]; //can be deleted

    public String obf1;
    public String obf2;
    public String obf3;
    public String obf4;
    public String obf5;

    @
    Override
    public void parseFromInput(DataInput in ) throws IOException {
        
    	this.buildVersion = in.readUTF();
    	this.gameId = in.readInt();
    	this.guid = in.readUTF();
    	this.randomInt1 = in.readInt();
    	this.password = in.readUTF();
    	this.randomInt2 = in.readInt();
    	this.secret = in.readUTF();
    	
    	this.keyTime = in.readInt();
    	this.key = new byte[in.readShort()];
    	in.readFully(this.key);
    	this.obf0 = new byte[in.readInt()];
    	in.readFully(this.obf0);
    	
    	this.obf1 = in.readUTF();
        this.obf2 = in.readUTF();
        this.obf3 = in.readUTF();
        this.obf4 = in.readUTF();
        this.obf5 = in.readUTF();

    }

    @
    Override
    public void writeToOutput(DataOutput out) throws IOException {
        out.writeUTF(this.buildVersion);
        out.writeInt(this.gameId);
        out.writeUTF(this.guid);
        out.writeInt(this.randomInt1);
        out.writeUTF(this.password);
        out.writeInt(this.randomInt2);
        out.writeUTF(this.secret);
        
        out.writeInt(this.keyTime);
        out.writeShort(this.key.length);
        out.write(this.key);
        out.writeInt(this.obf0.length);
        out.write(this.obf0);
        
        out.writeUTF(this.obf1);
        out.writeUTF(this.obf2);
        out.writeUTF(this.obf3);
        out.writeUTF(this.obf4);
        out.writeUTF(this.obf5);
    }

}
No need to leave "// can be deleted", just remove it.
thx, finally got it running
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us