Jump to content
  • 0

About diffs, patch, compile and compiled server


Question

Posted

Sorry guys i am pretty new to L2J theme. I compiled, installed, started and tested with compiled one server, but now i am gonna start on Quests and Events, but my head is broken.

 

Subject: For example i got source code of server and compiled one server which i use atm. By next step i put in code changes and i need compile full project again? But whats will be with my changes, which i made on compiled one server? I googled whole day and didnt found answe on this my quest.

 

Subject2: How better work on code with server? I need to make my private svn and put there base code? And update it with tested diffs? 

 

Thanks for help.

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

You take only .jar file(from source/build) and replace on your pack . (If you use IL l2jserver for acis , l2jfrozen-core for frozen)

 

Edited by Generic
  • 0
Posted (edited)

You have to recompile the core each time you want to refresh your server. You have to replace l2jserver.jar, which holds the core side aswell as whatever datapack you edited (sql, xml, htm,...). Previous core is crushed on the process, so consider to track your changes using a SVN (which is a sort of online history of your editions, allowing you to see/revert your editions, even old ones).

 

Diffs / patches (same thing for different names, a patch is distributed under .diff) are generated using a SVN. It compares local copy (with editions) and online edition (untouched, at latest commited revision) and generate all changes between those 2 revisions.

 

A commit is an edit you did locally than you uploaded on your SVN, making your SVN one revision higher. All editions are accessible if you checkout your project at HEAD revision (which is the accumulation of all changes you did).

 

A checkout is a download of your project at a revision X (you choose).

 

For example, aCis got atm 874 commits. If I checkout project at HEAD revision, I will have project at revision 874. But I can also checkout the project at any passed revision. I can also compute diff patches for one revision, or multiple revisions - which will hold changes made during those revisions, and only that.

Edited by Tryskell
  • 0
Posted (edited)

hm.

 

so if i rightly understand lets look on example:

 

i added to core some quest, i recompiled gameserver project and there after compilation i got in dist folder file like l2jserver.jar which also contains on my local pc in gameserver/libs folder.

 

and all what i need to to change file in my folder with compiled one? 

 

then if i rightly understand thats work so:

1.after each compilation after i write any update to core i just need swap this l2jserver.jar

2. and after i upgraded my core with new function like event i just need relalize it on server with mysql/xml/html bt way: adding npc which will start this script, which will be used from core (for example).

3. and i dont need after each compilation change all files in my local project.

 

i just trying understand mechanics how it working.

 

Thanks for advice.

 

Edited by aidie1
Guest
This topic is now closed to further replies.
  • Posts

    • Hi everyone, Since I’m no longer interested in L2 servers, if anyone is willing to continue the project, let me know. I’m currently selling the entire project. DM me for more information if you’re genuinely interested. I can offer limited free support for the first couple of months. It is not cheap. The sale includes the domain, the recently fully redesigned website, the updater, the interface, server files with Lucera ext source, and the database (excluding account passwords, emails, and other private information; character data can remain).   Server for test: https://lineage2.gold/download Server Info: https://lineage2.gold/info Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113  
    • You invent yourself a life - bad for you, one of the inner core dev, fernandopm, which worked hard over aCis quests from 2011 to 2016 is argentinian. I teached him back in time to work and make proper quests. My dev team comes from 10+ countries and I'm myself french. "Racist/nationalist" card ? Not working bro.   Not sure why I should thank you to send me questions, and regarding bug reports, so far, I got none of yours in either discord, gitlab, or forums. I'm sorry if you feel "ignored", but that's more a psychanalyst you need to speak with if you put emotions towards someones' appreciation over a forum. I never ignore a bug report, and if so (like skills reports), it's because I got a bigger plan (skills refactor, in that case). In any case, I delivered cookies for the bug report/fix, even if it dated of months, with proper credits over changesets. "Victim card" ? Not really working, but ok, maybe you're "emotional".   I barely make money out of aCis, for the spent time - simply selling my services, or even coding/administrating a minecraft/L2J server would make far more money. Breaking intentionally things would be stupid. If you don't understand I'm not the only one working on that pack, I can't help you. Also, the scale of edits is sometimes extreme - AI L2OFF ? 1800 files added. How do you want everything works in a single shot ? "Exploiting noobz for money" card ? Still not working, or I'm a terrible businessman.   Meanwhile - you shadow advertise your project, L2JOne (since 2017 btw) - you should maybe start by the beginning saying you're a competitor and aCis is actually a spike in your foot. That also explains why you act like that. RusAcis got the exact same strategy, speaking bad of me, saying they got unique fixes (you speak about I break things, they break and recode things 4 times sometimes, btw), but successfully reselling latest revision with poorly executed stuff. "aCis is good, Tryskell is ok, but I solve all issues in extreme low time so I can piss over him" card ? Mmmmhhhh.   Our conversation ends here if you want, I don't force ppl to speak with me if they don't want - hopefully, people would understand I'm not the arrogant one and the one who doesn't want to talk, or even collaborate. :). I understand you got your own project and got no will to improve aCis.   NOTE : I'm extremely happy for your call of ExShowServerPrimitive with getValidGeoLocation, extremely impressive. Arrogant, no. Sarcastic ? Maybe.   Good night everyone.
    • Hi. @GX-Ext, svn does not work. is there anywhere else where we can get source code? Thank you so much.
  • 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..

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