Jump to content

[GUIDE] How to compile L2J


Recommended Posts

Note before reading, things in this color are just bullshit you can just don't read they are just for explaining some stuff not so important, why I typed this?.... is just because sometimes ppl don't wanna learn when they see like a lot of text and they just prefer to get the server compiled, but remember things in this color are really really really really important

 

Hi everybody, fist of all I wanna tell that this forum is really nice, all people help each other with contributions and everything they can, not like l2OFF forum where all answers you can get are "Good Look", "Use search", and things like this, thats the reason i tried the L2J and I really love it, well that's no the reason of the post so let's see

I have noted that in this forum there is no a post for the people that teach you how to compile a subversion of L2J, well this is my first guide and I hope you ejoy it, i think is time to help people cause I really get a lot of help in this forum so let's start the guide.

 

1.: The first step on this is that you have to decide wich version of L2J you will like to compile, in this forum you can find a lot of them like Hero1711, official L2J, L2J Free, DrakRage's, etc... etc... I sincerily reommend you the official L2J or the L2J Free, I'm not saying that the other ones are wrong or something else, is just that the other ones have extra stuff, like npc buffer, global gk, etc... so that's the reason I recommend you the L2J Free or the L2J, but if you like a "custom server" it will be fine to chose Hero's pack or darkrage's one, this step is for me the most dificult part, cause one pack has something that other one don't and you'll never get a perfect one so is better to learn how to do the things or to download your custom patches (in this moment maybe you wanna kill me cause I have not explained anything and I made you read a lot jeje so i will stop blah, blah, blah blah and start teaching you) Note, when you have decided wich pack you will like to compile you have to search for the SVN Repository

 

Here I paste you some SVN Repository links

 

Official L2J---------------"http://www.l2jdp.com/svn/trunk/"

Official L2J---------------"http://www.l2jserver.com/svn/trunk/"

that ones you must compile the two to get a server, the fist one is the datapack and the second one is just the server so if you decide to get a Official L2J you must compile that two links

L2J Free-----------------"svn://l2jfree.com/repo/l2j-free/trunk/"

Hero 1711---------------"https://opensvn.csie.org/l2jhero1711/"

Oneo--------------------"https://opensvn.csie.org/Oneoteam/"

in this ones you will find 3 folders one is ffor the login server other for the game server and other one with the datapack, I will explain it later

 

2.: Once you have decided wich server pack you'll like to compile you have to download this 2 programs

 

Java SE JDK 6

note that in that page you'll find a lot of JDK6 you have to download the one that says

JDK 6

The Java SE Development Kit (JDK) includes the.......

 

Eclipse SDK 3.2.2

please take a look in the page don't download the eclipse distros, that don't work

Note that eclipse is not a program you have to install, you have just to unzip it in a folder you will remember for the rest of your life

 

3.: Install Java SE JDK here I put some images

 

java1tc6.jpg

 

Just accept the Licence Agreement

 

java2uh0.jpg

 

Next

 

java3jo7.jpg

 

Wait until this is installing

 

java4sk9.jpg

 

Another time Next

 

java5ho3.jpg

 

Another time just wait untill it finish

 

java6jn0.jpg

 

Then you have it installed Congratulations, you see is not so difficult, just click finish and see the readme, or if you don't want just deselect the option and click finish

 

4.: Configure Eclipse (Muajajajajaja, this is the evil part)

Follow all my instructions and I suere you will have everything allright

Step one obviously unzip the eclipse in a folder you will remember for the rest of your life

Step 2 open the exlipse.exe (I recommend you to make a desktop shortcut) it will ask you where to put the Workspace, I recommend you to keep this like it preconfigured for you and check the box where says that use that like default

 

guia1ri0.jpg

 

Click on menu Window/Preferences

guia2rh1.jpg

 

There will appear some screen like I have here

 

guia3lp5.jpg

 

Expand the one that says +Java

 

guia4re6.jpg

 

So your window will look like this one

 

width=519 height=480http://img339.imageshack.us/img339/7077/guia5bj2.jpg[/img]

 

Then select the option that says Installed JREs

 

guia6pe0.jpg

 

You will have some window like this

 

Note if you have another JRE just select the one that says JDK, if you don't have it just keep following instructions

 

Click on the search button

 

width=640 height=471http://img20.imageshack.us/img20/420/guia8rt6.jpg[/img]

 

A window will apear, just select your hard drive and click OK

this will search for all JREs in your hard drive, note that this may take a lot of time so don't be desperated

 

