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

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 10-22-2006, 03:59 AM   #1 (permalink)
Forum Newbie
 
Join Date: Oct 2006
Posts: 11
Default KeyRing Error

Hello i am having a problem with running Daat99s OWLTR v2.93 i have a fresh runOU 2.0 with no scripts in ( except OWLTR ) and have followed it precisley , several time but keep getting same error


Errors:
+ Items/Misc/KeyRing.cs:
CS0101: Line 8: The namespace 'Server.Items' already contains a definition f
or 'KeyRing'


Has any 1 had same prob and could they help me with a way around it ????
brenton is offline   Reply With Quote
Old 10-22-2006, 06:02 AM   #2 (permalink)
Forum Expert
 
wieganka's Avatar
 
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
Default

the KeyRing class already exists somewhere in your RunUO files (....searching right now...). All you'd have to do, i think, is rename the current keyring.cs file to something like keyring.cs.bak, and you should be fine.

KeyRing.cs is in "\Items\Misc" folder.
wieganka is offline   Reply With Quote
Old 10-22-2006, 06:26 AM   #3 (permalink)
Forum Newbie
 
Join Date: Oct 2006
Posts: 11
Default

Nope Still same Prob
brenton is offline   Reply With Quote
Old 10-22-2006, 11:47 AM   #4 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

Well, there is only one thing for sure. The compiler is convinced that there are two versions of the class KeyRing. Do a case sensitive search for KeyRing through all the code under the scripts folder. It is in there somewhere and will need to be removed/changed.
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 10-26-2006, 09:08 PM   #5 (permalink)
Newbie
 
Join Date: Oct 2006
Posts: 25
Default

Quote:
Originally Posted by brenton
Hello i am having a problem with running Daat99s OWLTR v2.93 i have a fresh runOU 2.0 with no scripts in ( except OWLTR ) and have followed it precisley , several time but keep getting same error


Errors:
+ Items/Misc/KeyRing.cs:
CS0101: Line 8: The namespace 'Server.Items' already contains a definition f
or 'KeyRing'


Has any 1 had same prob and could they help me with a way around it ????
I had the same issue, and what wieganka posted was the fix. OWLTR adds a keyring.cs file, so you need to get rid of the one that comes with runuo
shade_00 is offline   Reply With Quote
Old 08-06-2007, 03:14 PM   #6 (permalink)
Newbie
 
Join Date: Mar 2007
Posts: 13
Default Daat99 keyring.cs error

kk i had give up on the mule error, that plus i was still on gateway and after waiting 1.5 yrs to get on public shard list
now i got hooked on connect uo gateway was easier for patching but my old account for neos realm i had (1.0) for 2 yrs, but when i tryed to change the shard info around ( since i already had a public shard account) it said the account email no long exiting but it does i use it all the time. and i couldnt add a new one to server list casue its still not takeing neww ones on the serverlist the only way to connect was to direct only

well anyway i did a new 2.0 shard and i got xanthos claim system, neruns, a fsatf gen2, daat99 for fsatf, and that it so far and i get a keyring error acting like there is another file named keyring.cs but theres not

this is the file

Code:
using System;
using System.Collections;
using Server;
using Server.Targeting;

namespace Server.Items
{
	public class KeyRing : Item
	{
		public static readonly int MaxKeys = 20;

		private ArrayList m_Keys;

		public ArrayList Keys{ get{ return m_Keys; } }

		[Constructable]
		public KeyRing() : base( 0x1011 )
		{
			Weight = 1.0; // They seem to have no weight on OSI ?!

			m_Keys = new ArrayList();
		}

		public override bool OnDragDrop( Mobile from, Item dropped )
		{
			if ( !this.IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
				return false;
			}

			Key key = dropped as Key;

			if ( key == null || key.KeyValue == 0 )
			{
				from.SendLocalizedMessage( 501689 ); // Only non-blank keys can be put on a keyring.
				return false;
			}
			else if ( this.Keys.Count >= MaxKeys )
			{
				from.SendLocalizedMessage( 1008138 ); // This keyring is full.
				return false;
			}
			else
			{
				Add( key );
				from.SendLocalizedMessage( 501691 ); // You put the key on the keyring.
				return true;
			}
		}

