Jump to content

TXTR FileType (Latest v1.2.0 2022-2-14)


xchellx
 Share

Recommended Posts

Summery:

This is a plugin that allows opening of the TXTR file format found in the Metroid Prime series of games. It supports all texture types of the format and allows for saving and loading the format.

 

Features:

  • Supports loading and saving every type of texture
  • Automatically handles pixel coordinate flipping
  • Supports mipmap loading and generation

 

Note(s):

There is a bug where saving the format does not show the saved mipmaps as layers. This is because the format doesn't support Paint.NET's layers (it only reads the first layer) and for mipmaps it generates them automatically. So, when saving, Paint.NET will ask to flatten the image which if the saved texture has mipmaps then the saved result wont show the mipmaps as layers. Re-opening the file fixes this issue.

 

Download:

TXTRFileType.7z

 

Changelog:

v1.2.0
Updated the save UI, it now reacts to dark theme more accurately.
Seperated the mipmap size limit to a width and height limit (also in save UI).
Updated the codebasea a lot. See the github for more information.
Added dialog choice at load to ask if to load all mipmaps or just the first mipmap

v1.1.0
Defaults button fixed. Added setting to limit mipmap count by size limit.

v1.0.1
Fixed certain MP2 TXTRs causing a crash.

v1.0.0
Initial stable release.

 

Source Code:

https://github.com/xchellx/TXTRFileType

Edited by xchellx
Plugin update
Link to comment
Share on other sites

@xchellx, because you're bundling a .deps.json and some shared libraries (e.g. ImageSharp), you need to make sure your plugin gets installed into its own directory. Otherwise another plugin could come along that overwrites your DLLs, or vice versa, and lots of things can break.

 

Should be as simple as redoing your ZIP file so all the files are inside of a folder.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

  • xchellx changed the title to TXTR FileType (Latest v1.2.0 2022-2-14)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...