PDA

View Full Version : Anybody interested to start an C++ Lineage2 Emu?


torune
12.09.2005, 04:38
Well, since l2 off is going to be nowhere and l2j is not able to handle large amount of players.
It might take half year or longer, but I still encourge people join us. WE ALL WANT SOMETHING THATS REALLY BELONG TO OURSELF.

even some ppl who want to make off game botter, can be part of this project.
they can work on packet handle.

============
New_Authd.rar
from Torune
coded in c++ (however the blowfish needs something to work on, didn't finish it)
download link: http://sr1.mytempdir.com/155118
============
GameServer
from YOU
coded in UNKNOWN LANGUAGE
download link: NULL
reference:
[network] [(Input/Output Completion Port)]
IOCPNet - Ultimate IOCP By sleepyrea (new)
http://www.codeproject.com/useritems/IOCPNet.asp
============
NPC Server
reference:
[ai system]
Creating a Scripting System in C++ by Greg Rosenblatt
http://www.gamedev.net/reference/articles/article1633.asp
http://www.gamedev.net/reference/articles/article1686.asp
http://www.gamedev.net/reference/articles/article1788.asp
http://www.gamedev.net/reference/articles/article1803.asp
http://www.gamedev.net/reference/articles/article1877.asp
[pathnoding system]
A* Pathfinding for Beginners by Patrick Lester
http://www.gamedev.net/reference/articles/article2003.asp

ThaDon
12.09.2005, 04:58
yeah this will be really nice, i dont have good knowledge about c++ but we need a server like l2j in c++ or c#. Cuz the l2 off server is very weak, i think its impossible (takes to long) to fix all the bugs and implent the whole stuff. L2 off has still the feeling from C1 not from C3 :/

HongK
12.09.2005, 07:22
Why hasn't anyone from China done this yet? I would have thought you guys would have been working on this a long time ago considering your experience with programming languages ...

torune
12.09.2005, 08:18
nah, I just start the entire thing couple weeks ago.
wrote in java - give up, it lags
wrote in c# - give up as well, still laggy
c++ or even c will be the only choice i will take.

the l2 community in China is collapsed.

Rikimaru
12.09.2005, 08:31
C# slow ? Better look at Runuo and them handling 7k users on one server. Dont say C# is slow, because it's not, it can be done quite fast and pretty stable. Maybe nothing like C++ but atleast more ppl will be able to help in a C# project instead of a C++ project :P

ThaDon
12.09.2005, 08:40
a long time ago there was an L2c++ team but they given up :/

torune
12.09.2005, 08:42
I would like to know how far did they go, does anybody know where I can find anything they left?

torune
12.09.2005, 08:47
C# slow ? Better look at Runuo and them handling 7k users on one server. Dont say C# is slow, because it's not, it can be done quite fast and pretty stable. Maybe nothing like C++ but atleast more ppl will be able to help in a C# project instead of a C++ project :P
please, take a look at the c#'s structure

C#
.NET Framework
Winsock
TCP

C++
Winsock
TCP

if we want C# emu, yes, it can be done really fast, 60 hours of coding will definitely get a working model that allow people to login and move around

torune
12.09.2005, 08:51
Well, however, if people in the community really want it done in C#, i am fine with your guys' choice. I just wanna find somebody to work with.
I think I still have some free time to work on this, got 3 term projects to finish, univerisity live sux hard

Rikimaru
12.09.2005, 09:45
C# will be easier for ppl to learn :) And it's still quite fast.

nemchua
12.09.2005, 15:07
The emulator should be coded in C++ and compatible with L2Off data

dekciw
12.09.2005, 15:50
im in

toolpunk
12.09.2005, 15:51
that will b hard.
and useless... i mean not totally useless. npcdata and so on is quite useable. but ai.obj is a pain in the ass for most ppl.
a new scriptin engine would b indeed nice.

Livid
12.09.2005, 16:57
I'm in, toRuNe. Catch me on IRC, ok?
Anyway, I still have some hopes on off files. Just a little.

iamrend
12.09.2005, 18:22
i want to be in too. Contact whit me. Thanks

DreadWolf
12.09.2005, 18:51
The problem with the project (aside from it being a monumental undertaking) is that it should really closely resemble L2 Official otherwise the large playercount issue will remain. The development in a more efficient language is great, but if the architecture is designed better it will work well even in Java.

When I speak of this I mean the obviously modular Auth, Game, NPC, and Cache servers but even moreso it needs to incorporate a similar text database system like skilldata.txt, skill-pch.txt, skill-pch2.txt etc...

I have unthinkable respect for the development team behind the retail server in terms of server efficiency (compare it to the official RO server, AEGIS is a very inefficient server).

Riane
12.09.2005, 20:21
ai.obj is a damn pain! i say dont take the one from officials.
get me for anything that belongs to scripting.
cant do c++, but im like a scripting genius. (maybe i should try c++ sometime, never did)
i dont think understanding c++ will be really hard, so i can at least help with it when there is something to work on ;)
also, i can help with npc ai's and stuff, thats my thing ;)
get me on msn... riane@tiscali.de