guia10jz5.jpg

 

When it finish you will now have a screen like this, doesn't matter if you don't have so much JREs or if you have more than me, but if you don't have the JDK then just install it the guide for install it is in the fist part of the post

Just select the newes version of JDK in this case 6.0

 

width=640 height=446http://img87.imageshack.us/img87/821/guia11ng0.jpg[/img]

 

Just click OK

 

width=640 height=448http://img337.imageshack.us/img337/8535/guia12ua5.jpg[/img]

 

Then go to menu Help/Software Updates/Find and Install....

 

width=640 height=245http://img158.imageshack.us/img158/7113/guia13gk4.jpg[/img]

 

You will have a window like this one

 

width=537 height=480http://img65.imageshack.us/img65/5729/guia14yb5.jpg[/img]

 

Just check the box for "Search for new features to install" and click next

 

width=538 height=480http://img65.imageshack.us/img65/9801/guia15po1.jpg[/img]

 

then you will see a window like this one

 

width=543 height=480http://img53.imageshack.us/img53/672/guia16xh7.jpg[/img]

 

Just click on "New Remote Site"

 

width=537 height=480http://img232.imageshack.us/img232/6334/guia17op8.jpg[/img]

 

You will see a window like this one

 

guia18xm5.jpg

 

In name you can put the name what you want, if you want you can put John Smith, you don't have to put your name lol, you have to put the name of the site, it can be whatever you want but in URL you must paste this subclipse: Subclipse Update Site then just click OK

 

guia19fl5.jpg

 

So you return to the other window, just select the one you have created the other ones aren't important to compile L2J so don't take care of them, then when you select yours just click finish button

 

width=536 height=480http://img232.imageshack.us/img232/614/guia20fv9.jpg[/img]

 

Then your computer will think for a little while, let it think and then you will have a window like this one

width=596 height=480http://img232.imageshack.us/img232/1106/guia21wz0.jpg[/img]

 

Just check the box like in the image and click next

 

width=599 height=480http://img58.imageshack.us/img58/8002/guia22yd0.jpg[/img]

 

Surprise!! a window will appear (another time)

width=596 height=480http://img53.imageshack.us/img53/3724/guia23hs0.jpg[/img]

 

Accept the terms and click next

 

width=598 height=480http://img232.imageshack.us/img232/6576/guia24mm8.jpg[/img]

 

Now just click Finish button

 

width=594 height=480http://img53.imageshack.us/img53/5628/guia25vs4.jpg[/img]

 

So now try to tell me what's next

you got it?

don't look below

...

...

...

don't cheat in this game

...

you got it?

...

...

...

really?

Yes you're right another window will appear, what an intelligent guy you are so I will stop doing this guide........ Ok better not, I will continue, you wanna know why I made this joke, is easy man/woman is just cause I know you are bored or you just hate me cause I explain everything, try to relax a little and if you are tired just sleep or go to a park and play some baseball or soccer, I don't know just keep relax

 

Well coming back to our topic, you will have a window like this one, just wait until it finish

 

guia26th9.jpg

 

When your download finish successfully you will have an ugly window like this one don't be afraid, I'm with you and I will help you :D, you just need to click on Install All

width=596 height=480http://img211.imageshack.us/img211/2207/guia27ik9.jpg[/img]

 

Another window appear, just wait until it install everything new stuff

 

guia28vt9.jpg

 

When it finish you'll see this window telling you that your computer crashed and you will lose all your data....... jejejeje just a joke to relax you, the true is that you will restart eclipse just click Yes,

 

guia29sw5.jpg

 

If eclipse don't restart just start it again manually

 

Coming back to eclipse, click on menu Window/Show view/Other

 

width=640 height=400http://img118.imageshack.us/img118/2236/guia30ra3.jpg[/img]

 

And another #$%#$"!"$$% window will appear, maybe in this moment you are hating me but I don't care I now you'll love me after you finish

 

 

guia31aa6.jpg

 

Just expand the option that say +SVN

 

guia32mg5.jpg

 

Inside SVN just click the option that say SVN Repository and click OK

 

guia33hr5.jpg

 

If you get a white window like this you are following correctly all my instructions

 

guia34yz6.jpg

 

Just right click inside the window, a menu will appear (surprise, here will not appear a window)

 

guia35za8.jpg

 

5.: Downloading the source you will compile

 

Select New and then Repository location

 

guia36ab3.jpg

 

Another window will appear

 

guia37tz1.jpg

 

