Senhores bom dia, estou com um problema na minha gameserver, consegui configurar tudo menos isso.
Exception in thread "main" java.lang.NullPointerException
at l2p.util.Strings.reload(Strings.java:116)
at l2p.gameserver.GameServer.<init>(GameServer.java:133)
at l2p.gameserver.GameServer.main(GameServer.java:491)
Esse é o erro, informando sobre o Strings.reload na página 116, indo na pagina 116 é um código VOID.
public static void reload()
{
Files.cacheClean();
String[] pairs = Files.read("data/translit.txt").split("\n");
tr = new String[pairs.length * 2];
for(int i = 0; i < pairs.length; i++)
{
String[] ss = pairs[i].split(" +");
tr[i * 2] = ss[0];
tr[i * 2 + 1] = ss[1];
} copiei da pagina 113 até a 118, sendo que o erro está nesse meio, pois é isso que o gameserver indica
Sobre o segundo error init JAVA 133 no gameserver
public GameServer() throws Exception
{
Server.gameServer = this;
_serverStarted = time();
_log.finest("used mem:" + ((Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1024 / 1024) + "MB");
Strings.reload(); ...... COPIEI DA PÁGINA 125 Até a página 133 QUE É ONDE ESTÁ O ERRO E NÃO CONSIGO ENXERGAR.
Sobre o terceiro error pagina 491.
public static void main(String[] args) throws Exception
{
Server.SERVER_MODE = Server.MODE_GAMESERVER;
// Local Constants
final String LOG_FOLDER = "log"; // Name of folder for log file
final String LOG_NAME = "./config/log.properties"; // Name of log file
/*** Main ***/
// Create log folder
File logFolder = new File(Config.DATAPACK_ROOT, LOG_FOLDER);
logFolder.mkdir();
// Create input stream for log file -- or store file data into memory
InputStream is = new FileInputStream(new File(LOG_NAME));
LogManager.getLogManager().readConfiguration(is);
is.close();
// Initialize config
Config.load();
checkFreePorts();
L2DatabaseFactory.getInstance();
Log.InitGSLoggers();
gameServer = new GameServer();......... TOMEI A LIBERDADE DE COPIAR DA PAGINA 468 ATÉ 491.
Não sei como solucionar, pois, ainda estou novo nessa área e estou estudando, gostaria muito da ajuda de vocês
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
GOSTARIA DOS ICONES DAS TATTOS , TODOS ICONES , COM ESSE LV , ATÉ O LVL 6 POR FAVOR , PARA INTERLUDE , ESSES DO PRINT NAO SAO INTERLUDE E NAO TENHO ! OBRIGADO!
Olá, seu tópico se encontra com um ou mais links offline. Caso ainda possua o conteúdo, favor postar aqui mesmo no tópico ou mandar MP para algum staff que estaremos normalizando o tópico.
Grato pela atenção!
Voce usar a conta de admin q vc tem no server, vai em accounts e define o acess_level la. e vc entra auto.
Eu tenho uma versão desse votesystem q tentei atualizar e com tutorial so acessar o link na minha assinatura em baixo.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Pergunta
ChristoferFernandes
Senhores bom dia, estou com um problema na minha gameserver, consegui configurar tudo menos isso.
Exception in thread "main" java.lang.NullPointerException
at l2p.util.Strings.reload(Strings.java:116)
at l2p.gameserver.GameServer.<init>(GameServer.java:133)
at l2p.gameserver.GameServer.main(GameServer.java:491)
Esse é o erro, informando sobre o Strings.reload na página 116, indo na pagina 116 é um código VOID.
Sobre o segundo error init JAVA 133 no gameserver
Sobre o terceiro error pagina 491.
Não sei como solucionar, pois, ainda estou novo nessa área e estou estudando, gostaria muito da ajuda de vocês
Grandes vitórias requer grandes esforços, até onde está disposto a ir pelos seus sonhos ?
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts recomendados
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.