Invalid Stream Header ID
by PeterB · in Torque Game Builder · 08/19/2008 (12:19 pm) · 1 replies
Yesterday I started having a frame rate issue. Upon start of game, the frame rate will be about 1 every 5 seconds. It happened after I added about 16 images at 512x512 to a project already with about 150 images ranging from 64 to 1024 in size. I guessed that I'm going over such a limit, but it went from running great (on a fairly new powerbook) to horrible suddenly.
To fix it, I can do strange things. I got rid of the new images and then imported them one at a time. Fixed. Then it came back an hour later. So I got rid of a couple of for loops I had in an 'onUpdate'. Again fixed momentarily.
So I'm confused because these fixes seem random and wrong. Here are the errors I get. I have no idea what this means as I rarely dive into the source code:
t2dSceneObject::loadStream() - Invalid Stream Header ID!
t2dSceneObject::clone() - Error loading Clone-stream!
Con::execute - 0 has no namespace: onRemove
Con::execute - 0 has no namespace: onRemoveFromScene
To fix it, I can do strange things. I got rid of the new images and then imported them one at a time. Fixed. Then it came back an hour later. So I got rid of a couple of for loops I had in an 'onUpdate'. Again fixed momentarily.
So I'm confused because these fixes seem random and wrong. Here are the errors I get. I have no idea what this means as I rarely dive into the source code:
t2dSceneObject::loadStream() - Invalid Stream Header ID!
t2dSceneObject::clone() - Error loading Clone-stream!
Con::execute - 0 has no namespace: onRemove
Con::execute - 0 has no namespace: onRemoveFromScene
About the author
Torque Owner PeterB
The temporarily fix is I comment out 1 datablock. (I have many datablocks, so this change is very small). Then I reload and run it again, and things are great. I can then uncomment the datablock and it continues working.
The problem may happen every hour or once a week.
In brief, the datablocks need a kick in the butt and it fixes. And the error messages in the above post appear with the problem, although I don't understand what they are telling me.