|
You last visited: Today at 16:33
Advertisement
[Intermediate]Server basics
Discussion on [Intermediate]Server basics within the CO2 Programming forum part of the Conquer Online 2 category.
01/05/2010, 17:16
|
#16
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
Quote:
Originally Posted by Kiyono
So you got the packet from Korvac's wiki which said "ushort" but how did you know that you had to use "uint16" cause I looked at that wiki before but I had no clue on how to figure out what you needed and I still don't know why you used "uint16" is there a chart for stuff like that or did you just learn it somewhere?
|
you can google integer types, ushort is uint16 and uint32 is uint int16 is short and int32 is int :}
|
|
|
01/05/2010, 17:19
|
#17
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,198
|
Quote:
Originally Posted by Kiyono
So you got the packet from Korvac's wiki which said "ushort" but how did you know that you had to use "uint16" cause I looked at that wiki before but I had no clue on how to figure out what you needed and I still don't know why you used "uint16" is there a chart for stuff like that or did you just learn it somewhere?
|
It's pretty easy, actually.
byte = 1 byte, obviously
short = 2 bytes
int = 4 bytes
long = 8 bytes
The size of the packet is determined in the first two bytes, hence the "(ushort)Length", and it works like that for all the parameters in a packet.
|
|
|
01/05/2010, 17:30
|
#18
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Great job Nullable.
This is a great guide.
|
|
|
01/05/2010, 18:18
|
#19
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
|
Well I managed to google it and ended up with this table: , I just need to take the time to learn it.
//edit I put the table here for quick reference.
Built-In Types Table (C# Reference)
C# Type | .NET Framework Type |
---|
bool | System.Boolean | byte | System.Byte | sbyte | System.SByte | char | System.Char | decimal | System.Decimal | double | System.Double | float | System.Single | int | System.Int32 | uint | System.UInt32 | long | System.Int64 | ulong | System.UInt64 | object | System.Object | short | System.Int16 | ushort | System.UInt16 | string | System.String |
//edit Should put this here too.
byte = 1 byte
short = 2 bytes
int = 4 bytes
long = 8 bytes
|
|
|
01/05/2010, 23:43
|
#20
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Quote:
Originally Posted by Kiyono
So you got the packet from Korvac's wiki which said "ushort" but how did you know that you had to use "uint16" cause I looked at that wiki before but I had no clue on how to figure out what you needed and I still don't know why you used "uint16" is there a chart for stuff like that or did you just learn it somewhere?
|
You know, i asked for feedback in the wiki thread, its comments like this which i could really do with having, because if you had said something like this in the thread, i could have made changes to it a long time ago, or provided an explanation...
|
|
|
01/06/2010, 06:07
|
#21
|
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
|
And the "u" before int, short or long stands for an unsigned integer, short or long, which means it's a natural (non-negative) number.
|
|
|
01/06/2010, 16:42
|
#22
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
|
Quote:
Originally Posted by Korvacs
You know, i asked for feedback in the wiki thread, its comments like this which i could really do with having, because if you had said something like this in the thread, i could have made changes to it a long time ago, or provided an explanation...
|
Oh well since I didn't get it at first glance I was trying to figure it out with google but I kinda failed and then forgot to ask it in the thread >_<
|
|
|
01/07/2010, 07:26
|
#23
|
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
|
Quote:
Originally Posted by Kiyono
So you got the packet from Korvac's wiki which said "ushort" but how did you know that you had to use "uint16" cause I looked at that wiki before but I had no clue on how to figure out what you needed and I still don't know why you used "uint16" is there a chart for stuff like that or did you just learn it somewhere?
|
uint = unsigned 32-bit integer
uint16 = unsigned 16-bit integer = ushort
uint64 = unsigned 64-bit integer = ulong
unsigned means it is a non-negative number.
if you take out the "u" in those type words, you basically get the same set of integers plus all the negatives that are included in the set.
|
|
|
01/09/2010, 09:20
|
#24
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Nullable just wrote a cool guide.
|
|
|
01/12/2010, 22:37
|
#25
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
I learned a lot from this nice guide,
|
|
|
01/13/2010, 18:18
|
#26
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
Thanks, glad you like it :}
|
|
|
08/25/2010, 21:22
|
#27
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Needs a bump, just helped me hella of alot Nullable what would I do without you!
|
|
|
08/26/2010, 13:05
|
#28
|
elite*gold: 0
Join Date: Aug 2010
Posts: 452
Received Thanks: 75
|
This is a very goodwork nullable
Keep it up, might start out of this =]
|
|
|
08/27/2010, 23:07
|
#29
|
elite*gold: 0
Join Date: Oct 2006
Posts: 110
Received Thanks: 67
|
If I didn't know all this, i would really not feel like learning from this. Noobs need certain questions anwered very specifically or they won't learn much anything. Of course some geniuses do.
|
|
|
09/13/2010, 17:26
|
#30
|
elite*gold: 0
Join Date: Jul 2005
Posts: 14
Received Thanks: 8
|
Very Nice Guide
|
|
|
|
|
Similar Threads
|
[Intermediate] - C# AsyncSockets(Server)
11/07/2010 - CO2 Programming - 16 Replies
Hello everyone! In this tutorial I will teach you how to do simple ServerSocket and ClientSocket implementation using Asynchronous Sockets (non blocking, doesn't wait for data & doesn't freeze the current thread)
Requirement(s)
- Microsoft Visual C# 2008 Express Edition
- .NET Framework 3.5 (I'm not sure wether this comes with the above program or not.)
I will be using that program on all my C# tutorials so get ready to download it. :D
I'll start off with Async ServerSocket; I'll...
|
[Tips][Intermediate]Making A UCE
07/07/2009 - Grand Chase Philippines - 11 Replies
How To Make A UCE
Requirement : At least Intemediate Hacking Brains ;)
Content Page: (Note that you could just press "Ctrl + F" to enable the "Find" function if you want to quickly move to a specific steps.)
A_1) Updates of tutorial
B_2) Programmes required
|
[Intermediate?]How a loader is made.
10/06/2008 - CO2 Programming - 12 Replies
Hello, Im not new i been around for a long time, on another name,
just figured why not use my game name now.
but that's beside the point, back to topic..
So you have seen those tutorials about how to make a Multi/Bypass exe/etc..
Well im gonna show you how to make a loader like *M* has made, im just not going in depth here :)
(some people might be interested in making their own)
First thing what you want to do is get MASM if you dont have it yet you can find it *Here*.
Alright load it...
|
[WoW]Basics zum Ersten, Basics zum Zweiten...
08/12/2004 - User Submitted News - 0 Replies
|
All times are GMT +2. The time now is 16:33.
|
|