Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Dúvidas (https://secretexperience.net/l2j-duvidas/)
-   -   Gracia final (down)ajuda (https://secretexperience.net/l2j-duvidas/29960-gracia-final-down-ajuda.html)

weeedz 05-03-2011 08:51 PM

Gracia final (down)ajuda
 
Boas, atravez de uma longa pesquisa encontrei este forum muito completo e pareceu me ke aqui posso vir a ser ajudado :P

Entao aqui vai


Criei um servidor de l2 gracia e consegui configurar tudo e correr o loginserver e gameserver, inclusive ligar-me por telnet aos dois. Mas quando me ligo pelo cliente ao servidor, ele mostra 1 servidor com traffic down e ping 9999, ao clicar nele faz logout e volta a pagina de autenticação. Eu penso que talvez o gameserver não se esteja a ligar ao loginserver mas não sei porque razao isto acontece. Qualquer ajuda é bem vinda, obrigado.

Setokaiba 05-03-2011 09:02 PM

Isto é um erro relacionado ao IP.
Poste as configurações do Login Server e Game Server aqui por favor;

weeedz 05-03-2011 09:49 PM

---- gameserver/config/server.properties

# Bind IP of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname = 0.0.0.0
GameserverPort = 7777

# This is transmitted to the clients connecting from an external network, so it
has to be a public IP or resolvable hostname
ExternalHostname = mammoth.wyvernia.net
OptionalNetworks = mammoth.wyvernia.net
# This is transmitted to the client from the same network, so it has to be a loc
al IP or resolvable hostname
InternalHostname = mammoth.wyvernia.net
InternalNetworks =
# Note: You can define server hostname for each network in subnets.properties

# The Loginserver host and port
LoginPort = 9014
LoginHost = mammoth.wyvernia.net

# This is the server id that the gameserver will request (i.e. 1 is Bartz)
RequestServerID = 2
# If set to true, the login will give an other ID to the server if the requested ID is already reserved
AcceptAlternateID = True

-----------------

lineage@mammoth:~/gameserver/config$ cat hexid.txt
#the hexID to auth into login
#Sat Mar 05 03:29:01 WET 2011
HexID=3a4303e286d7da7c5974cbc437884fd5
ServerID=2

-----------------

Login/config/loginserver.properties

# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostname=0.0.0.0
# Should be mammoth.wyvernia.net since only that ip has the door open.

LoginServerPort=2106
GMMinLevel=100

# The port, ip on which login will listen for GameServers
LoginHostname=mammoth.wyvernia.net
# Could be 127.0.0.1 but I could want to have 2 servers and that would require the login server to listen to the outside world.

LoginPort=9014

# If set to true any GameServer can register on your login's free slots
AcceptNewGameServer = True

ALøne_TM 06-03-2011 01:18 AM

---- gameserver/config/server.properties

# Bind IP of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname = 0.0.0.0
GameserverPort = 7777

# This is transmitted to the clients connecting from an external network, so it
has to be a public IP or resolvable hostname
ExternalHostname = mammoth.wyvernia.net
OptionalNetworks = mammoth.wyvernia.net
# This is transmitted to the client from the same network, so it has to be a loc
al IP or resolvable hostname
InternalHostname = 127.0.0.1
InternalNetworks = 127.0.0.1
# Note: You can define server hostname for each network in subnets.properties

tente mudando aonde esta em vermelhor.

AWRyder 06-03-2011 02:09 AM

Eu tentei alterar esses dois para 127.0.0.1 mas o resultado é exactamente o mesmo. O gameserver não abre qualquer ligação ao loginserver.

tcp6 0 0 127.0.0.1:9014 :::* LISTEN 7346/java

O loginserver está obviamente à escuta logo o problema deverá ser do gameserver. :S

Eu não encontro nada o stdout.log sobre tentativa de ligação sequer, quanto mais uma falha.


PS.: Agradeço o weedz ter postado a mensagem por mim. :)

ALøne_TM 06-03-2011 02:11 AM

posta print do erro !

AWRyder 06-03-2011 02:24 AM

Ai está o problema... não vejo erro nenhum em nenhum log. Nem seque fala no log do gameserver sobre conectar-se ao loginserver.
No loginserver no entanto o resultado é:
INFO [06 Mar 05:11:29,732] Listening for GameServers on 127.0.0.1:9014

[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Setokaiba 06-03-2011 07:31 AM

Você errou totalmente as configurações.
Siga este tutorial e seja feliz:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

AWRyder 06-03-2011 10:03 AM

Segui o seu tutorial e mesmo assim não obtive resultados positivos.
Você menciona que as minhas configurações estão "totalmente" erradas, mas não vejo nenhuma diferença entre elas para alem de testes que fiz para ver se funcionava.

O GameserverHostname IP neste caso é sempre mammoth.wyvernia.net pois não quero que o servidor aceite ligações nos outros 4 IPs.
O external IP será mammoth.wyvernia.net pois é nesse ip que eu quero que os utilizadores se liguem.
( Não haverá utilizadores na rede interna )
O ip de escuta por gameservers, testei com 127.0.0.1 e até mesmo o ip principal do servidor, ambos deveriam funcionar desde que o gameserver se connecte ao mesmo ip.
A porta nunca foi alterada.

Quanto ao loginserver: Escutando clientes em mammoth.wyvernia.net
(funciona na perfeição)
Escutando por gameservers em todos os ips neste caso pois era o que tinha no seu tutorial, embora que ele so possa escutar em 1 ip externo e todos os locais ( localhost v4 e v6 )

Deixo aqui outras configurações que podem ser a causa:
-Loginserver-

# If enabled, the latest CT2P2 (1.2.12) game servers will be able to connect
# However, non-l2jfree based game servers will not work with this login server
SupportL2JFreeCT2P2 = True

-Gameserver-

# If True we use Gracia Final compatible packet system otherwise ct2.2
PacketFinal = True

# Use an indifferent login server handler
# Compatible with ALL known L2J login servers
# P.S. Untested
NewLoginServerHandler = False
# Only effective if the new handler is disabled
# When false we use a l2j (rev 258) compatible login server connection handler
# Otherwise use 1.2.12 compatible login server handler
L2jfreeLogin = True


Caso mesmo assim não consiga descortinar qual o problema, poderei tentar facultar um melhor acesso aos dados para que, caso você queira, tentêmos resolver este problema.

Daniel2 07-03-2011 12:45 PM

mais tem uma coisa que não mi deixa calar você arrumou o ip no l2.ini dentro da system? colocou 127.0.0.1? eu acho que não por isso que o trafico ta 9999.


OBS:

Citação:

# The port, ip on which login will listen for GameServers
LoginHostname=ip da sua maquina é melhor.
# Could be 127.0.0.1 but I could want to have 2 servers and that would require the login server to listen to the outside world.

LoginPort=9014
Citação:

# The Loginserver host and port
LoginPort = 9014
LoginHost = aqui tbm o ip da sua maquina.
PS: para que fique mais facil de o server tirar o trafico pelo ip da sua maquina ela pega o ping mais rapido.


Horários baseados na GMT -3. Agora são 07:41 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0