How can I change GTKRadiant's BSP menu items?


(PSIonic) #1

Hi everyone.
I’ve been using GTKRadiant to compile my map instead of any other program or batch files because I always get “can’t find this or that” errors when I try doing it manually. And help on setting up Q3Map2 so that it will actually find stuff like alpha maps for terrain would be appriciated.

What I really want though is a way to alter the command lines used by GTKRadiant on the BSP “compile” menu. I want to add curve shadows to the lighting phase since it’s not doing that it seems.

I’m using this menu option to do a full light compile at the moment:
Q3Map2: (single) -light -fast -samples 2 -filter -bounce 8

I need to do a full compile in 3 separate steps so that Q3Map2 doesn’t throw an illegal operation!


(system) #2

hi try the compile.bat i use (from ET-dokus:

@rem to use this batch file, drop a .map file on it or run it from a dos window:
@rem > compile <mapname>

@set Q3MAP_PATH="C:\mapping-tools\q3map2\q3map2.exe"
@set ET_PATH="C:/mapping-tools/et"
@set MAP_PATH="C:/mapping-tools/et/etmain/maps/trenches.map"
@set GEN_OPTIONS=-fs_basepath C:/mapping-tools/et -game et

@rem
%Q3MAP_PATH% -meta -v -mv 1024 -threads 1 -mi 6144 %GEN_OPTIONS% -v %MAP_PATH%

@rem
%Q3MAP_PATH% -vis -fast -v -threads 1-saveprt %GEN_OPTIONS% %MAP_PATH%

@rem
%Q3MAP_PATH% -light -fast -patchshadows -threads 1 -external -lightmapsize 256 -approx 8 %GEN_OPTIONS% -v %MAP_PATH%
pause

Just change my paths to fit yours. It’s no magic with .bat files.
If you want to change the gtk menü open the “user0.prj” file (etmain/scripts) with notepad and edit the lines to fit your wishes. :slight_smile:


(PSIonic) #3

Thanks… you’re a star! :drink:

I will try both methods later today.


(Drakir) #4

Or simply by choosing “File/Project Settings”


(SCDS_reyalP) #5

at your own risk, you can also edit the project file directly (it is called userN.proj in your scripts directory, or userN.qe4 in older versions of gtkradiant)
I find using a text editor more convenient that the tiny text areas in the project dialogbox.


(redfella) #6

Q3map2 toolz is nice.