Results 1 to 10 of 10
  1. #1
    DIA4A's Avatar
    Join Date
    Jan 2020
    Gender
    male
    Posts
    100
    Reputation
    19
    Thanks
    157

    Additions To Packets

    As of the X34.2.1 a few things were changed + added to packets, namely the addition of something called "CompressedInt" and 2 extra variables received with NewTick, one of which now also needs to be sent with Move
    CompressedInt is used for both short and normal integers and is only read, never written from the client
    Code:
    int m_nRead(Packet* m_pPacket)
    {
    	byte m_nStartByte = m_pPacket->m_pReadBytes<byte>();
    	bool m_bFlipValue = (m_nStartByte & 64) != 0;
    	int m_nShiftAmmount = 6;
    	int m_nFinalValue = m_nStartByte & 63;
    	while (m_nStartByte & 128)
    	{
    		m_nStartByte = m_pPacket->m_pReadBytes<byte>();
    		m_nFinalValue = m_nFinalValue | (m_nStartByte & 127) << m_nShiftAmmount;
    		m_nShiftAmmount += 7;
    	}
    	if (m_bFlipValue)
    	{
    		m_nFinalValue = int(-m_nFinalValue);
    	}
    	return m_nFinalValue;
    }
    Its used in StatData for the value if its an integer as well for all the counts in the Update packets
    It might also be used somewhere else but I havent encountered any issue ever since adding the compressed int to those 2
    Last edited by DIA4A; 07-17-2020 at 04:53 AM.

  2. #2
    smackerROTMG's Avatar
    Join Date
    Jul 2020
    Gender
    female
    Posts
    16
    Reputation
    10
    Thanks
    2
    Yeah, like you said move also got one added
    "serverRealTimeMSofLastNewTick_") type QName(PackageNamespace(""), "uint") end

    So you fixed new tick and I assume your proxy is working?

  3. #3
    DIA4A's Avatar
    Join Date
    Jan 2020
    Gender
    male
    Posts
    100
    Reputation
    19
    Thanks
    157
    Quote Originally Posted by smackerROTMG View Post
    Yeah, like you said move also got one added
    "serverRealTimeMSofLastNewTick_") type QName(PackageNamespace(""), "uint") end

    So you fixed new tick and I assume your proxy is working?
    Not a proxy and it indeed works, moving around, getting all entities, tiles, connecting to portals and so on

  4. #4
    smackerROTMG's Avatar
    Join Date
    Jul 2020
    Gender
    female
    Posts
    16
    Reputation
    10
    Thanks
    2
    Okay, I'm updating proxy and having issues but think I'll get it, just need to mess around with statdata then

  5. #5
    enmity4's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    35
    Reputation
    10
    Thanks
    33
    message me if you need an updated version of nrelay with the compressedint change

  6. The Following User Says Thank You to enmity4 For This Useful Post:

    spazmonkey (07-18-2020)

  7. #6
    smackerROTMG's Avatar
    Join Date
    Jul 2020
    Gender
    female
    Posts
    16
    Reputation
    10
    Thanks
    2
    I had my krelay updated, but after this couldn't figure it out. Anyone else?

  8. #7
    059's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    California
    Posts
    3,314
    Reputation
    700
    Thanks
    92,731
    Quote Originally Posted by smackerROTMG View Post
    I had my krelay updated, but after this couldn't figure it out. Anyone else?
    to anyone wondering, it's "Variable Length Quantity"
    I used the C# one here as a reference after figuring out what it was:
    https://stackoverflow.com/a/51352160
    My Vouches
    Having an issue with RotMG? Check for the solution here.


    Need Realm items? Come to RealmStock!

    Accepting PayPal - Bitcoin - Giftcards
    Selling ST Sets, Class Top Sets, Life Pots, and much more!


    Find it here: MPGH Sales Thread

  9. The Following User Says Thank You to 059 For This Useful Post:

    smackerROTMG (07-24-2020)

  10. #8
    smackerROTMG's Avatar
    Join Date
    Jul 2020
    Gender
    female
    Posts
    16
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by 059 View Post
    to anyone wondering, it's "Variable Length Quantity"
    I used the C# one here as a reference after figuring out what it was:
    https://stackoverflow.com/a/51352160
    Thank you good sir, will look into it

  11. #9
    LucinaOfYlisse's Avatar
    Join Date
    Jun 2020
    Gender
    female
    Posts
    21
    Reputation
    10
    Thanks
    5
    My Mood
    Amused
    isn't this a pretty bad use case for it

  12. #10
    Uys's Avatar
    Join Date
    Jul 2020
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    12
    Quote Originally Posted by enmity4 View Post
    message me if you need an updated version of nrelay with the compressedint change
    can u im it to me? i have no idea how this shitty website works

  13. The Following User Says Thank You to Uys For This Useful Post:

    Plus22 (08-01-2020)

Similar Threads

  1. packet editing
    By terence in forum Hack Requests
    Replies: 1
    Last Post: 09-23-2007, 07:51 AM
  2. Packets & Visual Basic
    By BadBob in forum Hack Requests
    Replies: 5
    Last Post: 07-20-2006, 09:28 PM
  3. Flying / Jump Packet
    By Bull3t in forum WarRock - International Hacks
    Replies: 14
    Last Post: 01-16-2006, 06:32 PM
  4. warrock wpe packet info
    By kvmn8 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 01-04-2006, 08:36 PM
  5. Sugestion--Post Saved packets (WR)
    By wardo1926 in forum General Game Hacking
    Replies: 12
    Last Post: 01-03-2006, 10:41 AM