Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 03-19-2009, 10:06 AM   #1
Parkar

Parkar's Avatar
Lightbulb Graphical .def file tool?
While waiting for a platform to compile at work I thought crossed my mind. Wouldn't it be kinda neat to have a graphical tool to edit the def files.

Not sure if I will ever get the time to make it but I thought I should throw the idea out there to see what kind of interest there is. Possibly it could inspire someone else to make it or somthing like it even if I never get around to it.

What I am thinking is it would work something like this:

It would show you a tree view of the def files starting from the duke3d.def file.

Under each file you get all the defined replacements.

For each replacement you can view the defined tokens in a proerty grid kinda fashion. It would also let you use file browsing, drag and drop of files to assign them as skin, textre detail etc. Could have it launch tools to edit the textures and models.

As far as possible it should retain comments so saving won't completly destroy manualy edited files.

Adding new tokens that it should understand could be as easy as updating a properties file defined using xml or some format similar to how the def files look.

Reading art files to show current and new texture could be possible as well.

I guess it could even be extended to suport editing maphacks and any other possible future tasks introduced by features in eduke32.

Making this tool should be pretty straight forward using java, C# or something similar where you don't have to worry to much about writing a bunch of gui code while it could be quiet a time/tedious file editing saver.

So any thoughts or sugestions?
Parkar is offline  
Old 03-19-2009, 10:26 AM   #2
TerminX

TerminX's Avatar
Re: Graphical .def file tool?
Some kind of "mass import" tool would be a very useful feature for it to have. Throw a bunch of textures into a directory, key in a starting tile number and have it automatically generate dummytile entries and the texture defs.
TerminX is offline  
Old 03-19-2009, 10:53 AM   #3
Parkar

Parkar's Avatar
Re: Graphical .def file tool?
Yea, adding batch commands like that could really save some time. A tool that looks for unreferenced files would be useful as well.

Another cool feature which would be a bit more work is making it capable of calculating the scale values that would make a model the same dimensions as the sprite. Not to mention visual representation of tints.

I wish I had the time to just sit down and start making it right away. Working on these kind of tools is usualy pretty fun.
Parkar is offline  
Old 03-19-2009, 10:20 PM   #4
Usurper

Usurper's Avatar
Re: Graphical .def file tool?
I'd like support for animtilerange with animation preview.
__________________
Meadhall of the Comitatus | RTCM
Usurper is offline  
Old 03-20-2009, 02:42 AM   #5
Qbix
DOSBox Advisor

Qbix's Avatar
Re: Graphical .def file tool?
sounds like a reasonably fun project to program.
Qbix is offline  
Old 03-20-2009, 03:05 AM   #6
The Commander

The Commander's Avatar
Re: Graphical .def file tool?
Would have been a good tool to have when I had to add over 1000 textures for DTA.
__________________
I Know Everything There Is To Know About Anything.

Duke Nukem Red Alert SVN

Ask Me Anything!
The Commander is offline  
Old 03-20-2009, 08:25 AM   #7
XTHX2

XTHX2's Avatar
Re: Graphical .def file tool?
Quote:
Originally Posted by The Commander View Post
Would have been a good tool to have when I had to add over 1000 textures for DTA.
Same for my case as well...
XTHX2 is offline  
Old 03-25-2009, 03:00 PM   #8
Helixhorned
Re: Graphical .def file tool?
Generating texture definitions from a collection of files and checking for unreferenced files is something that could be done rather easily from the shell (I'm talking Unix shell here, but the basic tools are available as native Windows ones as well)... the two major problems I see here are sorting file names into "natural" order and getting the dimensions of each picture; the latter could be handled with a small standalone program that accepts images in many formats.
I've played around a little and it's reasonably convenient (if you call command-line interfaces convenient, that is, but certainly more convenient than doing it by hand). I could post the commands if anyone's interested.
__________________
BuildScript, a scripting language for Mapster32
Release 4 * R4 Source * README * other stuff
Helixhorned is offline  
Old 03-30-2009, 08:38 PM   #9
Hendricks266
Re: Graphical .def file tool?
HUD model view and editing, please...

I second... everything that has been said. Perhaps auto support for texture filenames -> DEFs? Like 1337.png and 1337_2.png make the 1337 pal 0 and pal 2 automatic definitions.
Last edited by Hendricks266; 03-30-2009 at 08:48 PM.
Hendricks266 is offline  
Old 03-30-2009, 08:40 PM   #10
Mr.Fibbles

Mr.Fibbles's Avatar
Re: Graphical .def file tool?
so...what I see here is people adding to a list of features for something no one has volunteered to make. Parkar never said he was making it, just that he wishes he had time to.
Anyway, it is a cool project idea and if it gets done (even just to save time for the HRP compiling team) it would be useful for modders etc.
__________________
http://thaunandshad.com
Mr.Fibbles is offline  
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:24 PM.

Page generated in 0.15120006 seconds (100.00% PHP - 0% MySQL) with 16 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.