Jump to content
The Dark Mod Forums

Exporting ASE to TDM


Constantine

Recommended Posts

Some time ago I wrote a small program to process ASE files. It automalically corrects strings after the BITMAP keyword, for example:

 

*BITMAP "D:\Games\doom3\darkmod\textures\darkmod\some_folder\some_texture.tga"

 

is replaced by

 

*BITMAP "\\base\textures\darkmod\some_folder\some_texture"

 

DDS paths are also processed correctly.

See http://wiki.thedarkmod.com/index.php/...Paths_in_Models for details.

 

You can download the program here:

http://hedonism.nm.ru/programs/ase_process...DarkRadiant.zip

 

Usage: type ASE2DarkRadiant <modelname> in the command line.

 

For the convenience, I added this command to the context menu for ASE files.

http://hedonism.nm.ru/programs/ase_process...ase_export3.png

 

And now, when I need to export a model, I first, hm, export it:

http://hedonism.nm.ru/programs/ase_process...ase_export1.png

 

And then I choose Export command again and do so:

http://hedonism.nm.ru/programs/ase_process...ase_export2.png

... and then click Cancel.

Link to comment
Share on other sites

  • 3 weeks later...

There is also this script I wrote for use on Linux (may work on Windows with ActivePython, but I have never tried it).

 

http://wiki.thedarkmod.com/index.php/InstallASEScript

 

It employs a separate texture mapping file which tells the script which BITMAP lines to change into which textures (because I create a lot of models using stock TDM textures, and want to switch the BITMAP line into a standard material shader).

Link to comment
Share on other sites

Looks handy but will it show english text on my machine? (I suppose it will)

 

Guessing which buttons to hit would suck.

 

It's only command line utility. It doesn't display any messages except "Failed to open ASE file" :)

The screenshots I made illustrate how to setup Windows context menu for running this utility. Unfortunately, I have no English Windows on my PC, so I made these pics in Russian Windows. :)

Link to comment
Share on other sites

  • 11 months later...

I bet people would definitely find that useful, please do.

 

I wrote it as an exercise in D programming.

Yay, another D programmer. :)

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

Binary:

http://hedonism.nm.r...roc/ASEProc.zip

 

Source and tools:

http://hedonism.nm.r...%20tools%29.zip

 

 

Installation:

- unpack ASEProc folder

- edit aseproc.ini to select folders you want to process

- run aseproc.exe. The icon must be displayed in the tray

- run your 3D editor and do ASE export. The balloon message "ASE file processed" must be displayed

 

 

INI editing notes:

- don't break the numeration of entries (it must start with 0 and remain unbroken)

- you can specify a comment (a string after *COMMENT keyword in ase file) in the [Common] section

- NEVER specify the whole darkmod folder or, for example, darkmod/models folder in some entry. Specify only particular folders you currently work in.

 

 

 

Other notes:

- "As is"

- Windows only

- GUI is undone (edit aseproc.ini to change settings)

- written in D language http://www.digitalma...om/d/index.html

- when you update an existing ase file, you can see an error balloon message shortly before the success message is displayed. This occurs due to that ReadDirectoryChangesW winapi function triggers twise in this case - when saving starts and when it ends. Don't pay attention to this.

 

 

Used tools:

- DMD 1.033* with Tango 0.99.7

http://dsource.org/projects/tango/

- DFL 0.9.8

http://www.dprogramming.com/dfl.php

- kbogert's patch for DFL to display balloon tooltips

http://dsource.org/f...opic.php?t=1601

- Poseidon 0.272 (or 0.274?)

http://www.dsource.o...ojects/poseidon

- Entice Designer 0.8.5.02

http://www.dprogramming.com/entice.php

 

*kernel32.lib from DMD 1.047 used

 

 

Disclaimer:

This is my first program in D language and my first multithreading program. The program is provided "as is", without any warranties. Use it at your own risk.

 

The supplied source code is not D programming manual :)

 

 

 

Yay, another D programmer. :)

There are many D programmers here? :)

Link to comment
Share on other sites

Well, as far as I know there are two. Now that you've started, that is. :D

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 5 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
×
×
  • Create New...