Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Network Modifications

Network Modifications This forum is for modifications to the networking code of RunUO

Reply
 
Thread Tools Display Modes
Old 07-20-2007, 05:39 PM   #26 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

It might be that packet 0x25 ->

Code:
	public sealed class SecureTradeEquip : Packet
	{
		public SecureTradeEquip( Item item, Mobile m ) : base( 0x25, 20 )
		{
			m_Stream.Write( (int) item.Serial );
			m_Stream.Write( (short) item.ItemID );
			m_Stream.Write( (byte) 0 );
			m_Stream.Write( (short) item.Amount );
			m_Stream.Write( (short) item.X );
			m_Stream.Write( (short) item.Y );
			m_Stream.Write( (int) m.Serial );
			m_Stream.Write( (short) item.Hue );
		}
	}
Should be -
Code:
	public sealed class SecureTradeEquip : Packet
	{
		public SecureTradeEquip( Item item, Mobile m, ClientVersion version  ) : base( 0x25 )
		{
			bool uokr = IsUOKRPacket( version );

			this.EnsureCapacity( uokr ? 21 : 20 );

			m_Stream.Write( (int) item.Serial );
			m_Stream.Write( (short) item.ItemID );
			m_Stream.Write( (byte) 0 );
			m_Stream.Write( (short) item.Amount );
			m_Stream.Write( (short) item.X );
			m_Stream.Write( (short) item.Y );
			if ( uokr )
				m_Stream.Write( (byte) item.GridLocation );
			m_Stream.Write( (int) m.Serial );
			m_Stream.Write( (short) item.Hue );
		}
	}

Last edited by Kamron; 07-21-2007 at 03:07 AM.
Kamron is offline   Reply With Quote
Old 07-20-2007, 08:52 PM   #27 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

I am not sure what UOKR packets are shared with UOML 6.0.1.7...
Kamron is offline   Reply With Quote
Old 07-21-2007, 12:52 AM   #28 (permalink)
Forum Expert
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 369
Default

Well, after patching to the latest client, I'm experiencing the akward issues. I downloaded the latest server.exe (I'm running RC1) and when I try to run it, I get this error:

Code:
Errors:
 + Items/Misc/Corpses/Corpse.cs:
    CS0506: Line 548: 'Server.Items.Corpse.SendInfoTo(Server.Network.NetState)':
 cannot override inherited member 'Server.Item.SendInfoTo(Server.Network.NetStat
e)' because it is not marked virtual, abstract, or override
 + Items/Misc/Blocker.cs:
    CS0506: Line 21: 'Server.Items.Blocker.SendInfoTo(Server.Network.NetState)':
 cannot override inherited member 'Server.Item.SendInfoTo(Server.Network.NetStat
e)' because it is not marked virtual, abstract, or override
 + Items/Misc/LOSBlocker.cs:
    CS0506: Line 30: 'Server.Items.LOSBlocker.SendInfoTo(Server.Network.NetState
)': cannot override inherited member 'Server.Item.SendInfoTo(Server.Network.NetS
tate)' because it is not marked virtual, abstract, or override
 + Multis/HouseFoundation.cs:
    CS0506: Line 623: 'Server.Multis.HouseFoundation.SendInfoTo(Server.Network.N
etState)': cannot override inherited member 'Server.Item.SendInfoTo(Server.Netwo
rk.NetState)' because it is not marked virtual, abstract, or override
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
I removed all my custom scripts... should be running all stock distros (maybe except for an edited moongate file..). I'm not too 'up to date' on this core mod stuff... so I'm not sure if I've done something to mess this up.

The regular 'RunUO.exe' that comes with it, complies just fine. But, with the latest patch, I can't do anything when I log in... no paperdoll, missing gumps, and freeze up after a few steps. After I run this new server.exe, I get the errors above.

Any ideas?

Last edited by nadious; 07-21-2007 at 01:11 AM.
nadious is offline   Reply With Quote
Old 07-21-2007, 02:37 AM   #29 (permalink)
Forum Expert
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 369
Default

Ok, nevermind.... I've been working on this thing for hours.

I'm guessing the new server core, is for the SVN. So, I downloaded a brand new fresh copy of RunUO RC1. I spent the time to compile the .exe, replaced all the data & scripts... and launched the server.

So far, all good.

I then went in and downloaded this new sever.exe replacement, and changed out the scripts that needed to be changed out.

The server complies with no errors. However, when I get into the game, I'm still have the same lag issues with paperdolls and freezing. (Due to the new client update.)

I assumed that this update would fix and address these issues, but maybe I did something wrong? I'm running the latest SVN with the latest support files found in this thread (with no errors) and I can't do anything when I log in.

nadious is offline   Reply With Quote
Old 07-21-2007, 02:45 AM   #30 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

This is not needed anymore

