Welcome!

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!

[DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator

Newbie Spellweaver
Joined
Apr 4, 2014
Messages
23
Reaction score
12
Started developing a GunZ 2 emulator. The connected client is the latest version of Gunz 2 NA.
More info/development to come.
AfOc3zf - [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Apr 4, 2014
Messages
23
Reaction score
12
I wish I could replay packets like you
TheCosmos - [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator - RaGEZONE Forums
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>
[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>
[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
 
Joined
Sep 10, 2007
Messages
970
Reaction score
815
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>
[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>
[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 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
 
Newbie Spellweaver
Joined
Apr 4, 2014
Messages
23
Reaction score
12
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 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
 
Newbie Spellweaver
Joined
Apr 4, 2014
Messages
23
Reaction score
12
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.
t2BEbNf - [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Apr 4, 2014
Messages
23
Reaction score
12
Got the character selection -> lobby transition done, added chat channels and chat related functionality.
XRyvPVB - [DEVELOPMENT] Nepetalactone - Gunz 2 Server Emulator - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Back
Top