• Editor
  • Export as PNG always appends .atlas.txt

Howdy, I'm trying to export a texture atlas as PNG. It's all working, but for some reason the output png always adds .atlas.txt to the filename. It ends up as output.atlas.txt.png. I try to remove it from the "Output File" path but it always adds it back. This is happening on 4.3.35-beta and 4.2.43.

Clip of me trying to rename the output file

My settings:

Related Discussions
...

When exporting a texture atlas as PNG, the issue of the filename appending .atlas.txt can occur if the extension is not correctly set in the export settings. To resolve this, ensure that the "Output file" property is set without the .atlas.txt extension. You can specify the output path as your/output/dir/name without any extension, and the correct extension will be appended automatically. If the extension is set to .atlas.txt in the settings, it will append this to the filename, resulting in output.atlas.txt.png. Adjusting the settings to remove the .atlas.txt extension should fix the issue.

  • angrytomato ответили на это сообщение.

    Spinebot To follow-up on the bot, I am trying to remove .atlas.txt from the ouput file property but, as seen in the video, it gets added back automatically. Unsure why

    Alright, as is tradition, I solved the problem by poking around my settings some more. It seems like the Texture Packer settings affect the Export Settings. Anything I put in its "atlas extension" property gets copied over to the "export PNG" output file. This seems like a bug. Clearing it out fixes my issue, however

    • Misaki ответили на это сообщение.
      • Изменено

      angrytomato Sorry for the confusion. When the Texture atlas option is enabled in the PNG export settings, the name displayed in the Output file field should be the name of the atlas file, so it is expected behavior that the extension of the atlas file specified in the Texture Packer settings is appended. Furthermore, the Texture Packer settings are shared with those used when you launch the texture packer individually, as you mentioned. This design allows users to perform texture packing without copying the same settings from previously used settings.

      So why does the name of the atlas file appear in the Output file field? This is common behavior when packing textures. The name of the texture atlas page is not unified because, when multiple pages exist, a numerical suffix is added, or a custom suffix is added based on the settings in the Suffix field of the texture packer settings. Conversely, atlas files are always exported as a single file. Therefore, users can only name the atlas file.

      If the file is output as a png file named “output.atlas.txt.png” as you described, then I think it is definitely a bug, but I did not get that result when I tested it. In other words, the following files were exported:

      • output.atlas.txt
      • output.png

      If you did not get these results and the file named "output.atlas.txt.png" was indeed exported, I would appreciate it if you could share a video recording of the steps you took.