sizeof doesn't work that way.. you should read something about it or better try doing it yourself, and remember that the packet i'm reading is actually a pointer to the actual packet allocated on heap, in simple words sizeof doesn't work like this with pointers
When I will return to the C/C++, I will check for this operator Anyway, thanks, it's good to know that.
Im going to be adding 5165 packets this weekend, and probably restructing the packet layouts to have a more definative way of doing things. If anyone has any suggestions as to how they would like to see the packets layed out please post here, ill happily take a look at what you have to say, it was after all made for the community (ie. you guys).
Im going to be adding 5165 packets this weekend, and probably restructing the packet layouts to have a more definative way of doing things. If anyone has any suggestions as to how they would like to see the packets layed out please post here, ill happily take a look at what you have to say, it was after all made for the community (ie. you guys).
Offsets are something that i considered originally, but i rejected it because i beleived that the community would struggle to understand the concept, ill have anouther think about them and see if i can make it simpler.
Offsets are something that i considered originally, but i rejected it because i beleived that the community would struggle to understand the concept, ill have anouther think about them and see if i can make it simpler.
You could include an article about them as well and this would solve the problem
You could include an article about them as well and this would solve the problem
Yeah thats a good idea.
I have started replacing the packet structures with a new layout using a table, which includes the offset, im also going to write a page about bytes/ushorts/uints/ulongs, and the offsets to help people to understand things alittle more, im also going to re-write all of the values to help make them more standard accross the wiki and easier to understand.
I have started replacing the packet structures with a new layout using a table, which includes the offset, im also going to write a page about bytes/ushorts/uints/ulongs, and the offsets to help people to understand things alittle more, im also going to re-write all of the values to help make them more standard accross the wiki and easier to understand.
Love the new layout of the packets, it's amazing anyhow there is an error in this: exactly at the exp variable in the 4267 version, here is the correct one:
It doesnt atually make the slightest bit of difference, but you can do this if you like:
PHP Code:
(ushort)Length;
(ushort)1006;
(uint)(Character.UID);
(uint)(Character.Model);
(ushort)(Character.Hair);
(ushort)(0);
(uint)(Money);
(uint)(Experience); // Change this
(uint)(0); //Add this
(uint)(0);
(uint)(0);
(uint)(0);
(ushort)(Strength);
(ushort)(Agility);
(ushort)(Vitality);
(ushort)(Spirit);
(ushort)(AttributePoints);
(ushort)(Hitpoints);
(ushort)(Mana);
(ushort)(PkPoints);
(byte)(Character.Level);
(byte)(Character.Job);
(byte)(0);
(byte)(Character.RebornCount);
(byte)1;
(byte)(2);
(string with length)Character.Name
(string with length)Character.Spouse
I know what you mean, 4 + 4 = 8 obviously, but wouldn't it be easier to build it up as a ulong instead of adding another blank uint, that's just my opinion.. anyhow it's fine as long as the packet posted on the wiki is fine
If anyone else sees anything that looks wrong, or they have anything to add please post here, i have done one or two 5165 packets, but as you can see im only just half way through converting the existing packets.
[Resource] My Wiki 05/07/2011 - CO2 Private Server - 4 Replies Hey. Hope you get use out of this.
If you want me to add anything, just say so and
what you want me to add below.
Link: https://conquerresources.wikispaces.com/
Edit: Here are all of the source downloads btw in a list:
http://spirited-fang.blogspot.com/p/source-downlo ads.html
Sincerely,
Resource Wiki 11/12/2010 - CO2 Private Server - 3 Replies Hey everyone,
I know how helpful it is to have a Packet Wiki, so I thought that I would add this to help you all. It's a resource wiki that will help you customize your source. Hope you all like it!
http://conquerproject.wikispaces.com/space/badge/ 468x60
Link if you can't figure out that the image is the link: Conquer Project Resources
Sincerely,
Fang