| Author |
Message |
Emon Ree-Yees
Joined: 10 Aug 2007
|
Posted: Mar 17, 2009 22:55 Post subject: .NET library for working with Dark Forces file formats |
|
|
I've started work on a .NET library for working with DF file formats. The goal is to make it easier to write tools that manipulate these files, especially the binary formats.
Thanks to DarkXL, the community is going through somewhat of a revival. Although many editors will create content in newer formats supported by DarkXL, there will still be a lot of legacy content, and having newer, updated tools to work with them could be a great asset.
I want to see if there's enough interest in the community for me to continue working on this. I need to know if there are people in the community willing to write tools using my library.
If there IS interest, I'd like to know what formats are in most need of support. As of now, there's support for LFD and GOB containers. I also threw in PAL and PLTT because they were pretty easy.
|
|
The MAZZTer Death Star

Joined: 25 Sep 2003
|
Posted: Mar 18, 2009 01:15 Post subject: |
|
|
I wrote my own .NET classes to load levels. Loads LVL, MSG, LEV, O, INF, and GOL files.
Also I have a control for rendering level geometry like WDFUSE does.
You can have 'em if you want.
[Edit: I KNEW I already posted a reply!]
_________________ http://www.mzzt.net/ | I am a respectable admin with a respectable sig. |
|
Emon Ree-Yees
Joined: 10 Aug 2007
|
Posted: Mar 19, 2009 08:00 Post subject: |
|
|
Wouldn't hurt to take a look.
Didn't you write them in VB though? :barf:
|
|
The MAZZTer Death Star

Joined: 25 Sep 2003
|
|
Emon Ree-Yees
Joined: 10 Aug 2007
|
Posted: Mar 20, 2009 11:54 Post subject: |
|
|
Woot, I added BM support. I can convert BMs to any format supported by System.Drawing.Bitmap. That includes BMP, JPEG, TIFF, PNG and others.
|
|
The MAZZTer Death Star

Joined: 25 Sep 2003
|
Posted: Mar 20, 2009 14:55 Post subject: |
|
|
BONUS POINTS: Make it low level (using Bitmap.LockBitmap and Bitmap.UnlockBitmap to directly set pixel colors when loading them from a BM) so it's FAST.
BTW you can use SharpDevelop to automatically convert my code to C#. Load the project, and there's a right click option in the project manager to convert all the files to C# (or you can convert one at a time). Then fix any compile errors caused by the conversion, test to look for runtime/logic errors, and you've got C#!
_________________ http://www.mzzt.net/ | I am a respectable admin with a respectable sig. |
|
Emon Ree-Yees
Joined: 10 Aug 2007
|
Posted: Mar 23, 2009 15:37 Post subject: |
|
|
I'm just using the constructor of the Bitmap class that takes an IntPtr to the bitmap data. I'm not entirely concerned about speed since any modern computer could tear through hundreds of conversions without missing a beat.
|
|
|