Перейти к содержанию
Авторизация  
BAS

Ошибки при компиляции

Рекомендуемые сообщения

Знающие люди помогите новичку исправить несколько ошибок:

 

compile-gameserver:
[delete] Deleting directory C:\TEST\build\classes
[mkdir] Created dir: C:\TEST\build\classes
[javac] Compiling 1658 source files to C:\TEST\build\classes
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1128: cannot find symbol
[javac] symbol : variable serverSettings
[javac] location: class org.mmocore.gameserver.Config
[javac] COMMUNITYBOARD_ENABLED = serverSettings.getProperty("AllowCommunityBoard", true);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1129: cannot find symbol
[javac] symbol : variable serverSettings
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_DEFAULT = serverSettings.getProperty("BBSDefault", "_bbshome");
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1130: cannot find symbol
[javac] symbol : variable BBS_HOME_DIR
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_HOME_DIR = CommunityPvPboardSettings.getProperty("BBSHomeDir", "scripts/services/community/");
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1131: cannot find symbol
[javac] symbol : variable BBS_PVP_CB_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_CB_ENABLED = CommunityPvPboardSettings.getProperty("BBSPVPEnabled", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1132: cannot find symbol
[javac] symbol : variable BBS_PVP_CB_ABNORMAL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_CB_ABNORMAL = CommunityPvPboardSettings.getProperty("BBSPVPAllowAbnormal", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1135: cannot find symbol
[javac] symbol : variable serverSettings
[javac] location: class org.mmocore.gameserver.Config
[javac] HTM_CACHE_MODE = serverSettings.getProperty("HtmCacheMode", HtmCache.LAZY);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1142: cannot find symbol
[javac] symbol : variable BBS_BUFFER_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFFER_ENABLED = CommunityPvPbufferSettings.getProperty("AllowBBSBuffer", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1143: cannot find symbol
[javac] symbol : variable BBS_BUFF_IDs
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_IDs = CommunityPvPbufferSettings.getProperty("BuffIDs", ArrayUtils.EMPTY_INT_ARRAY);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1144: cannot find symbol
[javac] symbol : variable BBS_BUFF_ALLOW_HEAL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_ALLOW_HEAL = CommunityPvPbufferSettings.getProperty("BuffAllowHeal", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1145: cannot find symbol
[javac] symbol : variable BBS_BUFF_ALLOW_CANCEL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_ALLOW_CANCEL = CommunityPvPbufferSettings.getProperty("BuffAllowCancel", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1146: cannot find symbol
[javac] symbol : variable BUFF_MANUAL_EDIT_SETS
[javac] location: class org.mmocore.gameserver.Config
[javac] BUFF_MANUAL_EDIT_SETS = CommunityPvPbufferSettings.getProperty("BuffManualEditSets", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1147: cannot find symbol
[javac] symbol : variable MAX_SETS_PER_CHAR
[javac] location: class org.mmocore.gameserver.Config
[javac] MAX_SETS_PER_CHAR = CommunityPvPbufferSettings.getProperty("MaximumSetsPerChar", 8);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1148: cannot find symbol
[javac] symbol : variable BBS_BUFF_ITEM_ID
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_ITEM_ID = CommunityPvPbufferSettings.getProperty("BuffItemId", 57);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1149: cannot find symbol
[javac] symbol : variable BBS_BUFF_ITEM_COUNT
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_ITEM_COUNT = CommunityPvPbufferSettings.getProperty("BuffItemCount", 1000);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1150: cannot find symbol
[javac] symbol : variable BBS_BUFF_FREE_LVL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_FREE_LVL = CommunityPvPbufferSettings.getProperty("FreeBuffLevel", 40);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1151: cannot find symbol
[javac] symbol : variable BBS_BUFF_TIME
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_TIME = CommunityPvPbufferSettings.getProperty("BuffTime", 3600);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1152: cannot find symbol
[javac] symbol : variable BBS_BUFF_TIME_MOD
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_TIME_MOD = CommunityPvPbufferSettings.getProperty("BuffTimeMod", 1);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1153: cannot find symbol
[javac] symbol : variable BBS_BUFF_TIME_MUSIC
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_TIME_MUSIC = CommunityPvPbufferSettings.getProperty("BuffTimeMusic", 1200);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1154: cannot find symbol
[javac] symbol : variable BBS_BUFF_TIME_MOD_MUSIC
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_TIME_MOD_MUSIC = CommunityPvPbufferSettings.getProperty("BuffTimeModMusic", 1);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1155: cannot find symbol
[javac] symbol : variable BBS_BUFF_TIME_SPECIAL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_TIME_SPECIAL = CommunityPvPbufferSettings.getProperty("BuffTimeSpecial", 3600);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1156: cannot find symbol
[javac] symbol : variable BBS_BUFF_TIME_MOD_SPECIAL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_TIME_MOD_SPECIAL = CommunityPvPbufferSettings.getProperty("BuffTimeModSpecial", 1);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1157: cannot find symbol
[javac] symbol : variable BUFF_PAGE_ROWS
[javac] location: class org.mmocore.gameserver.Config
[javac] BUFF_PAGE_ROWS = CommunityPvPbufferSettings.getProperty("BuffsPageRows", 9);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1158: cannot find symbol
[javac] symbol : variable MAX_BUFF_PER_SET
[javac] location: class org.mmocore.gameserver.Config
[javac] MAX_BUFF_PER_SET = CommunityPvPbufferSettings.getProperty("MaxBuffsPerSet", 3);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1159: cannot find symbol
[javac] symbol : variable BBS_BUFF_DEATH
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_DEATH = CommunityPvPbufferSettings.getProperty("AllowWhenDead", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1160: cannot find symbol
[javac] symbol : variable BBS_BUFF_ACTION
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_ACTION = CommunityPvPbufferSettings.getProperty("AllowWhenInAction", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1161: cannot find symbol
[javac] symbol : variable BBS_BUFF_OLY
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_OLY = CommunityPvPbufferSettings.getProperty("AllowWhenInOlly", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1162: cannot find symbol
[javac] symbol : variable BBS_BUFF_FLY
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_FLY = CommunityPvPbufferSettings.getProperty("AllowWhenInFly", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1163: cannot find symbol
[javac] symbol : variable BBS_BUFF_VEICHLE
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_VEICHLE = CommunityPvPbufferSettings.getProperty("AllowWhenInVeichle", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1164: cannot find symbol
[javac] symbol : variable BBS_BUFF_MOUNTED
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_MOUNTED = CommunityPvPbufferSettings.getProperty("AllowWhenMounted", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1165: cannot find symbol
[javac] symbol : variable BBS_BUFF_CANT_MOVE
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_CANT_MOVE = CommunityPvPbufferSettings.getProperty("AllowWhenCantMove", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1166: cannot find symbol
[javac] symbol : variable BBS_BUFF_STORE_MODE
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_STORE_MODE = CommunityPvPbufferSettings.getProperty("AllowWhenInTrade", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1167: cannot find symbol
[javac] symbol : variable BBS_BUFF_FISHING
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_FISHING = CommunityPvPbufferSettings.getProperty("AllowWhenFishing", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1168: cannot find symbol
[javac] symbol : variable BBS_BUFF_TEMP_ACTION
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_TEMP_ACTION = CommunityPvPbufferSettings.getProperty("AllowWhenInTemp", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1169: cannot find symbol
[javac] symbol : variable BBS_BUFF_DUEL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_DUEL = CommunityPvPbufferSettings.getProperty("AllowWhenInDuel", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1170: cannot find symbol
[javac] symbol : variable BBS_BUFF_CURSED
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_CURSED = CommunityPvPbufferSettings.getProperty("AllowWhenUseCursed", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1171: cannot find symbol
[javac] symbol : variable BBS_BUFF_PK
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_PK = CommunityPvPbufferSettings.getProperty("AllowWhenIsPk", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1172: cannot find symbol
[javac] symbol : variable BBS_BUFF_LEADER
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_LEADER = CommunityPvPbufferSettings.getProperty("AllowOnlyToClanLeader", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1173: cannot find symbol
[javac] symbol : variable BBS_BUFF_NOBLE
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_NOBLE = CommunityPvPbufferSettings.getProperty("AllowOnlyToNoble", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1174: cannot find symbol
[javac] symbol : variable BBS_BUFF_TERITORY
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_TERITORY = CommunityPvPbufferSettings.getProperty("AllowUseInTWPlayer", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1175: cannot find symbol
[javac] symbol : variable BBS_BUFF_PEACEZONE_ONLY
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_BUFF_PEACEZONE_ONLY = CommunityPvPbufferSettings.getProperty("AllowUseOnlyInPeace", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1197: cannot find symbol
[javac] symbol : variable BBS_PVP_SUB_MANAGER_ALLOW
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_SUB_MANAGER_ALLOW = CommunityPvPClassSettings.getProperty("AllowBBSSubManager", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1198: cannot find symbol
[javac] symbol : variable BBS_PVP_SUB_MANAGER_PIACE
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_SUB_MANAGER_PIACE = CommunityPvPClassSettings.getProperty("AllowBBSSubManagerPiace", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1205: cannot find symbol
[javac] symbol : variable BBS_PVP_ALLOW_BUY
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_ALLOW_BUY = CommunityPvPshopSettings.getProperty("CommunityShopEnable", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1206: cannot find symbol
[javac] symbol : variable BBS_PVP_ALLOW_SELL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_ALLOW_SELL = CommunityPvPshopSettings.getProperty("CommunitySellEnable", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1207: cannot find symbol
[javac] symbol : variable BBS_PVP_ALLOW_AUGMENT
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_ALLOW_AUGMENT = CommunityPvPshopSettings.getProperty("CommunityAugmentEnable", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1214: cannot find symbol
[javac] symbol : variable BBS_PVP_TELEPORT_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_TELEPORT_ENABLED = CommunityPvPteleportsettings.getProperty("BBSPVPTeleportEnabled", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1215: cannot find symbol
[javac] symbol : variable BBS_PVP_TELEPORT_POINT_PRICE
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_TELEPORT_POINT_PRICE = CommunityPvPteleportsettings.getProperty("BBSPVPTeleportPointPrice", 200000);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1216: cannot find symbol
[javac] symbol : variable BBS_PVP_TELEPORT_MAX_POINT_COUNT
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_TELEPORT_MAX_POINT_COUNT = CommunityPvPteleportsettings.getProperty("BBSPVPTeleportMaxPointCount", 10);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1223: cannot find symbol
[javac] symbol : variable ENCHANT_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] ENCHANT_ENABLED = EnchantCBSetting.getProperty("Enchant_enabled", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1224: cannot find symbol
[javac] symbol : variable ENCHANTER_ITEM_ID
[javac] location: class org.mmocore.gameserver.Config
[javac] ENCHANTER_ITEM_ID = EnchantCBSetting.getProperty("CBEnchantItem", 4037);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1225: cannot find symbol
[javac] symbol : variable MAX_ENCHANT
[javac] location: class org.mmocore.gameserver.Config
[javac] MAX_ENCHANT = EnchantCBSetting.getProperty("CBMaxEnchant", 25);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1226: cannot find symbol
[javac] symbol : variable ENCHANT_LEVELS
[javac] location: class org.mmocore.gameserver.Config
[javac] ENCHANT_LEVELS = EnchantCBSetting.getProperty("CBEnchantLvl", new int[] { 1 });
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1227: cannot find symbol
[javac] symbol : variable ENCHANT_PRICE_WPN
[javac] location: class org.mmocore.gameserver.Config
[javac] ENCHANT_PRICE_WPN = EnchantCBSetting.getProperty("CBEnchantPriceWeapon", new int[] { 1 });
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1228: cannot find symbol
[javac] symbol : variable ENCHANT_PRICE_ARM
[javac] location: class org.mmocore.gameserver.Config
[javac] ENCHANT_PRICE_ARM = EnchantCBSetting.getProperty("CBEnchantPriceArmor", new int[] { 1 });
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1229: cannot find symbol
[javac] symbol : variable ENCHANT_ATTRIBUTE_LEVELS
[javac] location: class org.mmocore.gameserver.Config
[javac] ENCHANT_ATTRIBUTE_LEVELS = EnchantCBSetting.getProperty("CBEnchantAtributeLvlWeapon", new int[] { 1 });
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1230: cannot find symbol
[javac] symbol : variable ATTRIBUTE_PRICE_WPN
[javac] location: class org.mmocore.gameserver.Config
[javac] ATTRIBUTE_PRICE_WPN = EnchantCBSetting.getProperty("CBEnchantAtributePriceWeapon", new int[] { 1 });
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1231: cannot find symbol
[javac] symbol : variable ENCHANT_ATTRIBUTE_LEVELS_ARM
[javac] location: class org.mmocore.gameserver.Config
[javac] ENCHANT_ATTRIBUTE_LEVELS_ARM = EnchantCBSetting.getProperty("CBEnchantAtributeLvlArmor", new int[] { 1 });
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1232: cannot find symbol
[javac] symbol : variable ATTRIBUTE_PRICE_ARM
[javac] location: class org.mmocore.gameserver.Config
[javac] ATTRIBUTE_PRICE_ARM = EnchantCBSetting.getProperty("CBEnchantAtributePriceArmor", new int[] { 1 });
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1233: cannot find symbol
[javac] symbol : variable ENCHANT_ATT_PVP
[javac] location: class org.mmocore.gameserver.Config
[javac] ENCHANT_ATT_PVP = EnchantCBSetting.getProperty("CBEnchantAtributePvP", false);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 59 errors

 

Сильно не пилите ибо не все рождались асами своего дела.

P.S Заранее всем спасибо за помощь.

Изменено пользователем BAS

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Необходимо объявить переменные. За пример берите реализованные конфиги.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Необходимо объявить переменные. За пример берите реализованные конфиги.

А можно как то по подробнее так сказать на примере каком нить?

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
public static final String PVP_COMMINITY_CFG = "config/PvPCommunity.properties";
...
ExProperties pvpCommunityConfig = load(PVP_COMMINITY_CFG);
...
COMMUNITYBOARD_ENABLED = pvpCommunityConfig.getProperty("AllowCommunityBoard", true);

Думаю так понятнее будет.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Сделал вот таким образом:

 

public static void loadCommunityPvPboardsettings()
{
ExProperties CommunityPvPboardSettings = load(BOARD_MANAGER_CONFIG_FILE);

COMMUNITYBOARD_ENABLED = serverSettings.getProperty("AllowCommunityBoard", true);
BBS_DEFAULT = serverSettings.getProperty("BBSDefault", "_bbshome");
BBS_HOME_DIR = CommunityPvPboardSettings.getProperty("BBSHomeDir", "scripts/services/community/");
BBS_PVP_CB_ENABLED = CommunityPvPboardSettings.getProperty("BBSPVPEnabled", false);
BBS_PVP_CB_ABNORMAL = CommunityPvPboardSettings.getProperty("BBSPVPAllowAbnormal", false);
ALLOW_BBS_WAREHOUSE = CommunityPvPboardSettings.getProperty("AllowBBSWarehouse", true);
BBS_WAREHOUSE_ALLOW_PK = CommunityPvPboardSettings.getProperty("BBSWarehouseAllowPK", false);
HTM_CACHE_MODE = serverSettings.getProperty("HtmCacheMode", HtmCache.LAZY);
}

 

При компиле выдаёт такую ошибку:

 

compile-gameserver:
[delete] Deleting directory C:\TEST\build\classes
[mkdir] Created dir: C:\TEST\build\classes
[javac] Compiling 1658 source files to C:\TEST\build\classes
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1128: cannot find symbol
[javac] symbol : variable serverSettings
[javac] location: class org.mmocore.gameserver.Config
[javac] COMMUNITYBOARD_ENABLED = serverSettings.getProperty("AllowCommunityBoard", true);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1129: cannot find symbol
[javac] symbol : variable serverSettings
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_DEFAULT = serverSettings.getProperty("BBSDefault", "_bbshome");
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1130: cannot find symbol
[javac] symbol : variable BBS_HOME_DIR
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_HOME_DIR = CommunityPvPboardSettings.getProperty("BBSHomeDir", "scripts/services/community/");
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1131: cannot find symbol
[javac] symbol : variable BBS_PVP_CB_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_CB_ENABLED = CommunityPvPboardSettings.getProperty("BBSPVPEnabled", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1132: cannot find symbol
[javac] symbol : variable BBS_PVP_CB_ABNORMAL
[javac] location: class org.mmocore.gameserver.Config
[javac] BBS_PVP_CB_ABNORMAL = CommunityPvPboardSettings.getProperty("BBSPVPAllowAbnormal", false);
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1135: cannot find symbol
[javac] symbol : variable serverSettings
[javac] location: class org.mmocore.gameserver.Config
[javac] HTM_CACHE_MODE = serverSettings.getProperty("HtmCacheMode", HtmCache.LAZY);
[javac] ^

 

Что теперь я сделал не так?Вроде всё как советовали или опять где то что то упустил?

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Сделал вот таким образом:

 

public static void loadCommunityPvPboardsettings()

{

ExProperties CommunityPvPboardSettings = load(BOARD_MANAGER_CONFIG_FILE);

 

COMMUNITYBOARD_ENABLED = serverSettings.getProperty("AllowCommunityBoard", true);

BBS_DEFAULT = serverSettings.getProperty("BBSDefault", "_bbshome");

BBS_HOME_DIR = CommunityPvPboardSettings.getProperty("BBSHomeDir", "scripts/services/community/");

BBS_PVP_CB_ENABLED = CommunityPvPboardSettings.getProperty("BBSPVPEnabled", false);

BBS_PVP_CB_ABNORMAL = CommunityPvPboardSettings.getProperty("BBSPVPAllowAbnormal", false);

ALLOW_BBS_WAREHOUSE = CommunityPvPboardSettings.getProperty("AllowBBSWarehouse", true);

BBS_WAREHOUSE_ALLOW_PK = CommunityPvPboardSettings.getProperty("BBSWarehouseAllowPK", false);

HTM_CACHE_MODE = serverSettings.getProperty("HtmCacheMode", HtmCache.LAZY);

}

 

При компиле выдаёт такую ошибку:

 

compile-gameserver:

[delete] Deleting directory C:\TEST\build\classes

[mkdir] Created dir: C:\TEST\build\classes

[javac] Compiling 1658 source files to C:\TEST\build\classes

[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1128: cannot find symbol

[javac] symbol : variable serverSettings

[javac] location: class org.mmocore.gameserver.Config

[javac] COMMUNITYBOARD_ENABLED = serverSettings.getProperty("AllowCommunityBoard", true);

[javac] ^

[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1129: cannot find symbol

[javac] symbol : variable serverSettings

[javac] location: class org.mmocore.gameserver.Config

[javac] BBS_DEFAULT = serverSettings.getProperty("BBSDefault", "_bbshome");

[javac] ^

[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1130: cannot find symbol

[javac] symbol : variable BBS_HOME_DIR

[javac] location: class org.mmocore.gameserver.Config

[javac] BBS_HOME_DIR = CommunityPvPboardSettings.getProperty("BBSHomeDir", "scripts/services/community/");

[javac] ^

[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1131: cannot find symbol

[javac] symbol : variable BBS_PVP_CB_ENABLED

[javac] location: class org.mmocore.gameserver.Config

[javac] BBS_PVP_CB_ENABLED = CommunityPvPboardSettings.getProperty("BBSPVPEnabled", false);

[javac] ^

[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1132: cannot find symbol

[javac] symbol : variable BBS_PVP_CB_ABNORMAL

[javac] location: class org.mmocore.gameserver.Config

[javac] BBS_PVP_CB_ABNORMAL = CommunityPvPboardSettings.getProperty("BBSPVPAllowAbnormal", false);

[javac] ^

[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\Config.java:1135: cannot find symbol

[javac] symbol : variable serverSettings

[javac] location: class org.mmocore.gameserver.Config

[javac] HTM_CACHE_MODE = serverSettings.getProperty("HtmCacheMode", HtmCache.LAZY);

[javac] ^

 

Что теперь я сделал не так?Вроде всё как советовали или опять где то что то упустил?

 

COMMUNITYBOARD_ENABLED = CommunityPvPboardSettings.getProperty("AllowCommunityBoard", true);
BBS_DEFAULT = CommunityPvPboardSettings.getProperty("BBSDefault", "_bbshome");
BBS_HOME_DIR = CommunityPvPboardSettings.getProperty("BBSHomeDir", "scripts/services/community/");
BBS_PVP_CB_ENABLED = CommunityPvPboardSettings.getProperty("BBSPVPEnabled", false);
BBS_PVP_CB_ABNORMAL = CommunityPvPboardSettings.getProperty("BBSPVPAllowAbnormal", false);
ALLOW_BBS_WAREHOUSE = CommunityPvPboardSettings.getProperty("AllowBBSWarehouse", true);
BBS_WAREHOUSE_ALLOW_PK = CommunityPvPboardSettings.getProperty("BBSWarehouseAllowPK", false);
HTM_CACHE_MODE = CommunityPvPboardSettings.getProperty("HtmCacheMode", HtmCache.LAZY);

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

 

А вообще, советую использовать IDE, например Eclipse. И таких вопросов меньше будет))

 

PS: ну и добавить это (я так понял тоже отсутствует):

public static boolean COMMUNITYBOARD_ENABLED; и т.п.

Такое присутствует.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Объявил повторно:

BBS_BUFF_TIME_MOD 

Не объявил:

COMMUNITYBOARD_CONFIG_FILE
COMMUNITYBOARDBUFFER_CONFIG_FILE
BBS_BUFF_TIME_MOD_MUSIC
COMMUNITYBOARDCLASSMASTER_CONFIG_FILE
COMMUNITYBOARDSHOP_CONFIG_FILE
COMMUNITYBOARDTELEPORT_CONFIG_FILE
COMMUNITYBOARDENCHANT_CONFIG_FILE
COMMUNITYBOARD_ENABLED

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Исправил осталось 4 косячка.Уже близко)))

 

compile-gameserver:
[delete] Deleting directory C:\TEST\build\classes
[mkdir] Created dir: C:\TEST\build\classes
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\handler\bbs\CommunityBoardManager.java:49: cannot find symbol
[javac] symbol : variable COMMUNITYBOARD_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] if(!Config.COMMUNITYBOARD_ENABLED || _handlers.isEmpty())
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\network\l2\c2s\RequestBBSwrite.java:42: cannot find symbol
[javac] symbol : variable COMMUNITYBOARD_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] if(!Config.COMMUNITYBOARD_ENABLED)
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\network\l2\c2s\RequestBypassToServer.java:166: cannot find symbol
[javac] symbol : variable COMMUNITYBOARD_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] if(!Config.COMMUNITYBOARD_ENABLED)
[javac] ^
[javac] C:\TEST\gameserver\src\main\java\org\mmocore\gameserver\network\l2\c2s\RequestShowBoard.java:37: cannot find symbol
[javac] symbol : variable COMMUNITYBOARD_ENABLED
[javac] location: class org.mmocore.gameserver.Config
[javac] if(Config.COMMUNITYBOARD_ENABLED)
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

1 косяк.

 

Все еще считается не объявленным:

COMMUNITYBOARD_ENABLED
  • Upvote 1

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Скомпилировалось без ошибок ушёл тестить.Позже отпишусь об успехах.Спасибки всем раздал.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Ну во первых, во всех файлах (которые были изменены вами) в пакете community первый символ в первой строке компилятор не может распознать (Invalid Character), обычно это бывает из за неправильной кодировки,

в блокноте этого символа не видно, решить можно изменив кодировку, открыв в notepad++ к примеру.

 

В файле TeleportManager.java имеется импорт библы javolution, а в проекте ее, по всей видимости, нет. (Решение - скачать, добавить)

В EnchantCommunity.java вызывается метод isShield(), который отсутствует в классе ItemTemplate (Решение - найти альтернативу в данном/другом классе)

В CareerManager.java возможно(?) отсутвует Config. перед USE_BBS_PROF_IS_COMBAT

 

На счет всего остального не очень очевидно, причины разные могут быть.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

В общем всё что было в моих силах сделал.Помогите с остальным, а то голова совсем уже отказывает.Осталось следующее:

 

[15.03.15 13:21:23:523] INFO scripts.Scripts: Scripts: Loading...
[15.03.15 13:21:38:445] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\CareerManager.java:384,39: CONGRATULATIONS__YOUVE_COMPLETED_A_CLASS_TRANSFER cannot be resolved or is not a field
[15.03.15 13:21:38:445] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\CareerManager.java:634,32: CONGRATULATIONS__YOUVE_COMPLETED_YOUR_THIRDCLASS_TRANSFER_QUEST cannot be resolved or is not a field
[15.03.15 13:21:38:445] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\CareerManager.java:636,32: CONGRATULATIONS__YOUVE_COMPLETED_A_CLASS_TRANSFER cannot be resolved or is not a field
[15.03.15 13:21:38:445] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\CareerManager.java:651,14: USE_BBS_PROF_IS_COMBAT cannot be resolved or is not a field
[15.03.15 13:21:38:601] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\TeleportManager.java:118,345: ZoneType cannot be resolved to a variable
[15.03.15 13:21:38:632] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\TeleportManager.java:118,384: ZoneType cannot be resolved to a variable
[15.03.15 13:21:38:632] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\TeleportManager.java:118,419: ZoneType cannot be resolved to a variable
[15.03.15 13:21:38:742] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\TeleportManager.java:212,176: ZoneType cannot be resolved to a variable
[15.03.15 13:21:38:757] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\TeleportManager.java:212,215: ZoneType cannot be resolved to a variable
[15.03.15 13:21:38:757] ERROR compiler.Compiler: C:\Testserver\gameserver\data\scripts\services\community\TeleportManager.java:212,282: ZoneType cannot be resolved to a variable
[15.03.15 13:21:39:476] ERROR scripts.Scripts: Scripts: Failed loading scripts!

 

Если нужны какие файлы для наглядности пишите предоставлю.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Ну здесь вроде как чепуха осталась, TeleportManager и CareerManager в ошибках, могу глянуть. И что за сборка?

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

При нажатии в игре комбинации клавиш Alt + B в GameServer'e выскакивает следующее:WARN Direct access to bypass: _bbshome /Player: Trololo

Беда печаль блин.одни грабли идут за другими.

Подскажите в чём и где закопана беда?
Если нужны какие то файлы пишите скину.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Намек: вот этот метод находится в Player:

public DecodedBypass decodeBypass(String bypass){BypassType bpType = BypassManager.getBypassType(bypass);boolean bbs = bpType == BypassType.ENCODED_BBS || bpType == BypassType.SIMPLE_BBS;List<String> bypassStorage = getStoredBypasses(bbs);if(bpType == BypassType.ENCODED || bpType == BypassType.ENCODED_BBS)return BypassManager.decode(bypass, bypassStorage, bbs, this);if(bpType == BypassType.SIMPLE)return new DecodedBypass(bypass, false).trim();if(bpType == BypassType.SIMPLE_BBS && !bypass.startsWith("_bbsscripts"))return new DecodedBypass(bypass, true).trim();ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(bypass);if(handler != null)return new DecodedBypass(bypass, handler).trim();_log.warn("Direct access to bypass: " + bypass + " / Player: " + getName());return null;}

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×
×
  • Создать...