![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
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. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
small bug fixed
Вложения из исходного сообщения (сами файлы в копии отсутствуют): authdc_408.rar — 31552 байт |
|
|
|
|
#3 |
|
Архивный участник
Join Date: May 2006
Posts: 19
|
l2C or l2C++?
So far great work, lol you work pretty effin fast O.o. |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2005
Posts: 107
|
what about a "open source" project? it could be awsome! I wanna start again, on a L2C with torune as manager.
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Feb 2005
Posts: 134
|
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 ^_^
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
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. |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
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!
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
This is OPEN source..
Read his post ![]() it is not encrypted. |
|
|
|
|
#9 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
Quote:
|
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
seems like he dont know...
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Oct 2005
Posts: 330
|
unless he is 31337 and read .exe as if it were source
j/kedit : @torune : how much difficulty adds inline assembly and how much performance ? is it worth it ? ( debugging it etc ) |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
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;
.......
}
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Dec 2005
Posts: 242
|
2Torune: Fucking awesome! Good Job! =)
I'm C Programmer, maybe we can do something together. Thx!! |
|
|
|
|
#14 |
|
Архивный участник
Join Date: Jan 2006
Posts: 363
|
:O we have a l2c section here
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
no, we have an l2c#, c and c# are 2 completely different languages, c# is .net
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
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++. |
|
|
|
|
#17 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
and .net smells
|
|
|
|
|
#18 | |
|
Архивный участник
Join Date: Dec 2005
Posts: 242
|
Quote:
sorry i'm spanish :P [ontopic] I'm trying to program CacheD =P (for querys, bla bla) [/ontopic] |
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
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] |
|
|
|
|
#20 |
|
Архивный участник
Join Date: Oct 2005
Posts: 330
|
recursion fast ? recursion is easy to program and high level but sucks up alot of resources and produces alot of overhead
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
if you read carefully: fastest way to achieve it.
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Oct 2005
Posts: 330
|
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 |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
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
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Oct 2005
Posts: 330
|
@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
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
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? |
|
|
|
|