Last edited by Kamron; 07-23-2007 at 06:16 AM.
Kamron is offline   Reply With Quote
Old 07-21-2007, 06:02 AM   #31 (permalink)
Account Terminated
 
Join Date: May 2007
Age: 32
Posts: 41
Default

with razor client connect OK. without - i don't have paperdoll and other stuff and lag
Konstantin Andry is offline   Reply With Quote
Old 07-21-2007, 07:09 AM   #32 (permalink)
Newbie
 
dr_no's Avatar
 
Join Date: Sep 2006
Location: Poland
Age: 21
Posts: 47
Default

for me the modification works perfectly ... client 6.0.1.7 launched by razor
dr_no is offline   Reply With Quote
Old 07-21-2007, 08:50 AM   #33 (permalink)
Account Terminated
 
Join Date: May 2007
Age: 32
Posts: 41
Default

Quote:
Originally Posted by dr_no View Post
for me the modification works perfectly ... client 6.0.1.7 launched by razor
and pack drop/pack lift?
Konstantin Andry is offline   Reply With Quote
Old 07-21-2007, 10:50 AM   #34 (permalink)
Forum Expert
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 369
Default

I can connect to two of three accounts that I tested. Two of them (launched with Razor) work great. However, my admin account still produces the lag and paperdoll issues, even with Razor.
nadious is offline   Reply With Quote
Old 07-21-2007, 11:38 AM   #35 (permalink)
Account Terminated
 
Join Date: May 2007
Age: 32
Posts: 41
Default

May be Razor developers tell us what is this?
Konstantin Andry is offline   Reply With Quote
Old 07-21-2007, 11:49 AM   #36 (permalink)
Forum Expert
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 369
Default

Ok... let me give you an update here on what is going on. (Sorry if I keep posting like crazy... just trying to give as much info as I can.)

On a test shard (using the latest SVN.. I believe 187?) and the patches found in this thread (both core and distro), I was able to connect with the two of three accounts just fine. (See above.) This was a LOCAL test shard, running on my machine.

I then took the same test shard, uploaded it to where my REAL shard was, and copied over any scripts that I had installed. Spent a few minutes going through and getting out the ones that didn't work with the SVN update... but it was only like 3. The rest were pretty much just drop in scripts that worked fine.. or with a line adjustment here or there. But as far as I can tell... there are no distro edits to any of the scripts. It's all just custom stuff.

Once I got the shard up and running, I'm now having login and lag issues, even with the Razor client. On the local shard, I didn't (except for the admin account), but on the REAL shard, the updates did not work, even when using the Razor client.

Here is the sever window... just in case if anything in there might be helpful to you all:

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2757.23663
Core: Running on .NET Framework Version 2.0.50727
Core: Running with arguments: -debug
Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2157 items, 564 mobiles)
Regions: Loading...done
World: Loading...done (117979 items, 4485 mobiles) (4.20 seconds)
Restricting client version to 6.0.1.7. Action to be taken: Annoy
Reports: Stats: Loading...done
Reports: Staff: Loading...done
Xanthos.Utilities.ConfigParser attempting to load Data/JailConfig.xml...
Xanthos.Utilities.ConfigParser failed.
Xanthos.Utilities.ConfigParser attempting to load Data/AuctionConfig.xml...
Xanthos.Utilities.ConfigParser failed.
No errors... loads just fine. But once you log in, no health bar, no paperdoll, and lag issues.

Here's also something else rather odd:

If I don't log in for several minutes.... I can then log in (even without Razor) and connect with an account and do just fine. As soon as I log back out and try to log back in, I start getting the lag issues. Even with the same account that I just tried out. Not sure if that really means anything... but thought I would pass it along.


Last edited by nadious; 07-21-2007 at 11:54 AM.
nadious is offline   Reply With Quote
Old 07-21-2007, 01:41 PM   #37 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

I have no clue... no matter what I am getting problems when I log in...

I am having the same problem: as a player, I am perfectly fine... but as an admin... I am broke.

Last edited by Kamron; 07-21-2007 at 01:49 PM.
Kamron is offline   Reply With Quote
Old 07-22-2007, 04:10 AM   #38 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 21
Posts: 3,933
Default

Quote:
Originally Posted by Kamron View Post
I don't have an OSI account...:\
How do you know what changed in the Packets? Did you decompile Zippy's latest update to Razor to get this information?
TheOutkastDev is offline   Reply With Quote
Old 07-22-2007, 02:01 PM   #39 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

Negative. I checked other forums. But I bet if I had, I would figure out why I am still having problems. lol
Kamron is offline   Reply With Quote
Old 07-22-2007, 05:13 PM   #40 (permalink)
Forum Newbie
 
Join Date: Oct 2002
Posts: 18
Default

UODEV.de :: Thema anzeigen - Broken Code

