Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

EmpireSelectFailed syserr channel1


Jokerino

Question

Hi guys, i've got a big problem with the login, i'm using source 40k by [email protected]

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  • Premium

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

  • 0
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 4

      problem Dargon Soul Changre Attribute

    2. 41

      Global Chat

    3. 4

      problem Dargon Soul Changre Attribute

    4. 2

      Startup Loading Window Library

    5. 28

      Ludus2: metin2 fan project

    6. 44

      Inbuild GR2 Animation

    7. 6

      Minimap Mob proto

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.