Closed MaxiBoether closed 10 years ago
Hmm, are you sure that you're using the correct credentials? It might be that the login process of garena is different than from the rest.
Yes, I am for sure using the right credentials. Tested multiple times I can log in to Garena with them.
Edit: If can help you in any way fixing this, please let me now. For example send me your twitter (Mine is @MayestersGaming) and we can exchange Skype names over direct message if you want. I really need to use Garena regions and I will do anything what I can do to use them.
Could you show me your code? In particular the code where you use LolChat#login. This method shouldn't return unless authentication is for sure succesful. So I have absolutely no idea what is going wrong if your code keeps running after login.
Code:
LolChat sgChat = new LolChat(ChatServer.SEA,
FriendRequestPolicy.MANUAL);
sgChat.login("leaguealerter", "password");
http://puu.sh/bMcFY/f744e04099.png <- the SMACK Debug output. The method returns.
Any exception being thrown from login?
Nope nothing, code just goes on.
In the Riot supported regions the login process uses your password and prepends "AIR_" to it. I think this is where Garena login is different, altough I have no idea how their actual login process works. Could you perhaps use a network sniffer and search for connections to chat.lol.garenanow.com
?
I may have found something. In the login method use the following arguments:
username: garena user id
(found when clicking on avatar apparently, should only contain numbers)
password: "pass" + garena user id with the 5 last characters removed
Derived from
string pass = "AIR_pass" + this.txbLogin.Text.Substring(this.txbLogin.Text.Length - 5);
I got this from ftp://ftp.heanet.ie/mirrors/sourceforge/a/ap/appearoffline/frmMain.cs
Still doesn't work :/ ChatServer.SEA, "_300589", "pass_3" Being used, same error as before (same XMPP output)
What if you don't remove the last 5 chars?
Same error
I'm out of options, If you want support for garena you'll have to find it out yourself.
2014-09-27 21:57 GMT+02:00 Mayesters notifications@github.com:
Same error
— Reply to this email directly or view it on GitHub https://github.com/TheHolyWaffle/League-of-Legends-XMPP-Chat-Library/issues/4#issuecomment-57063867 .
I found it! It has to be the last 5 chars, not the first 5! So remove the first4 chars and it works! YAAAY! At least for Singapore. For Vietnam it doesn't, for Taiwan I can't check (chat servers are down)
Could you give me an fake example so I can implement garena properly? Also, why wouldn't it work for Vietnam?
You said remove the last 5 chars, but you have to keep the last 5 and remove the first four. I am currently on my mobile but anyways: Example: Garena id is 123456789 LolChat Username must be 123456789 Password must be pass1234
If you want a coded example, I can send you an example tomorrow.
Vietnam was my bad, I did something wrong. It should work.
Sincerely, Mayesters
Am 28.09.2014 um 19:42 schrieb Bert De Geyter notifications@github.com:
Isn't that what I said, the last 5 chars?
— Reply to this email directly or view it on GitHub.
There must be some kind of miscommunication.
You said you have to remove the first four chars, but in your example you keep the first four chars?
I am really sorry, I was laying in bad and replying via eMail and couldn't look at my code <.< I suck at developing xD
Working example: ID: 123456789 Password: pass56789
That is it. Remove the first 4 chars just like I wrote: http://puu.sh/bSBkl/b7738746d0.png here. I am sorry for the miscommunication :/
Alright, thank you.
Do you think this method will also work for people who have an ID that is shorter/longer than yours?
I have absolutley no idea, but I think it should always be the last 5 chars for the password and full ID for the username. At least it makes sense and in the .NET C# Source you linked all ID Lengths are handled the same way, so I think yes, it should. Always last 5 chars
Fixed in 274b2eeb11c03213e5cf3fa043e4ef7744ebd0f5. Maven: 1.2.7
Hello,
I can successfully connect to Taiwan and Singapore, but after some seconds (~30), I get disconnected with the following error:
Sometimes the error is different:
Is guess it happens because the Garena chat behaves different from the Riot regions? Is there any way to fix this?
Edit: After debugging, it seems like even the login doesn't work. If you activate the xmpp debug you'll see what I mean.