Page 1 of 1

Lineage 2 C4 server emulator project in C

Posted: Fri Sep 18, 2020 1:49 am
by ruke
Hello guys, hope you are doing great. I just wanted to share with you the project I have been
working on for the last couple of years.

https://github.com/Ruk33/l2auth

This is just a learning project, I always wanted to work using the C programming language but
never found the right project until I thought, hey, what if I build a Lineage 2 server with it?

Initially, the goal was to just get a password error message, that was it. After several tries,
after bashing my head against the keyboard I managed to get it right and when I saw

Image

I just wanted to keep going, see how far I could make it and how bad could I break things, ie:

Image
(not a bug, clearly a feature)

So far I don't have a lot of functionality but I do have quite a bit of the foundation to keep on adding stuff.

Image

With this project I have learned a lot of things (one of those is being able to lively inject code changes into the
server without requiring to shut it down and restart it) and I thought maybe I can share it with someone else and
they will find it interesting. This is by no means a serious project, at least not for the moment, it's just
a project to learn and have fun.

Hope you like it and if you want to jump in the project you are more than welcome.

Thanks!

Re: Lineage 2 C4 server emulator project in C

Posted: Tue Sep 22, 2020 10:33 pm
by Zoey76
Looks good, have you used L2J or other projects as "sources of inspiration"? :+1:

Re: Lineage 2 C4 server emulator project in C

Posted: Wed Sep 23, 2020 12:39 am
by ruke
Hi Zoey76 thank you. Yes for sure, without documentation from l2jserver (C4 branch) and other projects I would have been completely lost so, big thank you to you guys!

Re: Lineage 2 C4 server emulator project in C

Posted: Fri Oct 02, 2020 8:04 pm
by jurchiks
Why not C++? Also, github is not the best place to host the code because a while ago l2j and all its derivatives were DMCA'd from there for legal reasons. This might fit under the same blanket.

Re: Lineage 2 C4 server emulator project in C

Posted: Sun Oct 04, 2020 1:51 am
by ruke
jurchiks wrote: Fri Oct 02, 2020 8:04 pm Why not C++? Also, github is not the best place to host the code because a while ago l2j and all its derivatives were DMCA'd from there for legal reasons. This might fit under the same blanket.
Hello jurchiks. I don't like C++, it's simply not my cup of tea.
Yes, I know l2jserver got taken down a while back but since this is a small project I don't think it will get noticed (not at the point where the repo will be taken down at least).

Re: Lineage 2 C4 server emulator project in C

Posted: Fri Oct 23, 2020 2:16 pm
by jurchiks
Weird, C and C++ are so similar after all...

Re: Lineage 2 C4 server emulator project in C

Posted: Mon Oct 26, 2020 5:43 pm
by ruke
Well C++ has many features that I don't wanna deal with (oop, operator overloading, etc.). I like what C comes bundled with, functions, structs, variables and you are pretty much good to go.

Btw, sent a couple of updates, now you can see other players (even though they move in blocks haha)

Image

EDIT: Fixed, I was sending a movement multiplier = 0, which obviously screws the whole thing up.