this is why you are still having problems
pmouse is offline   Reply With Quote
Old 07-22-2007, 09:24 PM   #41 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 27
Posts: 1,834
Default

what part exactly? I'm less lost than before, but still not able to fix it.

[irony]Also I love that comment from the guy who calls freeshards, who advice their players not to update their clients in order to be able to continue playing whiners...[/irony]

The problem is that container contents are not updated as the client expects it, but I do not know why. Seems to have the issue with the old client version too, what really irritates me. Must have been the changes in item.processdelta, that cause it for older versions.
__________________
[sig]all my scripts are public domain and can be re-released in any form[/sig]
Kamuflaro is offline   Reply With Quote
Old 07-22-2007, 09:26 PM   #42 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

Oh wow thanks... you saved me alot of time
Kamron is offline   Reply With Quote
Old 07-23-2007, 06:05 AM   #43 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

Okay thank you PMouse, I finished the updates and it works.

I will upload the modified files.
Kamron is offline   Reply With Quote
Old 07-23-2007, 06:16 AM   #44 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

RunUO Support for 6.0.1.7 is FINISHED - THIS MODIFICATION IS WORKING PROPERLY

Download the compiled version if you have not edited your core. Download the other one, if you want to see the edited files. Use winmerge to find the changes.
Kamron is offline   Reply With Quote
Old 07-23-2007, 06:42 AM   #45 (permalink)
Account Terminated
 
Join Date: May 2007
Age: 32
Posts: 41
Default

Quote:
Originally Posted by Kamron View Post
RunUO Support for 6.0.1.7 is FINISHED - THIS MODIFICATION IS WORKING PROPERLY

Download the compiled version if you have not edited your core. Download the other one, if you want to see the edited files. Use winmerge to find the changes.
Did you check written?
I have the same problems as before, plus stopped working KR client
Konstantin Andry is offline   Reply With Quote
Old 07-23-2007, 06:42 AM   #46 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 95
Default

I do not support UOKR client... yes I checked it.. I am using it right now.

I will double-check to make sure what I uploaded is correct.
__________________
Record for the sentence that makes the least sense - Go HERE
Kamron is offline   Reply With Quote
Old 07-23-2007, 07:24 AM   #47 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 27
Posts: 1,834
Default

I see the fix Thank you
__________________
[sig]all my scripts are public domain and can be re-released in any form[/sig]
Kamuflaro is offline   Reply With Quote
Old 07-23-2007, 07:58 AM   #48 (permalink)
Newbie
 
Join Date: Jan 2006
Location: Turkey
Age: 22
Posts: 35
Send a message via MSN to sailor
Default

nice job, man!
but i couldn't see the information about serialization in Item.cs. Did you delete it? By the way, in the zip BaseVendor.cs is not included.

note: In the zip files Packets.cs "VendorBuyContent( ArrayList list, ClientVersion version )" isn't modified.

Last edited by sailor; 07-23-2007 at 08:11 AM.
sailor is offline   Reply With Quote
Old 07-23-2007, 08:57 AM   #49 (permalink)
Forum Expert
 
arul's Avatar
 
Join Date: Jan 2005
Location: Hiding in your room.
Age: 21
Posts: 1,272
Send a message via MSN to arul
Default

Look who's back! Nice to see you around again Kamron and thank for this great stuff.
__________________
arul is offline   Reply With Quote
Old 07-23-2007, 10:15 AM   #50 (permalink)
Forum Newbie
 
Join Date: Jan 2004
Posts: 16
Default

Yeah for 6.0.1.7 Client :-),

but it doesn't work with clients <= 6.0.1.6 :-(

Code:
Exception:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Server.Misc.ClientVerification.EventSink_ClientVersionRecieved(ClientVersionRecievedArgs e)
   bei Server.ClientVersionRecievedHandler.Invoke(ClientVersionRecievedArgs e)
   bei Server.EventSink.InvokeClientVersionRecieved(ClientVersionRecievedArgs e) in c:\RunUO_MM\Server.KR\EventSink.cs:Zeile 840.
   bei Server.Network.PacketHandlers.ClientVersion(NetState state, PacketReader pvSrc) in c:\RunUO_MM\Server.KR\Network\PacketHandlers.cs:Zeile 1764.
   bei Server.Network.MessagePump.HandleReceive(NetState ns) in c:\RunUO_MM\Server.KR\Network\MessagePump.cs:Zeile 254.
   bei Server.Network.MessagePump.Slice() in c:\RunUO_MM\Server.KR\Network\MessagePump.cs:Zeile 109.
   bei Server.Core.Main(String[] args) in c:\RunUO_MM\Server.KR\Main.cs:Zeile 459.
after character selection...

Have anybody a hint or solution to me?

Last edited by Lumberman; 07-23-2007 at 10:23 AM.
Lumberman is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5