Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 08:44

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

Advertisement



[Small Tutorial] Packets in Conquer Online

Discussion on [Small Tutorial] Packets in Conquer Online within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old 01/09/2012, 09:14   #16


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by I don't have a username View Post
Obviously it wouldn't be Int8 as you can't send signed integers in a packet. Well not true there is a way you can, you could do something like:
Code:
bool negative
signed integer
However it's not a real way to do it, but it's equal to the way negative values are stored in your machine.
lolwut?

Of course you can send a signed int in a packet, the fact that it doesn't look like one in the packet doesn't mean its not signed, its how the data is interpreted at the other end which matters, hell TQ even use a signed int in the character info and status change packets, that's how incorrect this statement is.

As for the article, i believe that this is probably one of the best pieces of content now on this section of the forum. Its going to help alot of new people better understand what packets actually are and how to modify them.
Korvacs is offline  
Thanks
3 Users
Old 01/09/2012, 09:19   #17
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by Korvacs View Post
lolwut?

Of course you can send a signed int in a packet, the fact that it doesn't look like one in the packet doesn't mean its not signed, its how the data is interpreted at the other end which matters, hell TQ even use a signed int in the character info and status change packets, that's how incorrect this statement is.

As for the article, i believe that this is probably one of the best pieces of content now on this section of the forum. Its going to help alot of new people better understand what packets actually are and how to modify them.
But signed integers are way different from unsigned, because you cannot store negative values, you store a bit along with the value. Just what I think, since it's like that in assembly programming, then I assume this works same way as you still store data in memory.

Quote:
Originally Posted by pcasm
Integers come in two flavors: unsigned and signed. Unsigned integers
(which are non-negative) are represented in a very straightforward binary
manner. The number 200 as an one byte unsigned integer would be represented
as by 11001000 (or C8 in hex).
Signed integers (which may be positive or negative) are represented in a
more complicated ways. For example, consider −56. +56 as a byte would be
represented by 00111000. On paper, one could represent −56 as −111000,
but how would this be represented in a byte in the computer’s memory. How
would the minus sign be stored?
There are three general techniques that have been used to represent
signed integers in computer memory. All of these methods use the most
significant bit of the integer as a sign bit. This bit is 0 if the number is
positive and 1 if negative.
I don't have a username is offline  
Old 01/09/2012, 09:23   #18


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Yes you are correct and in the event that a negative number must be sent through a packet then this method is still used, so you are still sending a signed integer through a packet. The client does this at least twice, where a negative number is legitimately used.

Im not really sure what your point is beyond that you seem to believe you cant send a negative number in a data packet...
Korvacs is offline  
Thanks
2 Users
Old 01/09/2012, 17:11   #19


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
Why we couldn't send a signed integer? What is the difference between a Int8 and a UInt8? You said it. It's the first bit that is used by the signed one to determine if it's negative or positive. But when you send the two integer over internet, we convince that both of them are coded on 8 bits, an octet. And, what we send over TCP/IP is actually a buffer of octets. So, all type that can be divided in 8 bits chunk can be send. A float can be sent because it's formed of 4 octets. A signed 32 bits integer can be sent because it's formed of 4 octets. It doesn't matter what is the original type as it's only octets that is sent.

The client and the server should know how to format the raw data and it's the protocol.

Oh, and as everything is sent in octet, there is an order to respect to get the right value. With the Internet Protocol, integers should be wrote using the big endian order. And, swapped by the client/server at receive. TQ seems to don't respect that because they use the little endian order... But as they only work on little-endian architecture (Windows and now on Intel Mac), that just remove swapping.
CptSky is offline  
Thanks
2 Users
Old 01/09/2012, 17:26   #20


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
So yeah, all in all bauss:

Quote:
Originally Posted by Korvacs
If you don't know what your talking about, then stop talking.
Korvacs is offline  
Thanks
1 User
Old 01/25/2013, 22:40   #21
 
amonaptra's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 7
Impressive work , Keep it up <3
amonaptra is offline  
Old 01/26/2013, 07:40   #22
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by amonaptra View Post
Impressive work , Keep it up <3
I created a second tutorial here that (I think) does a slightly better job:
Spirited is offline  
Old 11/18/2017, 04:23   #23
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
request to repost the images
zakkwilde_17 is offline  
Old 11/18/2017, 06:43   #24
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by zakkwilde_17 View Post
request to repost the images
No. I made a second tutorial and a third tutorial after this. Literally wrote this last week...

Last post from 2013... come on. Request close.
Spirited is offline  
Thanks
1 User
Old 11/18/2017, 13:35   #25



 
wshbr's Avatar
 
elite*gold: 1
The Black Market: 416/0/0
Join Date: Aug 2014
Posts: 30,475
Received Thanks: 3,210
#closed as request
wshbr is offline  
Closed Thread


Similar Threads Similar Threads
conquer online private server tutorial?
09/23/2010 - CO2 Private Server - 3 Replies
i need a guide on how to make a private server with working links to the downloads ive been looking for a guide for 3 days and tried so many and just wasted my time please give me a good guide that has working links
Conquer Packets
03/02/2007 - CO2 Exploits, Hacks & Tools - 143 Replies
ok, i hope this helps, using chocoman4k COPAC (AWESOME DUDE), u'll need to reach invalide coordinates to know your new coordinates or d/c an conn again, use another client to see u moving, i couldnt test it on guild gate cause my char is a poor noob and it would get killed before it gets the door. Couldnt figure out jumping packet, something weird about wrong msg with first packer recv and second one says invalid jump but still no jumping sit down 1C 00 F2 03 92 45 11 00 C6 57 12 00 4B 01...



All times are GMT +1. The time now is 08:44.


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.