User Tools

Site Tools


modding:dd_direc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
modding:dd_direc [2017-03-20 21:33]
skyjake
modding:dd_direc [2017-03-20 21:33] (current)
skyjake [Wadtool]
Line 1: Line 1:
 +====== DD_DIREC lump ======
 +
 +
 +//​DD_DIREC//​ is a special lump recognised only by Doomsday. It contains a table that translates file paths to lump names. An example is shown below:
 +
 +<​code>​FILE001 ​ /​Md2/​jDoom/​Some.md2
 +FILE002 ​ Another.ded
 +</​code>​
 +Using DD_DIREC it is possible to include **any** files that Doomsday supports inside a WAD. For instance models and hires textures can be placed inside a WAD. There is one exception to that - Demos (which are compressed with the LZSS library) **must** always be loaded from real files.
 +
 +Each line in DD_DIREC contains a lump/path pair. The paths that begin with a (back)slash are interpreted as paths that start from the Doomsday base directory (set with //​-basedir//;​ e.g. **C:​\Doomsday**) and paths that don't begin with a (back)slash are located in the [[runtime_directory]]. The engine will first search the DD_DIRECs before opening any file for reading.
 +
 +
 +===== Wadtool =====
 +
 +
 +Wadtool is a simple utility for automatically creating a WAD file that contains the current directory and all its subdirectories plus a DD_DIREC lump that has (with a high probability) a unique lump name for each file. You could invoke the utility like this:
 +
 +<​code>​wadtool myfiles.wad /​Data/​jDoom/​Textures/​
 +</​code>​
 +This would create a WAD file that contains all the files from the current directory. When writing the DD_DIREC table, the prefix "/​Data/​jDoom/​Textures/"​ would be added to each file name. 
 +
 +
 +
 +
 +
  
modding/dd_direc.txt ยท Last modified: 2017-03-20 21:33 by skyjake