textures directory prefix


(toxic93) #1

Hello Mighty Users of q3map2!

I’ve got following problem using q3map2 tool - maybe you can help me out. Let me describe the problem.

During compilation from .map -> .bsp format q3map2 is adding “textures/” prefix to each texture i use in .map (for example if i use in .map file textures “myFolder/myTexture” it will be compiled to “textures/myFolder/myTexture” in .bsp file

Question is: whether i can force q3map2 to not add that “textures/” prefix, or to force him to use a different prefix? i need that because in my project it is more convienent for me to use different directory structure than default “textures”…

I probably need something like:
q3map2 bsp myMap.map -use_texture_prefix=“myPrefix”
but i couldn’t find any information about such switch in q3map2 application…

Any ideas gentlemen?

regards


(kamikazee) #2

I don’t see the point, it’s been “textures/” all along since Quake 3. If you need your own space for textures which supposedly never crashes, make a new subdirectory in the textures folder, just like you said.

I go out on a limb here, but I would guess that nobody working on Q3Map2 really considered to add a switch like the one you are looking for. I can’t immediately find something like this in the references either way.


(toxic93) #3

well… the reason i need that prefix different is that i’m not making level for quake3 - in fact i’m intending to use .bsp’s (generated by q3map2) in my small project where i have different file structure - and i’d prefer to stay with it

anyway, thanks for the quick reply


(kamikazee) #4

Another option I forgot about is that the Q3Map2 source can be found within id software’s GTKRadiant repository. I guess there’s no problem to make a custom version of Q3Map2, as long as you make the modified source available when you publish this custom Q3Map2. See Q3Map2 svn, to be checked out with a SubVersion client.


(toxic93) #5

i see… i will have to play a bit with it… unfortunately i’m not Visual Studio user and have problems during compilation but that is my problem :slight_smile:

as a workaround i managed to hexedit q3map2.exe and replace occurence “textures/%s” to “%s” - solution which is satisfacting me at the moment :slight_smile:

thanks for the help kamikazee