Game Development Community

Problems with TGB updating external files

by Jamie Buckley · in Torque Game Builder · 11/05/2010 (3:45 pm) · 1 replies

Hi, I'm having a problem with a couple of things in TGB. If I create a project, and run it after saving the level, for example as "gamedata/levels/LevelOne.t2d" the console reports that it was unable to find the level "untitled.t2d" as it is an invalid file.
Also, updating an asset in the tgb level editor, for example changing an imagemap name results in the error "(assetname) datablock is invalid". In both cases I assumed that tgb was unable to update the code in the .cs files, such as the properties file in the common folder, or the datablock file, but both have been updated to load the correct files. I wondered if it was an administrator privileges problem, but I'm running it as an admin, and the folder is in My Documents, so it shouldn't be that. Any ideas? I'm using windows 7 64 bit btw, if that's any help.

#1
11/05/2010 (4:00 pm)
Worked out the datablock problem. It seems the levelname.t2d file isn't being updated by the editor. If I change the name of an item, like an imagemap, or a cell imagemap in this case, the name changes in the editor fine, and in the datablock.cs file, but not in the level.t2d file.