Saturday, March 9, 2013

NBT Filter

I'm currently working on helping @Texelelf with a filter... or I at least offered my assistance. He is working on a filter to allow editing of NBT data within MCEdit, and because of version differences, he is making it Windows only for the time being. I'm going to try to port it to Linux and Mac... the major problem? trying to figure out the different pieces of the code and how to change them from a Windows GUI to a Linux and Mac GUI...

As it is now, the preliminary version that Texelelf has let me fiddle with shows the NBT data in a pop-up window as a tree, which in and of itself is mind boggling to me (I'm easily impressed with programs :P) but it relies on the win32api, win32gui, win32con, and winerror libraries that come pre-packaged with MCEdit. Linux and Mac obviously cannot use these libraries, so I need to use different libraries, preferably pre-packaged with MCEdit, that accomplish roughly the same tasks.

If Texelelf and I understand correctly, Linux would use the ALBOW library and Mac would use Appkit library as GUI libraries that are included in MCEdit (ALBOW is actually one of the core libraries that MCEdit uses to display stuff in the window... it has turned to vaporware though, much like a lot of Pygame GUI libraries...). If I can, I think it might be beneficial to figure out another alternative, but using the built-in libraries in MCEdit would be prefered...

I can already tell that this is going to be a challenging project... and one that I hope I have the time and patience to work on... this filter is going to be too awesome to keep Windows only!

EDIT:
Another thing I've been thinking of... one of Sethbling's latest filters, the statuemaker filter, requires a png library that you place into the filters folder... could the same be done with TkInter or wxPython? Hmm...

No comments:

Post a Comment