[Development] C# sources

03/20/2011 02:30 hio77#151
Quote:
Originally Posted by cruey View Post
thats mad :) keep us updated.
:) as always ill keep everyone up to date here.

been revising the login server a little as well - its speed up login times now as there is no conversion from hexadecimal to bytestring anymore, just a solid static packet layout ready to fire out.
05/06/2011 17:12 |NeoX#152
this looks soo damn promising i might be able to help later
05/06/2011 23:19 _DreadNought_#153
Looking good.

I'm not pro with C# but I see your doing this
Code:
            Console.WriteLine("");
            Console.WriteLine("Account Server Created by Hio77");
            Console.WriteLine("This Account Server has been based off the COEMUv2 source");
            Console.WriteLine("COEMUv2 was created by andyd123");
            Console.WriteLine("The CoEMUv2 source can be found at: http://tinyurl.com/coemuv2");
            Console.WriteLine("");
            Console.WriteLine("This is made to work with the game server created by hio77 not any eo binary!");
            Console.WriteLine("");
Instead of
Code:
Console.WriteLine("");
to create a new line you can simply use the command "\n"
ex:
Code:
           Console.WriteLine("\nAccount Server Created by Hio77");
            Console.WriteLine("This Account Server has been based off the COEMUv2 source");
            Console.WriteLine("COEMUv2 was created by andyd123");
            Console.WriteLine("The CoEMUv2 source can be found at: http://tinyurl.com/coemuv2");
            Console.WriteLine("\nThis is made to work with the game server created by hio77 not any eo binary!");
            Console.WriteLine("\n[LoginServer] Starting MasterSocket Thread.");
Just thought i'd point it out :)

#edit
I also see your doing this
Code:
            PacketData[0] = 0x34;//packet length
            PacketData[1] = 0x00;//packet length
            PacketData[2] = 0x1f;//packet ID (1055)
            PacketData[3] = 0x04;//packet ID (1055)
            PacketData[4] = Key2[3];//acc id in binary
            PacketData[5] = Key2[2];//acc id in binary
            PacketData[6] = Key2[1];//acc id in binary
            PacketData[7] = Key2[0];//acc id in binary
            PacketData[8] = Key1[3];//unknown (could be random token number)
            PacketData[9] = Key1[2];//unknown (could be random token number)
            PacketData[10] = Key1[1];//unknown (could be random token number)
            PacketData[11] = Key1[0];//unknown (could be random token number)
            PacketData[12] = 0xb8;//port
            PacketData[13] = 0x16;//port
mhm, not good practice at all. When i get time ill repost that as a much more efficient & faster method.
06/30/2011 12:20 Faith.#154
*bump*
this project is dead or what ?
06/30/2011 13:58 cruey#155
Probly lol
09/27/2011 11:00 hio77#156
*BUMP* I'm back :p

Quote:
Originally Posted by _DreadNought_ View Post
Looking good.

I'm not pro with C# but I see your doing this
Code:
            Console.WriteLine("");
            Console.WriteLine("Account Server Created by Hio77");
            Console.WriteLine("This Account Server has been based off the COEMUv2 source");
            Console.WriteLine("COEMUv2 was created by andyd123");
            Console.WriteLine("The CoEMUv2 source can be found at: http://tinyurl.com/coemuv2");
            Console.WriteLine("");
            Console.WriteLine("This is made to work with the game server created by hio77 not any eo binary!");
            Console.WriteLine("");
Instead of
Code:
Console.WriteLine("");
to create a new line you can simply use the command "\n"
ex:
Code:
           Console.WriteLine("\nAccount Server Created by Hio77");
            Console.WriteLine("This Account Server has been based off the COEMUv2 source");
            Console.WriteLine("COEMUv2 was created by andyd123");
            Console.WriteLine("The CoEMUv2 source can be found at: http://tinyurl.com/coemuv2");
            Console.WriteLine("\nThis is made to work with the game server created by hio77 not any eo binary!");
            Console.WriteLine("\n[LoginServer] Starting MasterSocket Thread.");
Just thought i'd point it out :)

#edit
I also see your doing this
Code:
            PacketData[0] = 0x34;//packet length
            PacketData[1] = 0x00;//packet length
            PacketData[2] = 0x1f;//packet ID (1055)
            PacketData[3] = 0x04;//packet ID (1055)
            PacketData[4] = Key2[3];//acc id in binary
            PacketData[5] = Key2[2];//acc id in binary
            PacketData[6] = Key2[1];//acc id in binary
            PacketData[7] = Key2[0];//acc id in binary
            PacketData[8] = Key1[3];//unknown (could be random token number)
            PacketData[9] = Key1[2];//unknown (could be random token number)
            PacketData[10] = Key1[1];//unknown (could be random token number)
            PacketData[11] = Key1[0];//unknown (could be random token number)
            PacketData[12] = 0xb8;//port
            PacketData[13] = 0x16;//port
mhm, not good practice at all. When i get time ill repost that as a much more efficient & faster method.
thanks for that, im sure i have said this before but im not some godly C# coder :) i will always do things which arnt the best ... as for the packet which you posted it was planned to move to dynamically created packets once i have everything right...

all that being said i would love to see your way of building the packets, im just keeping to the same conventions were used in coemu