(i may not have much time atm, school just began, gotta see how it develops)

also, i think a similar textdatabase to official would be useful, to convert the data. but i also think there will be quite some stuff thats not gonna be on official, so dont even try to do it 100% ;)


oh yeah and im really useful for general problems of programming, im creative ;)
so if there is something like you dont know how to best solve let me try a shot ;)

Rikimaru
12.09.2005, 20:36
Who needs it to be compatible with Off data, when off data is outdated anyway ? Also that could lead to some problems with laws etc.

PIMPSTA
12.09.2005, 21:06
Who needs it to be compatible with Off data, when off data is outdated anyway ? Also that could lead to some problems with laws etc.

Yes that can create problems but then yet if they used the official data then people wont loose some of their work... i think they should keep NPCdata, NPCpos, skills... that way they dont have to rewrite a new one from scratch or at least remake the one they have already... which would aslo mean making new npcdata rate changer and all the good tools out there already. AI yes that should be changed but dont know how they would manage it but hey GOOD LUCK on yas project... ill be glad to test anything out ^^

Rikimaru
12.09.2005, 21:30
Umm on a side note, making it compatible with the Off data can make it dangerous for the development itself ( i.e. using *their* stuff to make an emu ), and they could shut it down as fast as they wish ( ncsoft that is ).

@DreadWolf - check out the Runuo emulator for UO, and youll have an unthinkable respect for an emu that can handle 7k players on one server ( not modular, not anything, just run 1 exe and hope you got enough of RAM ). Actually the only limitations even for a java based emu ( L2J ) are hardware only :)

HongK
13.09.2005, 06:45
Either way, even if you do this, you will still run into the problems of getting the right formulas for even the most basic thing such as calculating skill success for things like sleep or stun ... Unless someone has a way to decompile the l2server and rummage around in there for the original formulas NCSoft used, you're still gonna have to make all new formulas just like l2j ... I mean you can use things like the prima guide, which is really outdated now though...I dunno...It's a tremendous undertaking ... If you are really sharp you could try to take whats been done in l2j and port it to c# or c++, but I think you will find it hard to replicate some things that are done in java...

As far as the future, an emulator is going to be your only option .... Players are already sick of playing on sub-par hybrid c2/c3 servers with no new content...All I ever hear from people is bitching about how all the private servers suck right now...

siminica_mihai
13.09.2005, 16:00
Me and my office colegue are in too, if it will be in c#. PM me if you need 2 more programers. Also we have a P4 3 GHz for tests.

Kenster
13.09.2005, 19:44
Hello, I don't know much on Programming, but I can surely add content. Skills/Mobs/Items. Also willing to set up a server for client tests when the time a comes. 100Mbit box, Dual 2.8Ghz, 2 Gig Ram, SCSI Hd, 24/7 Uptime. PM me some info on it! Sounds great guys!

Maybe even consider joining with L2J since we will probably not modding the client anymore, as we will use the up to date version from Lineage2.com. :D

RmzVoid
14.09.2005, 02:35
OFcourse!!! C++ best language for this. Who tell C# faster? Is easy but not faster. Open project and I will help you guys, couse I C++ "master" :)) If serious I know C++ well, Winsocks, parsing, Threading, WInAPI, STL

silverdog
14.09.2005, 02:38
I'd be willing to help too, I don't know an awful lot. But I'd what I can to help you.
I also have a P4 2.8GHz with 2048mb RAM to test on too.

Digital
14.09.2005, 04:15
just for anyone who's interested in this project
you will be able to catch us on irc @
irc.deltaanime.net #postpacific
thx :)

