Hello guys as my title says i am using l2j-frozen pack and i am trying to input a custom property file but i cant even if i do all corectly ( i think )
So let me tell you what i do:
I open this: com.l2jfrozen.FService.java
// Config Files Paths
//===========================================
+ //Custom config
+ public static final String CUSTOM_FILE_DIR = "./config/custom.properties";
Then i open: com.l2jfrozen.Config.java
private static final Logger _log = Logger.getLogger(Config.class.getName());
+
+ public static boolean ALLOW_CUSTOM;
+
+ public static void loadCustomConfig()
+ {
+ final String CUSTOM_SETTING= FService.CUSTOM_FILE_DIR;
+
+ try
+ {
+ Properties custom = new Properties();
+ InputStream is = new FileInputStream(new File(CUSTOM_SETTING));
+ custom.load(is);
+ is.close();
+ //============================================================
+ ALLOW_CUSTOM = Boolean.parseBoolean(custom.getProperty("AllowCustom", "True"));
+
+ }
+ catch(Exception e)
+ {
+ e.printStackTrace();
+ throw new Error("Failed to Load " + CUSTOM_SETTING + " File.");
+ }
+ }
+
And i create the custom.properties at config directory adding the AllowCustom = True in the file, i get no error while compiling and no errors at GameServer but when i log in and try using this custom additions they dont work...
Please someone help me... Thanks in advance!
PS: Thats an example i add other things just to give you understand what i do :)
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
Xmas Wolf Chariot Mount | Lineage 2 Mod
Celebrate the holiday spirit in Lineage 2 with this festive Xmas Wolf Chariot Mount! Created for protocol 166, this unique modification features majestic wolf mounts with holiday-themed harnesses pulling a decorative chariot.
If you have questions or want to add this updated skill to your game, feel free to contact me via Skype or Discord.
Download or in Discord Client Dev channel https://discord.gg/XdCb9dmTtf
Question
MarKoM
Hello guys as my title says i am using l2j-frozen pack and i am trying to input a custom property file but i cant even if i do all corectly ( i think )
So let me tell you what i do:
I open this: com.l2jfrozen.FService.java
Then i open: com.l2jfrozen.Config.java
And i create the custom.properties at config directory adding the AllowCustom = True in the file, i get no error while compiling and no errors at GameServer but when i log in and try using this custom additions they dont work...
Please someone help me... Thanks in advance!
PS: Thats an example i add other things just to give you understand what i do :)
3 answers to this question
Recommended Posts