For example if you logout in an instance, and after the instance finished you would login at the exitpoint of the instance. In this case Client crashes.
Client crash on login if your character's position changed
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- ShinichiYao
- Advanced User
- Posts: 262
- Joined: Tue Jan 12, 2016 3:53 am
-
- Advanced User
- Posts: 167
- Joined: Wed May 09, 2012 6:18 pm
- Location: Greece, Thessaloniki
Re: Client crash on login if your character's position changed
yes happens me too
- ShinichiYao
- Advanced User
- Posts: 262
- Joined: Tue Jan 12, 2016 3:53 am
Re: Client crash on login if your character's position changed
Also happened in NoRestartZone. If player.teleToLocation execute too fast after spawnMe in EnterWorld could cause this issue.
Code: Select all
@Override
public void onPlayerLoginInside(L2PcInstance player)
{
if (!_enabled)
{
return;
}
if (((System.currentTimeMillis() - player.getLastAccess()) > getRestartTime()) && ((System.currentTimeMillis() - GameServer.dateTimeServerStarted.getTimeInMillis()) > getRestartAllowedTime()))
{
player.teleToLocation(TeleportWhereType.TOWN);
}
}
-
- Advanced User
- Posts: 167
- Joined: Wed May 09, 2012 6:18 pm
- Location: Greece, Thessaloniki
Re: Client crash on login if your character's position changed
Code: Select all
// we need to add delay here in case of critical error on player login.
ThreadPoolManager.getInstance().scheduleGeneral(() -> player.teleToLocation(TeleportWhereType.TOWN), 1000);
-
- Advanced User
- Posts: 1026
- Joined: Thu Aug 14, 2014 6:31 am
Re: Client crash on login if your character's position changed
Always ThreadPool general must to do all jobs...FinalDestination wrote: ↑Sun Dec 02, 2018 9:19 amCode: Select all
// we need to add delay here in case of critical error on player login. ThreadPoolManager.getInstance().scheduleGeneral(() -> player.teleToLocation(TeleportWhereType.TOWN), 1000);
-
- Advanced User
- Posts: 1026
- Joined: Thu Aug 14, 2014 6:31 am
Re: Client crash on login if your character's position changed
That's "better solution"... don't know if is correctly expelled, but as concept... Can be usefulShinichiYao wrote: ↑Tue Oct 10, 2017 11:11 am Also happened in NoRestartZone. If player.teleToLocation execute too fast after spawnMe in EnterWorld could cause this issue.
Code: Select all
@Override public void onPlayerLoginInside(L2PcInstance player) { if (!_enabled) { return; } if (((System.currentTimeMillis() - player.getLastAccess()) > getRestartTime()) && ((System.currentTimeMillis() - GameServer.dateTimeServerStarted.getTimeInMillis()) > getRestartAllowedTime())) { player.teleToLocation(TeleportWhereType.TOWN); } }