Jokerino 3 Posted March 16, 2017 Share Posted March 16, 2017 Hi guys, i've got a big problem with the login, i'm using source 40k by kr@izy. The problem is that when i try to create a new character iand click button "start" it stops and in the syserr of the channel1 there's this line Empire: EmpireSelectFailed 1 This is the function in the source: Spoiler void CInputLogin::Empire(LPDESC d, const char * c_pData) { const TPacketCGEmpire* p = reinterpret_cast<const TPacketCGEmpire*>(c_pData); if (EMPIRE_MAX_NUM <= p->bEmpire) { d->SetPhase(PHASE_CLOSE); return; } const TAccountTable& r = d->GetAccountTable(); if (r.bEmpire != 0) { for (int i = 0; i < PLAYER_PER_ACCOUNT; ++i) { if (0 != r.players[i].dwID) { sys_err("EmpireSelectFailed %d", r.players[i].dwID); return; } } } TEmpireSelectPacket pd; pd.dwAccountID = r.id; pd.bEmpire = p->bEmpire; db_clientdesc->DBPacket(HEADER_GD_EMPIRE_SELECT, d->GetHandle(), &pd, sizeof(pd)); } Thanks! 1 2 Link to comment Share on other sites More sharing options...
Jokerino 3 Posted March 17, 2017 Author Share Posted March 17, 2017 Uppp! Link to comment Share on other sites More sharing options...
Premium Syreldar 1875 Posted March 17, 2017 Premium Share Posted March 17, 2017 it creates an account with 0 as empire value, which is not possible for the game to handle. the empire values are: 1: Shinsoo 2: Chunjo 3: Jinno Any other value will not be recognized by the game if you don't work properly to add another more empire values. "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Jokerino 3 Posted March 18, 2017 Author Share Posted March 18, 2017 23 hours ago, Syreldar said: it creates an account with 0 as empire value, which is not possible for the game to handle. the empire values are: 1: Shinsoo 2: Chunjo 3: Jinno Any other value will not be recognized by the game if you don't work properly to add another more empire values. Thanks for the answer,, so what i have to modify in that file ? Link to comment Share on other sites More sharing options...
Jokerino 3 Posted April 6, 2017 Author Share Posted April 6, 2017 UPP Link to comment Share on other sites More sharing options...
Active Member Mind Rapist 188 Posted December 18, 2018 Active Member Share Posted December 18, 2018 Same problem here. Function in input_login.cpp is correct. Anyone knows other files to look? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now