Jump to content

Recommended Posts

  • 2 years later...
On 5/12/2018 at 4:53 PM, Mali said:

M2 Download Center

This is the hidden content, please
( Internal )

This is the hidden content, please
( GitHub )

  Hide contents

233747giphy.gif

 

 

@ Mali After i made the changes the client are closing when get the party with the error.
Unknown packet header: 101, last: 79 79

Can you help me please?
 

  • Metin2 Dev 1
  • Good 1
  • Love 1
  • 3 weeks later...
  • 1 month later...

When creating a party and i teleport to other core, the p2p comunication stops working and i have the same offline problem like other users

Tried differend code changes but failed.

If anyone know how to fix please let me know.

Edited by Thrall
7 hours ago, Thrall said:

When creating a party and i teleport to other core, the p2p comunication stops working and i have the same offline problem like other users

Tried differend code changes but failed.

If anyone know how to fix please let me know.

yeah, unfortunately this release is bugged. same problem for me and other people.

  • 1 year later...

The P2P comunication and offline problem comes when server tries to send to server a packet that is unknown to him, so with this system added at least on martysama you also need to add:

packet_info.cpp

This is the hidden content, please

That would be all for me, works after.

 

Now this logic, needs to change as well from party.cpp:

This is the hidden content, please

95% working except a few things like for example:

- The Parameter packet, needs p2p adaption (When you change experience from level to equal, it only changes in that specific core)

- In my files i dont want players to break the party if one of the members is in dungeon or if the dungeon is alive.

- The "Join now" option from target need adaption to p2p

- CHAT_TYPE_PARTY needs adaption as well for p2p

Edited by Thrall
Adding hide tags.
  • Metin2 Dev 29
  • Good 4
  • Love 8
  • 7 months later...
  • Active+ Member

Bumping on an old topic but it seems unfinished yet valuable for a lot of people so here's my 2 cents:

For the Offline issue across channels/cores:

Spoiler
// In void CParty::UpdateOnlineState(DWORD dwPID, const char* name) instead of:
		CCI *pCCI = P2P_MANAGER::instance().Find(it->second.strName.c_str());
		if (it->second.pCharacter && it->second.pCharacter->GetDesc())
			it->second.pCharacter->GetDesc()->Packet(&p, sizeof(p));
		else if (pCCI)
			pCCI->pkDesc->Packet(&p, sizeof(p));
// do this:
		if (it->second.pCharacter && it->second.pCharacter->GetDesc())
			it->second.pCharacter->GetDesc()->Packet(&p, sizeof(p));
		else
		{
			CCI *pCCI = P2P_MANAGER::instance().Find(it->second.strName.c_str());

			if (pCCI)
			{
				if (!pCCI->pkDesc)
				{
					sys_err("pCCI->pkDesc is NULL for %s", it->second.strName.c_str());
					continue;
				}

				pCCI->pkDesc->SetRelay(it->second.strName.c_str());
				pCCI->pkDesc->Packet(&p, sizeof(p));
			}
		}

// Same for UpdateOfflineState

Basically SetRelay before every pCCI->pkDesc->Packet call.

I found this to be solving the issue.

 

Issues that I didn't solve yet:

  • When a new member tries to enter the party through a non-leader member and the leader is in another channel/core the request is rejected because the leader appears offline.
  • When a new member enters the team through the leader, the leader's mapIdx changes back if the leader has teleported away from the map where they created the team. For example the leader creates a team in the mountain and teleports to C1, if a new member from C1 joins, the leader's mapIdx will go back to 61 (mountain) for all viewing members

If anyone has information about these 2 issues we would all appreciate a share!

Thanks devs!

Edited by Mind Rapist

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.