Jump to content
The Dark Mod Forums

Recommended Posts

Posted

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.

  • 3 weeks later...
Posted

The tutorial is good, but I don't think it is a good idea to link against an article in a restricted section of the forum. ;)

 

Better to copy the content of this posting into the Wiki also.

Gerhard

Posted

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).

Posted
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. :)

  • 11 months later...
Posted

I have a new version of this tool. It tracks changes in selected folder or folders and processes ASE files automatically when you save them:

 

aseproc.png

 

I wrote it as an exercise in D programming.

 

Is someone interested? I can upload it.

Posted

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.
Posted

Definitely interesting. If you like you can use the beta mapper repository to upload the code and binaries.

Posted

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? :)

Posted

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.

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

    • The Black Arrow

      Things have been so bad these days for me...
      Just a year ago, I've been feeling dizzy, I thought it was nothing, today's stress, that type of thing, went to sleep...Still dizzy! 9 more days dizzy, went to doctor (I would have gone on the first day if NOT for the long appointment time)
      Said it may be Neck Dizziness...I did exercises for 6 months, no changes.
      Went to a Physical Therapist, went to another, no changes.
      I've asked my doctor for a full check this time.
      I hated yesteryear so much due to personal reasons, this year might be the same.
      To be brutally honest, I'd rather have cancer or/and chronic pain than suffer dizziness any second longer, especially when nothing helps.
      Hard to enjoy Thief when you're dizzy so I was hoping this year, Winter will be best for me.
      · 2 replies
    • JackFarmer

      Hello mappers and taffers! 

      Are you still out there? It is so calm here these days and I am afraid this is no good sign.
      Proof me wrong, tell your best friend (=me), that you are still here and that you will not go away!
      · 4 replies
    • JackFarmer

      Happy Labour Day, my taffing taffers & hard working mapping friends!
      And remember the poor souls who, within the Inventors’ organization, labor under Jonus’s yoke to ensure the success of that very guild! Always remember the hard workers!
      · 2 replies
    • datiswous

      Is there a script command to make a screenshot?
      I just though it could be interesting to be able to create a screenshot at a certain point in time. Then use that screenshot possibly in a debrief.
      I guess the second question is: Can you use a (in-game made) screenshot in a (debrief) gui?
      · 1 reply
    • Bikerdude  »  Display Cement

      So what type, and what ratio of portland to sand 😏
      · 1 reply
×
×
  • Create New...