How to implement new build?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
alejandromoran
Posts: 20
Joined: Tue Dec 17, 2013 11:35 pm

How to implement new build?

Post by alejandromoran »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 6291:
L2JDP Revision 9641:

Hi all, this post is in relation with this one viewtopic.php?f=81&t=29075 about change raise clan fee.

I want to ask you if there's some way to use the l2jserver.jar that I've build with "Ant build.." in my current version??
Because the full build folder have config files and much more. (If I replace all that config files everything in my server will be change) I mean, it exists some way to implement the new compiled l2j with modified code in my current version?? (I do not know if I've explained well, sorry =( )

(I tried replacing l2jserver.jar and server do not start, it crashes).

Thank you =)
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: How to implement new build?

Post by BiggBoss »

if you dont have the source code of your jar file, you got 2 options:
1) Decompile it and rebuild from scratch
2) Intercept bytecode loader and inject your code directly in process virtual space
Image
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: How to implement new build?

Post by UnAfraid »

BiggBoss wrote:if you dont have the source code of your jar file, you got 2 options:
1) Decompile it and rebuild from scratch
2) Intercept bytecode loader and inject your code directly in process virtual space
Iii.. dont think both options are so easy to make by his side :mrgreen:
Image
Hyrelius
Posts: 257
Joined: Thu Dec 16, 2010 5:16 am

Re: How to implement new build?

Post by Hyrelius »

Actually .. I think we all didn't understand the question.

What I think the thread creator wants is to know a way to upgrade his server without having to upgrade everything else in the server-folder (that's a wild guess, of course).

If so, I think there is.

Replacing the l2jserver.jar is only part of the work.

After you've replaced that, you should copy and overwrite libraries inside the server/libs folder, following by a selective copying of datapack content into the appropriate folders.

That's why the devs on the L2 shard I am working on have created a separate project, which contains all of our scripts as well as classes, that we want to replace due to our own server modification. This way the core stays as clean from changes as possible while still being flexible.

Your best bet would be to find all of your changes (possibly using SVN and/or WinMerge), save them (as well as your configs) and then create a new server with the revision you want and manually merge the configs and files. I know it's cumbersome, but in your case (I suppose you don't have your own SVN and don't exactly know all of your changes) it's probably the best.

(sorry if I misunderstood you, but my guess is you've got exceptions after modifying a class - and thus you want to update everything - hence my poem :))
Image
I don't mind helping - however: I only do so if I want to.
No support for other server packs than L2J.
Post Reply