Tool Yet another PNG to XNB converter

Please help I cont convert folders

I dont quite rember I used the converter & it worked great :) but I did it file by file 4 each terraria texture. But when I tried a folder It just said this is not an xnb file.
 
I dont quite rember I used the converter & it worked great :) but I did it file by file 4 each terraria texture. But when I tried a folder It just said this is not an xnb file.
I convert all files in a folder when i create my texture pack, so that surely works.
Can you tell me how you try it, so that i can reproduce the error?
 
so I open the converter of course :D & then I open "Convert Folder" then I go to my folder named "Textures" & it gives my the error I mentioned earlier
 
so I open the converter of course :D & then I open "Convert Folder" then I go to my folder named "Textures" & it gives my the error I mentioned earlier
Indeed it wasn't working. I updated the github repository with the fixed version, so download again.
Let me know if there are any other issues.
 
Thanks for the program! I used it to replace the Ankh Shield sprite since Texture Packs didn't support replacing it. Also the code was a big help. I hope it's alright that I added it to my own program that combines png_to_xnb, WAVToXNBConverter and TExtract. I'm trying to make a central tool for all resource management features.
 
Thanks for the program! I used it to replace the Ankh Shield sprite since Texture Packs didn't support replacing it. Also the code was a big help. I hope it's alright that I added it to my own program that combines png_to_xnb, WAVToXNBConverter and TExtract. I'm trying to make a central tool for all resource management features.
You are free to use my code as long as your application uses the same license: GPLv3 (instead of the MIT what you currently use). I used some GPL licensed code in my program so i had to use that license, otherwise i would have chosen MIT license, same as you.
Sorry about the hassle, but GPL is quite strict.
 
You are free to use my code as long as your application uses the same license: GPLv3 (instead of the MIT what you currently use). I used some GPL licensed code in my program so i had to use that license, otherwise i would have chosen MIT license, same as you.
Sorry about the hassle, but GPL is quite strict.

Alright thanks, and good catch. Otherwise I wouldn't have noticed that.

But one question, would a multi license not be possible in this situation? Where I license your code as GPL and the rest under their own respective licenses? I'm a little new to dealing with this.
 
Last edited:
Alright thanks, and good catch. Otherwise I wouldn't have noticed that.

But one question, would a multi license not be possible in this situation? Where I license your code as GPL and the rest under their own respective licenses? I'm a little new to dealing with this.
I'm not a lawyer but i think you are not allowed to do that, otherwise what would be the point of having this restriction in GPL.
 
Thanks man. Your Cool. Adobe is not. There jerks. Who make you pay. 2 million dollars. To edit pictures.
 
Can xnb to png?
 
Hey, could you help me? WHat commands do I use, and how? when I try to open the .exe by double-clicking it, I get an error prompt about incorrect parameter. Help!

Nevermind, my antivirus was blocking the application. Thanks for the program!
 
THANK YOU !!!!
 
hey, i'm on mac. is there any application or tool i can use to convert png into an xnb for mac? or do i have to get someone else to do it for me?
 
hey, i'm on mac. is there any application or tool i can use to convert png into an xnb for mac? or do i have to get someone else to do it for me?
I use wine to execute my tool on my macbook. Not the most convenient but it works.
 
thank you so much this absolutely saved my butt, a few sprites somehow disappeared and this tool help me put them back
 
It was fun to create my own png_to_xnb variant. I used an early version of this to create my texture pack. Maybe someone will also find it useful.

Source is here (C#): GitHub - sullerandras/png_to_xnb: Convert PNG files to XNB files
Precompiled exe (17 kB): https://github.com/sullerandras/png_to_xnb/raw/master/png_to_xnb.exe

It is a standalone exe, it should work on any Windows 7 or newer without installing .NET or XNA frameworks. On Mac you need wine or mono to run it.
Note that it supports batch converting via command line arguments. Start it without any command line arguments (e.g. double clicking it) to see a basic GUI.

Also note that the program only handles 8 bits per pixel PNG files. In other words: 16 bits / pixel images will not work properly, you need to convert them to 8 bpp.

This is my first C# project. I used Mono (Xamarin Studio) on a Mac for development.
Nevermind I found a setting to save it as 8bit :P
Hmm, for some reason, after converting, I got white stripes on the picture.
 

Attachments

  • item_24.png
    item_24.png
    749 bytes · Views: 31
  • item_39.png
    item_39.png
    398 bytes · Views: 30
Back
Top Bottom