Team Arena batch file.


(Raven) #1

I have been out of TA mapping for a while now and I am trying to get my batch file set up correctly. Can you tell me what I am doing wrong with the following batch file I am using on my WinXP machine:

[b]@echo off

set bsp_var=-meta -verboseentities

set vis_var=-vis -saveprt

set light_var=-light -filter -approx 25 -patchshadows -samples 3

set quake_path=“C:/Program Files/Quake III Arena/missionpack”

set quake_path2=“C:\Program Files\Quake III Arena\missionpack”

set mod_dir=missionpack

set map_path=“C:/Program Files/Quake III Arena/missionpack/maps/testta.map”

set q3map_path=“C:\Program Files\Quake III Arena\missionpack\Radiant\q3map2\q3map2.exe”

set gen_options=-game missionpack -fs_basepath %QUAKE_PATH% -fs_game %MOD_DIR% -v

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

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

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

pause [/b]

Thank you very much :slight_smile:


(U.S.S. Speed) #2

I see many variable calling for nothing.
Man I don’t understand why you call so much stuff.

"C:\Program Files\Quake III Arena\missionpack\Radiant\q3map2\q3map2.exe" -fs_basepath "C:/Program Files/Quake III Arena/" -game q3 -meta -verboseentities "C:/Program Files/Quake III Arena/missionpack/maps/testta.map"

"C:\Program Files\Quake III Arena\missionpack\Radiant\q3map2\q3map2.exe" -fs_basepath "C:/Program Files/Quake III Arena/" -game q3  -vis -saveprt "C:/Program Files/Quake III Arena/missionpack/maps/testta.map"

"C:\Program Files\Quake III Arena\missionpack\Radiant\q3map2\q3map2.exe" -fs_basepath "C:/Program Files/Quake III Arena/" -game q3 -light -filter -approx 25 -patchshadows -samples 3 "C:/Program Files/Quake III Arena/missionpack/maps/testta.map"

That’s how I build my batch… First part, bsp, then vis then light. Of course, it’s my way. Your is probably good too.

I don’t see what’s “wrong” on your. What is the error you get?

Not sure. -game missionpack exist? (Always tought it was the same as Q3)
I would have tought of -game q3…
And targeting the fs_basepath to the Q3 dir.

Slap me if I say stupid thing once in a while. :smiley:


(Raven) #3

-game q3 That is actually one of the lines I was wondering about.

The other is: set mod_dir=missionpack

I am not sure if these are correct or not.

Thanks for the quick response :slight_smile:


(Raven) #4

I guess these are the two problem lines:

  1. set gen_options=-game missionpack -fs_basepath %QUAKE_PATH% -fs_game %MOD_DIR% -v

  2. set mod_dir=missionpack

These can’t be right for Team Arena compiling…Or are they? Thanks :slight_smile:


(Emon) #5

Speed, he uses variables so he can have a wide variety of BATs for different compile options, but have the same global variables. If he has one BAT for final compile, and five for testing, and needs to change the path, he can do it once for it to take effect in all.


(Raven) #6

Exactly :slight_smile:


(U.S.S. Speed) #7

Hey! Didn’t say how he made his BAT are maybe the problem.

I said that I wounder about the “missionpack” part.

I just posted how I do mine… That’s all. :bash: :smiley:

Try to only target the Q3 dir and use -game q3… Tell us how it work.


(Raven) #8

Ok thanks :slight_smile: I will probably try -game q3ta as well. Hopefully I can get this working again. I am still kicking myself for overwriting my last working one with another game


(ydnar) #9

-game quake3 is unecessary if you’re mapping for Quake 3 or Team Arena. Use:

-fs_basepath C:/path/to/quake3 -fs_game missionpack

y


(Raven) #10

Thank you very much Ydnar!

So this line is ok?

set mod_dir=missionpack


(ydnar) #11

that’s fine as long as you use -fs_game %mod_dir%


(Raven) #12

Thank you very much :slight_smile:

So this should work now:

[b]@echo off

set bsp_var=-meta -verboseentities

set vis_var=-vis -saveprt

set light_var=-light -filter -approx 25 -patchshadows -samples 3

set quake_path=“C:/Program Files/Quake III Arena/missionpack”

set quake_path2=“C:\Program Files\Quake III Arena\missionpack”

set mod_dir=missionpack

set map_path=“C:/Program Files/Quake III Arena/missionpack/maps/testta.map”

set q3map_path=“C:\Program Files\Quake III Arena\missionpack\Radiant\q3map2\q3map2.exe”

set gen_options= -fs_basepath %QUAKE_PATH% -fs_game %mod_dir%

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

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

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

pause [/b]