Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 30.05.2006, 12:17   #1
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default New L2C++ Section

Right finally some place for all u guys now
enjoy.
Digital is offline  
Old 01.06.2006, 10:20   #2
Stinker
Архивный участник
 
Join Date: May 2006
Posts: 43
Default Re: New L2C++ Section

Quote:
Originally Posted by Digital
Right finally some place for all u guys now
enjoy.
I want enjoy. I bad speak english.^(
Stinker is offline  
Old 01.06.2006, 16:54   #3
Derrek
Архивный участник
 
Join Date: Jun 2006
Posts: 7
Default

Digital, I don't think it's a good idea to try to rebuild L2servers in different languages. I suppose it would be better to rebuild L2J code. There're too many things to optimize. Building new server on C++ will take much time , there will be many bugs etc. And I almost sure it'll be very close to l2j code (like l2cs first proj.) I don't believe that changing Java lang to C++ will let someone improve perfomance more than 20-30%. I mean that , for example, if l2j can hold on some server 700 ppl online, C++ with l2j-structured code won't hold 2k. And building l2server in C++ is twice more difficult than in Java I think.


imho
Derrek is offline  
Old 01.06.2006, 19:25   #4
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

1. you have l2off, why bother use l2j's design concept
2. iocp can hold up to 65536 concurrent connections

http://www.codeproject.com/internet/IOCPNet.asp
Quote:
Test
My report

I compiled OIOCPNet in .NET 1.1 environment. (also VC++ 6.0, blocking #include "stdafx.h"). And I located the server (IOCPNetTest) in Windows 2003 Enterprise Edition and located the test clients (NetTestClient) in several machines. The specification and performance result:

* Test Server - OS: Windows 2003 Enterprise Edition
* Test Server - CPU: Intel 2.8GHz (x 2)
* Test Server - RAM: 2GB
* Test Client: Windows XP (3~5 machines used, changing thread number)
* Result: about 15% ~ 20% CPU Usage (when established TCP connection number is 65,000)
torune is offline  
Old 02.06.2006, 01:57   #5
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

there are many things need to be considered

sharedmemory
io completion on client thread
io completion on object event
event pool
data caching
data parsing
path finding
ai
geodata
and so....
torune is offline  
Old 02.06.2006, 02:55   #6
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Quote:
Originally Posted by torune
there are many things need to be considered

sharedmemory
io completion on client thread
io completion on object event
event pool
data caching
data parsing
path finding
ai
geodata
and so....
You are working on C or C++ ? it's hard.. I'm working with normal sockets but the L2J code for Packets it's very confuse. Plz if u can give me a hand do it ^^

Thx a lot
RipperX is offline  
Old 02.06.2006, 15:17   #7
Derrek
Архивный участник
 
Join Date: Jun 2006
Posts: 7
Default

Quote:
Originally Posted by talmage
Quote:
Originally Posted by Derrek
Digital, I don't think it's a good idea to try to rebuild L2servers in different languages.
Maybe the right language for the job should be used in the first place? L2J is great for a "toy" server, but for doing things on the scale the larger communities are used to...l2j will never work.

Quote:
Originally Posted by Derrek
I suppose it would be better to rebuild L2J code. There're too many things to optimize. Building new server on C++ will take much time , there will be many bugs etc. And I almost sure it'll be very close to l2j code (like l2cs first proj.)
I agree Java is a great language for certain jobs. However, use the right language for the job at hand. Java has yet to present a decent IOCP offering that operates at the kernel level. The one-thread-per-client model that L2J uses will never work for a large number of long term sustained network connections. Not to mention, the one-thread-per-client model only scales so far. You run into limitations with the OS's scheduler and memory issues. Why use 1200 threads to handle 1200 clients when you can use 10 to accomplish the same thing far faster?

Quote:
Originally Posted by Derrek
I don't believe that changing Java lang to C++ will let someone improve perfomance more than 20-30%. I mean that , for example, if l2j can hold on some server 700 ppl online, C++ with l2j-structured code won't hold 2k.
I am not sure if torune is planning on doing "native" win32 C++ or using the .net framework, either way the performance boost over java will be noticeable. I am sure the .net framework "hooks" into the windows kernel far more efficently than the jvm does. Once again, one of the problems mentioned already with l2j is its one-thread-per-client model due to the fact Java lacks a true IOCP implementation.

Quote:
Originally Posted by Derrek
And building l2server in C++ is twice more difficult than in Java I think. imho
Why settle for something that already doesent work? I see no tool available in the java language to acheive the network concurency kernel level IOCP brings.

Once again, nothing against java, but we should use the right language for the right job. Various languages have various tools available that other languages do not have. This is not a "l2j sucks" reply...just a reply pointing out a lack of certain features Java provides that can be found in c++ on win32.

Anyway, best of luck torune. I hope your project succeeds where others have fallen apart.
You are right. But I do believe that l2j can be rewritten in such a way that it can hold more than 1k players. Just one fact - there was an AI problem in l2j code, only now that problem was fixed. I mean there's much work to do and "Thread per client" scheme is not the only one problem in l2j. Dev-group is trying to implement new things, but they don't try to fix old l2j problems I think. And I didn't catch the idea why "Thread per client" scheme of l2j cannot be rewriten.
Derrek is offline  
Old 02.06.2006, 16:13   #8
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Maybe the right language for the job should be used in the first place? L2J is great for a "toy" server, but for doing things on the scale the larger communities are used to...l2j will never work.
Ummm your c++ or c server would be just as much a "toy" server as you claim l2j is .. You think just because you program it in c or c++ that it will automagically become like official? lol @ that .. You still have to come up with correct formulas and calculations and write an engine to parse and handle geodata correctly .. In the end you will be at the exact same point l2j is ... What good is supporting more users concurrently if none of your shit works in game? There will be bugs, bugs, and more bugs to work out .. New exploits will show up because the code has never been used before ... It's the same development life cycle l2j is going through except l2j is way ahead any other "code it yourself" lineage 2 server.

You don't have professional developers working on it either .. People wonder why open source can never really emulate that "commercial" feel, well it's because you don't have an army of developers constantly working on it..Things start to go sloppy when you have lots of "free-lance" developers from all different backgrounds working on one project .. It never really quite turns into a great looking "commercial" product ...
HongK is offline  
Old 02.06.2006, 16:48   #9
Grillo
Архивный участник
 
Join Date: Oct 2005
Posts: 73
Default

Quote:
Originally Posted by HongK
People wonder why open source can never really emulate that "commercial" feel, well it's because you don't have an army of developers constantly working on it..Things start to go sloppy when you have lots of "free-lance" developers from all different backgrounds working on one project .. It never really quite turns into a great looking "commercial" product ...
This has nothing to do with coding
anyway, kinda offtopic
Grillo is offline  
Old 03.06.2006, 01:18   #10
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

So are you going to discount the fact that major corporations such as Bank of America, General Electric, Xerox, and Charles Schwabb all use enterprise java applications? If Java were so poor at handling concurrent connections, you wouldn't see major corporations throwing away their money at it...

In fact, Charles Schwabb's Velocity system, which replaced E*Schwabb as a way to place trades, provide balances and perform a myriad of other trading actions, is completely java based. At any one time it has to handle a MUCH higher load of concurrent connections of traders. Even more than a Lineage 2 server. So why are people so quick to dismiss Java? Most of the time it's just resistance to change. That and a programmers unwillingness to give up c++ because they are just so used to it. Sure, java may perform slightly slower than c++, but its advantages definitely outweigh it's drawbacks ...

Anyway, I'm getting way off on a tangent...I just get sick of hearing all the regurgitated c++ talking points and old outdated claims against Java.

P.S. L2J isn't using NIO last I checked ...
HongK is offline  
Old 03.06.2006, 06:29   #11
Derrek
Архивный участник
 
Join Date: Jun 2006
Posts: 7
Default

Quote:
Originally Posted by HongK
Sure, java may perform slightly slower than c++, but its advantages definitely outweigh it's drawbacks ...
That is what I wanted to say.

At the moment your players are not interested if you have the best rewritten C++ engine or rewritten l2j, they want to have 1) no lags 2) most of the things off-server has. Yes, I believe that if u work together, u can build new C++ engine which will be able to hold more that 2k ppl for example. But you won't have new game-play features, and players aren't interested in playing on such server.If l2j-devteam make geodata work, i think it will be a great step forward.