		public override void OnDoubleClick( Mobile from )
		{
			if ( !this.IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
				return;
			}

			from.SendLocalizedMessage( 501680 ); // What do you want to unlock?
			from.Target = new InternalTarget( this );
		}

		private class InternalTarget : Target
		{
			private KeyRing m_KeyRing;

			public InternalTarget( KeyRing keyRing ) : base( -1, false, TargetFlags.None )
			{
				m_KeyRing = keyRing;
			}

			protected override void OnTarget( Mobile from, object targeted )
			{
				if ( m_KeyRing.Deleted || !m_KeyRing.IsChildOf( from.Backpack ) )
				{
					from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
					return;
				}

				if ( m_KeyRing == targeted )
				{
					m_KeyRing.Open( from );
					from.SendLocalizedMessage( 501685 ); // You open the keyring.
				}
				else if ( targeted is ILockable )
				{
					ILockable o = (ILockable) targeted;

					foreach ( Key key in m_KeyRing.Keys )
					{
						if ( key.UseOn( from, o ) )
							return;
					}

					from.SendLocalizedMessage( 1008140 ); // You do not have a key for that.
				}
				else
				{
					from.SendLocalizedMessage( 501666 ); // You can't unlock that!
				}
			}
		}

		public override void OnDelete()
		{
			base.OnDelete();

			foreach ( Key key in m_Keys )
			{
				key.Delete();
			}

			m_Keys.Clear();
		}

		public void Add( Key key )
		{
			key.Internalize();
			m_Keys.Add( key );

			UpdateItemID();
		}

		public void Open( Mobile from )
		{
			Container cont = this.Parent as Container;

			if ( cont == null )
				return;

			for ( int i = m_Keys.Count - 1; i >= 0; i-- )
			{
				Key key = (Key) m_Keys[i];

				if ( !key.Deleted && !cont.TryDropItem( from, key, true ) )
					break;

				m_Keys.RemoveAt( i );
			}

			UpdateItemID();
		}

		public void RemoveKeys( uint keyValue )
		{
			for ( int i = m_Keys.Count - 1; i >= 0; i-- )
			{
				Key key = (Key) m_Keys[i];

				if ( key.KeyValue == keyValue )
				{
					key.Delete();
					m_Keys.RemoveAt( i );
				}
			}

			UpdateItemID();
		}

		public bool ContainsKey( uint keyValue )
		{
			foreach ( Key key in m_Keys )
			{
				if ( key.KeyValue == keyValue )
					return true;
			}

			return false;
		}

		private void UpdateItemID()
		{
			if ( this.Keys.Count < 1 )
				this.ItemID = 0x1011;
			else if ( this.Keys.Count < 3 )
				this.ItemID = 0x1769;
			else if ( this.Keys.Count < 5 )
				this.ItemID = 0x176A;
			else
				this.ItemID = 0x176B;
		}

		public KeyRing( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 ); // version

			writer.WriteItemList( m_Keys );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadEncodedInt();

			m_Keys = reader.ReadItemList();
		}
	}
}
and this is the error

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Running with arguments: -debug
Scripts: Compiling C# scripts...failed (15 errors, 0 warnings)
Errors:
 + Customs/Daat99OWLTR/Custom Craftables/KeyRing.cs:
    CS0101: Line 8: The namespace 'Server.Items' already contains a definition f
or 'KeyRing'
Error:
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at Server.ScriptCompiler.Display(CompilerResults results)
   at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
   at Server.ScriptCompiler.Compile(Boolean debug)
   at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
now ive looked in search of any other post with keyring.cs and this one is closes same problem but i already deleted the runuo starter keyring.cs didnt bak just deleted it( i work on a test sahrd before i add anthing to mainso i know i wont mess up my server) and yet it still says theres another version existing

PLS PLS help
ArthursRealm is offline   Reply With Quote
Old 08-06-2007, 03:49 PM   #7 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