(seriously think it'd be easier to get things done there faster ^^)

Adelaide
14.09.2005, 07:48
And this time keep it an OPEN project...

montejo1974
14.09.2005, 07:54
Well, I'm a long experienced programmer in c#, c++, but I don't know how to make one day lasts more than 24 hours (I've two jobs and one baby is coming) :S

I've done some exports programs that introduce some scripts (items, recipes, mobs, ...) files into BD, because I think that it isn't useful work with files while having all the data in BD. I think would be easier to treat the scripts extracting them from a BD than files.

So, I can give you the sql bd (an image of script files :S, not too much DDL work), and the C# programs for importing the files if you want. david."(antispam)".montejo@gmail.com

I wish you luck with your project, and hope to help in a near future (when I find the potion to get a day with 30 hours or so).

Sorry for my english, please...

paul
14.09.2005, 07:58
We were starting this type of project however i think we all got way too extremely busy :( So i think it'd be an excellent idea to restart it :)

If whoever starts this needs cvs access, file and what have you I still have my sourceforge account for postpacific.

zzzahar
14.09.2005, 16:16
I want to do be in this project too. I think i can code on C++ or C#. Is there some plan what to do, what structure will have this emu, and some place where all it will be coordinated(maybe forum).
P.S. Sorry for my bad English.

Digital
15.09.2005, 04:49
hmm.. here are some diagrams we were using...
not really complete but at least it's something.

zzzahar
15.09.2005, 05:25
Thank you very much Digital. I understand something now.

nemchua
15.09.2005, 16:12
We need a project manager, team leaders for l2auth, l2server, l2npc... then start a project on SourceForge.

HongK
16.09.2005, 08:00
Hasn't a c based emulator been tried twice before? If I remember correctly, both projects died ... You need to build a really strong community to support this type of project ... It's not a decision to be made lightly ... But nonetheless I hope it works out better than the previous attempts ... Maybe you can get the code they started and pick up where they left off :O

Riane
16.09.2005, 13:23
like i said, i can code all that comes with AI stuff.
im learning C++ now, will have the builder in some days.

i think petition and BBS should be kinda http...
or i dunno, dont know if its good to have it in the game engine..

oh and np i can code a patchserver in PHP in no time!

oh and my idea is to have a world server, and a npc and a pc server, which both connect to the world server.
then you dont have to program different stuff for both, just have a connection w/e from the npc/pc server for every "creature" id, and send what they're doing.

Silentz0r
17.09.2005, 08:28
I dont know if this helps but here is the link for the OLD C++ L2C

http://bbs.99nets.com/thread.php?fid=29

And a copy of their project.

http://rapidshare.de/files/5194725/99nets-L2-001.rar

I have no source code sorry, this is the only that i could find...

Riane
17.09.2005, 13:01
what i found:
http://sourceforge.net/projects/l2net
though i dont knowif it even works

Kenster
17.09.2005, 13:37
Looks a lot like the took the data from L2J, or it is L2J?! I don't know.

toolpunk
17.09.2005, 14:20
i think its an l2 emu written in c#.
project seems dead but afaik they took l2j as an example 2 code their own stuff...

rodier
17.09.2005, 18:35
hmm I think if you want whole new scripting ai engine, own datas (skills,npc,pos..) its same as creating whole new game using data from any existing game..

its like when one team use runuo and UO client.. but completely import data from Fallout and create Fallout Online ;] ... this is same.. if you have whole new server.. why use it with illegal L2 and not new game? or any other existing? or make it transparent for use with any game?

toolpunk
18.09.2005, 11:51
thats ok as well :p
btw since u r talkin about a transparent emulator...
wddg is workin on such a project. they r goin 2 create ONE server for multiple games. mb even lineage 2
visit
h%%p://www.wddg-online.com
for more info

Digital
20.09.2005, 04:00
yes... we still have our acc on sourceforge and svn as well
and yes.. we'll need to get this organize and elect team leaders and members as well ^^

so far it could be split into these few categories
LoginServer - Torune has pretty much done this up except for the blowfish encryption
GameServer -
DBServer - Vaskes is taking this up so far
NPCServer -
PatchServer - could probably be done quite fast (http/ftp)

so we'll need ppl to fill in the places for GS and NS
hopefully some experienced folks would stand up and take the role ^^

tavisf
20.09.2005, 07:51
I will work on the NPC Server don't have time but i will manage to help you okay , will post a Beta Test in the next few days or so.

Stazis
21.09.2005, 06:17
Think that GameServer part should be splitted into some parts.

Combat operations
Moving operations and so on.

Riane
21.09.2005, 18:36
ill make the patchserver, heh, in php of course.

client side... the original L2 patcher moded or something own?

also i'll help with the ai part. not the programming itself, but if i can get a hold on the new ai syntax i can script the npc's in no time.

bob1122
26.09.2005, 21:16
I was going to work on the AuthD , but Links are dead torune, :(.

theRAGE
27.09.2005, 03:51
I was going to work on the AuthD , but Links are dead torune, :(.

I have temporarily uploaded it to my webserver... so that anxious coders can play around.

New_Authd.rar (http://hold3n.ca/New_Authd.rar)

bob1122
27.09.2005, 19:39
I was going to work on the AuthD , but Links are dead torune, :(.

I have temporarily uploaded it to my webserver... so that anxious coders can play around.

New_Authd.rar (http://hold3n.ca/New_Authd.rar)
thanks so much, yay uncommented code :| torune im probably of by a offset of 0x39281 but, if you have time in a pm or something can you further explain your ideas or code, im REALLY devoted to get this C++ Emu up and running, unlike l2j though i could care less how legal it is :) j/k

TheUplink
11.02.2006, 17:52
http://opensvn.csie.org
create an svn

ps: i`m in

Mayii
11.02.2006, 19:10
lol, I love these smart people resurrecting 6 months old topics.

kembl
14.02.2006, 11:27
If we plan to use log sistem, similar to OFF server, so LogD server already exists, and tested, and will be upgraded

============
LogD Server
From KEMBL
Coded in Perl
Version: 5.5
download link: https://postpacific.mmorpg-game.online/forum/download.php?id=987
reference: https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=3513
============

Also i know MsSQL well, and can assist this line of work if it needs.
Know c/c++/MS VC++, but have no time for codinfg on this language now.

For work we needs some blog section on this forum or sourceforge, where we can assign tasks, and see how all process flows.

SilverCloud
14.02.2006, 15:34
Now that this post went up again, I'd like to know a few things :o

Which programming language is faster (and more stable):
- C# (.NET)
- C++
- Delphi
- Java
- (Some other language... :))

Which SQL:
- MySQL
- Microsoft SQL (MSSQL)

OnlyOne
14.02.2006, 15:43
Now that this post went up again, I'd like to know a few things :o

Which programming language is faster (and more stable):
- C# (.NET)
- C++
- Delphi
- Java
- (Some other language... :))

Which SQL:
- MySQL
- Microsoft SQL (MSSQL)

c++ should be fastest, but harder to program than lets say C# or java. I think server should use Unix platform for best performance,security,stability and mysql database

Mayii
14.02.2006, 22:41
lmao. mysql, LMAO. so hilarious these peeps posting bullshit.

gamedeveloper
15.02.2006, 02:35
C# and MS SQL. Linux isn't more stable but definitely harder to coding.

kembl
15.02.2006, 08:31
>Which SQL:
>- MySQL
>- Microsoft SQL (MSSQL)

MySQL is faster, and is free and platform undepended. But they speed fast, cause it have no abilites, that MsSQL have.

In that complex task, like LineAge2 creation, using MsSQL (and MS VisualStudio C++) lets more speed of game developing. When MySQL grows to all MsSQL 2000 abilites ( far future ), they will be so slow ( or more) as MsSQL.

I don't mean, that MsSQL is slow, they fast and comfortable as the big car (for example) with all options what may needs to developer. MySQL is fast as the motocycle.

sparcode
15.02.2006, 10:20
lmao. mysql, LMAO. so hilarious these peeps posting bullshit.
damn you :evil:
For example, we dont have 2000Euro to buy SQL SVR STANDARD Edition, and dont have 800Euro to buy Windows Server Standart edition.
And we wont see BSA with policeman's in our room. :evil:
I agree idea about Linux and Mysql, i don't think Linux is harder to code with c or c++. And about stability - i have 3 heavy loaded linux servers 2years uptime, and X linux routers/firewall with >3 years uptime... I don't think that Micro$oft can beat this...

Sorry for poor english.

gamedeveloper
15.02.2006, 11:17
What's about policeman wanting licencing of Lineage2? ;)

sparcode
15.02.2006, 11:34
What's about policeman wanting licencing of Lineage2? ;)
Because NCSOFT don't care about crappy c1 exe (weird, they dont care about java server). They have c4, and all our players, who want play normal game, goes to "global" and pays much money. Global is too expensive to russia,china, ex.ussr - thats why that community lives.

Mayii
15.02.2006, 12:15
MySQL is _NOT_ faster. it has really CRAPPY performance with high load. IMPRESSIVELY CRAPPY PERFORMANCE. if you need to use a free DB, at least use postgreSQL, which has a lot better performance under heavy load, but still far from the performance of MSSQL or Oracle.

askey
18.02.2006, 10:52
Now that this post went up again, I'd like to know a few things :o

Which programming language is faster (and more stable):
- C# (.NET)
- C++
- Delphi
- Java
- (Some other language... :))

Which SQL:
- MySQL
- Microsoft SQL (MSSQL)

http://www.devmaster.net/wiki/Languages_suitable_for_writing_games_with

toolpunk
18.02.2006, 15:43
it still lists some advantages and disadvantages of the various languages...

Truffe
18.02.2006, 15:54
Don't pay attention to meh o.o

karioth
15.03.2006, 23:12
A couple months ago I had started L2 server on C#. My code based on L2J, with many and many improvements. First I fully rewrited and optimized network part, so now it used only few threads per entire server, not one per client as in L2j.
Working on server, I understood, that L2j code - it's code full of unusefull synchronizations, blocks, putches and plugs.
So now while implementing gameplay part, I do refactoring, refactoring and again refactoring.
What's worrying me now, it is geodata. I need a format description of *_conv.dat files. I'm sure - without geodata server won't be real.
So I ask you to help me with that and I'll be ready to post first working alfa for free access.
Who wants to join my development or help me with any information, please contact me (antonr attt zakamsk.net) with subject "L2 server".

Thanks.

drzoom
15.03.2006, 23:35
karioth, see PM...

Stazis
15.03.2006, 23:45
type header = packed record
X_map: BYTE;
Y_map: BYTE;
Scale: WORD;
Sub_Scale: WORD;
Sub_Scale_words_count: Integer;
block_00_and_40_count: Integer;
block_00_count: Integer;
end;

type block_00 = packed record
signature: WORD; // always 00 00
height: WORD; // ingame height of flat singlelayer ground 128*128 square - rounded to 8 (lower 3 bits are 0)
w_height: WORD; // supposed to be water volume bottom height
end;

type block_4000 = packed record
signature: WORD; // always 40 00
data: array [0..8,0..8] of WORD; // 64 ingame heights shifted left on 1 bit and lower 4 bits are NSWE walkability flags
end;

type sub_block = packed record
sub_index: WORD; // count of heights (layers) in this sub_block
data: array [0..sub_index-1] of WORD; // sub_index heights for layers same as for 4000 block shifted on 1 bit left and NSWE flags in lower 4 bits and sorted from bottom to top
end;

type block_4xxx = packed record
signature: WORD; // count of heights in this blocks - without sub_indexes
data: array of sub_block; // array of multilayered heights - length of array depends of signature
end;

karioth
17.03.2006, 10:25
Stazis, thanks a lot! i shall try to parse geodata

Xoleum
22.03.2006, 00:04
karioth, so you're working on the development of this C# emu?

neno.tu
22.04.2006, 07:17
Hi,

I'm trying to join together a team of devs to create a community for l2c++, that way we can work faster and support ourselfs in the project.

L2J wouldn't be running if there were just a couple of devs, we need people to merge l2c++.

If anyone is interested PM me for more info....

Nasedo
26.04.2006, 15:25
MySQL is _NOT_ faster. it has really CRAPPY performance with high load. IMPRESSIVELY CRAPPY PERFORMANCE. if you need to use a free DB, at least use postgreSQL, which has a lot better performance under heavy load, but still far from the performance of MSSQL or Oracle.

Aha aha ahahaha
Mysql is perfectly fine under high loads, look at eAthena for Ragnarok Online, it's run off a mysql server database and there are some private servers with 5k players, running with no sweat. It's just that you are comparing to L2J which has shitty packet coding and generally shitty coding.

And there are already alot of L2C++ Projects going on the best option is to merge with one. Also about c++ I would like to remind you guys that c++ applications show best performance when run in *nix systems and keeping that in mind, mysql = *nix.

Shiro
28.04.2006, 19:59
I think the most important part about a C# or C++ emu is not to make the same mistakes as l2j.


Over all coding in l2j is a mess


I think you would be best off to find a small group of good C coders and have them do all the major coding parts and let the community help out on any smaller parts.

My personal vote goes to C++ might be a bit harder to find people skilled enough to code it but it will pay off in the end.

Shiro
28.04.2006, 19:59
I think the most important part about a C# or C++ emu is not to make the same mistakes as l2j.


Over all coding in l2j is a mess


I think you would be best off to find a small group of good C coders and have them do all the major coding parts and let the community help out on any smaller parts.

My personal vote goes to C++ might be a bit harder to find people skilled enough to code it but it will pay off in the end.

RipperX
28.04.2006, 20:17
2Torune:
the proyect is active ?

RipperX
28.04.2006, 20:17
2Torune:
the proyect is active ?