Jump to content

Recommended Posts

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!

  • Sad 1
  • Love 2
Link to comment
https://metin2.dev/topic/15261-empireselectfailed-syserr-channel1/
Share on other sites

  • Honorable Member

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

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 ?

  • 3 weeks later...
  • 1 year later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.