Quote:
Originally Posted by ArthursRealm View Post
kk i had give up on the mule error, that plus i was still on gateway and after waiting 1.5 yrs to get on public shard list
now i got hooked on connect uo gateway was easier for patching but my old account for neos realm i had (1.0) for 2 yrs, but when i tryed to change the shard info around ( since i already had a public shard account) it said the account email no long exiting but it does i use it all the time. and i couldnt add a new one to server list casue its still not takeing neww ones on the serverlist the only way to connect was to direct only

well anyway i did a new 2.0 shard and i got xanthos claim system, neruns, a fsatf gen2, daat99 for fsatf, and that it so far and i get a keyring error acting like there is another file named keyring.cs but theres not

this is the file

Code:
using System;
using System.Collections;
using Server;
using Server.Targeting;

namespace Server.Items
{
	public class KeyRing : Item
	{
		public static readonly int MaxKeys = 20;

		private ArrayList m_Keys;

		public ArrayList Keys{ get{ return m_Keys; } }

		[Constructable]
		public KeyRing() : base( 0x1011 )
		{
			Weight = 1.0; // They seem to have no weight on OSI ?!

			m_Keys = new ArrayList();
		}

		public override bool OnDragDrop( Mobile from, Item dropped )
		{
			if ( !this.IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
				return false;
			}

			Key key = dropped as Key;

			if ( key == null || key.KeyValue == 0 )
			{
				from.SendLocalizedMessage( 501689 ); // Only non-blank keys can be put on a keyring.
				return false;
			}
			else if ( this.Keys.Count >= MaxKeys )
			{
				from.SendLocalizedMessage( 1008138 ); // This keyring is full.
				return false;
			}
			else
			{
				Add( key );
				from.SendLocalizedMessage( 501691 ); // You put the key on the keyring.
				return true;
			}
		}

		public override void OnDoubleClick( Mobile from )
		{
			if ( !this.IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
				return;
			}

			from.SendLocalizedMessage( 501680 ); // What do you want to unlock?
			from.Target = new InternalTarget( this );
		}

		private class InternalTarget : Target
		{
			private KeyRing m_KeyRing;

			public InternalTarget( KeyRing keyRing ) : base( -1, false, TargetFlags.None )
			{
				m_KeyRing = keyRing;
			}

			protected override void OnTarget( Mobile from, object targeted )
			{
				if ( m_KeyRing.Deleted || !m_KeyRing.IsChildOf( from.Backpack ) )
				{
					from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
					return;
				}

				if ( m_KeyRing == targeted )
				{
					m_KeyRing.Open( from );
					from.SendLocalizedMessage( 501685 ); // You open the keyring.
				}
				else if ( targeted is ILockable )
				{
					ILockable o = (ILockable) targeted;

					foreach ( Key key in m_KeyRing.Keys )
					{
						if ( key.UseOn( from, o ) )
							return;
					}

					from.SendLocalizedMessage( 1008140 ); // You do not have a key for that.
				}
				else
				{
					from.SendLocalizedMessage( 501666 ); // You can't unlock that!
				}
			}
		}

		public override void OnDelete()
		{
			base.OnDelete();

			foreach ( Key key in m_Keys )
			{
				key.Delete();
			}

			m_Keys.Clear();
		}

		public void Add( Key key )
		{
			key.Internalize();
			m_Keys.Add( key );

			UpdateItemID();
		}

		public void Open( Mobile from )
		{
			Container cont = this.Parent as Container;

			if ( cont == null )
				return;

			for ( int i = m_Keys.Count - 1; i >= 0; i-- )
			{
				Key key = (Key) m_Keys[i];

				if ( !key.Deleted && !cont.TryDropItem( from, key, true ) )
					break;

				m_Keys.RemoveAt( i );
			}

			UpdateItemID();
		}

		public void RemoveKeys( uint keyValue )
		{
			for ( int i = m_Keys.Count - 1; i >= 0; i-- )
			{
				Key key = (Key) m_Keys[i];

				if ( key.KeyValue == keyValue )
				{
					key.Delete();
					m_Keys.RemoveAt( i );
				}
			}

			UpdateItemID();
		}

