Grymyr Posted March 11, 2024 Posted March 11, 2024 Hi everyone, I'm working of the new L2 Classic server in .NET. Basically I ported the L2J Mobius Essence 7.3 server sources for the new 447 protocol. Currently the project sources can compile and able to run. I'm able to create characters, enter the world, walk, fight with mobs, etc. There are still some bugs present after porting and I'm working on them. My goal is to modernize the code base and do performance optimizations after fixing the bugs. I see big potential here. .NET was chosen because I have huge experience working on high-load projects in .NET and C++. I don't know Java good enough for this. I'm looking for people who might be interested to take part in the project. I promise to take care of the core part. I would appreciate any help with the datapack and geodata, this is my lowest priority for now, I need to fix bugs first. Best, Grymyr https://github.com/ax-grymyr/l2dn-server 4 1 Quote
Kamen Posted April 28, 2024 Posted April 28, 2024 Why are you doing this, I mean, what is the point as the Java-based (L2J) projects are running just fine? Quote
Grymyr Posted May 6, 2024 Author Posted May 6, 2024 For many reasons: 1) modernizing code base, increase maintainability and reduce effort for development of new feature: split code into business layers, for example data from datapack, npc/item templates, world objects; remove circular dependencies between layers; create API-like objects; remove duplicated code (copy-pasts); using external libraries to replace some part of the code 2) using modern tools like ORMs (EF core) with ability to use different DBMS (I already switched from MySQL to PostgreSQL) ; generators for in-game interfaces (L2 html's) I'm thinking also about using Akka (agent) library in the future for world objects and their interaction. 3) optimizations: for example reducing memory usage and memory allocations with C# structs Quote
Bumble Posted May 6, 2024 Posted May 6, 2024 Great work, keep it up! If you want to talk L2, feel free to msg me. -B Quote
Grymyr Posted May 7, 2024 Author Posted May 7, 2024 Thanks! @BumbleYou have developed the interesting app. I also have the library to extract data from the client (including latest versions): textures, icons, and data from dat files. Quote
xdem Posted May 8, 2024 Posted May 8, 2024 On 5/6/2024 at 1:54 PM, Grymyr said: For many reasons: 1) modernizing code base, increase maintainability and reduce effort for development of new feature: split code into business layers, for example data from datapack, npc/item templates, world objects; remove circular dependencies between layers; create API-like objects; remove duplicated code (copy-pasts); using external libraries to replace some part of the code 2) using modern tools like ORMs (EF core) with ability to use different DBMS (I already switched from MySQL to PostgreSQL) ; generators for in-game interfaces (L2 html's) I'm thinking also about using Akka (agent) library in the future for world objects and their interaction. 3) optimizations: for example reducing memory usage and memory allocations with C# structs So you're going to leverage Postgre's features on L2J ? How ? Show us an example Quote
Grymyr Posted July 11, 2024 Author Posted July 11, 2024 On 5/13/2024 at 9:17 AM, Nightw0lf said: He really asks he dont know I don't feed trolls. He even haven't had a look at the code. 1 Quote
xdem Posted July 11, 2024 Posted July 11, 2024 8 hours ago, Grymyr said: I don't feed trolls. He even haven't had a look at the code. I just asked, what specific feature of Postgre you are going to use that will make a difference over current Mysql/Mariadb implementations Quote
Grymyr Posted July 12, 2024 Author Posted July 12, 2024 13 hours ago, xdem said: I just asked, what specific feature of Postgre you are going to use that will make a difference over current Mysql/Mariadb implementations My statement was "2) using modern tools like ORMs (EF core) with ability to use different DBMS (I already switched from MySQL to PostgreSQL)". No words about PostgreSQL specific features, just the ability to use various DBMS via EF core. Moreover using PostgreSQL specific features would prevent having this ability. Now switching to another DBMS is as simple as replacing DBMS provider Nuget package. All plain SQL has been replaced to EF core queries in the code. Quote
xdem Posted July 17, 2024 Posted July 17, 2024 (edited) On 7/12/2024 at 11:58 AM, Grymyr said: My statement was "2) using modern tools like ORMs (EF core) with ability to use different DBMS (I already switched from MySQL to PostgreSQL)". No words about PostgreSQL specific features, just the ability to use various DBMS via EF core. Moreover using PostgreSQL specific features would prevent having this ability. Now switching to another DBMS is as simple as replacing DBMS provider Nuget package. All plain SQL has been replaced to EF core queries in the code. whats the point though? mariadb is the best option for an mmo like l2, mariadb will never be the bottleneck of the gameserver even in theoretical online counts of 100k+ and its already implemented ... the real bottleneck is the client itself, so extreme optimizations especially yours that are out of context make no sense if your project is for educational purposes okay you can built it with nodejs its okay, but re-inventing the wheel with worst designs makes no sense, you can instead contribute to active real-world l2j projects instead and be useful to the community Edited July 17, 2024 by xdem 1 Quote
Quark Posted July 21, 2024 Posted July 21, 2024 On 7/12/2024 at 10:58 AM, Grymyr said: My statement was "2) using modern tools like ORMs (EF core) with ability to use different DBMS (I already switched from MySQL to PostgreSQL)". No words about PostgreSQL specific features, just the ability to use various DBMS via EF core. Moreover using PostgreSQL specific features would prevent having this ability. Now switching to another DBMS is as simple as replacing DBMS provider Nuget package. All plain SQL has been replaced to EF core queries in the code. "You know nothing, Jon Snow" I am not a troll, Your post shows that you have no experience, that's why you repeat magic words like "modern tools", "specifing features", "stability" etc. Have You learned C#? Good. Is this only one language you know? "Anyone who has a hammer sees everything as a nail" There have been similar projects before. All abandoned. In .NET, JS, Go.... even in C++ Eg. https://github.com/Elfocrash/L2dotNET You will try to understand the geoengine code and how it should work in the game, you will shit your pants - it requires not only programming skills but also understanding of geometry and geolocation issues. The L2J is a large project, developed by a group of enthusiasts for many years (AFAIK 20 for now), and still bears little resemblance to the original one. There is no point in replacing Java with .NET Belive me. The only thing that can be beneficial is practicing the language. Try to gather beginner C# programmers, maybe someone will want to practice the language? But does it make sense? It is better to practice on a project that may bring income in the future IMHO. Quote
xxxgugaxx Posted July 22, 2024 Posted July 22, 2024 I hope that you project goes to the moon Good luck i will make some PR to help you when i have free time. Quote
xdem Posted July 22, 2024 Posted July 22, 2024 16 hours ago, Quark said: "You know nothing, Jon Snow" I am not a troll, Your post shows that you have no experience, that's why you repeat magic words like "modern tools", "specifing features", "stability" etc. Have You learned C#? Good. Is this only one language you know? "Anyone who has a hammer sees everything as a nail" There have been similar projects before. All abandoned. In .NET, JS, Go.... even in C++ Eg. https://github.com/Elfocrash/L2dotNET You will try to understand the geoengine code and how it should work in the game, you will shit your pants - it requires not only programming skills but also understanding of geometry and geolocation issues. The L2J is a large project, developed by a group of enthusiasts for many years (AFAIK 20 for now), and still bears little resemblance to the original one. There is no point in replacing Java with .NET Belive me. The only thing that can be beneficial is practicing the language. Try to gather beginner C# programmers, maybe someone will want to practice the language? But does it make sense? It is better to practice on a project that may bring income in the future IMHO. You make no sense mate, am I arguing with a Junior ? You put a link to a dead unfinished project to prove what ? Its also shit-coded, and you are talking about geoengine specifically ? You must be retarded Quote
Recommended Posts
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.