Anyone who has SphericalSloaris's Enhancement System will get these errors. It contains a script called InfoGump too.i haven't changed anything, and i'm getting this error:
Code:
- Error: Scripts\@Custom\System - Knives Chat\Gumps\ListGump.cs: CS0104: (line494, column 4) 'InfoGump' is an ambiguous reference - Error: Scripts\@Custom\System - Knives Chat\Gumps\ListGump.cs: CS0104: (line500, column 4) 'InfoGump' is an ambiguous reference - Error: Scripts\@Custom\System - Knives Chat\Gumps\OptionsGump.cs: CS0104: (line 363, column 4) 'InfoGump' is an ambiguous reference - Error: Scripts\@Custom\System - Knives Chat\Gumps\PmGump.cs: CS0104: (line 137, column 4) 'InfoGump' is an ambiguous reference - Error: Scripts\@Custom\System - Knives Chat\Gumps\ProfileGump.cs: CS0104: (line 142, column 4) 'InfoGump' is an ambiguous reference
any ideas?
-Sly
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (15 errors, 1 warnings)
- Error: Scripts\Customs\Chat System Knives\Commands\ChatOptions.cs: CS0246: (l
ine 16, column 4) The type or namespace name 'OptionsGump' could not be found (a
re you missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\GuildChat.cs: CS0246: (lin
e 47, column 32) The type or namespace name 'Listing' could not be found (are yo
u missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\GuildChat.cs: CS0246: (lin
e 47, column 5) The type or namespace name 'ListGump' could not be found (are yo
u missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\IRC.cs: CS0246: (line 33,
column 6) The type or namespace name 'OptionsGump' could not be found (are you m
issing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\Pm.cs: CS0246: (line 31, c
olumn 6) The type or namespace name 'OptionsGump' could not be found (are you mi
ssing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\Pm.cs: CS0246: (line 87, c
olumn 32) The type or namespace name 'Listing' could not be found (are you missi
ng a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\Pm.cs: CS0246: (line 87, c
olumn 5) The type or namespace name 'ListGump' could not be found (are you missi
ng a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\Pm.cs: CS0246: (line 99, c
olumn 6) The type or namespace name 'PmGump' could not be found (are you missing
a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\Pm.cs: CS0246: (line 101,
column 6) The type or namespace name 'PmChoiceGump' could not be found (are you
missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\PublicChat.cs: CS0246: (li
ne 31, column 6) The type or namespace name 'OptionsGump' could not be found (ar
e you missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\PublicChat.cs: CS0246: (li
ne 50, column 32) The type or namespace name 'Listing' could not be found (are y
ou missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Commands\PublicChat.cs: CS0246: (li
ne 50, column 5) The type or namespace name 'ListGump' could not be found (are y
ou missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Misc\ChatInfo.cs: CS0246: (line 238
, column 5) The type or namespace name 'PmNotifyGump' could not be found (are yo
u missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Misc\ChatInfo.cs: CS0246: (line 429
, column 4) The type or namespace name 'PmNotifyGump' could not be found (are yo
u missing a using directive or an assembly reference?)
- Error: Scripts\Customs\Chat System Knives\Misc\ChatInfo.cs: CS0246: (line 465
, column 5) The type or namespace name 'PmNotifyGump' could not be found (are yo
u missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
using System;
using Server;
using Server.Network;
namespace Server.Misc
{
public enum ProfanityAction
{
None, // no action taken
Disallow, // speech is not displayed
Criminal, // makes the player criminal, not killable by guards
CriminalAction, // makes the player criminal, can be killed by guards
Disconnect, // player is kicked
Other // some other implementation
}
public class ProfanityProtection
{
private static bool Enabled = true;
private static ProfanityAction Action = ProfanityAction.Other; // change here what to do when profanity is detected
public static void Initialize()
{
if ( Enabled )
EventSink.Speech += new SpeechEventHandler( EventSink_Speech );
}
private static bool OnProfanityDetected( Mobile from, string speech )
{
switch ( Action )
{
case ProfanityAction.None: return true;
case ProfanityAction.Disallow: return false;
case ProfanityAction.Criminal: from.Criminal = true; return true;
case ProfanityAction.CriminalAction: from.CriminalAction( false ); return true;
case ProfanityAction.Disconnect:
{
NetState ns = from.NetState;
if ( ns != null )
ns.Dispose();
return false;
}
default:
case ProfanityAction.Other: // TODO: Provide custom implementation if this is chosen
{
return false;
}
}
}
private static void EventSink_Speech( SpeechEventArgs e )
{
Mobile from = e.Mobile;
if ( from.AccessLevel > AccessLevel.Player )
return;
if ( !NameVerification.Validate( e.Speech, 0, int.MaxValue, true, true, false, int.MaxValue, m_Exceptions, m_Disallowed, m_StartDisallowed ) )
{
e.Blocked = !OnProfanityDetected( from, e.Speech );
DoRandomSpeech( from );
}
}
private static void DoRandomSpeech( Mobile from )
{
int coldrex = Utility.Random ( 3 );
switch ( coldrex )
{
default: //break;
case 0:
{
from.Say("I Love You");
break;
}
case 1:
{
from.Say("Ich Liebe Dich");
break;
}
case 2:
{
from.Say("Cool Dude !");
break;
}
}
}
private static char[] m_Exceptions = new char[]
{
' ', '-', '.', '\'', '"', ',', '_', '+', '=', '~', '`', '!', '^', '*', '\\', '/', ';', ':', '<', '>', '[', ']', '{', '}', '?', '|', '(', ')', '%', '$', '&', '#', '@'
};
private static string[] m_StartDisallowed = new string[]{};
private static string[] m_Disallowed = new string[]
{
"jigaboo",
"chigaboo",
"wop",
"kyke",
"kike",
"tit",
"spic",
"prick",
"piss",
"lezbo",
"lesbo",
"felatio",
"dyke",
"dildo",
"chinc",
"chink",
"cunnilingus",
"cum",
"cocksucker",
"cock",
"clitoris",
"clit",
"ass",
"hitler",
"penis",
"nigga",
"nigger",
"klit",
"kunt",
"jiz",
"jism",
"jerkoff",
"jackoff",
"goddamn",
"fag",
"blowjob",
"bitch",
"asshole",
"dick",
"pussy",
"snatch",
"cunt",
"twat",
"shit",
"fuck"
};
}
}
I'm receiving chat option Saving Errors on every World Save.
Error Log:
ChatInfo -> OnSave
Chat.bin - 0 (zero) bytes after saves
What information should I provide to help you to find what's wrong?
I'm running non-english shard, so maybe the problem is with non-English characters in Profile?
ledbettr said:I am having this same problem, any ideas on a fix for it? Also, I am not sure if it's the chat system or not, but everything that is said in the world is going to the command console, how can I turn this off?