Most visitors online was 8830 , on 6 Feb 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!ITT Phail tries to figure out the flag systemI wish I could replay packets like you
ITT Phail tries to figure out the flag system
[18:47:09] <~Cosmos> Everance
[18:47:11] <~Cosmos> What was that link again
[18:47:51] <+Everance>You must be registered to see links
[18:47:55] <+Everance> you should really start using it
[18:47:57] <+Everance> it's nice
[18:48:05] <+Everance> you can host your own
[18:48:09] <~Cosmos> What do you have so far.
[18:48:15] <+Everance>You must be registered to see links
[18:48:25] <+Everance> i'm pretty much retarded
[18:48:35] <+Everance> when it comes to setting up bitwsie operations
[18:48:43] <+Everance> like i know what they do butg my brain goes HERP DERP
[18:49:01] <~Cosmos> Gonna be home in a bit.
[18:49:17] <~Cosmos> Also
[18:49:22] <~Cosmos> !topic <+Everance> i'm pretty much retarded
class Bitfields
{
public uint Normal;
public uint Ping;
public uint Unknown;
public uint Encrypted;
public uint Compressed;
public uint Size;
public Bitfields()
{
Normal = 1;
Ping = 0;
Unknown = 0; // HOW THE duck AM I SUPPOSED TO KNOLW IF YOU DON'T KNOW? HUH
Encrypted = 1;
Compressed = 0;
}
public Bitfields(uint value)
{
Normal = ((value >> 0) & 1);
Ping = ((value >> 1) & 1);
Unknown = ((value >> 2) & 1);
Encrypted = ((value >> 3) & 1);
Compressed = ((value >> 4) & 1);
Size = (0x7FFFFF & (value >> 5));
}
public uint Deserialize()
{
if (Ping == 1)
{
uint value = 0;
value ^= (value ^ 32 * Size & 0xFFFFFE0);
value = Size <= 2048 ? value & 0xFFFFFFEF : value;
value ^= (((value << 29 >> 29) ^ 2) & 7);
return value;
}
return (Size << 5 | Compressed << 4 | Encrypted << 3 | Unknown << 2 | Ping << 1 | Normal << 0);
}
}
ITT Phail thinks that abstracting everything to poop == PRETTY CODECode:class Bitfields { public uint Normal; public uint Ping; public uint Unknown; public uint Encrypted; public uint Compressed; public uint Size; public Bitfields() { Normal = 1; Ping = 0; Unknown = 0; // HOW THE duck AM I SUPPOSED TO KNOLW IF YOU DON'T KNOW? HUH Encrypted = 1; Compressed = 0; } public Bitfields(uint value) { Normal = ((value >> 0) & 1); Ping = ((value >> 1) & 1); Unknown = ((value >> 2) & 1); Encrypted = ((value >> 3) & 1); Compressed = ((value >> 4) & 1); Size = (0x7FFFFF & (value >> 5)); } public uint Deserialize() { if (Ping == 1) { uint value = 0; value ^= (value ^ 32 * Size & 0xFFFFFE0); value = Size <= 2048 ? value & 0xFFFFFFEF : value; value ^= (((value << 29 >> 29) ^ 2) & 7); return value; } return (Size << 5 | Compressed << 4 | Encrypted << 3 | Unknown << 2 | Ping << 1 | Normal << 0); } }
Even when I have no idea what I'm doing, I still poop out code prettier than you ever will. You're like Snail, you don't make things pretty or efficient you just slap your hands on the keyboard and go 'HOW IT WORK'
also boost4lyfe
ITT Phail thinks that abstracting everything to poop == PRETTY CODE
Also muh pretty code must be more efficient cause it's pretty lelelelelellelelelele
Even @Keith writes better code than you.
create it as opensource
The issue is the very definition of "coder" on RZ.lot of coders in one project better to focus on one am i right?
I had to be brought into this lol. I support Cosmos.
Glad to see it has the LGKeiz approval, but what about the official LegacyGamers seal of quality?