|
You last visited: Today at 10:59
Advertisement
Help new packet login
Discussion on Help new packet login within the Nostale forum part of the MMORPGs category.
04/08/2020, 13:55
|
#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));
}
|
|
|
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
|
|
|
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)
|
|
|
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 }
};
|
|
|
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
NoS0575 1587674 ID 25C06A608C93A70BF1A2955AEC32C9D7D6FD269B74D6756282 A45BAC49D93125573F7F8BDD32C9A143351A6EB5C1E4B8210C 314B6877F5541C1CCE4D16101A6C 00617EDA0.9.3.3063 0 00DB5B9EFBB9BE12AABA67065F7F1030
This Is the new Packet
NoS0575 3083934 ID 0CA357F3B30AC9C755BEF870E88916A6AE4C8C60EFBA56BC92 DD99C7229D526C949BD0A6E97D1BDA8F7A74103E058C987521 8C381549D2CB181D09E6D6FB904E "286a3f41-b293-4735-9535-8bf5375ef204" 0011B425 00.9.3.3125 0 EE26C34910E18C1340FF125D816E6700
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
|
|
|
04/08/2020, 17:52
|
#6
|
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
|
Quote:
Originally Posted by Apourtartt
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?
|
|
|
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
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)
|
|
|
|
04/08/2020, 21:22
|
#8
|
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.
|
|
|
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.
|
|
|
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
|
|
|
04/18/2020, 11:49
|
#11
|
elite*gold: 0
Join Date: Feb 2013
Posts: 10
Received Thanks: 0
|
Quote:
Originally Posted by stefano78
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.
|
|
|
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.
|
|