Rezolvare pentru eroarea:
Apare atunci cand schimbi canalul / te teleportezi in alta mapa.P2PSendSwitchbot: No switchbot found to transfer. (pid 28 source_port 13000 target_port 16000)
Switchbot Sanii.
*Link download / Code:
Deschidem new_switchbot.cpp si cautam:
Code:
void CSwitchbotManager::Initialize()
{
m_map_Switchbots.clear();
}Cautam:
Code:
void CSwitchbotManager::P2PSendSwitchbot(DWORD player_id, WORD wTargetPort)
{
CSwitchbot* pkSwitchbot = FindSwitchbot(player_id);
if (!pkSwitchbot)
{
sys_err("No switchbot found to transfer. (pid %d source_port %d target_port %d)", player_id, mother_port, wTargetPort);
return;
}
pkSwitchbot->Pause();
m_map_Switchbots.erase(player_id);
TPacketGGSwitchbot pack;
pack.wPort = wTargetPort;
pack.table = pkSwitchbot->GetTable();
P2P_MANAGER::Instance().Send(&pack, sizeof(pack));
}

la acest mesaj și conținutul se va afișa automat.