		public bool ContainsKey( uint keyValue )
		{
			foreach ( Key key in m_Keys )
			{
				if ( key.KeyValue == keyValue )
					return true;
			}

			return false;
		}

		private void UpdateItemID()
		{
			if ( this.Keys.Count < 1 )
				this.ItemID = 0x1011;
			else if ( this.Keys.Count < 3 )
				this.ItemID = 0x1769;
			else if ( this.Keys.Count < 5 )
				this.ItemID = 0x176A;
			else
				this.ItemID = 0x176B;
		}

		public KeyRing( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 ); // version

			writer.WriteItemList( m_Keys );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadEncodedInt();

			m_Keys = reader.ReadItemList();
		}
	}
}
and this is the error

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Running with arguments: -debug
Scripts: Compiling C# scripts...failed (15 errors, 0 warnings)
Errors:
 + Customs/Daat99OWLTR/Custom Craftables/KeyRing.cs:
    CS0101: Line 8: The namespace 'Server.Items' already contains a definition f
or 'KeyRing'
Error:
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at Server.ScriptCompiler.Display(CompilerResults results)
   at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
   at Server.ScriptCompiler.Compile(Boolean debug)
   at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
now ive looked in search of any other post with keyring.cs and this one is closes same problem but i already deleted the runuo starter keyring.cs didnt bak just deleted it( i work on a test sahrd before i add anthing to mainso i know i wont mess up my server) and yet it still says theres another version existing

PLS PLS help
Have you actually done a windows search thru your files to see if theres another version of KeyRing?

BTW an Error and Crash all at the sametime thats pretty good I've not seen that one yet.
Tru is offline   Reply With Quote
Old 08-06-2007, 04:06 PM   #8 (permalink)
Newbie
 
Join Date: Mar 2007
Posts: 13
Unhappy ???

yes i did a windows search, right click on runuo folder and search for keyring.cs and came up with only the one ive checked to see if therte was copies inside master of arts scripts, deftinkering, and npc vendor to see if any otehr instance of the data repeated still nada

and ur right i loaded on a fresh runuo server, neruns first then fsat 2.0 and xanthos claim script merged all files booted server

this is booted no erros with all that in

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Running with arguments: -debug
Scripts: Compiling C# scripts...done (cached)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2190 items, 563 mobiles)
Regions: Loading...done
World: Loading...done (63212 items, 2415 mobiles) (3.42 seconds)
Xanthos.Utilities.ConfigParser attempting to load Data/ClaimConfig.xml...
Xanthos.Utilities.ConfigParser success!
Reports: Stats: Loading...done
Reports: Staff: Loading...done
Address: 127.0.0.1:2593
Address: 192.168.0.100:2593
Cleanup: Detected 1 inaccessible items, including 1 bank boxes, removing..
then added daat99 owltr w /fsat and removed all doubled files leaving daatts (since any merging would be w/fsat) and now i get this error and crash

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Running with arguments: -debug
Scripts: Compiling C# scripts...failed (15 errors, 0 warnings)
Errors:
 + Customs/Daat99OWLTR/Custom Craftables/KeyRing.cs:
    CS0101: Line 8: The namespace 'Server.Items' already contains a definition f
or 'KeyRing'
Error:
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at Server.ScriptCompiler.Display(CompilerResults results)
   at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
   at Server.ScriptCompiler.Compile(Boolean debug)
   at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
heres what my customs fodler looks like
Attached Images
File Type: jpg Customs Folder.jpg (445.0 KB, 6 views)
ArthursRealm is offline   Reply With Quote
Old 08-06-2007, 04:42 PM   #9 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

I would search for KeyRing Phrase in a file not look for a file called KeyRing (maybe its part of another file).
Tru is offline   Reply With Quote
Old 08-06-2007, 06:10 PM   #10 (permalink)
Forum Expert
 
Hammerhand's Avatar
 
Join Date: Jan 2006
Location: Look behind you....
Age: 44
Posts: 1,357
Default

