Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 16:33

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

Advertisement



[Intermediate]Server basics

Discussion on [Intermediate]Server basics within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old 01/05/2010, 17:16   #16
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Quote:
Originally Posted by Kiyono View Post
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 :}
Nullable is offline  
Old 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 View Post
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.
IAmHawtness is offline  
Old 01/05/2010, 17:30   #18
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Great job Nullable.
This is a great guide.
Arcо is offline  
Old 01/05/2010, 18:18   #19

 
Kiyono's Avatar
 
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
boolSystem.Boolean
byteSystem.Byte
sbyteSystem.SByte
charSystem.Char
decimalSystem.Decimal
doubleSystem.Double
floatSystem.Single
intSystem.Int32
uintSystem.UInt32
longSystem.Int64
ulongSystem.UInt64
objectSystem.Object
shortSystem.Int16
ushortSystem.UInt16
stringSystem.String

//edit Should put this here too.

byte = 1 byte
short = 2 bytes
int = 4 bytes
long = 8 bytes
Kiyono is offline  
Old 01/05/2010, 23:43   #20


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Quote:
Originally Posted by Kiyono View Post
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...
Korvacs is offline  
Old 01/06/2010, 06:07   #21
 
gabrola's Avatar
 
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.
gabrola is offline  
Old 01/06/2010, 16:42   #22

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Quote:
Originally Posted by Korvacs View Post
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 >_<
Kiyono is offline  
Old 01/07/2010, 07:26   #23
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
Quote:
Originally Posted by Kiyono View Post
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.
spare2 is offline  
Old 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.
~Yuki~ is offline  
Old 01/12/2010, 22:37   #25
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
I learned a lot from this nice guide,
-Shunsui- is offline  
Old 01/13/2010, 18:18   #26
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Thanks, glad you like it :}
Nullable is offline  
Old 08/25/2010, 21:22   #27
 
_DreadNought_'s Avatar
 
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!
_DreadNought_ is offline  
Old 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 =]
dowhatuwant is offline  
Old 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.
hadeset is offline  
Thanks
1 User
Old 09/13/2010, 17:26   #30
 
elite*gold: 0
Join Date: Jul 2005
Posts: 14
Received Thanks: 8
Very Nice Guide
HolyMage is offline  
Reply


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.