Hello Everyone,
I am in need of some assistance with this script. I had this running on a slightly older SVN without any issues but the ones listed here and the fix posted worked like a charm. Now i am trying to get this working on a brand new server (think it is at SVN 524) but i have an error that i can not walk my way through like i have other errors in the past. I am still way too much of a scripting novice. Thank you in advance for any and all help that is given or that has been given by all of you in the past.
Error:
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Custom/Engines/Localizer/IndependentStringList.cs:
CS1501: Line 73: No overload for method 'StringEntry' takes '2' arguments
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Part of the file in question
Code:
using (BinaryReader bin = new BinaryReader(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read)))
{
bin.ReadInt32();
bin.ReadInt16();
while (bin.BaseStream.Position < bin.BaseStream.Length)
{
int number = bin.ReadInt32();
bin.ReadByte();
int length = bin.ReadInt16();
if (length > m_Buffer.Length)
m_Buffer = new byte[(length + 1023) & ~1023];
bin.Read(m_Buffer, 0, length);
string text = Encoding.UTF8.GetString(m_Buffer, 0, length);
[COLOR="Red"] list.Add(new StringEntry(number, text));[/COLOR]
m_Table[number] = text;
}
}
m_Entries = (StringEntry[])list.ToArray(typeof(StringEntry));
I have marked the line in red (i hope) if the whole file is needed please let me know. As far as i know / can remember no item in it has been edited.
Once again i thank you and hope beyond hope i have posted this correctly (first time with error and code tags )
--Lev