Autowad

taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
edited June 2004 in Mapping Forum
<div class="IPBDescription">another new map tool</div> <span style='color:red'><b>News</b></span>
6/12/2004: fixed a bug in the .MAP handling routines that was corrupting point entity coordinates when writing the new .MAP file

Current Version
0.9 beta 2: (6/12/2004) bugfix

OVERVIEW

I was sick of seeing that 8-wad warning all the time, so I wrote autowad to make it go away. Basically, it assembles all the textures that are used in a map into a custom wad file, except textures which are available in a set of 'allowed' wads which are specified on the command line: for example, 'halflife.wad' is assumed to be available, as is 'ns.wad' and 'ns2.wad' in the case of Natural-Selection. When processing a map, autowad will index the set of 'allowed' wads and ignore any textures that are available there; it will then index all of the wads referenced in the map's "wad" keyvalue, which is set by VHE, HLFix, or whatever tool you use to export the map file (autowad does not operate on .RMF files). Any textures used in the map which are available in one of these other wads are copied and extracted into a new wad file. By default, the new wad file will be named after the map - if you run autowad on 'mymap.map', it will output 'mymap.wad' - but you may override the output name with the '-output' switch.

This allows you to specify as many wads as you want in your editor and use them all at will; when the map passes through autowad at compile time (I suggest doing this just before CSG), it will determine which textures your map needs to supply on its own and assemble those into a new custom wad file automatically. If you like to use textures from several expansion wads, this saves you the trouble of either distributing entire copies of the expansion wads with your map, or manually extracting them into your own custom wad.


USAGE

autowad [-allow <files>] [-noNewMap] [-listOnly] [-output <wad>] <map>
-allow <files>: assume that textures in these WADs will be available
-output <file>: generate custom WAD <file> (deafult='mapname.wad')
-noNewMap: don't modify the MAP file
-listOnly: only report required textures, don't generate WAD
<map>: a .MAP file to process
-?: help screen
You must specify at least a map file to process, as in 'autowad mymap.map'
or 'autowad mymap' (if autowad cannot find the map specified it will try
appending '.map'). autowad will then index all wads referenced in the map,
as well as all wads specified on the command line with the '-allow' switch,
as in as in 'autowad mymap -allow wad1.wad wad2.wad'. Any textures used by
the map which are not found in the 'allowed' wads will be collected and
exported to a custom wad; if the map is 'mymap.map', autowad will write
'mymap.wad'. You may specify a different filename to write with the '-output'
switch, as in 'autowad mymap -allow wad1.wad was2.wad -output mywad.wad'.
You may also skip the wad-output stage and instead print a list of used
textures with the '-listOnly' switch, as in 'autowad mymap -listOnly'; this
switch makes the '-output' switch irrelevant. By default, when autowad
generates its custom wad file, it also modifies the original map file's wad
reference to include only the new custom wad and the specified 'allowed'
wads; you may skip this step with the '-noNewMap' switch.


BATCH COMPILER

Enclosed in the zip file is the executable, this readme, and a spec file for Nem's Batch Compiler. It is a modification of the HLFix/OptPlns/XP-Cagey-tools specification available on the Natural-Selection forums which includes autowad in the compile chain, between Map-Backup and HLCSG. If you already use the HLFix/OptPlns/etc specification, you should have no trouble porting over to this spec; I believe all the settings for the other compile tools will transfer automatically (but you'll have to re-save your presets with the new spec). I suggest 'allow'ing ns.wad, ns2.wad, halflife.wad, liquids.wad and zhlt.wad, but you can experiment with the options to your liking.


CHANGELOG

0.9b2: Found and fixed a bug in the .MAP generation routines that caused autowad to strip the Y and Z coordinate values from the "origin" field of point entities. The malformed coordinates that autowad was saving caused all point entities to be compiled as if they were placed at the origin.

0.9b1: Initial release.


DOWNLOAD
<a href='http://cs.wisc.edu/~frase/ns/files/autowad09b2.zip' target='_blank'>autowad09b2.zip</a>

