Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Ошибка ГС[загрузка конфига]
#1
ГС выплевывает после моих манипуляций.
PHP код:
<?php 
loading gameserver config
java
.lang.NullPointerException
at java
.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at ru.privetdruk.Config.load(Config.java:634)
at ru.privetdruk.gameserver.GameServer.main(GameServer.java:456)
Exception in thread "main" java.lang.Error: Failed to Load ./config/admin/generl_settings.properties File.
at ru.privetdruk.Config.load(Config.java:644)
at ru.privetdruk.gameserver.GameServer.main(GameServer.java:456)

Server have terminated abnormaly.
Server terminated.
Для продолжения нажмите любую клавишу . . .
Что делал:
1. Вырезал из OTHER_CONFIG_FILE
PHP код:
<?php 
ALT_PRIVILEGES_ADMIN
= Boolean.parseBoolean(adminSettings.getProperty("AltPrivilegesAdmin", "False"));
ALT_PRIVILEGES_SECURE_CHECK = Boolean.parseBoolean(adminSettings.getProperty("AltPrivilegesSecureCheck", "True"));
ALT_PRIVILEGES_DEFAULT_LEVEL = Integer.parseInt(adminSettings.getProperty("AltPrivilegesDefaultLevel", "100"));
2. Создал по шаблону "каркас"(спойлер Config.java:630-645);
Config.java:630-645
3. Дописал
PHP код:
<?php 
public static final String ADMIN_SETTINGS_FILE = "./config/admin/general_settings.properties";
4. Создал папку admin и файл general_settings.properties (config/admin/general_settings.properties);
5. Дописал в general_settings.properties
PHP код:
<?php 
AltPrivilegesAdmin
= False
AltPrivilegesSecureCheck
= True
AltPrivilegesDefaultLevel
= 100
5. Скомпилировалось без ошибок.


Config.java
[SPOILER="GameServer.java"]
[PHP]
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package ru.privetdruk.gameserver;

import java.io.File;
import java.io.InputStream;
import java.io.FileInputStream;
import java.util.Calendar;
import java.util.logging.LogManager;
import java.util.logging.Logger;

import ru.privetdruk.Config;
import ru.privetdruk.L2DatabaseFactory;
import ru.privetdruk.Server;
import ru.privetdruk.gameserver.cache.CrestCache;
import ru.privetdruk.gameserver.cache.HtmCache;
import ru.privetdruk.gameserver.handler.AdminCommandHandler;
import ru.privetdruk.gameserver.handler.ItemHandler;
import ru.privetdruk.gameserver.handler.SkillHandler;
import ru.privetdruk.gameserver.handler.UserCommandHandler;
import ru.privetdruk.gameserver.handler.VoicedCommandHandler;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminAdmin;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminAnnouncements;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminBan;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminBanChat;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminCache;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminChangeAccessLevel;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminCreateItem;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminDelete;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminDoorControl;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminEditChar;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminEditNpc;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminEffects;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminExpSp;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminFightCalculator;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminGm;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminGmChat;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminHeal;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminHelpPage;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminInvul;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminKick;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminKill;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminLogin;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminMammon;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminMenu;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminMobGroup;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminMonsterRace;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminPathNode;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminPledge;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminPolymorph;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminRepairChar;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminRes;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminRideWyvern;
import ru.privetdruk.gameserver.handler.admincommandhandlers.AdminSiege;
import ru.privetdruk.gameserver.handler.admincommandha...
Ответ
#2
Up (10ть символов)
Ответ
#3
А ничего что
Код:
Failed to Load ./config/admin/[color=Red]generl[/color]_settings.properties File.
?
Ответ
#4
Цитата:ru.privetdruk
ваще огонь.
Ответ
#5
ANZO Написал:А ничего что
Код:
Failed to Load ./config/admin/[color=Red]generl[/color]_settings.properties File.
?
Них*ясебе =DD thx

G1ta0 Написал:ваще огонь.
Big Grin
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Что за ошибка? serg5777 22 9,009 07-11-2023, 09:49 PM
Последний пост: ntking
  Ошибка Cannot read field "race" valdemart123 0 1,049 12-04-2021, 04:44 AM
Последний пост: valdemart123
  При запуске game server на сайте (sw13) ошибка mysql 0 AndreDeiu 1 1,301 09-27-2020, 11:32 PM
Последний пост: Lord_Gothic
  Ошибка геймсервера zane 9 2,527 04-27-2018, 12:28 PM
Последний пост: DmnC
  Ошибка загрузки гейм сервера zane 5 2,003 04-17-2018, 08:03 PM
Последний пост: zane
  Ошибка телепорта Rork 1 1,264 03-02-2018, 03:05 PM
Последний пост: Gaikotsu
  Ошибка с ГМ шопом silok 1 1,310 01-11-2018, 07:36 AM
Последний пост: Narsell
  Ошибка PWSOFT Ananim 0 1,367 07-07-2017, 11:42 AM
Последний пост: Ananim
  Ошибка _aveList; knaif 1 1,395 06-22-2017, 03:07 PM
Последний пост: Trimius
  Ошибка KastaMeN 1 1,807 06-16-2017, 11:32 PM
Последний пост: Mangol

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)