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 07-20-2005, 12:22 AM   #1 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Unhappy i got a problem

ok. it has been awhile since i posted. i had no problems until today. i unzipped a few customs and i got this msg. i think it has something to do with taming/shrink system but not sure.. but that is one of the ones i installed.. err.. unzipped

Code:
Error: Scripts\Engines\Factions\Mobiles\Vendors\BaseFactionVendor.cs CS0115:<line 53, column 24>'Server.Factions.BaseFactionVendor.CheckVendorAccess<Server.Mobile>': no suitable method found to override
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 12:54 AM   #2 (permalink)
Forum Expert
 
Freya's Avatar
 
Join Date: Feb 2004
Location: Kenaz : The Rebirth =D
Age: 30
Posts: 487
Default

It seems from the look of it that maybe something you changed dealing w/the faction vendor scripts... but I'm not sure... The error doesn't mention anything regarding the shrink system or anything though, but rather something w/the faction vendors... I'm still learning how to read the errors so I could be wrong, and someone else I'm sure knows more what the problem is... but from the look of it, maybe something you changed dealing w/the faction script? =/
Freya is offline   Reply With Quote
Old 07-20-2005, 12:56 AM   #3 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Unhappy

no. i never touched anythin with faction vendors.. i just dont get it
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 01:21 AM   #4 (permalink)
Forum Expert
 
icemallet's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 816
Send a message via Skype™ to icemallet
Default

It would probably help if you posted BaseFactionVendor.cs.
icemallet is offline   Reply With Quote
Old 07-20-2005, 01:32 AM   #5 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Default

Ha! thx for tellin me.. duh! i forgot.. im such a noob!
here is my error

Code:
 Error: Scripts\Engines\Factions\Mobiles\Vendors\BaseFactionVendor.cs CS0115:<line 53, column 24>'Server.Factions.BaseFactionVendor.CheckVendorAccess<Server.Mobile>': no suitable method found to override

and here is my script

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

namespace Server.Factions
{
	public abstract class BaseFactionVendor : BaseVendor
	{
		private Town m_Town;
		private Faction m_Faction;

		[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
		public Town Town
		{
			get{ return m_Town; }
			set{ Unregister(); m_Town = value; Register(); }
		}

		[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
		public Faction Faction
		{
			get{ return m_Faction; }
			set{ Unregister(); m_Faction = value; Register(); }
		}

		public void Register()
		{
			if ( m_Town != null && m_Faction != null )
				m_Town.RegisterVendor( this );
		}

		public void Unregister()
		{
			if ( m_Town != null )
				m_Town.UnregisterVendor( this );
		}

		private ArrayList m_SBInfos = new ArrayList();
		protected override ArrayList SBInfos{ get { return m_SBInfos; } }

		public override void InitSBInfo()
		{
		}

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

			Unregister();
		}

		public override bool CheckVendorAccess( Mobile from )
		{
			return true;
		}

		public BaseFactionVendor( Town town, Faction faction, string title ) : base( title )
		{
			Frozen = true;
			CantWalk = true;
			Female = false;
			BodyValue = 400;
			Name = NameList.RandomName( "male" );

			RangeHome = 0;

			m_Town = town;
			m_Faction = faction;
			Register();
		}

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

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

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

			Town.WriteReference( writer, m_Town );
			Faction.WriteReference( writer, m_Faction );
		}

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
					m_Town = Town.ReadReference( reader );
					m_Faction = Faction.ReadReference( reader );
					Register();
					break;
				}
			}

			Frozen = true;
		}
	}
}
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 02:08 AM   #6 (permalink)
Forum Expert
 
Tannis's Avatar
 
Join Date: Feb 2004
Age: 27
Posts: 2,047
Default

I've got no idea. Your script is the exact same as mine, and mine hasn't been touched either. Did anything you added in recently have to do with Factions?
Tannis is offline   Reply With Quote
Old 07-20-2005, 02:12 AM   #7 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Exclamation

