PDA

View Full Version : Open Source L2 C# Project?


Digital
20.10.2005, 12:14
well.. this is one of the best ways to keep things running on until c12 :)

anyway... i have l2j's code converted to c# using jlca :)
of cuz there are errors and warnings.. but nothing major that cant be fixed :)

so i'm suggesting that maybe we should gather around and maybe each person take 10 files to fix... and that'd make things get done fast :)

main things to fix or maybe recode would be
1) network handling
2) data handling
3) sql handling
4) console/gui

and after that... everybody would be happy aint it?
and with almost full compatibility with l2j's patches and datapack as well
of cuz.. with it's source u could customize it on ur own :)

divider
20.10.2005, 12:55
i am in, we could probably recreate in std C++ which would be nicer ;)

Digital
20.10.2005, 13:04
great :)
i like that straight forward and daring attitude
java -> c# -> c++ is easier i think (well at least there's tools for each of them to the next :)

so for making me happy here's the pack converted using jlca 3.0beta
http://z11.zupload.com/download.php?file=getfile&filepath=9025
and oh yes... the conversion log with it's errors and warnings are all included for review :)

tho i'd prefer to have a cvs/svn rather then distributing it this way...
oh well.. we'll have to get that done one of these days :)

divider
20.10.2005, 13:08
yeah, probalby java->c#->c++ would be easier and faster since we can test the C# version before we move (if nessesary) to a c++ version.
i am downloading the pack to check it.
i let you know ..if you take a look at your msn or icq at some point :P

divider
20.10.2005, 13:09
as for cvs .. i guess we can use either SourceForge(maybe not) or i can setup a server for this

Digital
20.10.2005, 13:31
cvs on sourceforge (nowadays) is terribly slow :(
i'm sure quite a number of ppl would agree with me on that

[edited]
side note... those files were taken and converted from l2j's svn as of 17 oct 2005

Grillo
20.10.2005, 15:03
U want something like this; https://opentrac.csie.org/l2j/ ?

toolpunk
20.10.2005, 16:06
lol...
thats what i suggested some time back.
and no one wanted it XD
anyway i still think such a wiki/hosting pack for free is quite attractive...
so why dont we visit https://opentrac.csie.org and create uhm...
https://opentrac.csie.org/l2c ? :D

bob1122
21.10.2005, 00:59
ok, looks like you people need a clearing up...

C# Runs on a virtual engine just like Java, So theorfore you would just be starting another emu, and end up with the same problems as L2junk... plus C# is microsoft , so their will be no Linux servers ... which is kinda important.

C++ C++ C++ C++ . ONLY way to go cmon guys when's the last time you got over 8 hours of sleep >.<

Thanks
I vote C++ Emu , or community dll.

Digital
21.10.2005, 02:41
blinks...
some clarifications... :)
l2j(java) suffers from memory heap problems which eventually leads to problems supporting many players...
while for c#... this does not happen... which would mean we could support as many players as l2 off or even more.
and again... for those who doesnt know, c# does work on linux servers and even mac osx
http://www.mono-project.com/

[edit] amazingly... 43 yes.. and only one person stood up... lolz..

kungfu71186
21.10.2005, 05:53
Only problem with l2j is it is pretty buggy but it could probably be fixed.

iamrend
21.10.2005, 07:26
like digital said we need L2 C# proyect cauz is not posible complete alls cronicles hexig. Thing like macros, monsters dervi, CP will be easy if we have source code.

tespio
21.10.2005, 08:02
http://www.tangiblesoftwaresolutions.com/Product_Details/Instant_CPlusPlus/Instant_CPlusPlus.htm

If someone can get a hand on this it would rock. I've been using it some pretty long time ago and i must tell you that it awsomely converts c# to c++. I only feel sorry i didnt kept a copy of it when i had the chance.

Grillo
21.10.2005, 08:12
I voted yes, i would like to help but i think my programming skills aren't good enough to help u, i could eventually help moderate the site for ur project or something like that.

Alien003
21.10.2005, 13:19
If we are going to do this ..lets keep it at C#

C++ may be faster, but its easy to program in C#, and things would go faster with less bugs (and memory leaks :P)

Digital
21.10.2005, 14:43
hmm.. just finding a place to store this :p
http://dev.mysql.com/tech-resources/articles/dotnet/
haha... dun mind me k.. just wanna keep things together (easier for me to find)

Thalone
21.10.2005, 18:17
so are we making a site for this cvs/svn? any updates? im currently looking over the code now. What do ya'll suggest to compile it?

