Offline shop major problem

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Sinnocent
Posts: 37
Joined: Tue Sep 08, 2015 8:42 am

Offline shop major problem

Post by Sinnocent »

I have a problem with offline shop, if some one makes an offline shop. They cannot log back into game.. when they trying too select server it always says "disconnected from game". Major problem here... any one have a fix?
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Offline shop major problem

Post by Attila »

yes i got it to if you put a offline shop to server,
and you got restore offliners on and the server make a restart
you can't log in back to game with your account you get the message you have been disconnected from the server please login again.
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Offline shop major problem

Post by Sacrifice »

If you place a player in offline mode... you must insert user and password one time (server place player out of session). Secondly you must place again same user and password and player must enter world... if not... then is a bug.

Try with my tip...
DevOps and Java Developer using Eclipse, Java 21, MySQL 8.0+
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Offline shop major problem

Post by Attila »

Sacrifice wrote:If you place a player in offline mode... you must insert user and password one time (server place player out of session). Secondly you must place again same user and password and player must enter world... if not... then is a bug.

Try with my tip...
yes i no
but at the first time i get the message you have been disconnected from the server please login again.
and the player re mains in offline shop mode How many times I try to login to the game.
I think it's a bug at the new master hi5
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Offline shop major problem

Post by Sacrifice »

Attila wrote:
Sacrifice wrote:If you place a player in offline mode... you must insert user and password one time (server place player out of session). Secondly you must place again same user and password and player must enter world... if not... then is a bug.

Try with my tip...
yes i no
but at the first time i get the message you have been disconnected from the server please login again.
and the player re mains in offline shop mode How many times I try to login to the game.
I think it's a bug at the new master hi5
Its extrange... but Im using last version and i dont have this issue...

Its two times... first is as you tell, and the second time you can enter with the player normally.
DevOps and Java Developer using Eclipse, Java 21, MySQL 8.0+
Sinnocent
Posts: 37
Joined: Tue Sep 08, 2015 8:42 am

Re: Offline shop major problem

Post by Sinnocent »

That doesn't work. Something is wrong, yes you enter account the first time and it says account is in use. Then you try too login and it won't let you in, just disconnects you on server select screen, you can try 100 times but it won't let you in, always disconnect. So I had too disable it now.. like a lot of other features here.
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Offline shop major problem

Post by Sacrifice »

Banned accounts???... Could be? :idea: :idea: :idea:
DevOps and Java Developer using Eclipse, Java 21, MySQL 8.0+
Sinnocent
Posts: 37
Joined: Tue Sep 08, 2015 8:42 am

Re: Offline shop major problem

Post by Sinnocent »

No, doesn't matter who it is, no one is banned on my server. Also there are no console errors
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Offline shop major problem

Post by Sacrifice »

Sinnocent wrote:No, doesn't matter who it is, no one is banned on my server. Also there are no console errors
Then could be a bug...
DevOps and Java Developer using Eclipse, Java 21, MySQL 8.0+
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Offline shop major problem

Post by Attila »

Sinnocent wrote:No, doesn't matter who it is, no one is banned on my server. Also there are no console errors
same problem here

happened only if the server makes a restart
you put a offline shop to server.
server make a restart
then you try to login back to server with your offline shop account
and it won't let you in, just disconnects you on server select screen, you can try lot of times but it won't let you in, always disconnect.
and if you put offline shop to server off
and you make restart with server again
then you can be login with your account to server because then all offline shops are gone.
so the problem is that he is not take the offline shop away if you try to login back to server.
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Offline shop major problem

Post by u3games »

Yes... double login because offline code use:

Code: Select all

L2World.getInstance().addPlayerToWorld(player);
client.setState(GameClientState.IN_GAME);
player.setClient(client);
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Offline shop major problem

Post by Attila »

u3games wrote:Yes... double login because offline code use:

Code: Select all

L2World.getInstance().addPlayerToWorld(player);
client.setState(GameClientState.IN_GAME);
player.setClient(client);
do we must do something with with this ?
maxstyleboy
Posts: 183
Joined: Thu Jul 15, 2010 12:26 am

Re: Offline shop major problem

Post by maxstyleboy »

i have same problem. Any fix?!
Sinnocent
Posts: 37
Joined: Tue Sep 08, 2015 8:42 am

Re: Offline shop major problem

Post by Sinnocent »

Someone said above the problem is coming from enabling the restore option. I disabled that function. So offline shops work now. But after server restarts they must setup shops again.
User avatar
Avanael92
Advanced User
Advanced User
Posts: 189
Joined: Thu Aug 07, 2014 5:26 pm
Location: Germany

Re: Offline shop major problem

Post by Avanael92 »

Well, tried to reproduce this problem.

I didn't realize, L2J uses develop branch now instead of master, so I have this problem too. In develop branch, this is fixed.

On master, this red line in OfflineTradersTable.java within the restoreOfflineTraders method is missing:
L2World.getInstance().addPlayerToWorld(player);
client.setState(GameClientState.IN_GAME);
player.setClient(client);
Without this line, the player is practically not ingame, so you can't kick him out of the game which results in this disconnect loop.

After adding this, I could login in two attempts after restart like explained here already.
Post Reply