fraggle
Super Moderator

Posts: 4177
Registered: 07-00 |
You need to install deutex. This lets you build WAD files automatically from a script. To do this, you put the files to include in subdirectories, eg. graphics/ for graphics, levels/ for levels, etc. You then create a configuration file, usually named something like "wadinfo.txt".
You can see the freedoom wadinfo.txt file here. Because Freedoom has several different WADs (IWAD, Shareware WAD, resource WADs, etc), this is actually automatically generated by scripts from this file. Effectively what the script does is:
- Selects the appropriate configuration for the WAD being built - for a DOOM2 build, the DOOM1 levels are not included, for example. This is done with the #define and #ifdef statements you can see in the file.
- Deals with resources which havent been submitted yet. For example, MAP04 has not been submitted yet: you can see it is commented out in the generated wadinfo.txt.
For the wadinfo.txt used to generate the IWAD, "dummy" resources are inserted instead, so a tiny level containing only a room with an exit is inserted. This makes the WAD fully usable even though not everything is available yet.
- When generating wadinfo.txt for latest.wad, the script looks at the modification times of the files and only includes the resources which have been added since the last release.
Finally, the Makefile performs the process of actually running deutex for each WAD to build them all.
You probably neither need nor want to go to the trouble that I have gone to in building freedoom. Deutex by itself is fairly straightforward to use and there is a good manual. I'd highly recommend it for building large WAD files. If you have any questions about using it, please ask.
|