Jump to content
  • 0

java sources not connected to game


Question

Posted (edited)

Hello,

 

I have a problem will make me loose my mind.

 

I have l2sunrise h5 licenced server. after compiled sources by eclipse, as per guide, I only extract (L2SR_DataPack & L2SR_Server) together in one file that I control the server from. see photo

 

when I faced problem of editing Community Board, many people advised me to edit (..java\l2r\gameserver\communitybbs\Managers\ClanBBSManager.java) 

 

But I didn't find java file in that file. Please check 3 photos in link.

 

Files (L2J_SunriseProject_Core_Clean) and (L2J_SunriseProject_Data_Clean) have the java file I'm looking for with (..java\l2r\gameserver\communitybbs\Managers\ClanBBSManager.java) . see photo

 

So, how can I control the Core & Data files that have java files?.. see  photo

 

 

core.png

java build.png

java core.png

Edited by Metab

14 answers to this question

Recommended Posts

  • 0
Posted
5 hours ago, Loftheim said:

Brooo first learn to post in the correct section lmao

Sorry my mistake,  I didn't find help section.. but after checking again,  I found Request Support that I thought before it was for developers..

 

Should I make new topic ? or forum admin will transfer it?

  • 0
Posted
5 hours ago, Metab said:

Sorry my mistake,  I didn't find help section.. but after checking again,  I found Request Support that I thought before it was for developers..

 

Should I make new topic ? or forum admin will transfer it?

 

 

Moved

  • 0
Posted
On 6/30/2020 at 11:13 PM, Metab said:

Hello,

 

I have a problem will make me loose my mind.

 

I have l2sunrise h5 licenced server. after compiled sources by eclipse, as per guide, I only extract (L2SR_DataPack & L2SR_Server) together in one file that I control the server from. see photo

 

when I faced problem of editing Community Board, many people advised me to edit (..java\l2r\gameserver\communitybbs\Managers\ClanBBSManager.java) 

 

But I didn't find java file in that file. Please check 3 photos in link.

 

Files (L2J_SunriseProject_Core_Clean) and (L2J_SunriseProject_Data_Clean) have the java file I'm looking for with (..java\l2r\gameserver\communitybbs\Managers\ClanBBSManager.java) . see photo

 

So, how can I control the Core & Data files that have java files?.. see  photo

 

 

core.png

java build.png

java core.png

 

any help please.

 

how these Files (L2J_SunriseProject_Core_Clean) and (L2J_SunriseProject_Data_Clean) related to server files?

 

 

  • 0
Posted

create a new folder like C:/L2Server, copy the build folders both core_clean/build and data_clean/build and paste them into your new folder. Now your merged folder should run gameserver/login properly

  • 0
Posted
6 hours ago, Zake said:

create a new folder like C:/L2Server, copy the build folders both core_clean/build and data_clean/build and paste them into your new folder. Now your merged folder should run gameserver/login properly

ok, I made this new folder and merged and run the server.

after that.. what about if I want to edit using eclipse.. how to save file into this new folder?

please explain

  • 0
Posted
20 minutes ago, Zake said:

you just edit a java file through eclipse, rebuild and replace the proper files (usually only jar files)

please be patient with me.

I edited ..java\gr\sr\javaBuffer\buffCommunity\dynamicHtmls\GenerateHtmls.java

I rebuild (right click on core\build.xml and run as 1 Ant Build) then .. 

what is the proper files to copy from eclipse destination and replace it with what in the gameserver folder ?

 

 

  • 0
Posted (edited)

you don't have to edit htm files through eclipse(even though you can but it's so boring, because you have to build it again). Just download notepad++ (or just use any simple editor) and edit them directly from server side (c:/l2server/data/html/blabla) and ingame type //reload htm command.

Edited by Zake
  • 0
Posted
38 minutes ago, Zake said:

you don't have to edit htm files through eclipse(even though you can but it's so boring, because you have to build it again). Just download notepad++ (or just use any simple editor) and edit them directly from server side (c:/l2server/data/html/blabla) and ingame type //reload htm command.

