DF-21 Forums Forum Index DF-21 Forums
The Dark Forces Community
 
DF-21.net Home | FAQ | Search | Memberlist  | Register 
Profile | Log in to check your private messages | Log in

.NET library for working with Dark Forces file formats

 
Post new topic   Reply to topic    DF-21 Forums Forum Index -> Dark Forces Levels & Editing
View previous topic :: View next topic  
Author Message
Emon
Ree-Yees

Joined: 10 Aug 2007

PostPosted: Mar 17, 2009 22:55    Post subject: .NET library for working with Dark Forces file formats View user's profile Send private message Reply with quote

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
Death Star

Joined: 25 Sep 2003

PostPosted: Mar 18, 2009 01:15    Post subject: View user's profile Send private message Send e-mail Reply with quote

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

PostPosted: Mar 19, 2009 08:00    Post subject: View user's profile Send private message Reply with quote

Wouldn't hurt to take a look.

Didn't you write them in VB though? :barf:

The MAZZTer
Death Star
Death Star

Joined: 25 Sep 2003

PostPosted: Mar 19, 2009 16:04    Post subject: View user's profile Send private message Send e-mail Reply with quote

Yes

http://junk.mzzt.net/LightForces.7z

It has a hardcoded path you'll need to change before it'll do anything interesting.

_________________
http://www.mzzt.net/ | I am a respectable admin with a respectable sig.

Emon
Ree-Yees

Joined: 10 Aug 2007

PostPosted: Mar 20, 2009 11:54    Post subject: View user's profile Send private message Reply with quote

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
Death Star

Joined: 25 Sep 2003

PostPosted: Mar 20, 2009 14:55    Post subject: View user's profile Send private message Send e-mail Reply with quote

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

PostPosted: Mar 23, 2009 15:37    Post subject: View user's profile Send private message Reply with quote

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.

Display posts from previous:   
Post new topic   Reply to topic    DF-21 Forums Forum Index -> Dark Forces Levels & Editing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group