
We moved our repositories to BitBucket!
If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com
Check our wiki!
Report server issues here
Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.
Thank you for visiting http://www.l2jserver.com/
If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com
Check our wiki!
Report server issues here
Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.
Thank you for visiting http://www.l2jserver.com/
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: 247
- Joined: Tue Jan 12, 2016 3:53 am
Client crash on login if your character's position changed
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.


- FinalDestination
- Advanced User
- Posts: 166
- Joined: Wed May 09, 2012 6:18 pm
- Location: Greece, Thessaloniki
- ShinichiYao
- Advanced User
- Posts: 247
- 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);
}
}
- FinalDestination
- Advanced User
- Posts: 166
- 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);

- Sacrifice
- Advanced User
- Posts: 1020
- Joined: Thu Aug 14, 2014 6:31 am
- Location: Spain
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);

Retail GameMaster and Developer using Eclipse for Java Developers (64 bits), OpenJDK11 (64 bits), MySQL 8.0+ (64 bits).
- Sacrifice
- Advanced User
- Posts: 1020
- Joined: Thu Aug 14, 2014 6:31 am
- Location: Spain
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 amAlso 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); } }
Retail GameMaster and Developer using Eclipse for Java Developers (64 bits), OpenJDK11 (64 bits), MySQL 8.0+ (64 bits).