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 :)
To be honest imo with the name maxcheaters the only content you can have to make it work would be something that has to do with cheating or any form of cheats/hacks such as leaks, cracked apps and/or scripts, bypasses, etc. It would require a new name and the support of the community to build something fresh and ofc it will also require a team that would listen to people's ideas and suggestions that makes sense in order to make it work. Maxcheaters community was kinda divided back in the time when people wanted to see new stuff that maxcheaters wouldn't add and they were starting new communities trying to build what they would like to see ending up failing because they didn't have the knowledge and/or the community back then to support it, coming back to mxc hoping that something would change which it didn't and that was the beginning of how it started to die activity wise. And obviously the trusting part mentioned above as well was a crucial part of it as well.
Is it possible to use Adrenalin 1.71 (Cracked) on clients higher than H5? Looking for support for Grand Crusade (109) or Essence: Assassin (418) on a bot-allowed server.
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
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 :)
3 answers to this question
Recommended Posts