Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 25.05.2006, 03:56   #1
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default [L2C]1st step on Authd

currently its a dummy login system which only gotta display login name and password you input
however the blowfish and iocp are completed.

*No RSA atm*

all blowfish functions are inline for speed optimization.

btw you also need to have sql server running

i didnt encrypt the exe file, so if you are worry about anything, just read the asm code.

/* update */
1.
1.1 implemented same encryption algorithm as l2pass
1.2 send back LoginOK packet
1.3 packet checksum implemented
bug: Game Guard Auth packet no working, no idea why.
torune is offline  
Old 25.05.2006, 04:04   #2
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

small bug fixed

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
authdc_408.rar — 31552 байт
torune is offline  
Old 25.05.2006, 04:04   #3
Lerxst
Архивный участник
 
Join Date: May 2006
Posts: 19
Default

l2C or l2C++?
So far great work, lol you work pretty effin fast O.o.
Lerxst is offline  
Old 25.05.2006, 04:42   #4
elcapo
Архивный участник
 
Join Date: Mar 2005
Posts: 107
Default

what about a "open source" project? it could be awsome! I wanna start again, on a L2C with torune as manager.
elcapo is offline  
Old 25.05.2006, 07:51   #5
Thalone
Архивный участник
 
Join Date: Feb 2005
Posts: 134
Default

if its in c++ i can help you out maybe torune... im too used to oop to go back to C though, so hopefully cpp ^_^
Thalone is offline  
Old 25.05.2006, 09:11   #6
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

prelude: same design mechanism as l2server (function pointer array)

/* update */
1.
1.1 implemented same encryption algorithm as l2pass (encryption function is inlined for optimization)
1.2 send back LoginOK packet
1.3 packet checksum implemented

bug: Game Guard Auth packet no working, no idea why.
torune is offline  
Old 25.05.2006, 10:42   #7
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

wow, this is amazing, you go to code a full AuthD ? ... and what about a "open source" project like elcapo said ?... maybe a interesting way to start develepping a good authd... all together coding this... like L2J Proyect... i see a lot of changes recently like asm tutorial and this... maybe a new way to bring L2OFF to the top!
FidoW is offline  
Old 25.05.2006, 12:55   #8
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

This is OPEN source..
Read his post
it is not encrypted.
tpuNIsher is offline  
Old 25.05.2006, 14:11   #9
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

Quote:
Originally Posted by tpuNIsher
This is OPEN source..
Read his post
it is not encrypted.
do you know what a source is?
Sauron is offline  
Old 25.05.2006, 14:16   #10
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

seems like he dont know...
FidoW is offline  
Old 25.05.2006, 14:23   #11
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

unless he is 31337 and read .exe as if it were source j/k

edit :

@torune : how much difficulty adds inline assembly and how much performance ? is it worth it ? ( debugging it etc )
Mirror is offline  
Old 25.05.2006, 14:37   #12
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

for time critical stuff, i like to save as much as i can
a single function call also takes couple cpu circle.

Code:
bool CIOCP::RequestAuthLogin(IOCP_IO_PTR lp_io, BYTE* pData)
{
	char* pname, *ppass;
	BYTE *pBuffer, *pBuffEx, *pPwd;
	int length;
	//printf("RequestAuthLogin\n");
	pBuffer = pData;
	pname = (char*)pBuffer;
	pBuffer += 14;
	ppass = (char*)pBuffer;

	pPwd = (BYTE*)GlobalAlloc(GMEM_ZEROINIT, 16);	
	getPwd(ppass, pPwd, lstrlenA(ppass));

.............

void __inline CIOCP::getPwd(char * pData, BYTE* pOut, int length)
{
	UINT key[16];
	UINT dst[16];
	int i = 0, nBytes = length + 1;
.......
}
and will it become opensource or not, I wont be able to answer it atm.
torune is offline  
Old 25.05.2006, 15:18   #13
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

2Torune: Fucking awesome! Good Job! =)
I'm C Programmer, maybe we can do something together.

Thx!!
RipperX is offline  
Old 25.05.2006, 15:37   #14
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

:O we have a l2c section here
kgptzac is offline  
Old 25.05.2006, 15:48   #15
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

no, we have an l2c#, c and c# are 2 completely different languages, c# is .net
testdude is offline  
Old 25.05.2006, 17:36   #16
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

i have to commite that c# is simply and easy to learn,
however when you are looking for performance and time critical related design, i will suggest we get back to c/c++.
torune is offline  
Old 25.05.2006, 17:43   #17
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

and .net smells
testdude is offline  
Old 25.05.2006, 17:50   #18
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Quote:
and .net smells
smells = sucks ? true ?
sorry i'm spanish :P

[ontopic]
I'm trying to program CacheD =P (for querys, bla bla)
[/ontopic]
RipperX is offline  
Old 25.05.2006, 17:54   #19
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

i never think too much about performance until the moment i met C++ template meta-programming.
my instructor demonstrated two piece of c++ codes which shocked the entire class.
a simple Factorial Function with timer, normally we would use recursion on this on and most of us think it's the fastest way to achieve it.
guess what, its not.
takes about couple minutes to do 40! (or seconds i cant remember)
the other one is Zero second.

ya i know, it got nothing to do with c++/c# comparison. [offtopic]
torune is offline  
Old 25.05.2006, 19:51   #20
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

recursion fast ? recursion is easy to program and high level but sucks up alot of resources and produces alot of overhead
Mirror is offline  
Old 25.05.2006, 20:17   #21
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

if you read carefully: fastest way to achieve it.
torune is offline  
Old 26.05.2006, 09:48   #22
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

yes correct thus 'fastest way to achieve it' means 'fastest way to make the function' and equal to 'easy to program' which is right. but as you explained "it's not, it takes two minutes to do 40!" which translates it as "fastest" the way i perceived it

btw gl with the project, i doubt my C knowledge can help you in this - if you are looking for more ppl - and also my asm knowledge is not bigger than printing stuff in screen with DOS interrupts and opening files.

p.s. i could participate in the script and geodata parsers ( GS ) if you're interested but after my uni exams
Mirror is offline  
Old 26.05.2006, 10:01   #23
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

hmm.. so... u guys intend to go ahead with l2c++?
if u guys are serious about it...
i could dedicate a full section for u guys to head the project...
i'm quite sure we'll catch up in no time
Digital is offline  
Old 26.05.2006, 10:19   #24
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

@digital, personally i believe it's too late, chronicle5 coming out soon and will be the final one, since in half first of 2007 l3 will come out which doesn't give more than 1 max 1.5 year of life to l2. BUT if ppl are interested i'm in, the trip matters, not the end point
Mirror is offline  
Old 26.05.2006, 10:44   #25
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

right... c5's coming out soon.. but that's for l2 isnt it?
and for l3.. basically the things that had a major would be the client isnt it?
i dun expect ncsoft to recode EVERYTHING and probably reuse proven and tested code... and not to mention scripts and data
i dun believe they'll really spend time rewriting every single one of them

e.g l3 does have authd doesnt it? how abt server? npc? geodata? item?
they would probably exist and carry the same information...

i dun believe l2 elphy to be lv1 and in l3 elphy to be lv100, do we?
or for any weapon, item, etc

and yes, the trip matters, not the end point.
this trip will let u gain skills and knowledge nothing else could give...
less working for ncsoft

do let me know if there's any one support or disapproving?
Digital is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 19:25.