Hi,
I've been playing about the engine for a while now and noticed something odd, (am making a space game) I have my planet on screen with some clouds floating round it which works fine, but I want to make a class of my planet so i can use it more effectivly, however when I put it in a class instead of a module which its in at the moment, I get this error
An unhandled exception of type 'System.NullReferenceException' occurred in mtv3d65.dll
Additional information: Object reference not set to an instance of an object.
I thought it might not be reading the licence key and not generating a new instance of itself, so I moved it to sub main and put the key there and tried again.. but I still get the problem, i'm not sure what to do now...

I'm called a new Planet class in my ModGlobals submain and thats the first thing to start up.. then all of the textures, models etc then finally show the form, it just doesn't appear to run any code and goes straight to 'Planet = tvScene.CreateMeshBuilder' in my class and dies.
Any ideas or suggestions would be grateful.
Thanks
Dan.