Jump to content

PDN bulk updater


Recommended Posts

Hello, I have a question I was hoping someone could help me with.  Apologies in advance if this is the wrong place to ask, but I'm assuming this falls under general plugin troubleshooting.

 

I'm trying to use the Command Line version of PDNBulkUpdater to convert a number of files to .dds format.  Paint.NET has a number of compression options that help lead to a superior quality result, and the bulk converter allows you to use the /ft command to set filetype specific options.  For example,  >PDNBulkUpdaterCmd test01.png /oft:dds /ft:dds:GenerateMipMaps:true creates a dds file with mipmaps included.  ...GenerateMipMaps:false creates one without.

 

My problem is several of the options are "StaticListChoiceProperty", and I have no way of finding out what the proper commands for these options are.  Ideally I would want to set FileFormat (DXT1 or DXT5 based on alpha usage, for example) and CompressorType; I have been unable to set either.

 

As a test, I tried to output a tga file setting the BitDepth (which also uses a StaticListChoiceProperty).  I tried a number of options, including 24, "24", 24_bit, 24-bit, "24 bit", and 0.  All were refused.

 

The specific error message I get (using the tga attempt as an example) is as follows: "Error: '0' is an invalid value for property 'bitdepth' in file type '.tga'", with '0' being replaced by my current attempt.

 

I'm assuming there's some sort of standardized nomenclature I should be using but I've had no luck finding it.  If anyone could tell me what I should be doing to set the dds file generation options, or point me in the direction of documentation to that effect, I'd be very grateful!

Link to comment
Share on other sites

I'll try to make sure you're in the right place; I'm not familiar with the bulk uploader.  Are you trying to create a plugin?

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

I'll try to make sure you're in the right place; I'm not familiar with the bulk uploader.  Are you trying to create a plugin?

No, just trying to make a batch file using the command line controller that the bulk updater came with.  I glanced at the updater's code and it seems to pass along "PaintDotNet.PropertySystem.StaticListChoiceProperty" for the aforementioned StaticListChoiceProperty entries, but I have no way of seeing what actual lists a .dds file's options are composed of.  A true/false statement, for comparison, is passed along using "PaintDotNet.PropertySystem.BooleanProperty".

 

The bulk updater is from http://pdnbulkupdater.codeplex.com/, which has the source code visable.

Edited by ReluctantRobot
Link to comment
Share on other sites

Hmm.  That doesn't seem to be a plugin that someone on the forum is developing or anything officially connected with Paint.NET.  You'll probably have to contact Corillian, who seems to be the developer of that project.

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

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...