Saving Tilelayers
by Eric Schwegler · in Torque Game Builder · 01/04/2008 (11:22 am) · 1 replies
Im not sure if this is a bug or just me, but after updating a Project to TGB 1.6 I can only save a .lyr File via saveTileLayer() when I give a full Path. With relative Paths I get : T2dTileMap::SaveTileLayer() - could not open File 'path.lyr' for Tile Layer save. (where Path.lyr is the relative Path)
Writing a Fileobject on the other Hand is possible with relative paths.
Writing a Fileobject on the other Hand is possible with relative paths.
About the author
Torque Owner Eric Schwegler
t2dtilelayer::saveTileLayer
to the one from
fileObject::openforwrite
now it works the way I assumed it should.
I guess this was no bug after all, but intentional because the TGB Editor was still meant to save in this manner.