Digital
21.10.2005, 18:57
i'm still using vs.net 2k3 if anyone finds that information useful
we might go for sourcesafe/svn depending on the availbility of resources

valen
22.10.2005, 09:28
C# For the win ;)

siliticx
22.10.2005, 11:14
vs.net 2005 ftw, makes vs 2003 look ridiculous ^^

Digital
24.10.2005, 05:16
either way... been debugging it...
or could well say it have became l2c# single man project :p
3517 errors -> 327 errors within 6 files currently
classid.cs, l2skill.cs, stats.cs, L2ArmorType.cs, L2EtcItemType.cs, L2WeaponType.cs
are the problematic ones...
reason being... java's enum method has no equivalence in c#
so whoever could help fix those would be great.

Slipknight
24.10.2005, 20:06
Im with bob1122 C++ is just a straight up better coding language and more powerful so this brings the question, why not go C++?

Also the formula's in L2j suck compared to the official file formula's so I'd say we need to try and find the official formula's before messing with anything because thats the only way we can get that official like feel that we like.

Also if its converted to C++ im all for contributing as much as I can.

freak0201
25.10.2005, 03:23
i'm up for helping w/ a c# / c++ conversion as well. cvs / svn online repository is definately the first step needed for a community based approach. i can bring several excellent c#/c++ coders familiar with both java and lineage 2 as well as myself. the reason for c# over c++ is two-fold, both simplicity and the ability to convert java to c# more easily than to c++. c++ could be derived from c# far more easily than from java so c# is the first logical step.

and as for changing formulas first... that's just stupid, that can be changed at any point along the way its not like its a difficult attribute... just a simple algorithm. well maybe not simple but its nothing specific to java that would need to be changed first
anyway, lemme know if you'd rather me setup a repository but this definatley needs to be done first.

bob1122
25.10.2005, 03:35
Whoa, he's actually doing it pretty fast, i resent my opinion now, probably less than a week and we will have C# L2j :)

I have forgotten the simlarities between Java and C#, and never looked into the power of linux...

but, C# to C++.... i think will be just as hard as Java to C++ because Java has more resources :P...

Digital
25.10.2005, 05:33
right... done with debugging errors... and solved enum problems as well
currently solving build errors and lib/linking problems
as on this point it's 3374 -> 2087 to go.. lol

Slipknight
25.10.2005, 09:19
right... done with debugging errors... and solved enum problems as well
currently solving build errors and lib/linking problems
as on this point it's 3374 -> 2087 to go.. lol

O.O holy shit, gogogogogogogo digital, keep up the good work :wink:

freak0201
25.10.2005, 10:13
wow, sounds like this could be ready for some testing in a couple of days, im up for fixing bugs once its runable as well but i still think its important to get a public repository up.

Digital
25.10.2005, 17:53
stopped at 1726...
restarting the project again.. due to some early mistake by.. ahem...
= =

(dun remind me of it k :|)

kungfu71186
25.10.2005, 22:05
stopped at 1726...
restarting the project again.. due to some early mistake by.. ahem...
= =

(dun remind me of it k :|)

poor digital, doing all the work. At least you do a great job. I appreciate the work you put out when you really dont need to.

Thalone
26.10.2005, 02:22
im down to help but we need a something to be a community with.... i dont want to start fixing errors and then find out someone fixe dit already

Anubisan
26.10.2005, 02:31
Its a great idea I think! Unfortunately it would probably take ages to get anywhere near the point where L2Off or L2J is at, but I would love to help any way I can.

- Anubisan

toolpunk
26.10.2005, 09:24
read the topic again please...
they are converting l2j to c# ;)
means in the end they can use pretty every l2j update and have their source but in c# :D

TheOrder
26.10.2005, 09:29
I don't think L2j will like that :) !!! I think iff the C# server will support more ppl than original L2j Server :) they may use this server :P

toolpunk
26.10.2005, 11:25
yeah they wont like it maybe...
but the community will love it :p lolz
so lets hope everything works out fine.
good luck... whoever is working on this project (i dont understand it anymore, at first it was digital, then some others joined some left again i think and... :S. who cares? :D :D :D)

seirge
26.10.2005, 11:30
Simply, one question: how to join? :)

Digital
26.10.2005, 11:31
there's only me and divider on this project.
we restarted the project again.. and this time w/o crappy jlca3.0beta
totally manual rewritting...
currently we are done with step 1 again
and as at step 2 (Build complete -- 8144 errors, 49 warnings)
lol... wish us luck :p

