Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 04:31

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

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.

Reply
 
Old   #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
chocoboss is offline  
Old 11/22/2010, 19:30   #2
 
lesderid's Avatar
 
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.
lesderid is offline  
Thanks
1 User
Old 11/22/2010, 19:33   #3
 
ZeraPain's Avatar
 
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
ZeraPain is offline  
Thanks
1 User
Old 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
chocoboss is offline  
Old 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
chocoboss is offline  
Old 11/23/2010, 00:19   #6
 
ZeraPain's Avatar
 
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
ZeraPain is offline  
Old 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)
chocoboss is offline  
Old 11/23/2010, 07:48   #8
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
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.
lesderid is offline  
Old 11/23/2010, 08:39   #9
 
elite*gold: 0
Join Date: Aug 2009
Posts: 8
Received Thanks: 0
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)
chocoboss is offline  
Old 11/23/2010, 09:38   #10
 
Maciupka's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 209
Received Thanks: 104
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.
Maciupka is offline  
Old 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)
chocoboss is offline  
Old 11/23/2010, 10:26   #12
 
Maciupka's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 209
Received Thanks: 104
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.


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 .
Maciupka is offline  
Old 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
chocoboss is offline  
Old 11/23/2010, 10:49   #14
 
Maciupka's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 209
Received Thanks: 104
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>.
Maciupka is offline  
Old 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 ...
chocoboss is offline  
Reply


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


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.