Jump to content

Recommended Posts

Posted

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

  • Like 4
  • Thanks 1
  • 1 month later...
  • 2 weeks later...
Posted

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

 

Posted

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.

Posted
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

 

  • 1 month later...
Posted
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 

Posted
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.

Posted (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 by xdem
  • Like 1
Posted
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.

Posted
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 
 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...