Q3A: linux bash scripts for q3a mappers

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
dichtfux
Posts: 571
Joined: Thu Feb 02, 2006 10:51 pm

Q3A: linux bash scripts for q3a mappers

Post by dichtfux »

I've written some bash shell scripts that automate a few tasks for q3a mappers. Maybe they'll help someone else, too so here they are.

They are available from my website or from this direct link.

detailed usage info is included in the mapping/USAGE file, overview (taken from that file):

some words on the individual scripts and what they do for you
--------------------------------------------------------------

- backupmap ('./backupmap <mapname>'):
will write copies of your map and pk3 files of <mapname> to a
backupdir (defaults to '.backup/', note the dot!) and append the
current date and time to the filenames

- genbots ('./genbots <mapname>'):
will generate a botfile (.aas) for your map (needs bsp-file of course)

- makepk3 ('./makepk3 <mapname>'):
will generate a pk3 file of the directory structure for your map

- makemap ('./makemap <mapname>'):
will NOT auto-build a map in radiant for you, sorry ;-). will however
use the .map-file to compile .bsp and then run the 'genbots' and 'makepk3'
scripts for you (thus depends on them of course).

- renamemap ('./renamemap <mapname> <newmapname>'):
will copy various files of your map to match the new mapname.
could need some improvements, see the file for details.

- rmunusedtex ('./rmunusedtex <mapname> <dir> [<delete>]'):
will remove textures that are not used by the specified mapfile and
reside in <dir>. won't delete anything but print infos on the texture usage
only unless you set <delete> to 'yes'. will make a backup of the
whole <dir> prior to deleting stuff to $BACKUPDIR (defaults to $HOME).

- testmodmap ('./testmodmap <map> <mod>'):
will run your map file (bsp in baseq3/maps/ or pk3 in baseq3/) in <mod>.
will set 'sv_pure 0' and run your special map testing q3config if any.


see USAGE and the scripts for more info. use at your own risk, see USAGE.
[color=#FFFFFF][url=http://maps.rcmd.org]my FPS maps[/url][/color]
Post Reply