Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 11:02

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

Advertisement



P-server login Packets

Discussion on P-server login Packets within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old   #1
 
cane3's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 261
Received Thanks: 72
P-server login Packets

hi man, login packets for p-server is?

LOGIN|UID|SID|CV is old and not work
thx for help
cane3 is offline  
Old 09/09/2014, 15:48   #2
 
Uther's Avatar
 
elite*gold: 231
Join Date: Dec 2013
Posts: 578
Received Thanks: 746
Here is a snippet from my Private Server Bot should help you.
Code:
    public void handleGameServerConnect()
        {
            List<string> loginDetails = new List<string>() { Main.Hero.userID.ToString(), Main.Hero.sessionID, Main.version };
            if (!(Main.Hero.factionID == 0) && Settings.mapID == 255)
            {
                loginDetails.Add(Main.Hero.factionID.ToString());
            }
            Packet LoginPacket = new Packet(ClientCommands.LOGIN, loginDetails.ToArray());
            this.sendCommand(LoginPacket);
        }
Uther is offline  
Thanks
4 Users
Old 09/09/2014, 15:57   #3
 
elite*gold: 46
Join Date: Oct 2010
Posts: 782
Received Thanks: 525
Snippet from my PServer bot
Code:
        m_pyGlobal["Client"] = bp::object(bp::ptr(m_pSendWrapper));

	m_pyGlobal["Initialize"](userId, m_sessionId, "4.1");

	std::string login = "LOGIN|" + std::to_string(m_userId) + "|" + m_sessionId + "|4.1";

	pClient->Send(login);
That does work for 4.1 Clients/Servers.
th0rex is offline  
Thanks
4 Users
Old 09/09/2014, 16:42   #4
 
'Heaven.'s Avatar
 
elite*gold: 1
The Black Market: 331/0/0
Join Date: Jun 2012
Posts: 5,819
Received Thanks: 3,200
Snipped from my Privateserverbot

Code:
var packet = new Packet(New PacketFactory(ClientCommands.LOGIN,Hero.UserID,Hero.SessionID,ClientVersion));
_socket.Send(packet.Serialize().ToByteArray());


Its just LOGIN|UserID|SessionID|Clientversion

Cientversion should be 4.1
'Heaven. is offline  
Thanks
6 Users
Old 09/09/2014, 16:53   #5
 
Uther's Avatar
 
elite*gold: 231
Join Date: Dec 2013
Posts: 578
Received Thanks: 746
Haha who's next ?
Uther is offline  
Thanks
1 User
Old 09/09/2014, 16:56   #6
 
cryz35's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,716
Received Thanks: 2,380
A quote from my Darkorbit Server which might help you;
Code:
 
		if(packet[0] == ServerCommands.LOGIN)
		{
			if(Server.GetClientVersion() != packet[3])
			return;
			
			UserId = int.Parse(packet[1]);
			SessionId = packet[2];
			...
		}
cryz35 is offline  
Thanks
5 Users
Old 09/09/2014, 17:10   #7
 
Diаmonds's Avatar
 
elite*gold: 1
Join Date: Oct 2013
Posts: 1,257
Received Thanks: 1,276
Simple snippet from a great guy

Code:
static void Start()
        {
            m_gameProxy = new GameProxy<DarkorbitProtocol, DarkorbitPacket, NoEncryption>();

            GlobalObjects.RegisterClassInstance(m_gameProxy);

            m_gameProxy.SetEncoding(Encoding.UTF8);

            m_gameProxy.ServerNotFound += m_gameProxy_ServerNotFound;
            m_gameProxy.ServerError += m_gameProxy_ServerError;
            m_gameProxy.ClientError += m_gameProxy_ClientError;

            m_gameProxy.DispatchClientPacket += m_gameProxy_DispatchClientPacket;
            m_gameProxy.DispatchServerPacket += m_gameProxy_DispatchServerPacket;
            m_gameProxy.Start(IPAddress.Parse("37.187.179.147"), 8080);
            IPacket loginPacket = new DarkorbitPacket(new Buffer("LOGIN|" + m_userId + "|" + m_sessionId + "|4.1", Encoding.UTF8));
            m_gameProxy.SendPacket(loginPacket, ESendDirection.ClientToServer);
        }
Diаmonds is offline  
Thanks
4 Users
Old 09/09/2014, 18:47   #8
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
PHP Code:
if (substr($packet05) == "LOGIN") {
            
self::uLogin($packet);
        } 
PHP Code:
private function uLogin($packet) {
        
$s explode("|"$packet);
        
$w self::SQLexe('SELECT * FROM server_1_players INNER JOIN users ON users.ID=server_1_players.userID WHERE server_1_players.tokenId=' $s[2] . ' && server_1_players.playerID=' $s[1] . '');
        if (!empty(
$w)) { 

Snippet by Bau for login on p-server ^^
UND3RW0RLD is offline  
Thanks
3 Users
Reply


Similar Threads Similar Threads
Login Packets or opcode
06/03/2014 - SRO Coding Corner - 4 Replies
...
Packets to recv when login?
04/18/2013 - DarkOrbit - 1 Replies
hi my question is which packets should the 2010 client recv after sending login packet? never sniffed darkorbit packets before half of 2012 so i never could decrypt packets and look what does it sends. i made a basic emu, very basic just for testing (send/recv) and my problem is when i recv login packet i dont know what should i send (supossing login sucess). tried with add hero ship packet "I", new map "m" or update position "D" so i came here to ask u guys thanks
[Release] +5500 Packets structure , client/packets constants
10/07/2012 - CO2 PServer Guides & Releases - 10 Replies
edit : if u know nothing about packets go to this post first explaining what is packets , and explaining a packet with details and everything http://www.elitepvpers.com/forum/co2-pserver-disc ussions-questions/2162344-packets-packets-packets. html#post19074533 i start making my very own packet structure to use them on my new proxy but i thought of ripping them from the source so yeah the following packets is ripped of trinity base source right now im just providing the packets structure...
Login Packets for 5089+ (New Client)
02/13/2009 - CO2 Programming - 7 Replies
I know I might be a little crazy, but I'm going to work on a CO Client. I'm trying to do a proxy/packet logger and a very simple client that can do some basic things. Later is definitely a big project, but it is something I want to tackle. However, before I can do that, there are a few things that I need to know. Does anyone have the login packet structures for 5089+? There are a couple of things that I am looking for and perhaps just some clarification on what I already know from the...
kal packets Problems: welcome package and login [programing]
09/26/2007 - Kal Online - 7 Replies
Hi I'm trying to understand the the Kal clients packets, but i don't get it :'( Here i will relase what i have got and understand, but there are some thinks that i don't understand. I hope someone can help me ^^ I think here are some talented programmer, who already made reverse engineering with kal and can maybe help me ^^ Some explanations: 1) is meaning, that i send something from the client to the server



All times are GMT +2. The time now is 11:02.


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.