Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   making own la2 server, java -> exe (https://postpacific.mmorpg-game.online/showthread.php?t=3158)

Katsuragi 28.01.2006 01:29

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: Что если ява сервер скопилировать в ехе и освободиться от ограничений ява-машины? Есть программы которые делают такую компиляцию. Помогут ли они?

RipperX 28.01.2006 02:52

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

Katsuragi 28.01.2006 02:54

yeah, but why "recode"? We can just "compile" it.

RipperX 28.01.2006 02:56

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.

drugolo 28.01.2006 03:04

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...

Co0L 28.01.2006 11:18

Emulate Java machine? o_O
I don't think, that it increase resource limit =\
btw, Geodata in a L2J already not a problem ;)

kgptzac 28.01.2006 20:19

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

wanna walk thru some walls?

Co0L 28.01.2006 22:06

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 :D
but, L2J w/geo already in testing ^^ :)

HongK 29.01.2006 04:02

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

filrip 29.01.2006 05:10

i'm a delphi developer, if i can help, will be nice
but limit to version 7 (not delphi 2004-2005/.NET version)

kepler001 29.01.2006 05:12

Very good l2j
:D

Livid 31.01.2006 00:07

What point in discussing l2j *here* eh?
l2j.sf.net isn't enough anymore?

askey 22.02.2006 14:16

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

Stormi 22.02.2006 15:14

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.

DarXyde 22.02.2006 21:50

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...

greenhope 22.02.2006 23:48

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)...

kepler001 23.02.2006 00:26

L2J = 800users??

L2J = 100 users man
xD

wton 23.02.2006 01:02

l2j = 100 :D

l2j = 150 user crash server :P

askey 23.02.2006 01:41

l2j ~ 400 users ... but no matter ... want to make an l2 emu in delphi or not ? :)


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