Scripts/Engines/Craft/DefTinkiering has a keyring in the file for the tink crafting gump. Maybe the Daat99 has one of its own that its trying to add.
__________________
May you have the strength of eagles' wings,
the faith and courage to fly to new heights,
and the wisdom of the universe to carry you there.
Hammerhand is offline   Reply With Quote
Old 08-07-2007, 02:11 AM   #11 (permalink)
Newbie
 
Join Date: Mar 2007
Posts: 13
Default keyring error

i got it all in and all but the one Keyring.cs error

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Running with arguments: -debug
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Items/Misc/KeyRing.cs:
    CS0101: Line 8: The namespace 'Server.Items' already contains a definition f
or 'KeyRing'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
and i checked the deftinkering and nothing im at a lose
ArthursRealm is offline   Reply With Quote
Old 08-07-2007, 02:30 AM   #12 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

did you search for just keyring like Tru said? If you added daat's owltr, then you did add another keyring like others have said.
Rosey1 is offline   Reply With Quote
Old 08-07-2007, 02:35 AM   #13 (permalink)
Newbie
 
Join Date: Mar 2007
Posts: 13
Default keyring error

kk i found where it was the keyring in misc is keyring the one in daat99 is key ring how do i fix this

misc keyring.cs

Code:
using System;
using System.Collections;
using Server;
using Server.Targeting;

namespace Server.Items
{
	public class KeyRing : Item
	{
		public static readonly int MaxKeys = 20;

		private ArrayList m_Keys;

		public ArrayList Keys{ get{ return m_Keys; } }

		[Constructable]
		public KeyRing() : base( 0x1011 )
		{
			Weight = 1.0; // They seem to have no weight on OSI ?!

			m_Keys = new ArrayList();
		}

		public override bool OnDragDrop( Mobile from, Item dropped )
		{
			if ( !this.IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
				return false;
			}

			Key key = dropped as Key;

			if ( key == null || key.KeyValue == 0 )
			{
				from.SendLocalizedMessage( 501689 ); // Only non-blank keys can be put on a keyring.
				return false;
			}
			else if ( this.Keys.Count >= MaxKeys )
			{
				from.SendLocalizedMessage( 1008138 ); // This keyring is full.
				return false;
			}
			else
			{
				Add( key );
				from.SendLocalizedMessage( 501691 ); // You put the key on the keyring.
				return true;
			}
		}

		public override void OnDoubleClick( Mobile from )
		{
			if ( !this.IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
				return;
			}

			from.SendLocalizedMessage( 501680 ); // What do you want to unlock?
			from.Target = new InternalTarget( this );
		}

		private class InternalTarget : Target
		{
			private KeyRing m_KeyRing;

			public InternalTarget( KeyRing keyRing ) : base( -1, false, TargetFlags.None )
			{
				m_KeyRing = keyRing;
			}

			protected override void OnTarget( Mobile from, object targeted )
			{
				if ( m_KeyRing.Deleted || !m_KeyRing.IsChildOf( from.Backpack ) )
				{
					from.SendLocalizedMessage( 1060640 ); // The item must be in your backpack to use it.
					return;
				}

				if ( m_KeyRing == targeted )
				{
					m_KeyRing.Open( from );
					from.SendLocalizedMessage( 501685 ); // You open the keyring.
				}
				else if ( targeted is ILockable )
				{
					ILockable o = (ILockable) targeted;

					foreach ( Key key in m_KeyRing.Keys )
					{
						if ( key.UseOn( from, o ) )
							return;
					}

					from.SendLocalizedMessage( 1008140 ); // You do not have a key for that.
				}
				else
				{
					from.SendLocalizedMessage( 501666 ); // You can't unlock that!
				}
			}
		}

		public override void OnDelete()
		{
			base.OnDelete();

			foreach ( Key key in m_Keys )
			{
				key.Delete();
			}

			m_Keys.Clear();
		}

		public void Add( Key key )
		{
			key.Internalize();
			m_Keys.Add( key );

			UpdateItemID();
		}

