I want to share an error that i found that could make your game unstable.

Hi everyone,
I had a problem with building a game for the webplayer. Every time i ran the web player of my game, the browser would crash and and i would get a error report saying that there was an Access Violation.
After a few weeks of tackling my webplayer Access Violation error, i have figured out the cause. Since i basically started the game, i always got the error,

classID >= ms_MaxClassID || classID < 0

…It never stopped me from playing the game in the editor, or building it. It was just there.
So i ignored it. Bad idea.
But if this is an error that is showing up consistently in your debug console, it may possibly de-stablize your game.
I narrowed it down by removing scripts from the assets folder a few at a time, and in my case, it was two scripts that were causing the problem, called “Turret control” and “TurretControl”
After deleting both of them, the classID error went away, and the game built and ran every time.

Anyway, i just wanted to just put this out there so if any other frusterated unity newbie like myself, or anyone has this problem and is wondering the cause.

I thought scripts had to match the class name and I thought the class name can’t have any spaces?

The scripts were both JS, so the class name is the file name, so i dont know…
But that doesnt explain why the TurretControl.js script threw the error. There is no spaces in that.