Writing t2dImageMapDatablock data to a file
by Simon OCallaghan · in Torque Game Builder · 01/29/2009 (6:06 am) · 4 replies
Heya, I wanted to merge all my external image files into one file (like a zip file layout) so that when I come to distribute my game all the images are nicely tucked away in one file. (I know it is a cosmetic thing but I have loads of image files and I want a small file set for final release)
I found out that all my t2d stuff is stored in a simset (http://tdn.garagegames.com/wiki/TGB/Reference:_SimSet). I know I can save/load (example - http://tdn.garagegames.com/wiki/Torque_2D/StandardTutorials/Advanced/HighScores) the simset information to an external file with the various simset commands, but I want to get access to the raw image data and save that out all as one block.
I assume that the raw image data is stored/linked as t2dImageMapDatablock (http://tdn.garagegames.com/wiki/Torque_2D/Reference_Guide#t2dImageMapDatablock), is there anyway of getting access to this from the TGB script commands? Is this a case of buy the source code and do it yourself thing?
Thanks
Sims
I found out that all my t2d stuff is stored in a simset (http://tdn.garagegames.com/wiki/TGB/Reference:_SimSet). I know I can save/load (example - http://tdn.garagegames.com/wiki/Torque_2D/StandardTutorials/Advanced/HighScores) the simset information to an external file with the various simset commands, but I want to get access to the raw image data and save that out all as one block.
I assume that the raw image data is stored/linked as t2dImageMapDatablock (http://tdn.garagegames.com/wiki/Torque_2D/Reference_Guide#t2dImageMapDatablock), is there anyway of getting access to this from the TGB script commands? Is this a case of buy the source code and do it yourself thing?
Thanks
Sims
About the author
#2
Also if this is only the latest version of TGB how do I upgrade my current version? Do I have to buy the product all over again?
Sims
01/29/2009 (7:13 am)
Wow that is exactly what I want, but it does not seem to work with TGB v1.5. I checked out the thread (http://www.garagegames.com/community/forums/viewthread/47974) and it does not mention which version of TGB this is supported on?Also if this is only the latest version of TGB how do I upgrade my current version? Do I have to buy the product all over again?
Sims
#3
01/29/2009 (7:28 am)
Just go to your product page and re-download.
#4
Thanks everyone for your help. Im off to upgrade my TGB and see if my projects work again :P
01/29/2009 (9:43 am)
ooops, did not realise I could get the latest product from the download page. (http://www.garagegames.com/products/torque-2D) It just says demo and buy for the professional version. That button with demo on it should be easier to understand because it does not mean 'just' demo.Thanks everyone for your help. Im off to upgrade my TGB and see if my projects work again :P
Torque Owner Michael Woerister
www.garagegames.com/community/forums/viewthread/47974
TGB's zip files support might solve your problem without much hassle.