A little help with batch please...


(Sonicwolf) #1

I must be out of my mind to try to edit this to Work with
Star Trek Voyager Elite Force

Could someone edit this to work with that program… Im not good with all this mumbo jumbo editing…

echo off

:paths

set mod_dir=baseq3

set game_path=e:/quake3

set map=%~n1

set map_path=%game_path%/%mod_dir%/maps/%map%

set q3map_path=%game_path%/radiant/q3map2.exe

rem set q3map_path=%game_path%/radiant/q3map.exe

rem set q3map_path=%game_path%/radiant/q3map_ydnar_2.2.0-b14.exe

:bsp

set bsp_var=-verboseentities -leaktest

rem set bsp_var=-meta -verboseentities

rem set bsp_var=-meta -verboseentities -leaktest

rem set bsp_var=-meta -verboseentities -debugportals

rem set bsp_var=-meta -verboseentities -debugsurfaces

rem set bsp_var=-meta -verboseentities -leaktest -notjunc

:vis

set vis_var=-vis -saveprt

rem set vis_var=-vis

rem set vis_var=-vis -saveprt

rem set vis_var=-vis -hint -saveprt

rem set vis_var=-vis -saveprt -nopassage

:light

set light_var=-light -fast

rem set light_var=-light -fast

rem set light_var=-light -fast -bouncegrid

rem set light_var=-light -fast -nogrid -thresh 2

rem set light_var=-light -fast -bouncegrid -border

rem set light_var=-light -fast -bouncegrid -bounce 3

rem set light_var=-light -fast -bouncegrid -debugsurfaces

rem set light_var=-light -fast -bounce 3 -bouncegrid -border

rem set light_var=-light -fast -bouncegrid -bounce 3 -super 2

rem set light_var=-light -fast -bouncegrid -super 4 -shadeangle 35 -thresh .5

rem set light_var=-light -fast -bounce 3 -bouncegrid -super 2 -patchshadows

:really_psycho_light

rem set light_var=-light -fast -bounce 99 -bouncegrid -patchshadows -shadeangle 35 -super 86 -thresh .45

rem set map_path=%1

set gen_options=-game quake3 -fs_basepath %game_path% -fs_game %mod_dir% -v

:end_compile_options

:action

rem goto jump

%q3map_path% %bsp_var% %gen_options% %map_path%

%q3map_path% %vis_var% %gen_options% %map_path%

:jump

%q3map_path% %light_var% %gen_options% %map_path%

:info

%q3map_path% %gen_options% -info %~d1%~p1%~n1.bsp

pause


(Grand Nagus) #2

My batch files are really simple, and they’re designed specifically for Elite Force. These three batch files reside on my Windows desktop.

bsp_2515.bat


@echo off
"E:\Applications\Games\Raven\STVEF\Tools\NewCompiler\q3map_2515\q3map2.exe" -fs_basepath "E:\Applications\Games\Raven\STVEF" -game ef -custinfoparms -meta -patchmeta %1
pause

vis_2515.bat


@echo off
"E:\Applications\Games\Raven\STVEF\Tools\NewCompiler\q3map_2515\q3map2.exe" -fs_basepath "E:\Applications\Games\Raven\STVEF" -game ef -vis -saveprt %1
pause

light_2515.bat


@echo off
"E:\Applications\Games\Raven\STVEF\Tools\NewCompiler\q3map_2515\q3map2.exe" -fs_basepath "E:\Applications\Games\Raven\STVEF" -game ef -light -fast -custinfoparms -filter -patchshadows -samples 3 -scale 0.60 -bounce 4 %1
pause

(Use Notepad to copy each of the above code segments into a file named after the title of each segment.)

I have a shortcut to my ‘maps’ folder on my desktop too. Whenever I want to compile a map, I open that ‘maps’ folder and look for my .map file. I then use the mouse and drag my map file on top of the batfile compiler that I want to use. The map gets compiled, and the resulting .bsp file ends up in the same folder as where the .map file came from.

BTW, my q3map2.exe is located in the folder:
E:\Applications\Games\Raven\STVEF\Tools\NewCompiler\q3map_2515
and my Star Trek Elite Force is located in this folder:
E:\Applications\Games\Raven\STVEF
Just plug in your own game and q3map2 paths and you’re set! Make sure you keep the quotes too, because it’s so your bat file can keep track of long folder names… think it has something to do with it being a DOS-sorta cmd thing. But this method works great for me, so I hope it’s what you’re trying to do.

Note that these are independent batchfiles, and are not the same as the internal Radiant compiler config file (where you menusurf in Radiant to the compile options, set it up, yada). You should see three files on your Windows desktop when you’re done, and they have nothing to do with Radiant. You’ll just use your mouse to drag a .map file onto one of these compilers, and that map will compile using the stage indicated by the filename. The .bsp file will end up in the same folder as where the original .map file was at. Once you get used to it, you’ll probably find that this batchfile method is faster than trying to get Radiant to use each new version of q3map2!

Hope that helps…


(Sonicwolf) #3

Well, It worked :banana: :banana: :banana:

OMG IT WORKED…

YOU PWN MAN!!! :blah: :blah: :smiley: :smiley: :beer:

YAHOOOOOO


(Lil Killa) #4

Those compiles don’t seem to do vis… Also isn’t it better to have -meta in the bsp stage?

I use:


"E:\path	o\q3map2.exe" -game ef -meta -v "\path	o\your.map" 
"E:\path	o\q3map2.exe" -game ef -vis -v "\path	o\your.bsp"
"E:\path	o\q3map2.exe" -game ef -light -fast -patchshadows -dirty -samples 3 -gamma 2 -v "\path	o\your.bsp"