Okay, I made a full list of everything that I've changed in the mod, and I think I might have narrowed it down to a few things. When a Drone is harvesting, does the animation call on the data for "Spines" or for "Spines (harvest)". Because DatEdit says the harvest file isn't used by anything, and I did change the animation for the normal Drone attack, so if it tries to harvest with my new animation... Could that be it?
Edit: after extensive testing of different levels with different things happening in them, I have the following results:
In a level with no bases and only Terran and Zerg units, no crash. In a level with Terran and Zerg bases, crash. In a level with Zerg units but no bases, no crash. In a level with Terran bases only, no crash. In a level with Protoss units and Zerg bases, crash. In a level with Protoss and Terran bases and Zerg units, no crash. In a level with Protoss and Terran units, no crash. Level with every single unit that was modified in the mod but no bases, no crash.
So it seems like the crash is caused by my earlier guess, Zerg Drones harvesting, because as I said before a certain level with Protoss and Zerg bases doesn't crash until the Zerg AI starts.
But then I ran a level with huge Zerg bases for both me and the AI, and it didn't crash.
So... Maybe it's caused by Zerg Drones harvesting at the same time as Protoss units existing? But that doesn't make any sense!
And now I've done a big test with a map created specifically for testing things, and I have found that it doesn't crash no matter what I do. Which means that if the crash is caused by one of the things I've already guessed, like Drones mining, then it only happens when the AI does it.
WHOA WHOA WHOA huge breakthrough! I realized what is causing it! It is something completely unrelated to anything I've done and is probably just the game throwing a fit at the fact that I'm making a mod at all. It is... Wait for it... the Expansion Zerg Campaign script itself. Which means all I have to do to fix this is change the scripts for Zerg to non-expansion, since I don't plan on letting the enemy have Lurkers or Devourers anyways! Thanks for your help!
Post has been edited 3 time(s), last time on Mar 3 2013, 6:58 pm by DuplexBeGreat.