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

    • 🤖 Old Telegram bots with 2024 year old ⭐️ Good for search optimization TG ⭐️ Bots without subscribers ⭐️ Bots clean, no bans, blocking and complaints 💵 Price list: From 3 bots - 3$ for 1pc. From 20 bots - 2.5$ for 1pc. From 60 bots - 2.3$ for 1pc. From 100 bots - 2.2$ for 1pc. From 400 bots - 1.9$ for 1pc. 📌 To contact Us - t.me/smmtg6
    • ⚡️ Fast SEO optimization in Telegram for your channel/chat/bot. TOP OF SEARCH TG🔝 ✨ Effective solution for your business or blog. 🔥 Fast results within few days. ➡️ Contact us on Telegram for more details - t.me/smmtg6
    • 🤖⭐️ TELEGRAM PREMIUM BOT START: 1201ID - Ukraine 🇺🇦 + MIX | 7 Days Premium 🤖 - 3.4$ per 1000 1198 ID - Israel 🇮🇱 + Uzbekistan 🇺🇿 | Mix Days Premium 🤖 - 3.5$ per 1000 574 ID - Uzbekistan 🇺🇿 + Russia 🇷🇺 20% | 30-90 Days Premium 🤖 - 3.8$ per 1000 1210 ID - Ukraine 🇺🇦 + MIX | 7-30 Days Premium 🤖 | 4$ per 1000 1203 ID - Uzbekistan 🇺🇿 + MIX | 20-30 Days Premium 🤖 | 4$ per 1000 1195 ID - USA 🇺🇸 + Ukraine🇺🇦 + Canada 🇨🇦 | 15 Days Premium🤖 | 4.3$ per 1000 1213 ID - Uzbekistan 🇺🇿 + USA 🇺🇸 + Canada 🇨🇦 | 30 Days Premium 🤖 | 4.4$ per 1000 1202 ID - Uzbekistan 🇺🇿 + MIX | 30 Days Premium 🤖 | 4.4$ per 1000 752 ID - USA 🇺🇸 + China 🇨🇳 + Canada 🇨🇦 | 30 Days Premium 🤖 | 5.4$ per 1000 756 ID - Uzbekistan 🇺🇿 + Israel 🇮🇱 + Austria 🇦🇹 | 14-30 Days Premium 🤖 |  5.6$ per 1000 758 ID - Canada 🇨🇦 + USA 🇺🇸 + Turkey 🇹🇷 |  30 Days Premium 🤖 | 5.6$ per 1000 755 ID - Turkey 🇹🇷 + Egypt 🇪🇬 | 30-90 Days Premium 🤖 | 6$ per 1000 374 ID - Russia 🇷🇺 + USA 🇺🇸 + Canada 🇨🇦 | Mix Days Premium 🤖 | 6.8$ per 1000 741 ID - Ukraine 🇺🇦 + USA 🇺🇸 + Canada 🇨🇦 | 15-30 Days Premium 🤖 | 6.8$ per 1000 575 ID - USA 🇺🇸 + Russia 🇷🇺 + Canada 🇨🇦 | Mix Days Premium 🤖 | 7.2$ per 1000 372 ID - USA 🇺🇸 + Canada 🇨🇦 + Russia 🇷🇺 + EU 🇪🇺 | Mix Days Premium | 7.5$ per 1000 1204 ID - Ukraine 🇺🇦 + MIX | 60-90 Days Premium | 7.6$ per 1000
    • Make Maxcheaters Great Again? i suppose lmao    
  • Topics

×
×
  • Create New...