Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 10:59

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

Advertisement



Help new packet login

Discussion on Help new packet login within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
Help new packet login



I changed the value which is now 3125 but it still shows me this error


my code :

Code:
 default:
                            {
                                if (loadedAccount.Authority < AuthorityType.SMOD)
                                {
                                    MaintenanceLogDTO maintenanceLog = DAOFactory.MaintenanceLogDAO.LoadFirst();
                                    if (maintenanceLog != null && maintenanceLog.DateStart < DateTime.Now)
                                        {
                                            _session.SendPacket($"failc {(byte)LoginFailType.Maintenance}");
                                            return;
                                    }
                                }

                                int newSessionId = SessionFactory.Instance.GenerateSessionId();
                                Logger.Debug(string.Format(Language.Instance.GetMessageFromKey("CONNECTION"), user.Name,
                                    newSessionId));
                                try
                                {
                                    ipAddress = ipAddress.Substring(6, ipAddress.LastIndexOf(':') - 6);
                                    CommunicationServiceClient.Instance.RegisterAccountLogin(loadedAccount.AccountId,
                                        newSessionId, ipAddress);
                                }
                                catch (Exception ex)
                                {
                                    Logger.Error("General Error SessionId: " + newSessionId, ex);
                                }

                                    string[] clientData = loginPacket.ClientData.Split('.');

                                    if (clientData.Length < 2)
                                    {
                                        clientData = loginPacket.ClientDataOld.Split('.');
                                    }

                                    bool ignoreUserName = short.TryParse(clientData[3], out short clientVersion)
                                                          && (clientVersion < 3125
                                                           || ConfigurationManager.AppSettings["UseOldCrypto"] == "true");
                                    _session.SendPacket(BuildServersPacket(user.Name, newSessionId, ignoreUserName));
                            }
redbull2905 is offline  
Old 04/08/2020, 15:38   #2
 
elite*gold: 0
Join Date: Oct 2018
Posts: 257
Received Thanks: 207
1) CountryID is in the login packet (Nos°577 and NsTeST)
2) if you are using the new loging system, it also appears in the "Username GF [countryID]" packet
Apourtartt is offline  
Old 04/08/2020, 16:58   #3
 
elite*gold: 0
Join Date: Apr 2018
Posts: 85
Received Thanks: 78
4 at the end is PL
I think it will be the same like ports
4004 - PL so at the end login should be 4

Thanks GF that could be usefull for Priv servers (player select in launcher language and then can play with his lang, not english)
Rajmund1337 is offline  
Old 04/08/2020, 17:29   #4
 
elite*gold: 0
Join Date: Oct 2018
Posts: 257
Received Thanks: 207
Code:
const QMap <QString, int> langToId
{
    { "EN", 0 },
    { "DE", 1 },
    { "FR", 2 },
    { "IT", 3 },
    { "PL", 4 },
    { "ES", 5 },
    { "CZ", 6 },
    { "RU", 7 },
    { "TR", 8 }
};
Apourtartt is offline  
Old 04/08/2020, 17:42   #5
 
elite*gold: 0
Join Date: Nov 2016
Posts: 59
Received Thanks: 22
This is the old packet when u login


This Is the new Packet

If u check the New Packet it have "286a3f41-b293-4735-9535-8bf5375ef204" this is the language by GF but i don't know how to fix it in the opennos source
aluffino is offline  
Old 04/08/2020, 17:52   #6
 
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
Quote:
Originally Posted by Apourtartt View Post
Code:
const QMap <QString, int> langToId
{
    { "EN", 0 },
    { "DE", 1 },
    { "FR", 2 },
    { "IT", 3 },
    { "PL", 4 },
    { "ES", 5 },
    { "CZ", 6 },
    { "RU", 7 },
    { "TR", 8 }
};
where do we put that?
redbull2905 is offline  
Old 04/08/2020, 18:05   #7
 
elite*gold: 0
Join Date: Oct 2018
Posts: 257
Received Thanks: 207
Nowhere, I added it to complete this message :
Quote:
Originally Posted by Rajmund1337 View Post
4 at the end is PL
I think it will be the same like ports
4004 - PL so at the end login should be 4

Thanks GF that could be usefull for Priv servers (player select in launcher language and then can play with his lang, not english)
Apourtartt is offline  
Old 04/08/2020, 21:22   #8

 
Blowa's Avatar
 
elite*gold: 148
Join Date: Jan 2010
Posts: 654
Received Thanks: 1,774
We are talking here about a string parsing, just a needle in a stack, it's about this kind of basic things.
Blowa is offline  
Thanks
1 User
Old 04/17/2020, 12:15   #9
 
elite*gold: 0
Join Date: Feb 2013
Posts: 10
Received Thanks: 0
Super noob here! how can i read login packets packets?
Wan't to learn how to implement this to change my game region.
p0w40wn3rz is offline  
Old 04/17/2020, 17:26   #10
 
elite*gold: 0
Join Date: Jul 2009
Posts: 25
Received Thanks: 3
nobody call tell you the answer because they don't have any idea please be quit and look another site when you don't have the answer that is not the help
stefano78 is offline  
Old 04/18/2020, 11:49   #11
 
elite*gold: 0
Join Date: Feb 2013
Posts: 10
Received Thanks: 0
Quote:
Originally Posted by stefano78 View Post
nobody call tell you the answer because they don't have any idea please be quit and look another site when you don't have the answer that is not the help
Just saying that i'm willing to learn and help. i also have some info looking at the nosmall code.
if anyone who knows how to program want's to try and bypass send my a pm i guess.
p0w40wn3rz is offline  
Reply


Similar Threads Similar Threads
What new section in the new login packet mean?
08/09/2018 - Nostale - 9 Replies
Login packet has changed after new class update: NoS0575 %random% Login SHA512password ????? version 0 MD5NostaleClientX+MD5NostaleClient What ????? mean? Anyone know?
[Help] Weather Packet (My First Packet)
06/07/2014 - CO2 Private Server - 95 Replies
delete this thread.
[C#] About packet injection (login packet)
07/24/2013 - SRO Coding Corner - 3 Replies
hello im developing a new bot called Silkroad Fusion and i did some research and i found about Drew's Silkroad security so i used it and i made my own proxy and i needed a little help with the login packet here is my code Packet login = new Packet((ushort)0x6102); login.WriteUInt8(Proxy.SRLocal);//isro locale login.WriteAscii(ID.Text); login.WriteAscii(PW.Text); login.WriteAscii("");//mobile vertification code ...



All times are GMT +1. The time now is 11:00.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.