A few questions about Arcane Code, that I do not understand

11/22/2010 19:11 chocoboss#1
Hi, I introduce myself, My name is Jonathan I'm student in IT, and I'm actually looking for coding C/C++ sro server.

I know that this will be long and hard >.<
But I htink it is a good way to involve my skils :)

I'm actually basing my work on Arcane server (I think it is the best so :)

But there is something that I didn't understand >.< (I think all will be good after ^^')

Quote:
Originally Posted by login server
public static void oPCode(Decode de)
{
Systems sys = (Systems)de.Packet;
sys.PacketInformation = de;
try
{
switch (de.opcode)
{
case 0x2001:
sys.GateWay();
break;
case 0x6100:
sys.Patch();
break;
case 0x6101:
sys.ServerList();
break;
case 0x6102:
sys.Connect();
break;
case 0x6104:
sys.Launcher();
break;
case 1905:
UserTablo(de.buffer);
break;
default:
break;
}
}
Decode de -> What is that ? I have searcha lot if Lynzerk code, but nothing >.<
Also can u explain me what do this function ? I know that this is analising opcode but from where ?

Thank you for the futur reply you can give me ^^


Dunno what happened but the title of my post look like wrong so if you can correct it :)
11/22/2010 19:30 lesderid#2
I'm not sure (I didn't check it) but I think it's like this:
The receive packet function receives the packet, it parses it into a Decode object.
The Decode object will probably contain the opcode, the size, the data, security crc, ...
So when it's parsed, it will call the oPCode function with the packet (a Decode object) as parameter (de).
The oPCode function will then use a switch to select the opcode of the packet (de.opcode).

I hope this helps.
11/22/2010 19:33 ZeraPain#3
de is just the param which is given to this function by the call (de as Decode obj param)
-> Decode splits the packet into it's relevant informations. (e.g. opcode)
-> Framework.Decode.cs
11/22/2010 19:40 chocoboss#4
Thank you very much :)
Bith information was usefull

ZeraPain -> short, easy and fastly understandable :)

In fact now it is easy to understand :D
11/23/2010 00:06 chocoboss#5
Maybe I will make a topic where I will tell what I have do or not :)
But the public class decode ( I mean the function inside) are near to be finish ^^

I can get the Opcode (I think I have not tested it)
So now I will juste have to send the right packet (for login server)

Edit : Yeah I work very slowly but I don't have many many time :S
11/23/2010 00:19 ZeraPain#6
i don't know but what do you want to change?
as far as i know the loginserver works already
11/23/2010 07:02 chocoboss#7
I just want to make my own server (based on arcane) in C/C++ instead of C# (C++ is really faster than C#, my server will have a better capacity and stability when all will be done)
11/23/2010 07:48 lesderid#8
Quote:
Originally Posted by chocoboss View Post
C++ is really faster than C#, my server will have a better capacity and stability when all will be done
Sorry but please don't bring this up, this always ends in flaming.
11/23/2010 08:39 chocoboss#9
Quote:
Originally Posted by lesderid View Post
Sorry but please don't bring this up, this always ends in flaming.
Not really cool :S

I don't want ppl flamming, I just want to build my own emu to develop my skills in C++ programming (and build server with custom thing)
11/23/2010 09:38 Maciupka#10
Quote:
Originally Posted by chocoboss View Post
Not really cool :S

I don't want ppl flamming, I just want to build my own emu to develop my skills in C++ programming (and build server with custom thing)
So start from beginning by yourself instead of trying to understand someone else code. I am sure in this way you will improve your skills alot more than edit someone else code like an idiot.
11/23/2010 10:16 chocoboss#11
You are right, but I don't know work silkroad packet, so no choice :S
After I will create my own functions for Game server (but always related to Arcane Packet/Opcode)
11/23/2010 10:26 Maciupka#12
Quote:
Originally Posted by chocoboss View Post
You are right, but I don't know work silkroad packet, so no choice :S
So you wanna code an emulator and you dont know how works packets in silkroad ? Try research on forum or ask about it.
[Only registered and activated users can see links. Click Here To Register...]

I dont belife you are IT student , i bet you have no more than 14 yeras old.

Edit UP: You will create nothing without knowledge about packets .
11/23/2010 10:43 chocoboss#13
Lol, you can thin,k what you want, I'm french student in IT, and I'm 22 year old ;)
I will understand how work packet while understanding how Arcane works :)
11/23/2010 10:49 Maciupka#14
Quote:
Originally Posted by chocoboss View Post
Lol, you can thin,k what you want, I'm french student in IT, and I'm 22 year old ;)
I will understand how work packet while understanding how Arcane works :)
You are too lazy to understand anything kid, good luck <facepalm>.
11/23/2010 11:08 chocoboss#15
I don't ask you how should I work, I do it how I want, I just ask you to respect my work, all will be done, when It will be

EDIT : 22yo ppl are always kids ? I don't think so ...