Game Development Community

TGB 1.7.2 - Editor loads levels that no longer exist

by Mike Lilligreen · in Torque Game Builder · 02/24/2008 (7:39 am) · 3 replies

I've already found a way to fix this but I would still classify this as a bug.

To reproduce:
Create a new scene, put whatever you want in it and save it. Call it testCase.t2d for example.

Now open up a different scene. In windows explorer, go to the levels folder that testCase.t2d is in and delete it. Create a copy of any other existing .t2d file you have and rename it testCase.t2d. Back in TGB, open up testCase.t2d (which is now a copy of some other scene you had). Instead of the scene looking like whatever you copied, it will look like the testCase scene you deleted (or if you try to load a copied file called testCase.t2d within a different project you might have objects that can't find the imageMaps used in the original, deleted testCase).

The reason for this (under Windows XP) is that TGB creates a cached copy of your scenes in Documents and Settings\UserName\Application Data\GarageGames\TorqueGameBuilder\compiledScripts\game\data\levels. The editor loads the .dso file from there and not from your project's level folder.

Deleting the cached .dso level files from there gets rid of this issue but it would be nice if TGB always loads scenes from your project's levels folder or if there is some sort of clear cache button within the editor itself. I could see this being annoying if you name your levels identically (level1.t2d, level2.t2d, etc) between multiple projects.

#1
03/04/2008 (12:23 pm)
Wow, thanks Mike! It has just happenned with me and i was trying to realize the reason for that.
#2
05/02/2010 (9:19 pm)
Where are these files cached on a Mac?

I'm having problems trying to drop in an older version of a level I somehow broke... and I keep getting the cached level.
#3
05/13/2010 (12:31 am)
thnx Mike, I still get that nasty problem with 1.7.4