Tale Posted August 28, 2014 Share Posted August 28, 2014 Hi Everyone, I am an indie game developer working on a 2D game for my thesis, which will require a custom engine. I really enjoy Paint.NET, so I wanted to know if there was a way I could use it as a kind of world layout tool. I want to use layers to create a level of the game world in Paint.NET, then access the .pdn to parse the file into something my game can later load at run-time. In short, is there a way for me to parse a .pdn file to find out image and layer information? If so, what information would I find available? I am using Python (but can use C) if that matters. Thanks! ~Lucas Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted August 28, 2014 Share Posted August 28, 2014 I hate to disappoint, but I don't see that happening. I could be wrong. You may want to wait to hear it from the horse's mouth. As far as I know....When Rick created the .pdn, he didn't reinvent the wheel. He simple let the .Net Framework handle certain things. I think it's very unlikely that you'll be able to reverse-engineer it, without also reverse-engineering parts of .Net (or using Mono as a dependency). Even third-party .pdn viewers, like IrfanView, are only able to read the embedded png preview and not the different layers. It's been years since I listened to this, but from what I remember, Rick goes into some of the minor details of the .pdn format.... http://www.dotnetrocks.com/default.aspx?showNum=229 Hope that helps. TL;DR... Make your life easier and use a different format for your game. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
midora Posted August 28, 2014 Share Posted August 28, 2014 Even third-party .pdn viewers, like IrfanView, are only able to read the embedded png preview and not the different layers. You are wrong. The Irfanview plugin can read and show all individual layers and create the composite image in full resolution with alpha channel. You are right. The Irfanview plugin uses an embedded deserializer (written in C) to extract layer and metadata informations. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted August 28, 2014 Share Posted August 28, 2014 You are wrong. The Irfanview plugin can read and show all individual layers and create the composite image in full resolution with alpha channel. Well what do you know. I stand corrected. I didn't remember it being able to show individual layers. I haven't used it in a number of years Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
BoltBait Posted August 28, 2014 Share Posted August 28, 2014 You would probably be better off writing a custom file format plugin. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Rick Brewster Posted August 28, 2014 Share Posted August 28, 2014 You would probably be better off writing a custom file format plugin. This. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Tale Posted August 28, 2014 Author Share Posted August 28, 2014 Ok, thanks everyone Quote Link to comment Share on other sites More sharing options...
Zagna Posted August 28, 2014 Share Posted August 28, 2014 How about OpenRaster Filetype Since bunch of .ora stuff use Python like this for example, so maybe it could be easyish? Quote Link to comment Share on other sites More sharing options...
Tale Posted August 29, 2014 Author Share Posted August 29, 2014 That might work really well actually. I can probably tweak that in one way or another Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.