Ok after reading up on a few posts that had .bat files, i finally created my very own .bat file (crom copy/paste of others files w/o permission :bash: ). Now when i run it and the map say … has a leak… for instance (not that my maps would though
) … hehe… anyway on to the .bat file
@echo off
set bsp_var= -meta -threads 1 -leaktest
set vis_var= -vis -saveprt
set light_var= -light -filter -thresh 0.2 -super 2 -samples 2
set q_path=c:/Quake3
set map_path=c:/Quake3/baseq3/maps/%1.map
set q3map_path=c:/Quake3/q3map2.exe
set gen_options= -fs_basepath %q_path% -v
::run the Bsp process
%q3map_path% %bsp_var% %gen_options% %map_path%
::wait for leak check, there should be a better way of doing this, but it works
Echo Is there a Leak?
pause
::run Vis process
%q3map_path% %vis_var% %gen_options% %map_path%
::lets light this sucker up
%q3map_path% %light_var% %gen_options% %map_path%
pause
now if you notice my comments about the ‘leak check’ and about a better way of doing this… i read somewhere about there being an ‘If Exist’ command but i also read about it not working in WinXP… is there a way of haulting the process if the compiler detects the .lin file or is it the .prt file… anyway thats my problem.
One more thing, is it at all possible to have q3 run after the compile process is completed? err… I can get Q3 to run after its done, but it just opens up to the main menu… i want to start inside my map.
IF this is the wrong place to post this, ill gladly move it to a more suitable location, since the .bat file communicates w/ q3map2, my first thought was to post this here
V^2
