Page 1 of 1

game server issues

Posted: Thu Aug 22, 2013 2:11 am
by emada
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: latest stable
L2JDP Revision Number: latest stable

I am running L2J on ubuntu 12.04

the login server is working awesome but people are saying they cant get on the game server, while some can get on it for a while but if they leave and come back they cant get on the game server. Ideas? Thank you.

Re: game server issues

Posted: Thu Aug 22, 2013 7:30 am
by abramsba
I'm assuming you're running the server using

Code: Select all

bash startGameServer.sh
In which case you had to create a folder called log inside the game and login server called log. The server should have created a file inside that directory called stdio.out (which is the output from the server) or something along those lines.

Do you have this file and does it say anything?

Re: game server issues

Posted: Thu Aug 22, 2013 9:03 am
by jurchiks
you're supposed to run the server via GameServer_loop.sh

Re: game server issues

Posted: Thu Aug 22, 2013 1:13 pm
by emada
abramsba wrote:I'm assuming you're running the server using

Code: Select all

bash startGameServer.sh
In which case you had to create a folder called log inside the game and login server called log. The server should have created a file inside that directory called stdio.out (which is the output from the server) or something along those lines.

Do you have this file and does it say anything?
well i moved that log file to /var/log/ and here is what i got from it "i did turn on debugging":

Code: Select all

Client: [Character: Missty[268484196] - Account: zanderman2 - IP: 75.129.144.182] - Failed writing: SSQStatus - L2J Server Version: 5937 - DP Revision: 9641 ; / by zerojava.lang.ArithmeticException: / by zero        at com.l2jserver.gameserver.network.serverpackets.SSQStatus.writeImpl(SSQStatus.java:232)        at com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket.write(L2GameServerPacket.java:61)        at org.mmocore.network.SelectorThread.putPacketIntoWriteBuffer(SelectorThread.java:619)        at org.mmocore.network.SelectorThread.prepareWriteBuffer(SelectorThread.java:589)        at org.mmocore.network.SelectorThread.writePacket(SelectorThread.java:500)        at org.mmocore.network.SelectorThread.run(SelectorThread.java:187)  
and that is really the only error i see.

Re: game server issues

Posted: Thu Aug 22, 2013 1:17 pm
by emada
jurchiks wrote:you're supposed to run the server via GameServer_loop.sh
So I looked inside that script and took out:

Code: Select all

java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1
and i run just that all by it self, i did modify the log to redirect to /var/log/stdout.log. will that cause some of my issues? should i just be using the bash script?

I did the same thing with the login server script and it works like a champ.

Re: game server issues

Posted: Thu Aug 22, 2013 1:43 pm
by jurchiks
why'd you put it in /var/log/? it should log the server stuff in the server log directory.
just use the bash script and don't modify the directories.

Re: game server issues

Posted: Thu Aug 22, 2013 6:20 pm
by emada
jurchiks wrote:why'd you put it in /var/log/? it should log the server stuff in the server log directory.
just use the bash script and don't modify the directories.
because its nice to have all the logs in one place.

Re: game server issues

Posted: Thu Aug 22, 2013 6:40 pm
by jurchiks
Well, that's a matter of opinion. I like to have logs for my specific app in the folder of my app, not somewhere else.