I guess the above are your game paths… Here’s how it should be. I’ll comment the changes at the end.
@echo off
set ET_PATH="D:/Games/Enemy Territory/"
set Q3MAP_PATH="D:/Games/Enemy Territory/etmain/maps/q3map/q3map_2.5.13_win32_x86/q3map2.exe"
set MAP_PATH="D:/Games/Enemy Territory/etmain/maps/islandfull 2/islandfull.map"
set GEN_OPTIONS=-fs_basepath %ET_PATH% -game et
%Q3MAP_PATH% -meta -mv 1024 -mi 6144 %GEN_OPTIONS% -v %MAP_PATH% > compiled.txt
Rem %Q3MAP_PATH% -vis -saveprt %GEN_OPTIONS% %MAP_PATH% >> compiled.txt
Rem %Q3MAP_PATH% -light -fast -samples 2 -filter -bounce 8 -external -lightmapsize 256 %GEN_OPTIONS% -v %MAP_PATH% >> compiled.txt
REM %Q3MAP_PATH% -light -fast -samples 2 -filter -patchshadows -external -lightmapsize 256 -approx 8 %GEN_OPTIONS% -v %MAP_PATH%
REM >> compiled.txt
REM pause
You needed to terminate the ET_PATH with a /
If you put REM in front of each line… They won’t be run. You need to have at least one without a REM.
%Q3MAP_PATH% -meta -mv 1024 -mi 6144 %GEN_OPTIONS% -v %MAP_PATH% > compiled.txt will do a quick -meta compile and dump the content of the compile in a text file named compiled.txt (which you can open after to see if you had errors or whatnot.
%Q3MAP_PATH% -vis -saveprt %GEN_OPTIONS% %MAP_PATH% >> compiled.txt is the vis part of compile and will append the text compiling into compiled.txt.
%Q3MAP_PATH% -light -fast -samples 2 -filter -bounce 8 -external -lightmapsize 256 %GEN_OPTIONS% -v %MAP_PATH% >> compiled.txt is a LONG light compile. Again it will append the compiling into compiled.txt
%Q3MAP_PATH% -light -fast -samples 2 -filter -patchshadows -external -lightmapsize 256 -approx 8 %GEN_OPTIONS% -v %MAP_PATH% another light compile that will take even longer than the previous. NOTE that one OR the other of the last two have to be used. Not both!
Now, how do you make it work?
Let’s say you want to run a fast compile to see how things look structurally. Open the .bat file and leave the REM at the start of the vis and light compile and remove it from the -meta one.
if you want to compile everything from structure brushes to lights, you remove all the REM in front of each %Q3MAP_PATH% except one of the light compile. Rememer, results may not be what you expect if you run light phase twice…
Last note. If you want to see the results on the screen instead of being dumped into compiled.txt remove the > compiled.txt and >> compiled.txt. It will do just that BUT at least remove the REM before the last line (pause) so the window will not close when it’s done and you’ll see if there was any errors.