[edit] more ppl is good... but not at this stage during port... and as well as core reconstruction... prehaps later.
more ppl = chaos, lack of coding standards... yeah.. take a look at l2j's source and u'll see what i meant :p
1 file 2++ different coding style.. lol
e.g
line 10 : int[] a;
line 11 : int b[];
(= =); sheesh

Eanae
04.11.2005, 03:58
Can't wait to see what this can support. We're currently supporting 500 people on l2j and it's becomming unstable as we're growing more. Wish you the best of luck. :)

(I'm no coder, would help if I could ;-;)

Digital
04.11.2005, 09:30
lol.. well
been some time since i last updated :p
somehow this has become a one man project. lol
and i've so far recoded some stuff
1) database management is done
2) config management is done
3) login server is done
well of cuz there are more changes to be made to those above
but currently concentrating on gameserver first to at least get things going :p

Thalone
05.11.2005, 08:56
can you post login server digital if you dont mind... i want login server to be separate from gameserver so i can have multiple servers at once... ill do all the coding. msn is [email protected] if you want to send me it on there ^^

thx

Digital
05.11.2005, 09:43
if u want to do ALL the coding, the code's at first page :)
hahahaha :p
(is being mean n ebil)

top-gear
05.11.2005, 13:48
The problem with l2j is the one-part geodata. one single file for the Whole l2 world! the second problem is that l2j crashes with more than 150-200 users. and the third problem is that login,game and npc server run within one proccess. I hope to fix those in the c* version ;)

yellowperil
06.11.2005, 21:11
these are java heap issues, etc etc

the actuall system its running on is causing the problem, null pointers, blah blah.....

The engine I am told is somewhat in a mess, as digital metioned, if you have 10 peopl working on the same code, then your gonna get upto 10 different styles.

moving to c is nice it removes one of the main reasons why l2j craches so much and thats the heap, leave a server on for more than 12 hours without a reboot then check your MEM status (ouch).

yellowperil

yellowperil
06.11.2005, 21:14
l2j and the c project will still suffer the same geodata issues..... until some area data is released and worked on.

maybe splitting the mobs into its own app would be the key here.

Digital
07.11.2005, 03:25
well... there's 3 ways to do it i believe so far
1) the usual l2j way
2) the old off way
3) the new l2j idea which is based on 1 big piece of map that has points for all it's geodata, and base on it to spawn mobs and items

the main point there is, for player wise, the client would do the nessecary adjustment IF u noticed, the main problem is regarding server side and that is mob and item.
so all we need is a geodata for them to know where they could go and drop or such.
of cuz if given time... some one might be able to write an insane ai algo for the mob that does things like those in quake ai given the geodata knowledge :P

localhost
07.11.2005, 04:05
Well I'm sure my opinion is worthless on this topic but, wouldn't it be best to make this most like official? Obviously they knew what they were doing when they made the server files so why not keep them and reconstruct the main l2server.exe? Everything we have now is fine, excluding the part of only have the compiled version of the server which, once again, is what we're trying to fix. This another reason I think why L2j failed, they created totally different server files.
Just my 2 cents worth....

Digital
08.11.2005, 02:54
well... i'd say only a few ppl know what they were doing...
at least that's for l2j, the rest were just mainly hacking things for it
and the reason for them to create new stuff is the reason to stay legal
if not, someone would be first in the line to take them down
anyway, havent been coding anything at all for l2c#, lol
doubt there'll be any progress for it if i didnt code either way.
since i'll be busy with other stuff for the moment

tetsunoony
08.11.2005, 03:51
L2 Server Visual Basic .NET Project Only for C1 Server.
http://sourceforge.net/projects/l2net/

blurcode
21.01.2006, 14:47
well... there's 3 ways to do it i believe so far
1) the usual l2j way
2) the old off way
3) the new l2j idea which is based on 1 big piece of map that has points for all it's geodata, and base on it to spawn mobs and items
..

4) parse terrain layers from client map files.

gamedeveloper
26.01.2006, 02:54
L2 Server Visual Basic .NET Project Only for C1 Server.
http://sourceforge.net/projects/l2net/Waiting for L2php server coming next :)))

THere is a major L2J problem - every connect is handled by separate thread. So server dies when 1000 online users are connected. It is needed fully reproject L2C# server to have stability and success. Anyone want to make it?

kgptzac
26.01.2006, 16:10
https://postpacific.loc-online.com/forum/viewforum.php?selected_id=f72

Hackfaq
01.02.2006, 10:32
I started to write server on c# so i used sources converted from c# to l2j, now it works, and i can process authentication, but when it tries to link to Gameserver it crushes... may be differences between c1 and c3 protocol? Anyone can help?