Quote:
Originally Posted by Faith. View Post
*bump*
this project is dead or what ?
now its not :)

Quote:
Originally Posted by cruey View Post
Probly lol
how could you crue :P

Quote:
Originally Posted by hio77 View Post
*BUMP* I'm back :p



thanks for that, im sure i have said this before but im not some godly C# coder :) i will always do things which arnt the best ... as for the packet which you posted it was planned to move to dynamically created packets once i have everything right...

all that being said i would love to see your way of building the packets, im just keeping to the same conventions were used in coemu



now its not :)



how could you crue :P

i might end up stripping this back and restarting ... i screwed with so much in this that i think i might have lost myself ... ild say thats why i stopped working on it -.-
guess i might move onto using revision control
09/27/2011 22:16 Thorlon#157
lol welcome back :)
09/27/2011 23:47 DarkHuntress#158
I am not a coder. I would really like to help you but I know my limitations. I can and do give you my support. I think what you are doing is great. Please keep up the excellent work. I am learning as you post. :)
09/27/2011 23:50 .Ash#159
Quote:
Originally Posted by hio77 View Post
*BUMP* I'm back :p

i might end up stripping this back and restarting ... i screwed with so much in this that i think i might have lost myself ... ild say thats why i stopped working on it -.-
guess i might move onto using revision control
IKR!! lol you make a project as a newbie and stops with frustration. Later on, you learn more and more and see the file in your desktop.. "hmmm... maybe i'll give another try..." it happens to me too lol

i tried borrowing a VPS and tried making a clientless client lol but didn't work out well. only could borrow the vps for one day, so i gave up.
10/19/2011 13:59 hio77#160
well, thought ild make a bit of a post just to make sure everyone still knows im here and working away ... just in my quiet little cave tinkering away at it

this will be a bit of an informational page, i know its plenty of use to the likes of funhacker ;)

each rar file contains a excel spreadsheet on the packet, example packets (range from 1 to about 30 -.-) and a bookmark file which can be read by some hex editors to show the position of the bytes in the hex editor (very useful i find)

Packet information:


Incomming packet from the client -> server, Authentication request (login)

[Only registered and activated users can see links. Click Here To Register...]

OffsetSizeValue 
0ushort276Packet Length
2ushort1060Packet Type (0x424)
4stringUser Name  
132stringPassword  
260stringServer Name 


Outgoing Sever -> Client, Authentication Response, now there are plenty of ways to use this... commonly 1st way is to send the ip address of the game server and second way is to send the message in which you want the client to receive

[Only registered and activated users can see links. Click Here To Register...]

OffsetSizeValue 
0ushort52Packet Length
2ushort1055Packet Type (0x41F)
4ulongUnknown  
8ulongString Count  
12ulongAcountID  
16ulongUnknown  
20stringMessage  


Outgoing Server -> Client, Char info

[Only registered and activated users can see links. Click Here To Register...]

OffsetSizeValue 
0ushort170Packet Length
2ushort1006Packet Type (0x41F)
4UlongUser ID 
8UlongLookface and Model 
12ushortHair 
16UlongGold 
20UlongEO 
24UlongExp 
32UlongTotor Exp 
36ushortMercenary exp 
40ushortBP 
44ushortPower 
46ushortContitution 
48ushortDexterity 
50ushortSpeed 
52ushortHealth (NOT HP) 
54ushortSoul 
56uintAdditional Point 
58ushortCurrent HP 
60ushortMax HP 
62ushortCurrent MP 
64ushortMax MP 
72ushortPK Points 
74uintLevel 
75uintClass 
76uintNobility 
77uintMetempsychosis 
78uintauto allocate 
79uintMentor Level 
80uintMercenary Rank 
81uintNobility Rank 
82ushortSummon Limit 
84ushortExploit 
88UlongToken Points 
92ushortHatchable eggs 
96uintMute Flag 
140ushortVIP Level 
144ulongWood 
148uintBusiness 
152UlongPP 
156uintString Count 
157uintIngame name length 
158stringIngame Name 
159+ign lenuintSpouse name length 
160+ign lenstringSpouse name 
161 + lensuintTrailing byte 
162 +lensushortTrailing byte  

enjoy :rolleyes:

edit: heh.. after all this re research ... suddenly i just found out my character info packet in the game server is incorrect ... maybe that has help cause the issues
10/19/2011 20:13 XxFearReaperXx#161
lookin good
10/20/2011 04:14 cruey#162
Welcome back sex kitten, come on msn. We have stuff to talk talk about ;) Meow
10/20/2011 04:23 hio77#163
Quote:
Originally Posted by cruey View Post
Welcome back sex kitten, come on msn. We have stuff to talk talk about ;) Meow
iv been online all day lmfao.. now i remember why i ignored you :P
10/20/2011 11:34 cruey#164
Your a cunt lol add mine [Only registered and activated users can see links. Click Here To Register...] cause its not working when i add you
10/20/2011 11:47 hio77#165
Quote:
Originally Posted by cruey View Post
Your a cunt lol add mine [Only registered and activated users can see links. Click Here To Register...] cause its not working when i add you
happy? .... got a lot of work done today, item usage is working a lot more, character settings are also alot more correct