Very very very very important note, here is where ppl get on his/her own way, I mean here is where you put your SVN Repository location, you must select one of your like, If you like Hero's1711 of Official L2J, whatever you chose is the same thing, just the repository location changes and obviously the contain of it, I mean NPC's, Armor, Weapon, etc... etc...

So in this window you have to paste the repository you like to compile

in my case I chose for the guide the L2J Free version

 

guia38us1.jpg

 

Before pasting the repository location you just have to click finish

 

You will see another window that say your computer is thinking, just let it think

 

guia39yx6.jpg

 

Then you will have something like this

 

guia40lv1.jpg

 

Expand it (Just click in the [+])

 

guia41df8.jpg

 

ou will have some folders like game server, login server and data pack, you have to download folder by folder

 

For example to download the data pack folder like in my case just left click on it and in the meny click on the "Checkout" option

guia42kt0.jpg

 

You will get another window, you know I hate windows :)

 

guia43ea6.jpg

 

you just have to check the box that say "Checkout as project in the workspace" and click finish

 

Another window will appear, it will say that is downloading all server shit, this operation will take a lot of time you must be patient, if you are not patient, you can see some porn pages, eat, play with your dog, whatever you wanna do in that whil, cause I'm telling you this will take a lot of time and I'm not lying

 

guia44to5.jpg

 

When you finish you will now have the folder, in my case "Data pack", guess what, you will have to do the same process for the game server and for the login server, just left click, checkout, blah blah blah

 

guia45fq4.jpg

 

6.: Compiling

 

If you are in this step congratulations you almost finish, just click on the restore button of the SVN repository, is this, in the image is amplified

 

guia46dr3.jpg

 

After you click it you will see a lot of windows inside the Eclipse, for now we are just looking for the Package Explorer, is located at the top of the right side of the window

 

guia47gd6.jpg

 

there you'll find all the files you downloaded by SVN repository

 

Expand the first one (clicking the [+]), you will see a file with name build.xml

 

guia48nb3.jpg

 

Right click on it, a menu will appear

 

width=238 height=480http://img214.imageshack.us/img214/5743/guia49qn8.jpg[/img]

 

 

Go to the option that say "Run As" and then "Ant Build"

 

width=485 height=480http://img77.imageshack.us/img77/8984/guia50pv2.jpg[/img]

 

Click on the first one

 

In the center of the screen you will see a window named Console it will display something like this after you click ant build

 

guia51rb4.jpg

 

Note that there is a red square

 

Don't take care about errors if you get at the end a message that say "BUILD SUCCESSFUL", error's are because L2J is not a perfect source and is incomplete, but if you get this window you are right

guia52nq9.jpg

 

Now repeat all this steps for your 3 or 2 folders

 

That's it man/woman

 

So now what's next step......

 

7.: Unzipping and edit your files

 

Go to your Workspace folder

Don't remember where is it

C:\Documents and settings\"your user name"\Workspace

this is just if you didn't change it but if you change it and don't remember you didn't follow my instructions

Your workspace must look like this

 

guia53fg8.jpg

 

enter one of your 3 or 2 folders, if you have 2 enter first to your L2J Server folder if you have 3 enter to your login server or game server folder doesn't matter which one you chose

 

width=640 height=425http://img77.imageshack.us/img77/7109/guia54yx8.jpg[/img]

 

Inside the folder you will see a folder with name build, open it and there is your zip file, copy this to a folder you'll remember for the rest of your life

 

guia55ls3.jpg

 

If you just have 2 folders skip the next step

 

Then if you have 3 folders go to the other folder you didn't enter and the one that is not the data pack one and enter build folder and copy the zip to the same folder you copied the other zip

 

Then enter to the data pack folder and then to the build folder, and do the same, copy the zip to the same folder you copied the other zips

 

Unzip the files in the same folder but remember this,

1) unzip login and game server

2) unzip data pack inside game server folder

 

If after this guide you couldn't make your own compilation, damn man you must not try to have a server

 

I hope you enjoyed this guide

 

This guide is dedicated to Nargen, is a person I really admire, cause is a girl that makes servers and also thanks to Antorni

 

 

also i see that killer_007 have a topic like mine but mine have more detail and is more easy i think

Link to comment
Share on other sites

Very Nice Guide !! If i could change the karma !!! I would do it !! Very Usefull and better than other shares with that style !

Link to comment
Share on other sites

very good guide,the best i have ever seen of this type.man you deserved the karma,gg

plz give us link for the programs you use and your guide will deserve sticky,has everything you need to compile your server.

Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • 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