thomas-crane / realmlib-net Goto Github PK
View Code? Open in Web Editor NEWA networking library for Realm of the Mad God.
Home Page: https://thomas-crane.github.io/realmlib-net/
License: MIT License
A networking library for Realm of the Mad God.
Home Page: https://thomas-crane.github.io/realmlib-net/
License: MIT License
The values of commandType
correspond to these actions:
1 = follow,
2 = unfollow,
3 = release
Hi,
In the 34.2.1 update, Deca have added a new integer type to deal with disconnection issues and have used this type inside the UPDATE packet and for StatData values. I have tried to add support for this myself but I'm terrible with bitwise operation and I think the parsed variable could have a different byte size each time. The new class is below:
public class CompressedInt
{
public static function Read(param1:IDataInput) : int
{
var _loc2_:* = 0;
var _loc3_:int = param1.readUnsignedByte();
var _loc4_:* = (_loc3_ & 64) != 0;
var _loc5_:int = 6;
_loc2_ = _loc3_ & 63;
while(_loc3_ & 128)
{
_loc3_ = param1.readUnsignedByte();
_loc2_ = _loc2_ | (_loc3_ & 127) << _loc5_;
_loc5_ = _loc5_ + 7;
}
if(_loc4_)
{
_loc2_ = int(-_loc2_);
}
return _loc2_;
}
}
This is used inside the UPDATE packet for the length of NewObjs, the length of Drops and the items inside Drops.
It is then used in StatData for the statType and statValue. Then finally as the objectId and stats length in ObjectStatusData.
Without these changes you will get PacketIO errors when receiving UPDATE and anything with StatData:
[13:54:18 | USWest2] Received PacketIO error: The value of "offset" is out of range. It must be >= 0 and <= 4434. Received -25921
[13:54:18 | USWest3] Received PacketIO error: Invalid array length
Sorry for the hacky comment but I couldn't provide a pull request as I'm unsure of the fix here. You can probably get better information with the diff from the new client.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.