		public void Open( Mobile from )
		{
			Container cont = this.Parent as Container;

			if ( cont == null )
				return;

			for ( int i = m_Keys.Count - 1; i >= 0; i-- )
			{
				Key key = (Key) m_Keys[i];

				if ( !key.Deleted && !cont.TryDropItem( from, key, true ) )
					break;

				m_Keys.RemoveAt( i );
			}

			UpdateItemID();
		}

		public void RemoveKeys( uint keyValue )
		{
			for ( int i = m_Keys.Count - 1; i >= 0; i-- )
			{
				Key key = (Key) m_Keys[i];

				if ( key.KeyValue == keyValue )
				{
					key.Delete();
					m_Keys.RemoveAt( i );
				}
			}

			UpdateItemID();
		}

		public bool ContainsKey( uint keyValue )
		{
			foreach ( Key key in m_Keys )
			{
				if ( key.KeyValue == keyValue )
					return true;
			}

			return false;
		}

		private void UpdateItemID()
		{
			if ( this.Keys.Count < 1 )
				this.ItemID = 0x1011;
			else if ( this.Keys.Count < 3 )
				this.ItemID = 0x1769;
			else if ( this.Keys.Count < 5 )
				this.ItemID = 0x176A;
			else
				this.ItemID = 0x176B;
		}

		public KeyRing( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 ); // version

			writer.WriteItemList( m_Keys );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadEncodedInt();

			m_Keys = reader.ReadItemList();
		}
	}
}
daat99 key ring.cs

Code:
/*
 created by:
     /\            888                   888     .d8888b.   .d8888b.  
____/_ \____       888                   888    d88P  Y88b d88P  Y88b 
\  ___\ \  /       888                   888    888    888 888    888 
 \/ /  \/ /    .d88888  8888b.   8888b.  888888 Y88b. d888 Y88b. d888 
 / /\__/_/\   d88" 888     "88b     "88b 888     "Y888P888  "Y888P888 
/__\ \_____\  888  888 .d888888 .d888888 888           888        888 
    \  /      Y88b 888 888  888 888  888 Y88b.  Y88b  d88P Y88b  d88P 
     \/        "Y88888 "Y888888 "Y888888  "Y888  "Y8888P"   "Y8888P"  
*/
using System;
using Server;

namespace Server.Items
{
	public class KeyRing : Item
	{
		[Constructable]
		public KeyRing() : this( 1 )
		{
		}

		[Constructable] 
		public KeyRing( int amountFrom, int amountTo ) : this( Utility.Random( amountFrom, amountTo ) ) 
		{ 
		} 

		[Constructable]
		public KeyRing( int amount ) : base( 0x176B )
		{
			Stackable = false;
			Weight = 1.0;
			//LootType = LootType.Blessed;
			Amount = amount;
		}

		public KeyRing( Serial serial ) : base( serial )
		{
		}

