PDA

View Full Version : client login failed


PowerGirl
10-24-2023, 02:54 AM
I installed the latest server for windows on February 11,the server started with login server successfully.The eqemu_config.json loginserver configuration is as follows:

"loginserver2" : {
"account" : "",
"host" : "localhost",
"password" : "",
"port" : "5998"
},

i can log into the server when using the rof client,but fail when using the sod client.
using the sod client, it is able to list the servers. but when i click to login the server,it stagnates for a long time and then prompts failure, and there's not any error in server console. The console shows
[Login] [Info] New SoD+ client connection from [**.**.**.**:****]
[Login] [Info] Attempting password based login [**] login [local]
[Login] [Info] login [local] user [**] Login succeeded
[Login] [Info] Client authentication response: world_address [127.0.0.1] client_address [**.**.**.**]
[Login] [Info] Sending Client Authentication Response ls_account_id [1] ls_name [local] name [**] key [KFYWRAZHBP] ls_admin [0] world_admin [0] ip [**.**.**.**] local [0]
[Login] [Info] Client disconnected from the server, removing client

i've tried to add the "legacy = 1" into the configuretion , it still fails but show the error in the server console as follows:
[Login] [Error] Received User-To-World Response for [1] but could not find the client referenced!

how can i resolve it ,thanks!

faiding
04-06-2025, 11:08 PM
This is an old post, but when I Googled the problem this is the only post that showed up. This issue is caused by this line in world_server.cpp:

157: Client *c = server.client_manager->GetClient(res->lsaccountid, "emu");

If you're running your own login server locally then that needs to say...

157: Client *c = server.client_manager->GetClient(res->lsaccountid, "local");

... and be recompiled.

This is ultimately caused by a line in client.cpp where it's defined...
std::string db_loginserver = "local";
if (std::getenv("LSPX")) {
db_loginserver = "eqemu";
}

Dunno what LSPX is or where that setting is. But replacing "emu" with "local" got it running on Titanium for me.