|
||
|
|||||||
| Server Support on Mono Forum dedicated to RunUO 2.0 on Mono. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Forum Expert
|
Just a warning if you patch up to 6.0.5.0 wont let you log on on the server you see it saying Client Encryption Disconnected . so what i did was on my other computer i didnt patch and used the client 6.0.4.0 and that client lets you log on so osi did something again.
|
|
|
|
|
|
#6 (permalink) |
|
Lurker
Join Date: Nov 2007
Location: Russia
Posts: 6
|
You need to do some changes in core.
MessagePump.cs: Code:
int packetLength = handler.Length;
// 6017 client support
if ( packetID == 0x08 )
{
packetLength = 15;
}
// 6050 client support
if ( packetID == 0x48 )
{
packetLength = 6528;
length = 6528;
}
if ( packetLength <= 0 )
{
if ( length >= 3 )
Code:
Register( 0x47, 11, true, new OnPacketReceive( NewTerrain ) ); Register( 0x48, 0, false, new OnPacketReceive( AccountLoginNew ) );// was NewAnimData Register( 0x58, 106, true, new OnPacketReceive( NewRegion ) ); Code:
public static void AccountLoginNew( NetState state, PacketReader pvSrc )
{
if ( state.SentFirstPacket )
{
state.Dispose();
return;
}
state.SentFirstPacket = true;
pvSrc.ReadInt32();
pvSrc.ReadInt32();
pvSrc.ReadInt32();
pvSrc.ReadInt16();
pvSrc.ReadByte();
string username = pvSrc.ReadString(30);
string password = pvSrc.ReadString(30);
AccountLoginEventArgs e = new AccountLoginEventArgs( state, username, password );
EventSink.InvokeAccountLogin( e );
if ( e.Accepted )
AccountLogin_ReplyAck( state );
else
AccountLogin_ReplyRej( state, e.RejectReason );
}
Code:
public sealed class AccountLoginAck : Packet
{
public AccountLoginAck( ServerInfo[] info ) : base( 0xA8 )
{
this.EnsureCapacity( 6 + (info.Length * 40) );
m_Stream.Write( (byte) 0x00 ); // was Unknown 0x5D
m_Stream.Write( (ushort) info.Length );
for ( int i = 0; i < info.Length; ++i )
{
ServerInfo si = info[i];
m_Stream.Write( (ushort) i );
m_Stream.WriteAsciiFixed( si.Name, 32 );
m_Stream.Write( (byte) si.FullPercent );
m_Stream.Write( (sbyte) si.TimeZone );
m_Stream.Write( (int) Utility.GetAddressValue( si.Address.Address ) );
}
}
}
|
|
|
|
|
|
#7 (permalink) |
|
Forum Novice
Join Date: Jun 2004
Age: 48
Posts: 781
|
How are you logging in after these mods? Logging with Razor I get:
Client: 127.0.0.1: Connected. [1 Online] Client: 127.0.0.1: Encrypted client detected, disconnecting Client: 127.0.0.1: Disconnected. [0 Online] So I'm guessing Razor still needs to do a few things to the client. Doesn't matter whether I check or uncheck encryption options. Also, I'd recommend for those using latest SVN to use MutatePacketLength in MessagePump.cs, it's obviously setup to easily incorporate additional packet changes like this. Code:
MutatePacketLength( packetID, ns, ref packetLength );
if ( packetLength <= 0 )
{
if ( length >= 3 )
then: Code:
public static void MutatePacketLength( int packet, NetState state, ref int length )
{
//This is only for static size packets
if ( Packet.IsUOKRPacket( state.Version ) )
switch ( packet )
{
case 0x08: length = 15; break; // 6.0.1.7
case 0x48: length = 6528; break; // 6.0.5.0
}
}
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list. Please don't add me to your friends list, I have enough friends. Thx |
|
|
|
|
|
#9 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
The UO client is a copyrighted program, it is not legal to share it and sharing it using these forums will result in permanent bans.
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
|
#10 (permalink) | |
|
Forum Novice
Join Date: Jun 2004
Age: 48
Posts: 781
|
Quote:
I searched for a newer uo_rice, but didn't find it. I'm not in a hurry, just thought it'd be nice to test your changes and see what they did to doom. I'm sure zippy will take care of Razor when he gets a chance.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list. Please don't add me to your friends list, I have enough friends. Thx |
|
|
|
|
|
|
#11 (permalink) | |
|
Lurker
Join Date: Nov 2007
Location: Russia
Posts: 6
|
Quote:
You need to change your core and patch official 6050 client by uo_rice (old uo_rice). Than change ip and port in login.cfg and connect (without Razor). |
|
|
|
|
|
|
#12 (permalink) |
|
Forum Novice
Join Date: Jun 2004
Age: 48
Posts: 781
|
Yeah, like I said. I did that already.
uo_rice produced a non ecrypted named exe, I change login.cfg to point to local server/port. Started the client without razor, and still got that encrypted client error on the runuo console, so I'm guessing uo_rice didn't do its thing.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list. Please don't add me to your friends list, I have enough friends. Thx Last edited by CEO; 11-23-2007 at 10:05 PM. |
|
|
|
|
|
#13 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
yep, I'm having the same results.
![]()
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
|
#14 (permalink) | |
|
Lurker
Join Date: Nov 2007
Location: Russia
Posts: 6
|
Quote:
I forgot. Code:
while ( length > 0 && ns.Running )
{
int packetID = buffer.GetPacketID();
if ( !ns.SentFirstPacket && packetID != 0xF1 && packetID != 0xCF && packetID != 0x80 && packetID != 0x91 && packetID != 0xA4 && packetID != 0xE4 && packetID != 0xFF && packetID != 0x48 )
{
Console.WriteLine( "Client: {0}: Encrypted client detected, disconnecting (packetID 0x{1:X2}).", ns, packetID );
ns.Dispose();
break;
}
Last edited by Jeremy [The-Abyss]; 11-24-2007 at 05:02 AM. |
|
|
|
|
|
|
#15 (permalink) |
|
Newbie
Join Date: Sep 2006
Location: Poland
Age: 22
Posts: 47
|
i've maked all your changes but now i'm getting message:
Encrypted client detected, disconnecting (packetID 0x02)
__________________
Life would be so much easier if we just could look at the source code.
|
|
|
|
|
|
#16 (permalink) |
|
Newbie
Join Date: May 2007
Age: 24
Posts: 54
|
On our shard "Realm of Forgotten Legends" decided this problem of authorizing 2D client 6.0.5.0 and KR client 2.48.0.3. Helped us to decide this problem Wyatt.
He kindly divided the decision of this problem on UODEV.de :: Portal. Here link on topic UODEV.de :: Thema anzeigen - KR 2.48.0.3+ / 2D 6.0.5.0 changes |
|
|
|
|
|
#17 (permalink) |
|
Newbie
Join Date: Sep 2006
Location: Poland
Age: 22
Posts: 47
|
Soul Rider - i've readed link that u give and make all the changes listed there but still have an error (Encrypted client packet 0xd5) ..
__________________
Life would be so much easier if we just could look at the source code.
|
|
|
|
|
|
#18 (permalink) |
|
Forum Expert
|
Soul Rider if i was you i would put theses fixes on the core section and put what you did in those 2 script core and show it in red code for those 2 different core scripts that way no one keeps getting errors or confusion .
Or everybody can also wait till core svn gets updated with theses changes to work with client 6.0.5.0 its just a thought cause we can keep going on this subject forever. |
|
|
|
|
|
#19 (permalink) |
|
Newbie
Join Date: May 2007
Age: 24
Posts: 54
|
For beginners:
RapidShare: 1-Click Webhosting Clean SVN 265 RunUO 2.0 with required changes and compile.bat for compilation. 1. run compile.bat 2. move server.exe to your server directory 3. run server 3. use uorice from archive to remove crypt from client.exe (6.0.5.0) 4. connect with no_crypt_client_2d.exe to your server. Warning: RAZOR WILL NOT WORK, DON'T USE IT |
|
|
|
|
|
#20 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#21 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,870
|
Just a note while the fix posted here might work (I haven't tried it, I wouldn't know)... it is pretty wrong over all, I wouldn't expect it to keep working.
[edit]I've checked in svn 266, which contains the 'official' solution for 6.0.5.0 clients.[/edit]
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon Last edited by Zippy; 11-26-2007 at 10:32 PM. |
|
|
|
|
|
#22 (permalink) | |
|
Forum Novice
Join Date: Jun 2004
Age: 48
Posts: 781
|
Quote:
Thanks for the updates in the latest SVN and letting us know! You've done your contribution for the year! :P
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list. Please don't add me to your friends list, I have enough friends. Thx Last edited by CEO; 11-27-2007 at 11:53 AM. |
|
|
|
|