|
You last visited: Today at 04:31
Advertisement
A few questions about Arcane Code, that I do not understand
Discussion on A few questions about Arcane Code, that I do not understand within the SRO Coding Corner forum part of the Silkroad Online category.
11/22/2010, 19:11
|
#1
|
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
|
A few questions about Arcane Code, that I do not understand
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
|
#2
|
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
|
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
|
#3
|
elite*gold: 0
Join Date: Jan 2010
Posts: 360
Received Thanks: 249
|
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
|
#4
|
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
|
Thank you very much
Bith information was usefull
ZeraPain -> short, easy and fastly understandable
In fact now it is easy to understand
|
|
|
11/23/2010, 00:06
|
#5
|
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
|
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
|
#6
|
elite*gold: 0
Join Date: Jan 2010
Posts: 360
Received Thanks: 249
|
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
|
#7
|
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
|
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
|
#8
|
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
|
Quote:
Originally Posted by chocoboss
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
|
#9
|
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
|
Quote:
Originally Posted by lesderid
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
|
#10
|
elite*gold: 0
Join Date: Feb 2010
Posts: 209
Received Thanks: 104
|
Quote:
Originally Posted by chocoboss
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
|
#11
|
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
|
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
|
#12
|
elite*gold: 0
Join Date: Feb 2010
Posts: 209
Received Thanks: 104
|
Quote:
Originally Posted by chocoboss
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.
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
|
#13
|
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
|
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
|
#14
|
elite*gold: 0
Join Date: Feb 2010
Posts: 209
Received Thanks: 104
|
Quote:
Originally Posted by chocoboss
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
|
#15
|
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
|
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 ...
|
|
|
Similar Threads
|
[LEAKED] Arcane Source Code [for Development only]
10/22/2010 - SRO Coding Corner - 136 Replies
Hi,
So have fun :) There alot of File which are missed. But you can see all Packets and .. You cant run that files. Because they are incomplete. You can make youre own Emulator you can see all Packets and Importent Informations.
Look at :
Game/Packets/Public.cs
Game/Packets/Private.cs
Loginserver isnt there. I think we dont need Packets from an LoginServer.
|
All times are GMT +2. The time now is 04:31.
|
|