		public override Item Dupe( int amount ) 
		{ 
			return base.Dupe( new KeyRing( amount ), amount ); 
		} 

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
}
how someone help me out herei been at this for days now i started from a basic runuo shard at least 30 times and reloaded it all every timeim at my wits end
ArthursRealm is offline   Reply With Quote
Old 08-07-2007, 02:39 AM   #14 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

delete the one in the misc folder
Rosey1 is offline   Reply With Quote
Old 10-21-2007, 08:47 PM   #15 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 47
Default

I have this exact problem. I read this thread and did what it said, i deleted the KeyRing.cs in Scripts/Items/Misc and i got this error:

Code:
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Scripts: Compiling C# scripts...failed (4 errors, 1 warnings)
Warnings:
 + Custom/Scripts from blade/Toolbar/FullToolbar.cs:
    CS0219: Line 146: The variable 'StrPos' is assigned but its value is never u
sed
Errors:
 + Custom/Daat99OWLTR/Custom Craftables/Spell Casters Key.cs:
    CS0246: Line 356: The type or namespace name 'SpringWater' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 357: The type or namespace name 'PetrafiedWood' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 357: The type or namespace name 'DestroyingAngel' could not be
found (are you missing a using directive or an assembly reference?)
    CS0246: Line 413: The type or namespace name 'SpringWater' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 414: The type or namespace name 'PetrafiedWood' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 415: The type or namespace name 'DestroyingAngel' could not be
found (are you missing a using directive or an assembly reference?)
    CS0246: Line 439: The type or namespace name 'SpringWater' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 440: The type or namespace name 'PetrafiedWood' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 441: The type or namespace name 'DestroyingAngel' could not be
found (are you missing a using directive or an assembly reference?)
    CS0246: Line 86: The type or namespace name 'SpringWater' could not be found
 (are you missing a using directive or an assembly reference?)
    CS0246: Line 86: The type or namespace name 'PetrafiedWood' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 87: The type or namespace name 'DestroyingAngel' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 608: The type or namespace name 'SpringWater' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 609: The type or namespace name 'SpringWater' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 615: The type or namespace name 'PetrafiedWood' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 616: The type or namespace name 'PetrafiedWood' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 622: The type or namespace name 'DestroyingAngel' could not be
found (are you missing a using directive or an assembly reference?)
    CS0246: Line 623: The type or namespace name 'DestroyingAngel' could not be
found (are you missing a using directive or an assembly reference?)
    CS0246: Line 665: The type or namespace name 'SpringWater' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 667: The type or namespace name 'PetrafiedWood' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 669: The type or namespace name 'DestroyingAngel' could not be
found (are you missing a using directive or an assembly reference?)
 + Engines/AI/Creature/BaseCreature.cs:
    CS0103: Line 1709: The name 'FSATS' does not exist in the current context
    CS0103: Line 1715: The name 'FSATS' does not exist in the current context
    CS0246: Line 3415: The type or namespace name 'BaseBioCreature' could not be
 found (are you missing a using directive or an assembly reference?)
    CS0246: Line 3415: The type or namespace name 'BioCreature' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 3415: The type or namespace name 'BioMount' could not be found
(are you missing a using directive or an assembly reference?)
    CS0103: Line 3418: The name 'FSATS' does not exist in the current context
    CS0103: Line 3424: The name 'FSATS' does not exist in the current context
    CS0234: Line 3431: The type or namespace name 'PetMenu' does not exist in th
e namespace 'Server.ContextMenus' (are you missing an assembly reference?)
    CS1502: Line 3431: The best overloaded method match for 'System.Collections.
Generic.List<Server.ContextMenus.ContextMenuEntry>.Add(Server.ContextMenus.Conte
xtMenuEntry)' has some invalid arguments
    CS1503: Line 3431: Argument '1': cannot convert from 'Server.ContextMenus.Pe
tMenu' to 'Server.ContextMenus.ContextMenuEntry'
    CS0103: Line 4478: The name 'FSATS' does not exist in the current context
    CS0103: Line 4484: The name 'FSATS' does not exist in the current context
    CS0103: Line 4551: The name 'FSATS' does not exist in the current context
    CS0103: Line 4572: The name 'PetLeveling' does not exist in the current cont
ext
    CS0246: Line 4581: The type or namespace name 'BaseBioCreature' could not be
 found (are you missing a using directive or an assembly reference?)
    CS0246: Line 4581: The type or namespace name 'BioCreature' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 4581: The type or namespace name 'BioMount' could not be found
(are you missing a using directive or an assembly reference?)
    CS0103: Line 4583: The name 'PetLeveling' does not exist in the current cont
ext
    CS0103: Line 4587: The name 'FSATS' does not exist in the current context
    CS0103: Line 4588: The name 'PetLeveling' does not exist in the current cont
ext
 + Engines/Craft/DefTinkering.cs:
    CS0246: Line 432: The type or namespace name 'SpringWater' could not be foun
d (are you missing a using directive or an assembly reference?)
 + Mobiles/Vendors/BaseVendor.cs:
    CS0246: Line 724: The type or namespace name 'SmallMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 724: The type or namespace name 'LargeMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 731: The type or namespace name 'SmallMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 731: The type or namespace name 'SmallMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 731: The type or namespace name 'LargeMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 731: The type or namespace name 'LargeMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 744: The type or namespace name 'LargeMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 745: The type or namespace name 'LargeMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 747: The type or namespace name 'SmallMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 1252: The type or namespace name 'SmallMobileBOD' could not be
found (are you missing a using directive or an assembly reference?)
    CS0246: Line 1253: The type or namespace name 'SmallMobileBODAcceptGump' cou
ld not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 1253: The type or namespace name 'SmallMobileBOD' could not be
found (are you missing a using directive or an assembly reference?)
    CS1502: Line 1253: The best overloaded method match for 'Server.Mobile.SendG
ump(Server.Gumps.Gump)' has some invalid arguments
    CS1503: Line 1253: Argument '1': cannot convert from 'SmallMobileBODAcceptGu
mp' to 'Server.Gumps.Gump'
    CS0246: Line 1254: The type or namespace name 'LargeMobileBOD' could not be
found (are you missing a using directive or an assembly reference?)
    CS0246: Line 1255: The type or namespace name 'LargeMobileBODAcceptGump' cou
ld not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 1255: The type or namespace name 'LargeMobileBOD' could not be
found (are you missing a using directive or an assembly reference?)
    CS1502: Line 1255: The best overloaded method match for 'Server.Mobile.SendG
ump(Server.Gumps.Gump)' has some invalid arguments
    CS1503: Line 1255: Argument '1': cannot convert from 'LargeMobileBODAcceptGu
mp' to 'Server.Gumps.Gump'
    CS0246: Line 127: The type or namespace name 'SmallMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 128: The type or namespace name 'SmallMobileBODAcceptGump' coul
d not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 128: The type or namespace name 'SmallMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS1502: Line 128: The best overloaded method match for 'Server.Mobile.SendGu
mp(Server.Gumps.Gump)' has some invalid arguments
    CS1503: Line 128: Argument '1': cannot convert from 'SmallMobileBODAcceptGum
p' to 'Server.Gumps.Gump'
    CS0246: Line 129: The type or namespace name 'LargeMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS0246: Line 130: The type or namespace name 'LargeMobileBODAcceptGump' coul
d not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 130: The type or namespace name 'LargeMobileBOD' could not be f
ound (are you missing a using directive or an assembly reference?)
    CS1502: Line 130: The best overloaded method match for 'Server.Mobile.SendGu
mp(Server.Gumps.Gump)' has some invalid arguments
    CS1503: Line 130: Argument '1': cannot convert from 'LargeMobileBODAcceptGum
p' to 'Server.Gumps.Gump'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.


Any ideas?
BladeDancer is offline   Reply With Quote
Old 10-21-2007, 08:49 PM   #16 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

You're missing files. You should have either files that are called destroying angel etc or 1 file called customreagents (something like that) where these reagents are defined.
__________________
"That He would leave His place on high and come for sinful man to die. You count it strange, so once did I, before I knew my Savior" ~ Aaron Shust
Rosey1 is offline   Reply With Quote
Old 10-21-2007, 08:56 PM   #17 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 47
Default

That's weird. I just downloaded this server about 30 min ago and I havn't downloaded anything extra.
BladeDancer is offline   Reply With Quote
Old 10-21-2007, 08:58 PM   #18 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

daat is something extra. Where did you download it from? Daat's system is a custom system so there is something extra added in there.
__________________
"That He would leave His place on high and come for sinful man to die. You count it strange, so once did I, before I knew my Savior" ~ Aaron Shust
Rosey1 is offline   Reply With Quote
Old 10-21-2007, 09:02 PM   #19 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 47
Default

Well, I meant anything extra besides Daat.

I downloaded the OWLTR system at:
[RunUO 2.0 RC1] Daat99 OWLTR Update for 2.0 w/caveat
BladeDancer is offline   Reply With Quote
Old 10-21-2007, 09:09 PM   #20 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

You need to download this: [RunUO 2.0 RC1] FS: Animal Taming Systems Gen2


On the instructions Lokai put "NOTE: Implies that you already have FS Animal Taming Gen2. If not, this may not work for you."
__________________
"That He would leave His place on high and come for sinful man to die. You count it strange, so once did I, before I knew my Savior" ~ Aaron Shust
Rosey1 is offline   Reply With Quote
Old 10-21-2007, 09:12 PM   #