Register for your free account! | Forgot your password?

You last visited: Today at 17:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Guide]Coding your own source

Discussion on [Guide]Coding your own source within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 11/08/2011, 08:38   #16
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
TheNewBoston Channel Rocks ,

Thank you.
-Sensei- is offline  
Old 11/08/2011, 08:43   #17
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by -Sensei- View Post
TheNewBoston Channel Rocks ,

Thank you.
No problem, personally I don't like videos for learning programming, because you do not get all details etc. Also he's starting with forms, where I would recommend consoles, because it's easier to understand how a program is build that way.
BaussHacker is offline  
Old 11/09/2011, 01:26   #18
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
Quote:
Originally Posted by BaussHacker View Post
No problem, personally I don't like videos for learning programming, because you do not get all details etc. Also he's starting with forms, where I would recommend consoles, because it's easier to understand how a program is build that way.
Yah your right but, i found out he also have guides for other programming language.
-Sensei- is offline  
Old 11/09/2011, 05:23   #19
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
BAST BAST BAST EVAR! but blz whare is tha staad and guild?
-Shunsui- is offline  
Old 11/09/2011, 07:27   #20
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by -Shunsui- View Post
BAST BAST BAST EVAR! but blz whare is tha staad and guild?
It's right behind the basket.
BaussHacker is offline  
Old 11/09/2011, 13:14   #21
 
miketheking's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 63
Received Thanks: 10
So far so good I feel a bit lost but I'm making progress gotta know how this encryption and decryption stuff works now
miketheking is offline  
Old 11/09/2011, 14:38   #22
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by miketheking View Post
So far so good I feel a bit lost but I'm making progress gotta know how this encryption and decryption stuff works now
Basically you send the encrypt function in the send method to the client, after handling the packets.

The decryption is at the receive of a packet.

Take a look at other sources or the link to P4n's thread.
BaussHacker is offline  
Old 11/09/2011, 15:45   #23
 
miketheking's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 63
Received Thanks: 10
Quote:
Originally Posted by BaussHacker View Post
Basically you send the encrypt function in the send method to the client, after handling the packets.

The decryption is at the receive of a packet.

Take a look at other sources or the link to P4n's thread.
i know how everything works basically anyway ill check the thread for details tomorrow if i manage to finish my HW today

just to make sure that i understood
correct me if im wrong
the global socket wrapper is a wrapper to many socketclients that refer to a the client that some1 is running
the connection event is the 1 where all the authentication stuff is handled
like checking in and disconnection is where the client checks out

in the recieve event the packet which is defined as buffer in this socket system
this buffer should be encrypted then handled
using switch(whatever refers to packet id) if so arent i supposed to define a character in the socketclient after i code the character class

Edit:here is my what ive done till now

[Done] [Working]
SocketSystem [yes] [No idea]
PacketHandler [Base only] [yes(tested)]
PacketReader [yes] [yes]
PacketWriter [yes] [yes]
Enums [yes] [No idea if they r right]
Encryption/Decryption [yes] [yes but i dont know how to use it (when to use which encryption)]

i dunno whats the use of having the event on connection nothing on mind
i dont understand a thing about encryption and decryption i jus used p4n's system and im having troubles with it cos i dont understand a thing
miketheking is offline  
Old 12/13/2011, 00:56   #24
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by miketheking View Post
i know how everything works basically anyway ill check the thread for details tomorrow if i manage to finish my HW today

just to make sure that i understood
correct me if im wrong
the global socket wrapper is a wrapper to many socketclients that refer to a the client that some1 is running
the connection event is the 1 where all the authentication stuff is handled
like checking in and disconnection is where the client checks out

in the recieve event the packet which is defined as buffer in this socket system
this buffer should be encrypted then handled
using switch(whatever refers to packet id) if so arent i supposed to define a character in the socketclient after i code the character class

Edit:here is my what ive done till now

[Done] [Working]
SocketSystem [yes] [No idea]
PacketHandler [Base only] [yes(tested)]
PacketReader [yes] [yes]
PacketWriter [yes] [yes]
Enums [yes] [No idea if they r right]
Encryption/Decryption [yes] [yes but i dont know how to use it (when to use which encryption)]

i dunno whats the use of having the event on connection nothing on mind
i dont understand a thing about encryption and decryption i jus used p4n's system and im having troubles with it cos i dont understand a thing
The event on connection is when a client makes a new connection to your server.
Before the server can receive data, then on the newer patches you have to send a unique seed.
Code:
    public class PasswordSeedPacket : ConquerPacket
    {
        public PasswordSeedPacket()
            : base(8, false)
        {
        }

        public ushort
            Param,
            Param2;
        public uint Seed;

        public static implicit operator byte[](PasswordSeedPacket packet)
        {
            packet.Write((ushort)packet.Param);
            packet.Write((ushort)packet.Param2);
            packet.Write(packet.Seed);

            return packet.ToArray();
        }
    }
Code:
        public static void Auth_Connection(SocketClient Client)
        {
            Client.AuthCrypt = new Security.AuthCryptography();
            Client.PasswordSeed = Core.Kernel.Rnd.Next(Core.Kernel.RndSeed);
            Packets.Structures.PasswordSeedPacket Packet = new Packets.Structures.PasswordSeedPacket();
            Packet.Param = 8;
            Packet.Param2 = 1059;
            Packet.Seed = (uint)Client.PasswordSeed;
            Client.Send(Packet);
        }
Note: From my old source.

There is different cryptographers in the Conquer source. One for password, where you either decrypt or do nothing, depending on if your passwords are encrypted or not in the database. That's the rc5 encryption or whatever, if I'm not mistaken. Then for packets you decrypt them using Blowfish (cast on newer) when you RECEIVE and when you SEND you encrypt the packets. Encryption are simply used to protect data from being read other than the client and the server, however in this case it's not really for security reasons, because the cryptography is public and it was only security from TQ's side, but I don't want to go in details with custom encryptions. Hope you get it tho. There is also a few other encryptions and so, but meh you should get it now ^^
BaussHacker is offline  
Old 12/13/2011, 01:51   #25
 
elite*gold: 0
Join Date: May 2009
Posts: 239
Received Thanks: 78
already did +k and feels like i want to thank u once more
andrewxxx is offline  
Reply


Similar Threads Similar Threads
V16 Jobs Source Coding!
10/26/2011 - Flyff Private Server - 8 Replies
Yo elitepvpers! I come here today to get some friendly help with the 3rd jobs :p I got only basic knownledge of c++, but enough to code this foshizzle ^^ By using the v16 3rd job .rar that someone released, I have continued from that, and from help by friends etc successfully made the 3rd jobs ingame.. But I got a few problems here :/
[Source 5165] - BigginerPack[Coding] Help!
04/10/2011 - CO2 Private Server - 4 Replies
Hello, I want to make a NPC standing in TwinCity, he gives the player a Begginer Pack that contains whatever items I want to to be inside it, how can I make that? First, I should make the NPC (in NPCDialog.cs) #region npcname case 1270: { if (Control == 0) {
[Help]Coding a 5290+ Source
03/08/2011 - CO2 Programming - 2 Replies
I need some help here. I was trying to build my own source from scratch to login on a 5290+ client and I found a problem I can't solve. I tried to build a source using my knowledge once, and I managed to get the auth information from that 5165 old client. Nothing special so far. I did the same thing but using a 5290+ client. Something wierd happened. The new client wouldn't send me the login info. What should I do? Do I have to send a packet so I can have the auth info? I'm confused.



All times are GMT +1. The time now is 17:11.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.