Texture packer crashes!
by Indrajith · in Torque 2D Beginner · 03/18/2013 (10:21 am) · 4 replies
Texture packer crashes on saving as T2D format! Is this a bug or anything else has to be done before saving!
About the author
#2
the original code in line no.24
I changed it to
Now I have to manually rename the extension to .taml to .asset.taml!
:P
03/18/2013 (2:28 pm)
hm..! Is this bug was known before! Maybe only in Windows OS! Any way I find out the reason for crashing TexturePacker! It's in the exporter.xml! Its due to the extension for the end taml file!the original code in line no.24
<fileExtension>asset.taml</fileExtension>
I changed it to
<fileExtension>taml</fileExtension>
Now I have to manually rename the extension to .taml to .asset.taml!
:P
#3
03/18/2013 (2:33 pm)
Do you have any options which delete or change the naming convention or naming extension? I know TexturePacker has those options, so it might try to delete/change part of the fileExtension but crash bc it didn't understand it failed to delete/change it all.
#4
03/18/2013 (2:42 pm)
I had an old version of texture packer[3.0.3], there is no option on the preferences, may be available in newer version! Any way this works for me! Thank you!
RJAG Entertainment
Screenshots or more information on what you're doing between starting TexturePacker and crash would help.
It works for me using the most recent build and my older build of TexturePacker (3.0.4).
Here is the code of my exporter.xml and template.asset.taml (both in the "TexturePackerbinexportersT2DMIT" directory )
I am not sure what the most recent files are like, but since mine work (and might be edited?) it couldn't hurt to share them in case it's crashing bc of a missing > or ; or something.
I know I changed it to have trimming set to false.
Make sure the directory is correct as well. I typically find my most common mistakes are the simplest ones.
EXPORTER.XML
<exporter version="1.0"> <!-- identifier of the exporter --> <name>T2D MIT</name> <!-- display name of the exporter for the combo box --> <displayName>Torque 2D MIT</displayName> <!-- description of the exporter --> <description>Torque 2D MIT Exporter</description> <!-- exporter version --> <version>1.0</version> <!-- currently only one file allowed - more to come with update --> <files> <file> <!-- name of this file variable --> <name>TAML</name> <!-- human readable name (for GUI) --> <displayName>TAML File</displayName> <!-- file extension for the file --> <fileExtension>asset.taml</fileExtension> <!-- name of the template file --> <template>template.asset.taml</template> </file> </files> <!-- target framework supports trimming --> <supportsTrimming>false</supportsTrimming> <!-- target framework supports rotated sprites --> <supportsRotation>false</supportsRotation> <!-- rotated sprites direction (cw/ccw) --> <rotationDirection>cw</rotationDirection> <!-- supports npot sizes --> <supportsNPOT>false</supportsNPOT> <!-- supports file name stripping (remove .png etc) --> <supportsTrimSpriteNames>yes</supportsTrimSpriteNames> <!-- supports texure subpath --> <supportsTextureSubPath>false</supportsTextureSubPath> </exporter>TEMPLATE.ASSET.TAML
<ImageAsset AssetName="{{texture.trimmedName}}" ImageFile="@assetFile={{texture.fullName}}"> <ImageAsset.Cells> {% for sprite in allSprites %}<Cell Offset="{{sprite.frameRect.x}} {{sprite.frameRect.y}}" Width="{{sprite.frameRect.width}}" Height="{{sprite.frameRect.height}}" /> {% endfor %} </ImageAsset.Cells> </ImageAsset>