Jump to content
  • 0

[HELP]L2j-Frozen adding custom properties


Question

Posted

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 :)

3 answers to this question

Recommended Posts

  • 0
Posted

Here i don't saw just you added config file but i dont saw any function.. what supose to do " allow configs " show us all code or  what you enbale with allow configs

  • 0
Posted

Thanks man for replying i was searching right now the config.java file and found what i was missing :)

It seems that i had to input this:

			loadHexed();

+			//Load Custom config
+			loadCustomConfig();
+

 

Tested and worked. (I am really happy right now xD )

So thanks and please someone lock this topic :)

Have a good time.

  • 0
Posted

Thanks man for replying i was searching right now the config.java file and found what i was missing :)

It seems that i had to input this:

			loadHexed();

+			//Load Custom config
+			loadCustomConfig();
+

 

Tested and worked. (I am really happy right now xD )

So thanks and please someone lock this topic :)

Have a good time.

np

 

Guest
This topic is now closed to further replies.


  • Posts

    • Hello,iv got fafurion running localy just for fun and seems that files dont have geodata couse i can hit through walls so are mobs.Anyone can tell me how to activate geodata or where to insert geodata files?
    • L2Extend_Server_by_Guytis_Rev_201.rar Trojan:Script/Sabsik.FLA!ml   LOL
    • Good luck with your g/o 😃
    • You're talking complete nonsense. The source code of SphereAPI, which handles all requests, is closed and has never been published anywhere.     That return $this doesn't affect anything, PHP just ignores it. Why are you showing it?     Yes, of course I want that, and I’m asking you — go ahead and hack it, I’d even be thankful. The most you can probably do is launch a DDoS attack, but that’s not hacking. The IP you see is just a public one, used by default to handle requests. There are many other IPs involved, which aren’t disclosed for privacy reasons. So, when should I expect your hacker attack? If you fail, it means you talked big for nothing. I hope you're not all talk and can actually back up your words. UPD: To make your task easier, I have disabled limits on incorrect and failed requests, so your site/IP won't get blocked.
    • Lineage2Dex Interlude+ x50 Server launches TODAY!       The wait is over – the Lineage2Dex Interlude+ x50 Server launches TODAY! Grand Opening - April 26 at 19:00 (UTC+3) Over 10,000 registered accounts are ready to dive in! Beta with massive activity over, thx all who participate on it! It's time to begin your real Jorney! 👉 Read full roadmap 👉 Full server description 👉 Download and registration The server will be split into 3 stages, each featuring multiple content episodes. Stage 1: April 26 – May 18 Welcome to the Classic Interlude Phase. This stage is built with minimal custom content, focused on delivering that pure Interlude experience. It’s perfect for both new players unfamiliar with our project and veterans who enjoy a traditional start. Expect a smooth and nostalgic journey with familiar mechanics. Stage 2: May 19 – June 22 Time to expand the world! As most Interlude content gets completed, we gradually introduce new elements. Hellbound will open first, followed by weekly content updates. Midway through this stage, the Isle of Prayer will become available — a new zone featuring Dynasty Gear and fresh challenges. Stage 3: From June 23 Welcome to full content access! Some location become to High-level location, offering great reward! Once this phase concludes, a full merge with Union server will take place — and yes, all your characters and items will carry over safely. We wish everyone a smooth start, fair play, and tons of fun on the new x50 server! See you in-game!
  • Topics

×
×
  • Create New...