22-12-2008, 04:12 PM
|
#10 (permalink)
|
|
Amigo SE
Registrado em: Nov 2008
Localização: Rio de Janeiro, RJ
Posts: 597
Agradecido 1,826 Vezes em 246 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
|
meu amigo vc tem 2 erros ao mesmo tempo.
1º erro é configuração de IP
2º erro é senha de mysql
abaixo estarei explicando a solução dos 2 erros.
faça exatamente o q esta feito ai em baixo. Em vermelho o exemplo e em amarelo o local onde configurar
config do loginserver.properties
Citação:
# ================================================== ==============
# General login server setting !!! REQUIRED to configure to everyone !!!
# ================================================== ==============
# Bind ip do gameserver, use 0.0.0.0 para vincular disponível em todos os IPs
# EXEMPLO: LoginServerHostname=127.0.0.1 <----NO CAMINHO ABAIXO COLOQUE O IP DE SUA PLACA DE REDE
LoginServerHostname=127.0.0.1
LoginServerPort=2106
GMMinLevel=100
# The port, ip on which login will listen for GameServers
# EXEMPLO: LoginHostname=127.0.0.1 <-- NUNCA TROQUE ESSE IP
LoginHostname=127.0.0.1
LoginPort=9014
# If set to true any GameServer can register on your login's free slots
AcceptNewGameServer = False
# If false, the licence (after the login) will not be shown
ShowLicence = True
# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriv er
# EXEMPLO: URL=jdbc:mysql://localhost/l2jdb <---CAMINHO E NOME DE SEU BANCO DE DADOS (l2jdb)
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
#EXEMPLO: Login=root <--LOGIN DE SEU BANCO DE DADOS MYSQL QUE É ROOT COMO PADRÃO
#EXEMPLO: Password=suasenha <--SENHA DE SEU BANCO DE DADOS, É A MESMA QUE VC COLOCOU NO MOMENTO DE INSTALAÇÃO DO MYSQL
Login=root
Password=1234
# Utilizável valores: "True" - "False", utilize esta opção de escolher se vão ser criadas contas
# automatico ou não.
# EXEMPLO: AutoCreateAccounts=true <--COLOQUE "false" CASO VÁ UTILIZAR UM SITE PARA CRIAR CONTAS NO SERVIDOR
AutoCreateAccounts=false
|
config do server.properties
Citação:
# Bind ip do gameserver, use 0.0.0.0 para vincular disponível em todos os IPs
# EXEMPLO: GameserverHostname=127.0.0.1 <----NO CAMINHO ABAIXO COLOQUE O IP DE SUA PLACA DE REDE
GameserverHostname=127.0.0.1
GameserverPort=7777
# Esta é transmitida para os clientes a partir de uma conexão de rede externa, por isso tem de ser um IP público ou resolúvel hostname
# EXEMPLO: ExternalHostname=l2mak.servegame.com <-----NO CAMINHO ABAIXO COLOQUE O SEU NO-IP AQUI
ExternalHostname=127.0.0.1
# Esta é transmitida para o cliente a partir da mesma rede, por isso tem de ser um local IP ou hostname resolúvel
# EXEMPLO: InternalHostname=127.0.0.1 <----NO CAMINHO ABAIXO COLOQUE O IP DE SUA PLACA DE REDE
InternalHostname=127.0.0.1
# Define internal networks (10.0.0.0/8,192.168.0.0/16 is default internal networks)
InternalNetworks=
# Define optional networks and router IPs
# IP (200.100.200.100) or fully qualified domain name
# (google.com) that resolves to an IP (use ping to determine if a domain resolves).
# Format: ip,net/mask;ip,net/mask,net/mask
# (mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0 would be 192.168.*.*)
# Note: keep InternalNetworks and OptionalNetworks blank for compatibility with older login server
OptionalNetworks=
# O Loginserver host e porta
# EXEMPLO: LoginPort=9014 <--NUNCA TROQUE ESSA PORTA
# EXEMPLO: LoginHost=127.0.0.1 <-- NUNCA TROQUE ESSE IP
LoginPort=9014
LoginHost=127.0.0.1
# This is the server id that the gameserver will request (i.e. 1 is Bartz)
RequestServerID = 1
# If set to true, the login will give an other id to the server if the requested id is allready reserved
AcceptAlternateID = True
# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriv er
# EXEMPLO: URL=jdbc:mysql://localhost/l2jdb <---CAMINHO E NOME DE SEU BANCO DE DADOS (l2jdb)
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
#EXEMPLO: Login=root <--LOGIN DE SEU BANCO DE DADOS MYSQL QUE É ROOT COMO PADRÃO
#EXEMPLO: Password=suasenha <--SENHA DE SEU BANCO DE DADOS, É A MESMA QUE VC COLOCOU NO MOMENTO DE INSTALAÇÃO DO MYSQL
Login=root
Password=1234
|
vc fazendo da maneira q explica acima vc vai ter sucesso em ligar seu server.
|
|
|