A Q3map2 batch file.

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
User avatar
Hipshot
Posts: 1548
Joined: Sun Jan 20, 2002 8:00 am

A Q3map2 batch file.

Post by Hipshot »

Created this some two years ago and I know some people wants a good one but can't for various reasons make their own. I think this became pretty good, it lets the user input the map and bounces and it writes a well spaced log file afterwards. It can of course easily be modified too, I have a big one that lets me input everything from samples, gamma, compensate, etc.

Code: Select all

@Echo off
Echo Name of .map file (w/o .map).
set /p Input=
Echo Number of bounces.
set /p Input2=
Echo Carmack is spinning...
Echo ---- START BSP ---- >%Input%.log
Echo. >>%Input%.log
"q3map2.exe" -bsp -meta -samplesize 16 -v "..\baseq3\maps\%Input%.map" >>%Input%.log
Echo. >>%Input%.log
Echo ---- END BSP ---- >>%Input%.log
Echo. >>%Input%.log
Echo. >>%Input%.log
Echo. >>%Input%.log
Echo ---- START VIS ---- >>%Input%.log
Echo. >>%Input%.log
"q3map2.exe" -vis -v -saveprt "..\baseq3\maps\%Input%" >>%Input%.log
Echo. >>%Input%.log
Echo ---- END VIS ---- >>%Input%.log
Echo. >>%Input%.log
Echo. >>%Input%.log
Echo. >>%Input%.log
Echo ---- START RAD ---- >>%Input%.log
Echo. >>%Input%.log
"q3map2.exe" -light -patchshadows -fast -samples 6 -gamma 2.5 -compensate 3 -v -bounce %Input2% "..\baseq3\maps\%Input%" >>%Input%.log
Echo. >>%Input%.log
Echo ---- END RAD ---- >>%Input%.log
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
Post Reply