Jump to content

Recommended Posts

Posted

This guide explains how to get Eclipse Integrated Development Environment (IDE for short), how to set up it to work with L2J source and gives a few tips on working with Eclipse.

 

NOTE: hidden sections with codeblocks inside are not yet implemented; ignore the [/hide tags.

 

Hidden Block: 1. Download

 

1. 1. First of all, go to http://www.eclipse.org/downloads/. You will see a list of Eclipse Packages.

1. 2. What to choose?

You now have two choices: (Explanatory picture)

Eclipse IDE for Java Developers

Eclipse Classic X.Y.Z

X, Y, Z specify the verson of the release

 

I would recommend the first choice, mainly for three reasons: It's name matches what you need, it takes up less space and since you hardly will need anything that classic realease has to offer. If you need something that is not included in the designed-for-Java IDE, you should use it anyway, since you can download the needed plugins/features via Software Updates (update sites are included in that menu). This way you will have a smaller, faster application without a truckload of features you don't even use.

 

Click your OS name to the right, then select a download mirror and download the archive file.

 

 

[hide=2. Installation]

2. 1. Extract the archive file using WinZip | WinRAR | 7-zip | KGB Archiver | Windows Explorer (XP or newer)

2. 2. Go to <extraction path>\eclipse and open eclipse.ini with a plaintext editor.

Here is an example file:

 

    eclipse.ini wrote:-showsplash

    org.eclipse.platform

    --launcher.XXMaxPermSize

    256M

    -vmargs

    -Dosgi.requiredJavaVersion=1.5

 

 

 

Anywhere below

view plaincopy to clipboardprint?

 

  1. -vmargs

 

-vmargs

add these two lines:

view plaincopy to clipboardprint?

 

  1. -Xms100M

  2. -Xmx300M

 

-Xms100M -Xmx300M

You can tweak them if you want. Don't set the initial heap size (allocated memory, -Xms) above 130M, it's not worth it. I would not recommend a maximum heap size (-Xmx) below 256M, but you're free to set it.

These lines help by decreasing the garbage collection call count during Eclipse's runtime. The higher the initial heap size is set, the less garbage collections will be done (less gc pauses).

 

2. 3. Now launch Eclipse. If you want to pass any parameters/arguments (both eclipse's and vmargs), you should include them in the eclipse.ini file, as shown above.

Select a workspace directory. All managed source and compiled files will be stored somewhere in this directory.

Check the box to set this directory as default and that dialog will never annoy you again. You will be able to restore it anytime you want, so just check that box.

 

After the IDE loads, you will see the Welcome screen.

Use the "Workbench" button.

Now you will see the default IDE perspective, named "Java [perspective]".

This ends the installation section, but you cannot start using L2J  yet!

[/hide]

 

[hide=3. Setup (Add-ons)]

3. 1. Open the "Software Updates" dialog.

Help -> Software Updates...

3. 2. Click the "Available Updates" tab.

3. 3. Add these sites:

view plaincopy to clipboardprint?

 

  1. http://subclipse.tigris.org/update_1.0.x

  2. http://m2eclipse.sonatype.org/update/

 

Note: http://eclipse.svnkit.com/1.2.x/ will be added automatically

3. 4. Select components (versions may differ)

3. 5. Click the "Install..." button on the top right side of the dialog. Eclipse will automatically find required libraries and add them to your selection.

You will have to wait a few minutes or less, until this window pops-up.

3. 6. Accept the agreements and click finish. Wait until features are downloaded and installed.

3. 7. When updating is done, you will get a confirmation dialog, click "Yes" and eclipse will restart.

[/hide]

 

[hide=4. Downloading source (checking out projects)]

4. 1. Open the "SVN Repositories" view. Step 1 | Step 2

Window -> Show View -> Other... -> SVN -> SVN Repositories

4. 2. Add the l2j  repository.

Right click anywhere in the opened view -> New -> Repository Location...

Enter this URL (and click Finish):

view plaincopy to clipboardprint?

 

  1. YOUR SVN LOCATION

 

4. 3. Check out Core and Login as Maven projects. (use default settings)

The projects are found in /tags/ or in /trunk/.

Core Version X.Y.Z

Login Version X.Y.Z

If you are using trunk source, you will not get any support.

4. 4. Check out Datapack. (use default settings)

This time do a simple checkout.

Datapack Version X.Y.Z

 

4. 5. After you finally checked out all three parts of the server, let's go to then next step.

[/hide]

 

[hide=5. Setup (projects)]

5. 1. Linking external source distributed with datapack Step 1 | Step 2

Right click the Core project (named "l2j .... .. . ." by default) -> Build Path -> Link Source...

Select the <datapack checkout dir>/data/scripts directory.

Set these exclusion filters:

view plaincopy to clipboardprint?

 

  1. ai/fantasy_isle/

  2. cron/

  3. custom/

  4. instances/

  5. teleports/

  6. village_master/

 

ai/fantasy_isle/ cron/ custom/ instances/ teleports/ village_master/

Click Finish.

 

Wait until the built path is set and a full rebuild is done.

If you are using 1.2.11, which is no longer the actual stable release, you will have to "fix" IceFairySirra.java file yourself. Removed the patch so that people using the actual release wouldn't get confused.

 

5. 3. Getting subversion

You will need svn.exe on your PATH, the easiest way (the installer automatically does that) is to go to http://subversion.tigris.org/ and download client binaries for your platform. Then install it to wherever you wish.

After doing this you must close and re-open eclipse, otherwise it will still work using the pre-modified path variable.

 

5. 4. Creating maven distribution archive builds

Run -> Run Configurations...

Double-click on "Maven Build".

Fill in the "Name:" field that is at the top of the build configuration panel.

 

Under "Main" tab, you need to fill in:

Base Directory: Either "${workspace_loc:/L2J......}" or "${workspace_loc:/L2J.....}"

Goals: "clean assembly:assembly"

You can omit "clean" if you know when/how to use it and decrease build length.

Skip Tests: you may check this if you want to decrease build length.

You can configure another Maven Runtime instead of using embedded one.

 

Under "JRE" tab, use these arguments to decrease core build length (tweak if you want):

view plaincopy to clipboardprint?

 

  1. -Xms400M -Xmx700M

 

-Xms400M -Xmx700M

If somewhy "Workspace default JRE" is not selected, select it. It eases the process of updating Java.

 

Example Build:

Main | JRE

[/hide]

 

TIP: Setup these. The warnings/errors can help you improve your code style, or at least warn you when you are deliberately accessing a "null" value.

 

Congratulations

 

38273430.png

  • 4 weeks later...
Posted

  1. http://subclipse.tigris.org/update_1.0.x

  2. http://m2eclipse.sonatype.org/update/

just update that ... and more is easy...

 

when you add that updates you can compile with maven in eclipse,is very easy and helpfully Smiley

 

[GR] ExTrEmEDwArF evala mia photo,peripou etc tha einai otan ta kaneis ola auta Smiley

lol exw ena prob me to upload :S den kanei tha prospathisw kai tha alaksw title otan t kanw :S

 

ExTrEmEDwarf ekana update me photo otan tha kaneis ta update tha s t dixnei kapws etc:

38273430.png

  • 3 weeks later...
  • 2 months later...
Posted

Since you clearly copied that from here , and taking in consideration there is a Credits rule, either you remove this topic or you post the proper credits.

Posted

Since you clearly copied that from here , and taking in consideration there is a Credits rule, either you remove this topic or you post the proper credits.

user banned?!?!?!

Posted

user banned?!?!?!

Indeed.

And about your question "Tell Me A Good Project ( IL Only )" the answer is: utopy.

Meaning, there is no decent Interlude Project since the so called 'projects' are nothing but a bunch of people who insist on working with the Interlude client, no more then leechers from the decent projects (L2j and Jfree).

Having said that, I think its pretty clear that you wont find any, besides, the bare need to use the Interlude client just reveals a lot of things.

 

Anyway since the user is banned:

 

Thread Closed.

 

Reason:

Improper Credits;

Guest
This topic is now closed to further replies.


  • Posts

    • L2jBayev Chronicle 3: Rise of Darkness – AiEngine Edition In short: this is a C3 build with a full-fledged AI engine, live mercenaries, a built-in quiz, a “personal account” in the Community Board, and server logic neatly distributed across thread pools. The project is about a living world without lags : bots farm, communicate, gather parties, teleport along routes, and the server remains cold and stable.   What's inside (the most delicious) 1) Full-fledged AI engine for characters Behavior types: farming ( FarmAI ), combat ( CombatAI ), party logic ( PartyAI ), trading/walking ( TraderAI / WalkerAI ), support roles (healer, etc.). Class profiles: for mages/archers/daggers, etc., “smart” skill rotations, distance control, sleep/save skills, healing, loot pickup, etc. are implemented (see examples of classes like SpellSingerAI , NecromancerAI , etc.). Self-healing and teleports: when dying, the bot goes through a sequence of steps without sleep()- via AITaskSequence + AITeleportToLocTask , searches for the nearest gatekeeper and teleports via TeleportationManager with routes depending on the level. Auto-support: auto-nipples, arrows/bones, smart auto-proceduring of buffs and auto-banks CP/HP/MP with thresholds - all sewn into the auxiliary EtcPlayersAi . Chat context: ChatManagerAi processes mentions, makes responses with delays (anti-flood), supports party chat and “human” reaction. Understanding: ChatManagerAi system  processes the dialogue, bots remember your aggression and insults, they start to respond less often to modern users, stop accepting or inviting to a group (party) and when it goes beyond the peak they will simply merge you, and every time they see you on the PC, there is an opportunity to measure more often, communicate respectfully and beautifully, in general, a “human” reaction. Why a player/admin needs this: bots actually “live”, farm and interact, and don’t just stand on macros. This is a great background for online and PvE action.   2) Mercenaries (Mercenary system) Full-fledged companion character : L2MercenaryInstance with its own MercenaryAI (movement, attack, support, consumables, shots). Behavior modes: DEFENDER / SUPPORT / PASSIVE - switchable to suit your playing style. Progress and trust: the mercenary's trust/exp/level grows , skills are learned according to the MercenarySkillTree (conditions are based on the trust or level of the owner). Templates and equipment: via MercenaryTemplateTable and spawner - model/weapon/type are selected. Social: MercenarySpeechManager - a set of speeches; the mercenary "comes to life" in the chat. Premium Link: Premium account owners give the mercenary additional trust (faster progress). Why: This is not a dummy pet, but a playful companion with modes, training and “character”.   3) Quiz (event viktorina ) Rounds according to schedule: pre-launch with announcements (minutes/seconds before start), registration .reg, auto-opening of the window. Multiple choice questions: question + set of answer buttons; fair processing, timings, question change. Tops and history: results table, statistics, neat UI via HTML assembly. Flexible control: you can start immediately or set a delayed start (notification package 5/2/1 min, etc.). Why: regular activity for players, “social entertainment” module right in the build.   4) Personal account in Community Board KB managers: buff cabinet, teleports, clans/forums/mail/friends, tops (PK/PvP/wealth/players), character repair, viewing skill trees , etc. Premium logic: some services/mail are limited by premium; premium also affects the visual (nickname color) and bonuses (see effect on mercenary). Single sign-on: all in one place, no team chaos. Why: conveniently manage your character and services without going into the console or installing third-party mods.   Why is the system technically valuable? Minimum load and stability Separated thread pools: AI logic, hunting, teleports, chat - on separate onesScheduledExecutorService ( AI_THREAD_POOL , MONSTER_HUNT_POOL , TELEPORT_POOL , CHAT_POOL ). No "freezing": task sequencers (teleport/recovery) work through the scheduler, not Thread.sleep(). Bot limitation: protection against overload via thresholds/counters - “extra” bots do not start. One bot - one sequence: AITaskManager ensures that the character does not have parallel conflicting tasks. Smoothing out peaks: starting tasks with offsets so that there are no simultaneous “ticks” of hundreds of bots. Monitoring/logs: own loggers (separate files for info/errors/processes/chats), CPU load monitoring. Bottom line: the build is designed for “thick online” and mass activities without TPS failures .   Additional Features Auto-alliances for farming: party logic invites suitable players (checking level/equipment/clan flags), there are “human” responses to requests. Sub/class management: out of the box helpers for changing class/subclass, auto-learning of necessary skills and selection of equipment by level. Security/protection: secondary PIN/picture password support (used in KB/voiced commands; optional). Premium accounts: privileges in KB/mail/visual and synergy with mercenary progress. Ready-made services: tops, auctions/mail, teleports from KB, buff rooms, repairs, viewing skill trees, etc.   Who is this build for? Freeshare/project admins who want a living world “from the pack”: bots and mercenaries provide a constant background of activity. Players who value convenience: personal account, premium services, events and a mercenary companion. Developers who want a clean, predictable backend with thread pools and a neat task model without “magic”.   How it differs from standard assemblies Not macros - AI profiles with “brains”: rotations, positioning, healing, decision making. Not a decoration pet - a mercenary with his own modes, progress, skill tree and lines. Not a faceless gamemod - an event quiz with UI, schedule, tops. No chaos in flows - strict pools, planning and task managers designed for online and growth. No separate scripts - a single personal account in KB for most activities.   TL;DR (one paragraph for the project card) AiEngine C3 is a build with live AI, smart bots, mercenaries (modes/progress/skills), built-in quiz, premium logic and a convenient personal account in KB. Under the hood are distributed thread pools and task managers without sleep(), so even with a dense online the server remains stable and responsive.   Additionally add - there is still a lot of interesting things command .assassin or shift+target (order murder), shift+target for admins on AI characters for control, admin panel is completely rewritten, many additional functions, mercenaries change their appearance depending on trust, deepseek and chatGPT system is connected for communication of characters like real players, GPT - for newer java, there is still a very large list of fixes after the last versions, a lot has been fixed, including height coordinates (Z) geo-Squares, pathfinding, visibility through obstacles, fix pet summons, trade packages, shop packages, many effects, quests (including the original ones like nipples, etc.), Ai behavior of NPC and RB monsters, absolutely all epics have been transferred to AiLoader no longer in python scripts. Attention! The server is suitable for both classic mode and PvP format, as well as with various mods. Absolutely everything is configured in the configurations to suit your taste and purposes of use. It is recommended to launch the server through L2ServerControl (simplifies management and control of processes). Download Servers: Chronicle 3 Server Chronicle 4 Test Upgraded Server Full Desc & screens: Post & Screens c3 Post & Desc c4    
    • 🎃 HALLOWEEN EVENT 🎃   ‼️ Information and details: https://forum.l2harbor.com/threads/halloween-event-fall-harvest-30-10-07-11.8265/post-168620
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock