Thread: 614 Lobby

Results 1 to 5 of 5
  1. #1 614 Lobby 
    Registered Member IwaI's Avatar
    Join Date
    Feb 2014
    Posts
    184
    Thanks given
    12
    Thanks received
    24
    Rep Power
    11
    Well I have added everything that is needed and I have used this tutorial: http://www.rune-server.org/runescape...y-packets.html but it gives me a error or w/e you want to call it: http://gyazo.com/6891a571ce3f4799eccc712065589f38

    If anyone wants to me help me out, then please PM me or just post on this thread and I'd give you teamviewer or my Skype. I really don't find the issue to fix it.

    Thank you.

    My LoginDecoder:

    Code:
    		int a = in.readInt() & 0xff;
    		int b = in.readInt() & 0xff;
    		in.skip(20);
    		String settings = in.readString();
    		in.readInt();
    		/* Cache Idx Verification */
    		int[] CacheIdxs = new int[34];
    		for (int i = 0; i < 34; i++) {
    			CacheIdxs[i] = in.readInt();
    		}
    		for (;;) {
    			if (in.readByte() == 10) {
    				break;
    			}
    		}
    		in.readLong();
    		in.readLong();
    		String username = Misc.formatPlayerNameForProtocol(Misc.longToString(in
    				.readLong()));
    		String password = in.readString();
    		in.readLong();
    		in.readLong();
    		Player player = new Player(username, password, null, null, (short) 0, password, (byte) 0);
    		OutStream outstream = new OutStream();
    		outstream.writeByte(2);
    		ch.setPlayer(player);
    		World.registerConnection(ch, true);
    World.java

    Code:
    	public static void registerConnection(ConnectionHandler p, boolean lobby) {
    		if (lobby)
    			p.getPlayer().loadLobby(p);
    loadLoby()

    Code:
        public void loadLobby(ConnectionHandler connection) {
    		setConnection(connection);
    		setOnline(true);
    		setWorldlist(new WorldList());
            OutStream out = new OutStream();
            OutStream out1 = new OutStream();
            out.writeByte(getRights());
            out1.writeByte(2);
            out1.writeByte(2);
            out1.writeByte(0);
            out1.writeByte(0);
            out1.writeByte(0);
            out1.writeShort(31);
            out1.writeShort(1);
            out1.writeShort(0);
            out1.writeShort(32512);
            out1.writeInt(Misc.IPAddressToNumber("127.0.0.1"));
            out1.writeByte(0);
            out1.writeShort(0);
            out1.writeShort(1);
            out1.writeByte(0);
            out1.putGJString2(getUsername());
            out1.writeByte(0);
            out1.writeInt(1);
            out1.writeShort(1);
            out1.putGJString2("127.0.0.1");
    		int length = out.getOffset();
    		out.writeByte(length);
    		out.writeBytes(out.buffer(), 0, length);
    		getConnection().write(out);
            sendWorldList(true);
        }
    sendWorldList

    Code:
    	public void sendWorldList(boolean getWorldConfiguration) {
            OutStream worldbuffer = new OutStream();
            OutStream out = new OutStream();
            getWorldlist().loadWorldList(worldbuffer, getWorldConfiguration);
            out.writePacketVarShort(48);
            out.writeByte(1);
            out.writeBytes(worldbuffer.getBuffer(), 0, worldbuffer.getOffset());
            out.endPacketVarShort();
            getConnection().write(out);
    	}
    WorldList.java and WorldDef can be found here: http://www.rune-server.org/runescape...y-packets.html
    Reply With Quote  
     

  2. #2  
    Registered Member IwaI's Avatar
    Join Date
    Feb 2014
    Posts
    184
    Thanks given
    12
    Thanks received
    24
    Rep Power
    11
    Bump
    Reply With Quote  
     

  3. #3  
    Registered Member IwaI's Avatar
    Join Date
    Feb 2014
    Posts
    184
    Thanks given
    12
    Thanks received
    24
    Rep Power
    11
    Bump
    Reply With Quote  
     

  4. #4  
    Registered Member IwaI's Avatar
    Join Date
    Feb 2014
    Posts
    184
    Thanks given
    12
    Thanks received
    24
    Rep Power
    11
    Bump
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Mar 2010
    Posts
    2,218
    Thanks given
    170
    Thanks received
    262
    Rep Power
    0
    The best way to find out why it's not working is to debug the whole login method you're using by using system.out.println();'s to see where you went wrong and from there you have a chance to fix it. >.>
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 614 Lobby Packets
    By Sinisoul in forum Configuration
    Replies: 8
    Last Post: 11-20-2010, 08:23 PM
  2. 614 Lobby
    By lolwat in forum Help
    Replies: 1
    Last Post: 11-05-2010, 08:27 AM
  3. 614 lobby server batch file stuck on this
    By Zᴀᴄʜ in forum Help
    Replies: 1
    Last Post: 11-05-2010, 07:42 AM
  4. 613/614 Lobby
    By mgi125 in forum Configuration
    Replies: 36
    Last Post: 08-27-2010, 04:03 PM
  5. 613/614 Lobby ( Experimental )
    By mgi125 in forum Show-off
    Replies: 30
    Last Post: 08-23-2010, 02:10 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •