Game Development Community

Taml Troubles

by Alex Poli · in Torque 2D Beginner · 11/21/2013 (10:37 pm) · 1 replies

Hey guys, I have continued work on my level streaming script, but have encountered another roadblock. I have been saving the level files in the .taml format, but recently wanted to start using the .baml format for the smaller file sizes and faster processing. When I switched over, the game started crashing at startup and giving console messages like:
Taml: Could not find a reference Id of '858665778'
To address this I tried updating and recompiling the engine (both master and development branches) as well as running the game in debug mode. When I ran it in debug mode it gave me the following:
Namespace::unlinkClass - reference count to parent is less than 0

When I enabled the trace it appeared to be crashing when it tried to read the binary file.
Does anyone know why this would be happening for binary files and not taml files, or ways of figuring out what's wrong?

If it would be helpful to see snippets of code let me know.
Thanks!

#1
11/22/2013 (6:53 am)
TAML was a relatively late addition to T2D and might not have been as thoroughly tested as it should have been. Since several systems have drifted since the feature was added it might not have been brought along for the ride - the binary format is apparently not used often or someone would have noticed this earlier. I suggest filing an issue on GitHub - hopefully someone will have the time and know-how to get this fixed.