Ok well here is a little project I have been working on. It does what it needs to do. This is for anyone who is into developing like packet based stuff.
This is my first project I've worked on dealing with C# and sockets from the ground up.
[Only registered and activated users can see links. Click Here To Register...]
How to use
1. Get IP of the server of you're choosing (Except DK Evolution).
2. You can either change the usual places for IP's to 127.0.0.1:7880 or IP of you're choosing and ports 50005 for the game server.
3. Use a dll to redirect the connect function to 127.0.0.1 or IP of you're choosing for the authentication.
4. In the Config.ini the ExternalIP is the Server IP, and the ProxyIP is the IP for the client to connect to.
Bugs:
For those looking for packet structure. (-Credits- Nebular)
I believe the problem with sending a packet to either Server or Client is because of the first 4 bytes which is the crc, the Packet counter, and the Timestamp which I have no idea how to handle or even go about. I've read stuff based on Environment.Tick for a timestamp but yeaaaaa. I'm stuck on that part.
If anyone knows how to send a packet correctly PM me
If you have ideas on bigger packet based projects or would like to help me out My MSN is [Only registered and activated users can see links. Click Here To Register...]
UPDATE:
I have fixed the reconnection issue. You can now log out, log in, change character without the proxy crashing etc. I have taken out Send functionality till I can resolve that issue DCing when sending a packet to either Server or Client.
This is my first project I've worked on dealing with C# and sockets from the ground up.
[Only registered and activated users can see links. Click Here To Register...]
How to use
1. Get IP of the server of you're choosing (Except DK Evolution).
2. You can either change the usual places for IP's to 127.0.0.1:7880 or IP of you're choosing and ports 50005 for the game server.
3. Use a dll to redirect the connect function to 127.0.0.1 or IP of you're choosing for the authentication.
4. In the Config.ini the ExternalIP is the Server IP, and the ProxyIP is the IP for the client to connect to.
Bugs:
- Packets does not send properly, Even though I encrypt it. (I cannot figure out why)
For those looking for packet structure. (-Credits- Nebular)
Code:
0 - Packet CRC (calculated/checked by upon encryption/decryption) 4 - Number (starts from 0; synchronization,GG’s CSA are not counted) 6 - Size (header+data => 16bytes minimum ) 8 - Timestamp (used to distinguish between requests/responces in some commnads) 12 - Command (Describes what action to take) 16 - Data (optional; varies in size and not all areas of it are always used)
If anyone knows how to send a packet correctly PM me
If you have ideas on bigger packet based projects or would like to help me out My MSN is [Only registered and activated users can see links. Click Here To Register...]
UPDATE:
I have fixed the reconnection issue. You can now log out, log in, change character without the proxy crashing etc. I have taken out Send functionality till I can resolve that issue DCing when sending a packet to either Server or Client.