Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.01.2006, 01:29   #1
Katsuragi
Архивный участник
 
Join Date: Jan 2006
Posts: 3
Default making own la2 server, java -> exe

As I heard, main problems of Java servers are
1. so called "resource limit" wich brings low numbers of supported online about 500 max or so.
2. geodata

What if compile java to exe to free from java virtual machine and solve problem 1? Is it possible? There are programms, that can make such a compilation. Would they help?

russian: Что если ява сервер скопилировать в ехе и освободиться от ограничений ява-машины? Есть программы которые делают такую компиляцию. Помогут ли они?
Katsuragi is offline  
Old 28.01.2006, 02:52   #2
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

i'm thinking recode java server in c++ lenguage for full resource, and the geodata will be the same like l2 off server, btw the new server coded in c++ will be more complete.

cya
RipperX is offline  
Old 28.01.2006, 02:54   #3
Katsuragi
Архивный участник
 
Join Date: Jan 2006
Posts: 3
Default

yeah, but why "recode"? We can just "compile" it.
Katsuragi is offline  
Old 28.01.2006, 02:56   #4
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Quote:
Originally Posted by Katsuragi
yeah, but why "recode"? We can just "compile" it.
you can't compile that (except jar file), the most powerful thing of c++ is the low level code, not like java.
RipperX is offline  
Old 28.01.2006, 03:04   #5
drugolo
Архивный участник
 
Join Date: Jun 2005
Posts: 93
Default

the problem is another:
L2J: uses NIO = 1 Thread = 1 Socket
L2off: uses IOCP (overlapped ports, works only with win2k3, win2k and, limited, winXP): 1 Thread = N Sockets (usually is 2 Threads for every CPU plus 1 Thread dedicated to the "Accept" of the connection request from the client)

The cause that makes L2J sink is just this (and also bad coding, but the bigger thing is this). Of course no way to do IOCP under Java (too much "free-OS" language), same for Mono (on Linux IOCP doesn't exists, but someone said me that is possible to do something like this on openBSD... dunno.)
In C++/Delphi/C#/VB, instead, you can do it.

L2d, my freezed "porting" of l2j to delphi (but using DB of L2off), is using IOCP and i have successfully tested it with I/O with 10k users connected for 1 hour... (just junk data,don't think that was working with the L2 client!!)

If there are Delphi developers, it will be nice to resume the L2d project... (working alone is sad). Actually implemented:
Log system
IOCP system
Packets Encrypt\Decrypt
something else...
drugolo is offline  
Old 28.01.2006, 11:18   #6
Co0L
Архивный участник
 
Join Date: Dec 2005
Posts: 120
Default

Emulate Java machine? o_O
I don't think, that it increase resource limit =\
btw, Geodata in a L2J already not a problem
Co0L is offline  
Old 28.01.2006, 20:19   #7
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

eh, you mean that l2j don't have geodata?

wanna walk thru some walls?
kgptzac is offline  
Old 28.01.2006, 22:06   #8
Co0L
Архивный участник
 
Join Date: Dec 2005
Posts: 120
Default

Quote:
Originally Posted by kgptzac
eh, you mean that l2j don't have geodata?

wanna walk thru some walls?
At that moment - yes, mobs walks thru the walls
but, L2J w/geo already in testing ^^
Co0L is offline  
Old 29.01.2006, 04:02   #9
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Originally Posted by drugolo
the problem is another:
L2J: uses NIO = 1 Thread = 1 Socket
L2off: uses IOCP (overlapped ports, works only with win2k3, win2k and, limited, winXP): 1 Thread = N Sockets (usually is 2 Threads for every CPU plus 1 Thread dedicated to the "Accept" of the connection request from the client)

The cause that makes L2J sink is just this (and also bad coding, but the bigger thing is this). Of course no way to do IOCP under Java (too much "free-OS" language), same for Mono (on Linux IOCP doesn't exists, but someone said me that is possible to do something like this on openBSD... dunno.)
In C++/Delphi/C#/VB, instead, you can do it.

L2d, my freezed "porting" of l2j to delphi (but using DB of L2off), is using IOCP and i have successfully tested it with I/O with 10k users connected for 1 hour... (just junk data,don't think that was working with the L2 client!!)

If there are Delphi developers, it will be nice to resume the L2d project... (working alone is sad). Actually implemented:
Log system
IOCP system
Packets Encrypt\Decrypt
something else...
L2J doesnt use NIO anymore
HongK is offline  
Old 29.01.2006, 05:10   #10
filrip
Архивный участник
 
Join Date: May 2005
Posts: 99
Default

i'm a delphi developer, if i can help, will be nice
but limit to version 7 (not delphi 2004-2005/.NET version)
filrip is offline  
Old 29.01.2006, 05:12   #11
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

Very good l2j
kepler001 is offline  
Old 31.01.2006, 00:07   #12
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

What point in discussing l2j *here* eh?
l2j.sf.net isn't enough anymore?
Livid is offline  
Old 22.02.2006, 14:16   #13
askey
Архивный участник
 
Join Date: May 2005
Posts: 39
Default

Quote:
Originally Posted by drugolo
...
L2d, my freezed "porting" of l2j to delphi (but using DB of L2off), is using IOCP and i have successfully tested it with I/O with 10k users connected for 1 hour... (just junk data,don't think that was working with the L2 client!!)

If there are Delphi developers, it will be nice to resume the L2d project... (working alone is sad). Actually implemented:
Log system
IOCP system
Packets Encrypt\Decrypt
something else...
So, u want to resume project for public ? project seems to have a good foundation
askey is offline  
Old 22.02.2006, 15:14   #14
Stormi
Архивный участник
 
Join Date: Nov 2005
Posts: 15
Default

Quote:
If there are Delphi developers
Yes, there are delphi developers interested in L2 (it is was not discussed as dev language at all on this forum as I see). I also implemented crypto for game and login server. But i'm thinking about threads pool where each free thread will check each socket in sockets array for the data with IOCTL call and use recv and process data. Have not checked perfomance but IOCL exists in any OS (*ix and win32) and give good perfomance under unix at least.
Stormi is offline  
Old 22.02.2006, 21:50   #15
DarXyde
Архивный участник
 
Join Date: Jan 2006
Posts: 43
Default

L2j is better... my opinion... so waht if a monster goes from a wall (l2j) ? better then stucking in middle of the road (l2off)

YES! L2off was better at begining (and now for high capacity of players), but now L2j is much more better (about 800 players, but java do not suport more then that...,)

Easy to edit, easy to fix bugs for your own...

Of course a better alternative, like a hybrid L2off with L2j will result in smt better then all...

again.. is my opinion...
DarXyde is offline  
Old 22.02.2006, 23:48   #16
greenhope
Архивный участник
 
Join Date: Sep 2005
Posts: 27
Default

I never think l2j can handle more than 500+ ppl and will not think about it with current ugly dev team (most talent coders have been quit or kicked out)...
greenhope is offline  
Old 23.02.2006, 00:26   #17
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

L2J = 800users??

L2J = 100 users man
xD
kepler001 is offline  
Old 23.02.2006, 01:02   #18
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

l2j = 100

l2j = 150 user crash server :P
wton is offline  
Old 23.02.2006, 01:41   #19
askey
Архивный участник
 
Join Date: May 2005
Posts: 39
Default

l2j ~ 400 users ... but no matter ... want to make an l2 emu in delphi or not ?
askey 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 16:02.