Game Development Community

T3D 1.1 Beta 3 - Changing asset in the Forest Brush deletes all references to the brushes.cs file and the simGroup for brushes - RESOLVED

by Steve Acaster · in Torque 3D Professional · 10/06/2010 (9:46 pm) · 7 replies

T3D 1.1 Beta 3

Win7 32bit

Target
Forest Editor

Issue
Altering (eg live updating) an art asset (model) which is used in a Forest Brush, completely deletes ALL references in art/forest/brushes.cs, and deletes the simGroup for brushes, meaning that they can't be saved.

Repeat
In forest editor, make a few brushes with objects and paint them about. Save and quit. Alter, update, remodel, etc one of the brush related art asset and then reload T3D and the level. It gives you a warning (dialogue box and console info) that your new brushes can't be saved and your brushes.cs is now empty.

Suggest
Even though it explains what has happened in console, it'd be nice if it didn't delete ALL the brush entries stored in brushes.cs and the simGroup entry thus rendering it useless.

#1
10/07/2010 (1:36 am)
so lol that it is nearly depressing!
#2
10/07/2010 (3:33 am)
I also noticed this in the previous beta but never worked out what was happening.

And just to compound things, after it happening loads ... now it didn't when I retested ...
#3
10/07/2010 (2:11 pm)
Logged as TQA-1166 for the QA team to verify.

This is a biggie. Eeek!
#4
10/07/2010 (2:30 pm)
Only the brushes file of the forest editor gets borked - the thing you paint the objects with, and can group meshes together for random object painting, and has the slope/scale/etc options.

The meshes are all held in ManagedItemData.cs so they're not affected, and the levels forest is fine.

There is a warning in console explaining what might have happened ... but I didn't copy it. I'll post it if it happens again.
#5
11/08/2010 (10:25 pm)
@Steve
Have you had this happen again at all? So far I haven't been able to reproduce this.
#6
11/09/2010 (12:44 am)
Foggy memory ...
Try making a forest in a scene, saving it, reload, and then delete all the forest objects (and maybe the forest too), save again. I'll have another test.
#7
11/09/2010 (1:22 am)
Nah... I've not seen this since reporting it, and can't replicate it when trying. (typical!)

Mark as Resolved (not seen it in B3 at all).

[edit]
Had a quick look in the code and at least found what I think is the error message.

Con::warnf( "ForestData::read - ForestItemData named %s was not found.", name );
Con::warnf( "Note this can occur if you have deleted or renamed datablocks prior to loading this forest and is not an 'error' in this scenario." );

I may have been deleting or renaming datablocks of objects that were already in use in a Forest.