[DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Started developing a GunZ 2 emulator. The connected client is the latest version of Gunz 2 NA.
More info/development to come.
http://i.imgur.com/AfOc3zf.jpg
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
ThePhailure772
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> http://pae.st/57
[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> https://github.com/theepicsnail/paest
[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
[18:49:22] <~Cosmos> !topic <+Everance> i'm pretty much retarded
[18:49:22] * services.sourced.me changes topic to '<+Everance> i'm pretty much retarded'
[18:49:26] <+Everance> i am
[18:49:41] <+Everance> >>> def build_flags(normal, ping, unk, encrypted, compressed, size):
[18:49:41] <+Everance> ... value = 0
[18:49:41] <+Everance> ... value |=
[18:49:42] <+Everance> SEE
[18:49:45] <+Everance> PRETTY MUCH RETARDED
[18:49:46] <~Cosmos> i uh
[18:49:47] <~Cosmos> what
[18:50:59] <+Everance> kill me
[18:53:32] <~Cosmos> good idea
[18:53:45] <+Everance> literally
[18:53:54] <+Everance> i can't figure this out on my own
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
TheCosmos
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>
http://pae.st/57
[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>
https://github.com/theepicsnail/paest
[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
Code:
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 FUCK 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 shit 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
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
ThePhailure772
Code:
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 FUCK 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 shit 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 shit == PRETTY CODE
Also muh pretty code must be more efficient cause it's pretty lelelelelellelelelele
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
TheCosmos
ITT Phail thinks that abstracting everything to shit == PRETTY CODE
Also muh pretty code must be more efficient cause it's pretty lelelelelellelelelele
Even @Keith writes better code than you.
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
thephailure772
even @
keith writes better code than you.
too far man
too far
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
ThePhailure772
Even @
Keith writes better code than you.
Stop bringing LGKeiz into these silly arguments, he's preparing huge relaunch of classic LegacyGamers Gunz servidor.
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Jacob, my muse, my flare, the only packets that are going to be replayed for now are UF2C::NTF_INFO packets, because they basically just contain server settings and they're a pain in the arse to reverse
Meanwhile here's a client-less bot.
http://i.imgur.com/t2BEbNf.png
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
CrystalCoder
create it as opensource
For a second there I thought you were suggesting releasing it so some guy with questionable contributions who calls himself "Coder" could leech it.
Oh,
wait..
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
lot of coders in one project better to focus on one am i right?
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
CrystalCoder
lot of coders in one project better to focus on one am i right?
The issue is the very definition of "coder" on RZ.
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
I had to be brought into this lol. I support Cosmos.
Re: [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator
Quote:
Originally Posted by
Keith
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?