Comments

  • KungFuSquirrelKungFuSquirrel Basher of Muttons Join Date: 2002-01-26 Member: 103Members, NS1 Playtester, Contributor
    Is wad.cfg really that difficult to use? <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
    edited April 2004
    wad.cfg and autowad sort of address different issues; if you like to compile all your textures into the bsp, then I don't think autowad is of much use to you, since (I presume - I generally don't compile textures into my bsps) the tools are smart enough to only include those textures your map actually uses into the bsp. But if you'd prefer to keep your wads outside the bsp (like me), and want to cut down on file size, autowad can automate the process of picking the textures you need out of your custom wads and combining them into your own custom wad to distribute.

    For example, I've got every custom NS wad I could find in my Hammer/wads folder - ven_ns, c14, ns_remix, ns_wad, v_wad, and half a dozen other wads I got at the Wadfather and elsewhere; I don't want to distribute entire copies of all of these custom wads with my map, since I'm only using one or two textures out of each one. autowad makes it easy to extract those one or two textures from each file and combine them into one file which contains only textures I actually need, which I can then distribute with my map.

    Also, wad.cfg is really that difficult to use. For lazy people. Like me. *blink*

    <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
  • BlackPantherBlackPanther Join Date: 2002-02-11 Member: 197Members
    For NS_democles, i basically made my own .wad from the ground up.

    So should every mapper. Keeps things organized and easier to set up in the long run. i've used many textures from the Ns.wad and other official NS texture files, but all of them were edited somewhat for my map to give it a unique feel.
  • oOTOooOTOo Join Date: 2003-04-11 Member: 15401Members
    excellent idea. i'll test this soon. will be helpfull because i'm a disorganized person end i appreciate everything that allow to organize things. and it could help for the visual selection of textures (i mean that i will know <u>visually</u> which textures are used at the moment). Thx !
  • taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
    found and fixed a bug; 0.9 beta 2 released, details in the first post
  • DarkSeraphDarkSeraph Join Date: 2004-06-07 Member: 29174Members
    <!--QuoteBegin-BlackPanther+Apr 30 2004, 02:06 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (BlackPanther @ Apr 30 2004, 02:06 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> For NS_democles, i basically made my own .wad from the ground up.

    So should every mapper. Keeps things organized and easier to set up in the long run. i've used many textures from the Ns.wad and other official NS texture files, but all of them were edited somewhat for my map to give it a unique feel. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    agreed. that and most textures should be changed for most good maps.
  • BlackPlagueBlackPlague Join Date: 2004-02-02 Member: 25990Banned
    i hate your programs. sorry to say, but they suck... i mean they have good use for other people, but how about making an exe that has options like "wad" >> list >> add>remove>edit" using cmd is a little to confusing with all your damn add- remove- fckme- and all of those other things... i dun mean to flame, but just do somethin about it
  • brute_forcebrute_force Join Date: 2003-10-04 Member: 21433Members, Constellation
    <!--QuoteBegin-BlackPlague+Jun 12 2004, 09:04 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (BlackPlague @ Jun 12 2004, 09:04 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> i hate your programs. sorry to say, but they suck... i mean they have good use for other people, but how about making an exe that has options like "wad" >> list >> add>remove>edit" using cmd is a little to confusing with all your damn add- remove- fckme- and all of those other things... i dun mean to flame, but just do somethin about it <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    This is meant to easily be added to your batch file. Personally, I prefer an automated process rather than having to open some program and click a bunch of stuff.
  • ZyndromeZyndrome Join Date: 2003-03-28 Member: 14974Members
    <!--QuoteBegin-ShdwStal+Jun 12 2004, 03:13 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ShdwStal @ Jun 12 2004, 03:13 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-BlackPlague+Jun 12 2004, 09:04 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (BlackPlague @ Jun 12 2004, 09:04 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> i hate your programs. sorry to say, but they suck... i mean they have good use for other people, but how about making an exe that has options like "wad" >> list >> add>remove>edit"    using cmd is a little to confusing with all your damn add- remove- fckme- and all of those other things... i dun mean to flame, but just do somethin about it <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    This is meant to easily be added to your batch file. Personally, I prefer an automated process rather than having to open some program and click a bunch of stuff. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Batch-compile wins! <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html//emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif' /><!--endemo-->
    </offtopic>
  • taledentaleden Join Date: 2003-04-06 Member: 15252Members, Constellation
    <!--QuoteBegin-BlackPlague+Jun 12 2004, 03:04 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (BlackPlague @ Jun 12 2004, 03:04 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->i hate your programs. sorry to say, but they suck...<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    Good for you. Don't use them.

    <!--QuoteBegin-BlackPlague+Jun 12 2004, 03:04 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (BlackPlague @ Jun 12 2004, 03:04 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->i dun mean to flame<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    I'm not offended that you don't find autowad useful.. frankly, I could care less, because I didn't write it for you. But it does irk me when people think they can just add "this is not a flame" to a flame and think it magically makes it not a flame. At least have the decency to call it what it is.

    If you feel the need to offer further unsolicited commentary on anything of mine, feel free to PM me instead of cluttering up my thread.
Sign In or Register to comment.