Jump to content
  • 0

Question

Posted

Hi Friends. I am learning a little how to edit jar files from the Core, i Need to modify the engine.jar to add some lines in donatemanager class for the classes changer but i got an error when i import the jar file to my proyecto,for example error in imports Like log4j.

Could you explain the Steps to modify and import this files to our project?.

3 answers to this question

Recommended Posts

  • 0
Posted

If you need change any class from JAR package then you need:

 

  • Decompile the target class;
  • Create new Java project in IDE as container of target class (project can includes only "dead code");
  • Normalize all fields and methods;
  • Restore all imports with external dependencies;
  • Compile as new project;
  • Replace new class from new JAR package to old.

For all you need any IDE (Eclipse, IntelliJ IDEA) and any Jva decompile (e.g. Java Decompiler)

  • 0
Posted
11 hours ago, Rootware said:

If you need change any class from JAR package then you need:

 

  • Decompile the target class;
  • Create new Java project in IDE as container of target class (project can includes only "dead code");
  • Normalize all fields and methods;
  • Restore all imports with external dependencies;
  • Compile as new project;
  • Replace new class from new JAR package to old.

For all you need any IDE (Eclipse, IntelliJ IDEA) and any Jva decompile (e.g. Java Decompiler)

 

}

Thanks Root, i have exported source from engine.jar, i have created a Java Project with java 11 because Sunrise use that. then i copy the files to the project and imported a library of l24j. That error has been resolved, but tha source has an error because cant find de l2r.DatabaseFactory and L2PCInstance. i share the images.

If i export that source i think that it wouldnt work.

 

https://ibb.co/z28XxKg

https://ibb.co/TvZbYf8

  • 0
Posted

You need restore all dependencies. It means you need:

 

  • reproduce classes irerarchy and package location (e.g. if target class locates by path "l2j.net.sf.gameserver" you need create this package path in your new project and put there target class);
  • if target class calls some methods from classes from this package then you need create this classes as DUMMIES and reproduce them empty methods/fields for exclude logical errors while compilation. This names as "make a dead code";
  • compile result and take modified class for replacing.

That's all steps i meant by phrase "Restore all imports with external dependencies".

 

Sometimes recompilation the target class requeres a lot of time and new project can includes few hundreds "depended" classes. You must be ready for this.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • If it is AI-generated, you used a really shit model. Even AI wouldn't be able to generate obvious errors like the badge misalignment.   I do find it funny, however, that out of everyone to accuse you, Splicho, who used AI to fully generate this https://nimeracp.com/, is the one to talk.
    • You’re free to dislike the design, that’s subjective and totally fine. But calling everything you personally don’t like “AI generated” is not really an argument 😄 The funny part is that the layout constraints you’re criticizing are actually intentional design decisions for toplist platforms — ads, rankings, visibility blocks, sponsor placements, and high information density. This isn’t a portfolio landing page or a SaaS dashboard where you can leave half the screen empty for aesthetics. Also, AI-generated UIs usually look generic, over-animated, inconsistent, and impractical for real long-term usage. Our platform has been evolving for years based on actual user behavior, server owner needs, CTR optimization, and functionality requirements. You may not like the visual style, and that’s okay. But confusing “I don’t like this design” with “this was made by AI” just shows you’re judging emotionally instead of technically. Anyway, appreciate the feedback. Good luck to you too 🙂
    • You don't get it what I am trying to say. Your UI is simply ai generated, entirely. The current theme what you are using. I am not talking about the backend. It's just my personal preference/opinion that I think your UI looks really bad because it's AI generated and whoever worked on it didn't give a single fuck about how it looks, or at least take the time to rework the UI that AI generated yourself.   AI is just bad with design and your website is a proof of concept once again. But how would someone know what looks good and what does not look good if one doesn't have the design skills or knowledge.   Whatever, good luck with your site.
    • Of course AI can generate Bootstrap now, but back in 2021 nobody was building sites with Codex like today 😄 And yes, the site looks different because we kept updating the UI over the years — colors, cards, spacing, dark mode, mobile tweaks, animations, badges, and layout refinements. That’s called maintenance and redesign iterations, not rebuilding the whole backend from scratch. The core architecture is still the same Bootstrap-based structure we’ve used for years because toplist websites need specific blocks and banner placements to work properly. You can literally compare both screenshots and see the evolution. One is the older 2021 version, the other is the current polished version after years of manual improvements. No AI magic involved, just hand-coded work and years of updates 🙂 And honestly, if someone thinks every Bootstrap website is AI-generated now, then half the internet was apparently built by ChatGPT before ChatGPT even existed 😂
    • Hello,   I am looking for clean patch for patch Classic 3.5 Tales Untold NA P 286. Thanks in advance!
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..