Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 04-13-2008, 04:55 AM   #1 (permalink)
Newbie
 
Join Date: Dec 2007
Age: 25
Posts: 62
Send a message via ICQ to Elora
Default a new problem...

ugh, ya'll are going to get tired of helping me, lol. Sorry about so many posts and problems. I'm just so new, but I'm learning.
I installed the FS:Taming system Gen2, and fixed duplicated base systems in it, by using winmerge. Once I did that, I got this error, and I'm not sure what it means.

Code:
Errors:
 + Custom/PlayerMobile.cs:
    CS0111: Line 3820: Type 'Server.Mobiles.PlayerMobile' already defines a memb
er called 'AcquireRecipe' with the same parameter types
and here is that section of the PlayerMobile.cs

Code:
#region Recipes

		private Dictionary<int, bool> m_AcquiredRecipes;
		
		public virtual bool HasRecipe( Recipe r )
		{
			if( r == null ) 
				return false;

			return HasRecipe( r.ID );
		}

		public virtual bool HasRecipe( int recipeID )
		{
			if( m_AcquiredRecipes != null && m_AcquiredRecipes.ContainsKey( recipeID ) )
				return m_AcquiredRecipes[recipeID];

			return false;
		}

		public virtual void AcquireRecipe( Recipe r )
		{
			if( r != null )
				AcquireRecipe( r.ID );
		}

		public virtual void AcquireRecipe( int recipeID )
		{
			if( m_AcquiredRecipes == null )
				m_AcquiredRecipes = new Dictionary<int, bool>();

			m_AcquiredRecipes.Add( recipeID, true );
		}

		public virtual void AcquireRecipe( Recipe r )
		{
			if( r != null )
				AcquireRecipe( r.ID );
		}

		public virtual void ResetRecipes()
		{
			m_AcquiredRecipes = null;
		}
	
		[CommandProperty( AccessLevel.GameMaster )]
		public int KnownRecipes
		{
			get 
			{
				if( m_AcquiredRecipes == null )
					return 0;

				return m_AcquiredRecipes.Count;
			}
		}
	

		#endregion
Can anyone please point me in the right direction. I'm not sure what it's telling me.
Thank you,
~Elora
Elora is offline   Reply With Quote
Old 04-13-2008, 07:31 AM   #2 (permalink)
Lurker
 
Join Date: Apr 2008
Posts: 2
Default

Quote:
Originally Posted by Elora View Post
ugh, ya'll are going to get tired of helping me, lol. Sorry about so many posts and problems. I'm just so new, but I'm learning.
I installed the FS:Taming system Gen2, and fixed duplicated base systems in it, by using winmerge. Once I did that, I got this error, and I'm not sure what it means.

Code:
Errors:
 + Custom/PlayerMobile.cs:
    CS0111: Line 3820: Type 'Server.Mobiles.PlayerMobile' already defines a memb
er called 'AcquireRecipe' with the same parameter types
and here is that section of the PlayerMobile.cs

Code:
#region Recipes

		private Dictionary<int, bool> m_AcquiredRecipes;
		
		public virtual bool HasRecipe( Recipe r )
		{
			if( r == null ) 
				return false;

			return HasRecipe( r.ID );
		}

		public virtual bool HasRecipe( int recipeID )
		{
			if( m_AcquiredRecipes != null && m_AcquiredRecipes.ContainsKey( recipeID ) )
				return m_AcquiredRecipes[recipeID];

			return false;
		}

		public virtual void AcquireRecipe( Recipe r )
		{
			if( r != null )
				AcquireRecipe( r.ID );
		}

		public virtual void AcquireRecipe( int recipeID )
		{
			if( m_AcquiredRecipes == null )
				m_AcquiredRecipes = new Dictionary<int, bool>();

			m_AcquiredRecipes.Add( recipeID, true );
		}

		public virtual void AcquireRecipe( Recipe r )
		{
			if( r != null )
				AcquireRecipe( r.ID );
		}

		public virtual void ResetRecipes()
		{
			m_AcquiredRecipes = null;
		}
	
		[CommandProperty( AccessLevel.GameMaster )]
		public int KnownRecipes
		{
			get 
			{
				if( m_AcquiredRecipes == null )
					return 0;

				return m_AcquiredRecipes.Count;
			}
		}
	

		#endregion
Can anyone please point me in the right direction. I'm not sure what it's telling me.
Thank you,
~Elora
forget about itt
Ascaron is offline   Reply With Quote
Old 04-13-2008, 11:55 AM   #3 (permalink)
Forum Expert
 
Hammerhand's Avatar
 
Join Date: Jan 2006
Location: Look behind you....
Age: 44
Posts: 1,367
Default

Easy fix actually. The error message is simply saying you have more than one of that type. The fix is this.. Remove the 2nd one of these.
Code:
		public virtual void AcquireRecipe( Recipe r )
		{
			if( r != null )
				AcquireRecipe( r.ID );
		}
In the future tho, post the script error messages either in script support or the thread you got the scripts from.
__________________
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 04-13-2008, 04:41 PM   #4 (permalink)
Newbie
 
Join Date: Dec 2007
Age: 25
Posts: 62
Send a message via ICQ to Elora
Default

Quote:
Originally Posted by Hammerhand View Post
Easy fix actually. The error message is simply saying you have more than one of that type. The fix is this.. Remove the 2nd one of these.
Code:
		public virtual void AcquireRecipe( Recipe r )
		{
			if( r != null )
				AcquireRecipe( r.ID );
		}
In the future tho, post the script error messages either in script support or the thread you got the scripts from.
Thank you Hammerhand, I appreciate your help.
~Elora
Elora 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