no i dont believe so.. i added.. lets seee.. the shrink system, megaman, mercenaries, townhouses beta.. and i think a few weapon/armor stuff.. but nothing to do with factions...
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 02:38 AM   #8 (permalink)
 
Join Date: Dec 2004
Location: dnaL sdrawkcaB
Posts: 636
Send a message via AIM to Kwwres10 Send a message via MSN to Kwwres10
Default

Your trying to use an Override on CheckVendorAccess. But there obviously is no "CheckVendorAccess" method in BaseVendor.cs. Was there a new BaseVendor in the Pack that you need to replace the old one with?

Pheer my L337 bug finding skills.

By the way, script issues, go in script support.

-NoX
Kwwres10 is offline   Reply With Quote
Old 07-20-2005, 03:32 AM   #9 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Lightbulb

oh. hahahaha. aparently i dont know how to read. lol i must have posted on wrong one.. but it had to do with server.. lol so i came here.. ill look for ur suggestion. thx
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 04:10 AM   #10 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Unhappy

well hmmm i dunno.. im totally clueless.. i only have one of base vendor and one basefactionvendor.. so i dunno.. ( any other sugestions??
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 04:21 AM   #11 (permalink)
 
Join Date: Dec 2004
Location: dnaL sdrawkcaB
Posts: 636
Send a message via AIM to Kwwres10 Send a message via MSN to Kwwres10
Default

Make SURE there was nothing you needed to replace. You are trying to override a method that doesn't exist. The problem may also be that your script does not compile the namespace that the BaseVendor is in. I have NO idea what the namespace is and am too tired to look it up. There has to be some file you didn't install from the packet.
Either that or the scripter sucked. But, I hear it works fine so it's probably you.

MAKE SURE YOU INSTALLED EVERYTHING PROPERLY! Or better yet, give me a link to where you DLed the pack. I will do some diggin' too.

-NoX
Kwwres10 is offline   Reply With Quote
Old 07-20-2005, 04:26 AM   #12 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Default

noooo i didnt do any thing .. no modifying.. nothin.. *cries* i just dont freakin know.. ill keep lookin tho.. but i been at this all day long.. *sniff sniff*

maybe it is just me.. lol
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 04:31 AM   #13 (permalink)
 
Join Date: Dec 2004
Location: dnaL sdrawkcaB
Posts: 636
Send a message via AIM to Kwwres10 Send a message via MSN to Kwwres10
Default

oooh

Try this in your script...

Add the code in red to your script.
Code:
 
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Regions;

Haha. I knew it! The method was being defined in a namespace and class that wasn't being compiled.

I am 99% sure that should clean up that error.

-NoX
Kwwres10 is offline   Reply With Quote
Old 07-20-2005, 04:42 AM   #14 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Arrow

lol well im glad u were only 99% sure.. cuz umm.. that 1% left.. well yeah.. lol i still got the error. its in basefactionvendor.cs not the basevendor.cs dont know if u saw that or not
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 04:44 AM   #15 (permalink)
 
Join Date: Dec 2004
Location: dnaL sdrawkcaB
Posts: 636
Send a message via AIM to Kwwres10 Send a message via MSN to Kwwres10
Default

Post the error!

*rawr*

-NoX
Kwwres10 is offline   Reply With Quote
Old 07-20-2005, 04:45 AM   #16 (permalink)
 
Join Date: Dec 2004
Location: dnaL sdrawkcaB
Posts: 636
Send a message via AIM to Kwwres10 Send a message via MSN to Kwwres10
Default

Wait.... Did you make the edit I said to BaseFactionVendor? You were supposed to add it to BaseFactionVendor.
Kwwres10 is offline   Reply With Quote
Old 07-20-2005, 04:47 AM   #17 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Default

lol its the same as it was earlier.. here u go

Code:
Error: Scripts\Engines\Factions\Mobiles\Vendors\BaseFactionVendor.cs:CS0115:<line 53, column 24>'Server.Factions.BaseFactionVendor.CheckVendorAccess<Server.Mobile>': no suitable method found to override
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 04:47 AM   #18 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Default

yes. i did it to base faction vendor one.. still got exact same error
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 05:02 AM   #19 (permalink)
 
Join Date: Dec 2004
Location: dnaL sdrawkcaB
Posts: 636
Send a message via AIM to Kwwres10 Send a message via MSN to Kwwres10
Default

I am out of ideas. I have tried everything I can think of. It probably right under your nose.

Oh well. I am going to be unable to help you until you get more ideas, because I am fresh out.

Sorry.

-NoX
Kwwres10 is offline   Reply With Quote
Old 07-20-2005, 05:03 AM   #20 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Default

well thx. at least u offered suggestions.. i have yet to hear from OTHER ppl..

ill keep lookin for it myself too. but doubt i will find it..
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 05:05 AM   #21 (permalink)
 
Join Date: Dec 2004
Location: dnaL sdrawkcaB
Posts: 636
Send a message via AIM to Kwwres10 Send a message via MSN to Kwwres10
Default

Try re-installing the script. Thats my last idea.

-NoX
Kwwres10 is offline   Reply With Quote
Old 07-20-2005, 05:14 AM   #22 (permalink)
 
Join Date: Jun 2005
Age: 28
Posts: 33
Arrow

well see.. i dont get it tho.. its got the exact same line.. so it has to be somethin i downloaded i guess.. i just dont know what it would be in..

*screams* IM SO CONFUSED!!
cmh1980 is offline   Reply With Quote
Old 07-20-2005, 07:09 AM   #23 (permalink)
Forum Expert
 
Freya's Avatar
 
Join Date: Feb 2004
Location: Kenaz : The Rebirth =D
Age: 30
Posts: 487
Default

What are the scripts you added in just prior to recieving that error? Also, which scripts of those required edits to any distro scripts, and what distro scripts did you need to edit?
Freya is offline   Reply With Quote
Old 07-20-2005, 07:25 AM   #24 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by cmh1980
ok. it has been awhile since i posted. i had no problems until today. i unzipped a few customs and i got this msg. i think it has something to do with taming/shrink system but not sure.. but that is one of the ones i installed.. err.. unzipped

Code:
Error: Scripts\Engines\Factions\Mobiles\Vendors\BaseFactionVendor.cs CS0115:<line 53, column 24>'Server.Factions.BaseFactionVendor.CheckVendorAccess<Server.Mobile>': no suitable method found to override

You need to look in your BaseVendor.cs script, find the place where the CheckVendorAccess method is defined (around line 1080).

It should look like this

Code:
		public virtual bool CheckVendorAccess( Mobile from )
		{
			GuardedRegion reg = this.Region as GuardedRegion;

			if ( reg != null && !reg.CheckVendorAccess( this, from ) )
				return false;

			if ( this.Region != from.Region )
			{
				reg = from.Region as GuardedRegion;

				if ( reg != null && !reg.CheckVendorAccess( this, from ) )
					return false;
			}

			return true;
		}
The error indicates that you have changed this method. It must have the same name, type, and calling arguments.
Note, this is not the same call as the Region class CheckVendorAccess method.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 07-20-2005, 02:11 PM   #25 (permalink)
 
Join Date: Dec 2004
Location: dnaL sdrawkcaB
Posts: 636
Send a message via AIM to Kwwres10 Send a message via MSN to Kwwres10
Default

hehe. I knew it! Greystar, damn you! You told me the wrong thing.

Damn me too, just 'cause I was to lazy to do it on my own.

@cmh: Let us know if Arte's ideas dun help.

@ArteGordon: He may have edited/replaced base vendor before. Thanks for the update.

Two different methods named the same, in two different namespaces... Thats like hell in a box.

-NoX

( P.S. Hey, that rhymed a little, heheh. )
Kwwres10 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