Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
145 stars 127 forks source link

Problem with client connection. #444

Closed Verkeen closed 3 years ago

Verkeen commented 3 years ago

Hi. I'm using this server files "https://github.com/malucooo/otxserver-new". I compiled correctly after few hours of suffering with problems. And i'm stuck at client now, my version is 12.40.9997. On website I can make accounts, characters and everything, but when I try to log in to the game I type email, password, choose character and it says " Account name or password is not correct." Where can I find the problem ? It's weird that after choosing character i get wrong account name or password :D

Znote commented 3 years ago

Gameserver coniguration mismatch between config.lua and config.php probably, are you using protocol 11+? Have you tried to use znote_login Lua script?

https://github.com/Znote/ZnoteAAC/blob/master/Lua/TFS_10/revscriptsys/znote_login.lua

Ariesmx117 commented 3 years ago

Good morning, I get the same error with the same client 12.40.9997 and this message in the .exe [IOLoginData :: gameworldAuthentication] Account not found! I am using otx4 and I already have the login in data / scripts but the error still continues.

and I also have an error but different with client 12.51, I posted it on otland https://otland.net/threads/client-12-51-rsa.273075/

I hope and can help me. sorry for the inconvenience

Znote commented 3 years ago

Confirmed to work without any issues against latest OtservBR client 12.51: https://github.com/opentibiabr/otservbr-global/pull/1801

Tested latest version of "Develop" in otservbr 31. October 2020.

image

@Ariesmx117 Add this script to your data/scripts/ folder: https://github.com/Znote/ZnoteAAC/blob/master/Lua/TFS_10/revscriptsys/znote_login.lua

Edit: otx4 has a different protocol authentication than otservbr.

otservbr uses email, otx4 uses account name, here is the patch (which will break otservbr): https://github.com/Znote/ZnoteAAC/blob/a88d3710fbf64c10134e91af0078470709518902/login.php#L179

$sessionKey = $username."\n".$client->password;