Game Development Community

Type or namespace 'LevelData' could not be found?

by Laurence Grant · in Torque X 2D · 07/30/2007 (7:26 pm) · 4 replies

Hi all,

I have some code I developed using the X Builder Open Beta, which compiles fine. I finally upgraded to the 1.x version and now it fails to compile with the error "type or namespace 'LevelData' could not be found" on this statement:

public void OnLevelLoaded(string sceneFile, LevelData scene)
{
}

Did something change?

Thanks

#1
07/30/2007 (10:48 pm)
It was renamed to TorqueSceneData. :)
#2
07/31/2007 (5:46 am)
Thanks, that fixed it. Can you help with this one too? I'm getting a different error, but I think it's related:


no suitable method found to override

protected override bool _InitComponent(TorqueObject owner)

Did something change for this too, and is there is document that lists all the changes between the beta and the release?

Thanks
#3
07/31/2007 (1:56 pm)
InitComponent is now OnRegister..

edit: These changes came in a while ago, I think theres a conversion tool included in TorqueX called convert betatxscene.exe. You should have that... you can use it to convert your old beta files to new updated versions.
#4
07/31/2007 (3:09 pm)
That will only convert the scene files, not your C#.