And... I've never seen private server with more than 1,5k players. I think, if l2j structure is rebuilt, it will be able to hold more than 1k. No one needs server which holds more than 2k I think. Coz again.. u should have more and more features each day to have more players.
Derrek is offline  
Old 03.06.2006, 06:55   #12
Saito
Архивный участник
 
Join Date: May 2006
Posts: 39
Default

I think creating a l2c server is a great idea... just face it Java was never meant for this sort of things.

Just don't make the same mistake as l2j has; create a good and tested base on which to build new features as of now l2j has yet to offer a good fundamental base but they are constantly adding new features ontop of it. Eventually cutting them selves in the process.

From my opinion l2j is doomed they are just doing too many things at once but their are just not focusing on the fundamental problems at hand.

Don't worry about showing off your work to the public worry about putting down a good, stable and correct server even if it takes more time and it will take longer before you have something to show off with. But if you don't the project will just be shot down as "l2j clone" and thats the last thing we want.
Saito is offline  
Old 03.06.2006, 09:31   #13
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

Quote:
Originally Posted by Derrek
blablabalbalablal.... But you won't have new game-play features.......blabla
wtf u mean by not being able to have more features if its completely rebuilt....?

Its completely rebuilt..theres source...wtf else do u need more to apply what ncsoft applies?
ROFL..

Anyways.. enough talk...
project aint really urs or mine.
Is torune's..help him.. or shut up..lets stop flooding this..
tpuNIsher is offline  
Old 03.06.2006, 10:18   #14
Derrek
Архивный участник
 
Join Date: Jun 2006
Posts: 7
Default

Ok, l2j proj is rather old. Have u ever seen very close to l2off java-server? Think about. Having source is not enough to apply everything u want.

Ok, lets stop flood. And good luck to all l2c++ developers
Derrek is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:03.