RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Cliloc problem in Ultima.dll

Varchild

Wanderer
Cliloc problem in Ultima.dll

I get this exception:
Code:
Warning: error in GetClilocString from CraftHelper: System.ArgumentException: Bu
ffer dei caratteri di output troppo piccolo per contenere i caratteri decodifica
ti. Codifica 'Unicode (UTF-8)', fallback 'System.Text.DecoderReplacementFallback
'.
Nome parametro: chars
   in System.Text.Encoding.ThrowCharsOverflow()
   in System.Text.Encoding.ThrowCharsOverflow(DecoderNLS decoder, Boolean nothin
gDecoded)
   in System.Text.UTF8Encoding.GetChars(Byte* bytes, Int32 byteCount, Char* char
s, Int32 charCount, DecoderNLS baseDecoder)
   in System.Text.DecoderNLS.GetChars(Byte* bytes, Int32 byteCount, Char* chars,
 Int32 charCount, Boolean flush)
   in System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteC
ount, Char[] chars, Int32 charIndex, Boolean flush)
   in System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteC
ount, Char[] chars, Int32 charIndex)
   in System.IO.BinaryReader.InternalReadOneChar()
   in System.IO.BinaryReader.Read()
   in System.IO.BinaryReader.PeekChar()
   in Ultima.StringList..ctor(String language)
   in Midgard.CraftHelper.GetClilocString(Int32 position)

where GetClilocString is this:
Code:
		public static string GetClilocString( int position )
		{
			string clilocName = String.Empty;

			try
			{
				if( m_StringList == null )
					m_StringList = new StringList( "ENU" );
				
				clilocName = m_StringList.Table[position] as string;
			}
			catch( Exception e )
			{
				Console.WriteLine( "Warning: error in GetClilocString from CraftHelper: {0}", e.ToString() );
			}

			return clilocName;
		}

Any suggestion?
 
Top