|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Jun 2005
Age: 28
Posts: 33
|
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 |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Feb 2004
Location: Kenaz : The Rebirth =D
Age: 30
Posts: 487
|
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? =/
|
|
|
|
|
|
#5 (permalink) |
|
Join Date: Jun 2005
Age: 28
Posts: 33
|
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;
}
}
}
|
|
|
|
|
|
#8 (permalink) |
|
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 |
|
|
|
|
|
|
#11 (permalink) |
|
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 |
|
|
|
|
|
|
#13 (permalink) |
|
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 |
|
|
|
|
|
|
#17 (permalink) |
|
Join Date: Jun 2005
Age: 28
Posts: 33
|
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 |
|
|
|
|
|
#23 (permalink) |
|
Forum Expert
Join Date: Feb 2004
Location: Kenaz : The Rebirth =D
Age: 30
Posts: 487
|
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?
![]() |
|
|
|
|
|
#24 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
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;
}
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 |
|
|
|
|
|
|
#25 (permalink) |
|
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. ) |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|