Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 General
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 26.05.2006, 10:47   #26
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

nope, as far as i know l2 will go on after c5.
just a new storyline and all, but it will take some time till l3 comes out.
also notice that it will be using unreal engine 3 which is not even available yet.
well, maybe i'm totally wrong^^
toolpunk is offline  
Old 26.05.2006, 10:51   #27
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

yes they will keep most of the code same but my hunch is that packet format will be totally different but that is not a big prob i guess.

well as i said i'm in
Mirror is offline  
Old 26.05.2006, 14:51   #28
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

I think that we could do a definitive source, then when a new cronichle is out only modify some things we have the new server =)

For L2C: I'm In!
RipperX is offline  
Old 27.05.2006, 19:55   #29
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

http://www.torune.com/lineage2/AuthdC.rar
packet assembling function added (dummy copy from original with small modification)

the following code is from l2server.
Code:
int VAssemble(char* buf, int bufLen, const char* format, va_list ap)
{
	//guard(int VAssemble(char* buf, int bufLen, const char* format, va_list ap));

	const char* f = format;
	char* start = buf;
	char* end = buf + bufLen;
	int t;
	char* p;
	int len;
	int i;

	double d;

	while ((t = *format++))
	{
		switch (t)
		{
		case 's':
			p = va_arg(ap, char*);
			if (p)
			{
				len = strlen(p);
				if (buf + len + 1 > end)
				{
					goto overflow;
				}
				strcpy(buf, p);
				buf += len + 1;
			}
			else
			{
				// p is null. Is it correct?
				if (buf + 1 > end)
				{
					goto overflow;
				}
				*buf++ = 0;
			}
			break;
		case 'S': 
			{
				wchar_t* p = va_arg(ap, wchar_t*);
				if (p)
				{
					len = (wcslen(p) + 1)* sizeof(wchar_t);
					if (buf + len > end)
					{
						goto overflow;
					}
					memcpy(buf, p, len);
					buf += len;
				}
				else
				{
					// p is null. Is it correct?
					if (buf + 2 > end)
					{
						goto overflow;
					}
					*buf++ = 0;
					*buf++ = 0;
				}
			}
			break;
		case 'b':	    // blind copy
			len = va_arg(ap, int);
			p = va_arg(ap, char*);
			if (buf + len > end)
			{
				goto overflow;
			}
			memcpy(buf, p, len);
			buf += len;
			break;
		case 'c':
			i = va_arg(ap, int);
			if (buf + 1 > end)
			{
				goto overflow;
			}
			*buf++ = i;
			break;
		case 'h':
			i = va_arg(ap, int);
			if (buf + 2 > end)
			{
				goto overflow;
			}
#ifdef _WIN32
			*((short *)buf) = i;
			buf += 2;
#else
			*buf++ = i;
			*buf++ = i >> 8;
#endif
			break;
		case 'd':
			i = va_arg(ap, int);
			if (buf + 4 > end)
			{
				goto overflow;
			}
#ifdef _WIN32
			*((int *)buf) = i;
			buf += 4;
#else
			*buf++ = i;
			*buf++ = i >> 8;
			*buf++ = i >> 16;
			*buf++ = i >> 24;
#endif
			break;

		case 'f':
			d = va_arg(ap, double);
			if (buf + 8 > end)
			{
				goto overflow;
			}
#ifdef _WIN32
			CopyMemory(buf, &d, 8);
			/*
			*(((int*)buf)+0) = *(((int*)&d)+0);
			*(((int*)buf)+1) = *(((int*)&d)+1);
			*/
			/*
			*((double *)buf) = d;
			*/
			buf += 8;
#else
			*buf++ = d;
			*buf++ = d >> 8;
			*buf++ = d >> 16;
			*buf++ = d >> 24;
			*buf++ = d >> 32
			*buf++ = d >> 40;
			*buf++ = d >> 48;
			*buf++ = d >> 56;
#endif
			break;

		}
	}
	return (buf - start);
overflow:
	Log.Add(LOG_ERROR, L"Buffer overflow in Assemble");
	return 0;

	//unguard;
}
torune is offline  
Old 27.05.2006, 20:31   #30
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Quote:
Originally Posted by torune
http://www.torune.com/lineage2/AuthdC.rar
packet assembling function added (dummy copy from original with small modification)

the following code is from l2server.
....
Simple Amazing I want your brain and your messenger/icq/jabber/fucking contact
Do u want a cup of coffe ? =P

gLuck!
RipperX is offline  
Old 28.05.2006, 05:44   #31
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

quicq question, if you guys go ahead and build an auth and mabey more, are you planning on adding the petition system stuff back into them?
GMan 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 23:15.