Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Mono

Server Support on Mono Forum dedicated to RunUO 2.0 on Mono.

Reply
 
Thread Tools Display Modes
Old 11-20-2007, 09:12 PM   #1 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,282
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default New Patch Osi 6.0.5.0

Osi got a new patch 6.0.5.0 for those that didnt know they did some decorations in the gauntlet doom
__________________
Erica is online now   Reply With Quote
Old 11-21-2007, 01:47 AM   #2 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,282
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

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.
__________________
Erica is online now   Reply With Quote
Old 11-21-2007, 11:07 PM   #3 (permalink)
Lurker
 
Join Date: Jun 2007
Posts: 5
Default

Could you send me old client? :P
NerdyTerdy is offline   Reply With Quote
Old 11-22-2007, 04:57 PM   #4 (permalink)
Forum Expert
 
Rosetta's Avatar
 
Join Date: May 2007
Location: In the Trees =]
Age: 32
Posts: 982
Send a message via AIM to Rosetta
Default

I haven't patched up yet, but this question is to anyone that has, is there a resolution to this?
__________________
Rose: You think you're so impressive. The Doctor: I am so impressive! Rose: You wish.
Rosetta is offline   Reply With Quote
Old 11-23-2007, 03:14 PM   #5 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,282
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by Rosetta View Post
I haven't patched up yet, but this question is to anyone that has, is there a resolution to this?
As of yet no ones has a fix yet for 6.0.5.0 but i'm sure the RunUO Team will get this fixed.
__________________
Erica is online now   Reply With Quote
Old 11-23-2007, 04:20 PM   #6 (permalink)
Lurker
 
Jeremy [The-Abyss]'s Avatar
 
Join Date: Nov 2007
Location: Russia
Posts: 6
Default

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 )
PacketHandlers.cs:
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 );
		}
Packets.cs:
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 ) );
			}
		}
	}
__________________
The Abyss Kingdom Reborn Shard
Jeremy [The-Abyss] is offline   Reply With Quote
Old 11-23-2007, 04:58 PM   #7 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 48
Posts: 781
Default

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
CEO is offline   Reply With Quote
Old 11-23-2007, 05:01 PM   #8 (permalink)
Lurker
 
Jeremy [The-Abyss]'s Avatar
 
Join Date: Nov 2007
Location: Russia
Posts: 6
Default

Ok. MutatePacketLength if using SVNs.
I'am not using.

Oh, and use No_Crypt client (by uo_rice). Razor don't work.
__________________
The Abyss Kingdom Reborn Shard

Last edited by Jeremy [The-Abyss]; 11-23-2007 at 05:04 PM.
Jeremy [The-Abyss] is offline   Reply With Quote
Old 11-23-2007, 05:52 PM   #9 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Quote:
Originally Posted by NerdyTerdy View Post
Could you send me old client? :P
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
David is offline   Reply With Quote
Old 11-23-2007, 07:18 PM   #10 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 48
Posts: 781
Default

Quote:
Originally Posted by Jeremy [The-Abyss] View Post
Ok. MutatePacketLength if using SVNs.
I'am not using.

Oh, and use No_Crypt client (by uo_rice). Razor don't work.
I tried that, still gave the encryption message with No_Crypt_Client_2d.exe.

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
CEO is offline   Reply With Quote
Old 11-23-2007, 07:32 PM   #11 (permalink)
Lurker
 
Jeremy [The-Abyss]'s Avatar
 
Join Date: Nov 2007
Location: Russia
Posts: 6
Default

Quote:
Originally Posted by CEO View Post
I tried that, still gave the encryption message with No_Crypt_Client_2d.exe.

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.
You don't need new uo_rice for that.
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).
__________________
The Abyss Kingdom Reborn Shard
Jeremy [The-Abyss] is offline   Reply With Quote
Old 11-23-2007, 09:12 PM   #12 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 48
Posts: 781
Default

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.
CEO is offline   Reply With Quote
Old 11-23-2007, 09:55 PM   #13 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

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
David is offline   Reply With Quote
Old 11-24-2007, 04:19 AM   #14 (permalink)
Lurker
 
Jeremy [The-Abyss]'s Avatar
 
Join Date: Nov 2007
Location: Russia
Posts: 6
Default

Quote:
Originally Posted by CEO View Post
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.
Quote:
Originally Posted by David View Post
yep, I'm having the same results.
Oh, sorry men.
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;
					}
But i don't know how it in SVN.
__________________
The Abyss Kingdom Reborn Shard

Last edited by Jeremy [The-Abyss]; 11-24-2007 at 05:02 AM.
Jeremy [The-Abyss] is offline   Reply With Quote
Old 11-24-2007, 06:40 AM   #15 (permalink)
Newbie
 
dr_no's Avatar
 
Join Date: Sep 2006
Location: Poland
Age: 22
Posts: 47
Default

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.
dr_no is offline   Reply With Quote
Old 11-24-2007, 07:04 AM   #16 (permalink)
Newbie
 
Join Date: May 2007
Age: 24
Posts: 54
Default

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
Soul Rider is offline   Reply With Quote
Old 11-24-2007, 07:42 AM   #17 (permalink)
Newbie
 
dr_no's Avatar
 
Join Date: Sep 2006
Location: Poland
Age: 22
Posts: 47
Default

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.
dr_no is offline   Reply With Quote
Old 11-24-2007, 08:01 AM   #18 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,282
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

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.
__________________
Erica is online now   Reply With Quote
Old 11-24-2007, 08:06 AM   #19 (permalink)
Newbie
 
Join Date: May 2007
Age: 24
Posts: 54
Default

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
Soul Rider is offline   Reply With Quote
Old 11-24-2007, 03:29 PM   #20 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,282
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by Soul Rider View Post
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
Also Warning won't work with ConnectUO so both programs will have to get updated to support 6.0.5.0 but can connect thru client uo rice.
__________________
Erica is online now   Reply With Quote
Old 11-26-2007, 09:49 PM   #21 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,870
Default

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.
Zippy is offline   Reply With Quote
Old 11-26-2007, 10:41 PM   #22 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 48
Posts: 781
Default

Quote:
Originally Posted by Zippy View Post
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]
Yeah, I could never get that one to work, I think they're using a branch of RunUO that's fairly modified from the SVN. I started putting in some debug stuff, but figured it was a waste of time as I knew the RunUO people would have the 'real' fix eventually anyways. Not very nice how that guy on their forums was round-about hinting how people here didn't know what they were doing, kinda of sad actually. It's not like there's a monopoly on knowledge or people trying to 'one-up' each other, co-operation is the name of the game here!

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.
CEO is offline   Reply With Quote
Old 11-26-2007, 11:52 PM   #23 (permalink)
Forum Novice
 
neuton's Avatar
 
Join Date: Oct 2006
Location: Westchester County, NY
Posts: 113
Send a message via ICQ to neuton Send a message via MSN to neuton Send a message via Yahoo to neuton
Default

Just my 2 cents, since Zippy has patched razor to work with the newest client might like to lock this thread up so no more posts on this topic :P
neuton is offline   Reply With Quote
Old 11-27-2007, 03:50 AM   #24 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,372
Thumbs up

Quote:
Originally Posted by Zippy View Post
I've checked in svn 266, which contains the 'official' solution for 6.0.5.0 clients.
You guys rock. Thanks Zippy!
__________________
HellRazor is offline   Reply With Quote
Old 12-07-2007, 11:29 PM