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 :)
Since last massive leak as explained as 07/09 (notably all development branches), I don't accept anymore financial newcomers that easily. People will have to contribute 100 cookies worth of contributions (bug reports/fixes) as a first step to be accepted as Donator. Free user can join after sharing over 200 cookies out of contributions, compared to 100 cookies before.
You can say thanks to RusAcis, and notably his worthless leader, UnleashedForce.
The size of users will continue to shrink if more leaks occur, until true helpers only will be left.
New prices are as following :
Joining price: 200€ + 100 cookies, or 200 cookies
This fee has to be paid if you are joining aCis project. Next month, and all other months, you will have to donate only basic monthly donation.
Monthly price: 10€ / 10 cookies
This fee has to be paid every month.
I won't accept any new join fee before the 100 cookies contribution. Your money will be instantly sent back.
Also, in the same shape of idea, actual supporters/donators have to be active to stay in sources. It doesn't have to be a particular amount, you just have to share from time to time *anything*. I don't accept anymore silent ppl. Only useful people will be kept.
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
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
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 :)
Link to comment
Share on other sites
3 answers to this question
Recommended Posts