this is what I'm doing for l2server files.. but I'm asking about java

for example: ..l2r\gameserver\communitybbs\BoardsManager.java  how do I replace it into l2server files?

 

 

  • 0
Posted
17 minutes ago, Zake said:

if you are not familiar with the copy/paste function you should probably read windows 98 tutorials.

really..?

you are not answering my question and going around it.. 

I ask you about specific issue bit you're answering another one.

I asked about java and you telling me to edit l2server files ?

 

just tell me you don't know

 

please see this video of my l2server files, I think there is missing files :

 

https://gofile.io/d/ua0yNz

  • 0
Posted
27 minutes ago, Metab said:

really..?

you are not answering my question and going around it.. 

I ask you about specific issue bit you're answering another one.

I asked about java and you telling me to edit l2server files ?

 

just tell me you don't know

 

When you run as ant build, you build executable jar files into your build folder. You have to replace them in your libs folder (it has a different destination in most packs) and after you restart your server the changed are applied. Although, there are some scripts like the one you 're mentioning in the first post that need to be replaced in the scripts folder in some forks, which is usually located in gameserver/data/scripts

  • 0
Posted
8 minutes ago, Zake said:

When you run as ant build, you build executable jar files into your build folder. You have to replace them in your libs folder (it has a different destination in most packs) and after you restart your server the changed are applied. Although, there are some scripts like the one you 're mentioning in the first post that need to be replaced in the scripts folder in some forks, which is usually located in gameserver/data/scripts

 

thank you very much.. most respect to you

please see this video and advice:

https://gofile.io/d/ua0yNz

solved

 

thank you 

3 hours ago, Metab said:

 

thank you very much.. most respect to you

please see this video and advice:

https://gofile.io/d/ua0yNz

 

 

solved .. thank you

Guest
This topic is now closed to further replies.


  • Posts

    • Hi, great work! Are there any bugs? And will it work with a high five?
    • For others that would like to understand in more details:   The login server also uses a protocol (sent by the server to the client in the very first packet). For instance, the C4 client (the one I'm developing my emulator for) expects the protocol number `50721` (or `0xc621`) which works as follow (from what I've gathered): Preamble: L2 packets are divided into two parts: size and payload; As mentioned, every packet starts with two bytes containing the whole packet size (thus including those two bytes, e.g. a packet of size 15 will have the number `15` written onto its first two bytes and a following payload of 13 bytes); For login server, first byte of the payload is the opcode (game server must deal with variable-sized opcodes); Next bytes are the packet content; Before sending the packet, its buffer size (minus the initial two bytes) is padded to 8 bytes (required by upcoming Blowfish encoding); A checksum of the packet is appended at the end, then the payload is again padded to 8 bytes; If the opcode is not `0` (also written as `0x00`), then the payload is encoded by Blowfish; Packet is sent over the network. You can have a look at my implementation (in C++) here (do note I'm assuming little-endian).   In this protocol, the auth packet (`0x00`) sent back by the client is RSA encrypted using the RSA modulus sent in the first server packet, inserted right after the protocol number.  
    • Hello guys I wanna buy some  Lessons for an L2J Developer
    • Let me give you something for inspiration and get you addicted to bot AI     And a siege 😛     What I have notice helps a lot the LLM to act real, is to give it a real-persons background. So for each LLM in the context beggining, besides the L2 facts, give it a real-life back story "You are a 67 years old retired nurse who plays Lineage 2 while her husband reads his newspaper, you are calm, collected but get mad if insulted". But that makes for a creative bot but its repetitive. So what you can also do, is pick random 20 news sites and for each bot every 2-3 days, initialize a context that is affected by the "news" the bot reads in the "real world".  So for example there's Iran - US war ok ? You take the news, put it in an LLM and ask it, extract the "abstract feelings" that this news piece invokes into you without mentioning anything related to the news. Then you take the result and inject it to the bots LLM prompt after its backstory.  This leads to some VERY human-like behavior from bots. 
  • 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..