[Help]Spawn Problem

12/08/2010 21:18 [X]-Cape#1
I use a 5165 source ( the one Arco released ) and i want to delete the monster spawn because they are too big and the guards . i go into OldCOdb , mobspawns , delete the spawns and when i try to debug the server crashes . any help please ? :|
12/08/2010 22:05 pro4never#2
Chances are the source is trying to read them anyways. Try putting in just 1 spawn and see if it still crashes.
12/08/2010 23:58 hunterman01#3
If he did not delete anything in the source and just deleted it from the txt file i can almost guarantee its still trying to read it.
12/09/2010 00:59 FuriousFang#4
Just go to Program.cs and comment Database.LoadMonsters() << or whatever it is. lol

This is an example of a code:
Database.LoadMonsterSpawns();
This is an example of a commented code which will pretend it's not there:
//Database.LoadMonsterSpawns();

woot
12/09/2010 01:17 pro4never#5
Quote:
Originally Posted by hunterman01 View Post
If he did not delete anything in the source and just deleted it from the txt file i can almost guarantee its still trying to read it.
True, but if the source was written properly it would A: use try/catch to avoid fatal exception and B: not try to read past the end of the file stream.
12/09/2010 05:12 hunterman01#6
lol he's using 5165 its not written properly
12/09/2010 06:18 [X]-Cape#7
too bad i can't see where the error is cause the console closes fast :(

went to program.cs added Database.LoadMonsterSpawns(); , deleted the gay cows from tc and console crashes . any other suggestions ?
12/09/2010 08:57 Syst3m_W1z4rd#8
dont add it >_<

Remove it.
12/09/2010 20:57 [X]-Cape#9
lol , managed to add ship map and make /hp command :) but i still fail at the spawn part o.o