KR 2.48.0.3+ / 2D 6.0.5.0 changes

Diskussion und Informationen über UO:KR
Nachricht
Autor
Polo

#16 Beitrag von Polo » 03 Dez 2007 00:38

Red Squirrel hat geschrieben: Only thing that makes me nervous with this fix is someone mentioned that 0xEF was actually not always 0xEF.... can someone confirm this?
Don't worry about this. It's a lie.

Viky

#17 Beitrag von Viky » 16 Dez 2007 18:02

I can´t find this line in original DarkStorm code. Any suggestion? Do you have already modified and fully functional script?

Code: Alles auswählen

if (((IPEndPoint)from.Socket.LocalEndPoint).Port != Listener.Port)
{
   m_Encryption = new NoEncryption();
   return;
} 
Semerkhet hat geschrieben:
2) Now the real support for the new seed packet. In the same file, replace this:

Code: Alles auswählen

if (!m_Seeded) 
{
	// Now check if we have at least 4 bytes to get the seed
	if (m_Buffer.Length >= 4) 
	{
		byte[] m_Peek = new byte[m_Buffer.Length];
		m_Buffer.Dequeue( m_Peek, 0, m_Buffer.Length ); // Dequeue everything
		m_Seed = (uint)((m_Peek[0] << 24) | (m_Peek[1] << 16) | (m_Peek[2] <<8>= seed_length) 
	{
		byte[] m_Peek = new byte[m_Buffer.Length];
		m_Buffer.Dequeue( m_Peek, 0, seed_length );

		if ( seed_length == 4 )
			m_Seed = (uint) ( ( m_Peek[0] << 24 ) | ( m_Peek[1] << 16 ) | ( m_Peek[2] << 8 ) | m_Peek[3] );
		else if ( seed_length == 21 )
			m_Seed = (uint) ( ( m_Peek[1] << 24 ) | ( m_Peek[2] << 16 ) | ( m_Peek[3] << 8 ) | m_Peek[4] );

		m_Seeded = true;

		Buffer.BlockCopy(m_Peek, 0, buffer, 0, seed_length);
		length = seed_length;
	} 
	else 
	{
		return;
	}
}
3) Finally, add this definition to Scripts/Engines/Encryption/Configuration.cs:

Code: Alles auswählen

new LoginKey( "6.0.5", 0x2E0B97AD, 0xA210DE7F ),
That's all, enjoy!

Antworten