Quote:
Originally Posted by LetsGo42
Oh i couldnt see the Guard, cos i forgot to add
PHP Code:
"Database.LoadReviverGuards();"
under
PHP Code:
Database.LoadMobs();
in "Program.cs"!
But if i do, im getting this Error...
|
I don't speak german(?) but looks to me like the .txt file isn't setup right. There is no value set for [0] in one of the reviver guard's info. That should be the MobId according to the original post... Check through the reviver guard file and make sure all the entries are valid. Note: there should be no extra spaces between lines/end cause that could cause problems.
Alternatively you could just do a check to see if it's null and if it is skip that line.
Something along the lines of...
if (FMobs[i][0] != null && FMobs[i][0] != '*')
{
Game.Mob M = new ProjectToxicCo.Game.Mob(FMobs[i]);
Mobs.Add(M.MobID, M)
}
That should fix the problem and skip over any entries that have an invalid first entry.
Quote:
Originally Posted by Sou|0fTheDragoN
Error in "ProjectToxicCo"
|
That simply means you, or the person who wrote your modified source changed one of the .cs files names. Simply change ProjectToxicCo to whatever your server name (IN THE SOURCE) is.
I don't use lotf but if you go up to the top of one of the files you should see namespace something or other. That should fix your problem. if you then get an error with "Game" then your main .cs file has been renamed. Go to where your dictionary of monsters is in your source and that's the file you want to direct this to by simply changing the word Game to whatever it is being called by your source.