Jump to content

Prefab nightmare!!!!


Hebblewhite

Recommended Posts

Hey Guys! (Thought I might as well register on the new forums!)


Torque appears to have totally eaten all of my prefabs ???? Working with T3D v 3.6.2 with PhysX. I open the mission (it was perfect last time I worked on it), and this evening I load it up and *swoosh* every single prefab object is gone!!! The prefabs themselves still show in the scene tree, but when you select them they all appear to be physically clustered together on the map, and if I explode them the original shapes are simply not there... this is totally random and weird. I literally haven't touched anything within the project folder (no assets moved or deleted etc). All of the prefabs had unique names, and no more than 10 or so objects from the scene.


Is this a known issue ? Is there some kind of cap on the number of prefabs or number of objects you can convert into a single prefab ? Has anyone experienced this before ?

Link to comment
Share on other sites

@Daniel: The prefab files themselves appear to have been eaten... the entire "Prefabs" folder from within the Shapes directory is gone... I can only think that its somehow been deleted as the result of a crash or something I did in the editor without noticing. I haven't touched the directory at all, and I've been checking through virus killer logs to make sure it wasn't removed. I've absolutely no idea why it's no longer there!


Question: When creating a prefab, is it an issue if the objects are not physically touching one another or collectively greater than a set number of polys ? What else can possibly effect prefab objects (other than direct manipulation in the world editor) ?


@Steve: I was thinking along those lines, but I've created much larger and more complex missions in the past and have never had anything like this happen before. I can only see the problem being something to do with the objects I made into prefabs i.e. size, poly count (although none of them were particularly heavy in that regard) etc. Either way, I'm a tad on the gutted side as it looks like I'll have to rebuild a whole section of the map.

Link to comment
Share on other sites

If there was some kind of error when you were editing/saving a prefab file, it could cause it to not write out/save correctly. That strikes me as the most likely scenario.


As for prefab behaviors, a prefab is just a convenient grouped object. Internally, it acts exactly like a simGroup of regular sceneObjects. So rendering of each object inside the prefab is handled on a per-object basis as usual.

Link to comment
Share on other sites

Hi Guys - thanks for the replies. Still no idea what caused the issue, but noticed that some of the prefabs had been left intact, but they had been saved in directories away from the main "prefabs" folder. Anyway, I've rolled back to a previous project version so no real harm done in the end - but I'll absolutely think twice about creating prefabs in the future!

Link to comment
Share on other sites

I think it has to do with the order of reading the objects. I suspect that if the included prefab is read before the containing prefab you may create a problem of referring to objects that aren't defined yet. I think it would be good to disable including prefabs within prefabs to avoid such practices.


Apologies if this sounds a bit fuzzy :|

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...