Jump to content

Daisuke

Advanced members
  • Content Count

    34
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Daisuke


  1. On 8/14/2019 at 6:29 AM, Zett said:

    Bug Title: Random Disconnects
    Bug Description: When many few players online it randomly disconnects.. any of them with the reason 10054 which says that "Host forcibly closed your connection"
    How to replicate:
    The only way to replicate is to login and wait for the game to disconnect you.. so you can see the reason.
    Status (pending / close / open): OPEN (Not Fixed)
    Author (whoever that fixes it):

    Does anyone know how fixed?

     


  2. @Graf The only solution I found was to limit CPU usage by the ball manager whenever I turn on the groupserver.

     

    => Task Manager / GroupServer.exe (right-click GroupServer.exe => Details) / Then under Details right-click GroupServer.exe and click Set Affinity. 

    In my case appeared 4 CPU I left only 1 selected.

    • Like 1
    • Thanks 1

  3. On 8/4/2019 at 9:21 PM, Angelix said:

    Little contribution. This should allow you to choose were a player revives when they press the prompt "revive in town". For those interested in making new map scripts and also stuff like respawning near a portal if a map is still active like "Chaos Argent" and such.

     

    Lua function and its corresponding source adjustment.

    
    MapRespawnOnDeath = function(Player)
    	return ""
    end
    
    void CCharacter::BackToCity(bool bDie, cChar *szCityName, Long lMapCpyNO, Char chSwitchType)
    {
    	SubMap	*pCMap = GetSubMap();
    	pCMap->GoOut(this);
    	SetToMainCha(bDie);
    	CCharacter	*pCMainCha = GetPlyMainCha();
    	pCMainCha->SetExistState(enumEXISTS_NATALITY);
    	//pCMainCha->m_timerScripts.Reset();
    	/*
    	if(bDie && (!strcmp(pCMap->GetName(), "guildwar")))
    	{
    		if(GetGuildType() == emGldTypePirate)
    		{
    			szCityName = "guildwarpirateside";
    		}
    		else
    		{
    			szCityName = "guildwarnavyside";
    		}
    	}
    	else if(bDie && (!strcmp(pCMap->GetName(), "guildwar2")))
    	{
    		if(GetGuildType() == emGldTypePirate)
    		{
    			szCityName = "guildwarpirateside2";
    		}
    		else
    		{
    			szCityName = "guildwarnavyside2";
    		}
    	}
    	*/
    	if (g_CParser.DoString("MapRespawnOnDeath", enumSCRIPT_RETURN_STRING, 1, enumSCRIPT_PARAM_LIGHTUSERDATA, 1, pCMainCha, DOSTRING_PARAM_END))
    		szCityName = g_CParser.GetReturnString(0);
    
    	if (!szCityName || !strcmp(szCityName, ""))
    		pCMainCha->ResetBirthInfo();
    	else
    	{
    		SBirthPoint	*pSBirthP;
    		pSBirthP = GetRandBirthPoint(GetLogName(), szCityName);
    		SetBirthMap(pSBirthP->szMapName);
    		SetPos(pSBirthP->x * 100, pSBirthP->y * 100);
    	}
    	pCMainCha->SwitchMap(pCMap, pCMainCha->GetBirthMap(), pCMainCha->GetPos().x, pCMainCha->GetPos().y, false, chSwitchType, lMapCpyNO);
    }

     

    Ty @Angelix

     

     

     

     

    • Haha 1
×
×
  • Create New...