Questions concerning decompiling bsp's


(StormShadow) #1

Ok, right off the bat, im having a bit of trouble scripting my map. Due to a number of similarities between the primary objectives of my map, and those of oasis, i have decided to decompile oasis.bsp to use as a reference for my destructible objectives. I basically understand the actual scripting (at least I think I do:)), but I can’t seem to get the entities working properly.

Upon trying to decompile, I keep getting errors, and I am unable to decompile. My questions are the following:

  1. Are the .map files for standard ET maps available for download anywhere?

  2. If not, can someone give me a working command line to decompile?

q3map2 -convert map -fs_basepath ‘myq3baseq3folder’ ‘mymap.bsp’

Doesnt work.

Thanks a lot!


(chavo_one) #2

I believe you actually want:

q3map2 -convert -format map -fs_basepath ‘myq3baseq3folder’ ‘mymap.bsp’


(StormShadow) #3

I gave it a go… here is what im getting:

************ ERROR ************
C:/Program Files/GtkRadiant-ET-1.3/oasis.bsp is version 47, not 46


(chavo_one) #4

try setting the game too then. I believe it’s:

-game et


(ydnar) #5

q3map2.exe -convert -format map -game et -v -fs_basepath “C:/path/to/et_folder/” “C:/path/to/et_folder/etmain/maps/somemap.bsp”

The map path must be the full path.

The -fs_basepath arg is to the directory the game exe sits, not the base/main directory.

y


(Drakir) #6

Do you have the latest q3map2 build? If not then u wont be able to decompile.

This is a bat file i used to decompile with and it works fine, just remember to change the path to your q3map2.exe

@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:\Program Files\GtkRadiant-ET-1.3\q3map\q3map2.exe" 
@set ET_PATH="C:\Program Files\Wolfenstein - Enemy Territory" 
@set MAP_PATH="C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps\mp_castle.bsp" 

@set GEN_OPTIONS=-fs_basepath C:\Program Files\GtkRadiant-ET-1.3 -game et 

@rem 
%Q3MAP_PATH% -convert -format map %GEN_OPTIONS% -v %MAP_PATH%

(StormShadow) #7

i have q3map2 - 2.5.8

thanks guys!


(Chain-iT) #8

I have this .bat file to decompile maps:


@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:\Program Files\GtkRadiant-1.4\q3map\q3map2.exe" 
@set ET_PATH="C:\Program Files\Wolfenstein - Enemy Territory" 
@set MAP_PATH="C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps\xlabs.bsp" 

@set GEN_OPTIONS=-fs_basepath C:\Program Files\GtkRadiant-1.4 -game et 

@rem 
%Q3MAP_PATH% -convert -format map %GEN_OPTIONS% -v %MAP_PATH%

path for q3map2: C:\Program Files\GtkRadiant-1.4\q3map\q3map2.exe
path for ET: C:\Program Files\Wolfenstein - Enemy Territory
path for map: C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps\xlabs.bsp

I always get this error running it in dos:
error opening C:/Documents and Settings/Jonas/-format.bsp : No such file or directory.

I actually tryed many things but it isn’t working :s

I also managed to get error C:… is version 47, not 46 by using this .bat file:

@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:\Program Files\GtkRadiant-1.4\q3map\q3map2.exe" 
@set ET_PATH="C:\Program Files\Wolfenstein - Enemy Territory" 
@set MAP_PATH="C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps\xlabs.bsp" 

@set GEN_OPTIONS=-fs_basepath C:\Program Files\GtkRadiant-1.4 -game et 

@rem 
%Q3MAP_PATH% -convert "C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps\xlabs.bsp" %GEN_OPTIONS% -v %MAP_PATH%

I actually tryed everything on this forum but nothing works :s could someone make me a .bat file or code for these paths: ? maybe i’m doing something wrong, I don’t know.

path for q3map2: C:\Program Files\GtkRadiant-1.4\q3map\q3map2.exe
path for ET: C:\Program Files\Wolfenstein - Enemy Territory
path for map: C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps\xlabs.bsp

  • does someone know where I can get the latest version of q3map2 ? shaderlab.com isn’t working

(Chain-iT) #9

Ok don’t mind it’s working now ive decompiled Xlabs from RTCW, It’s not very good because all the structural stuff is gone but it’s very usefull


(Flippy) #10

i have “q3map_2.5.16_win32_x86”

Try this:

rightmouse click on a shortcut of the .exe file
change the ‘target:"’ (at least i think its target, ive got it in dutch… in dutch its “doel:” ) to

"C:\Q3map2\q3map_2.5.16_win32_x86\q3map2.exe" -convert -format map -v -game et -fs_basepath " C:\Program Files\Wolfenstein - Enemy Territory "

(include the " )

(asuming the path of q3map2 is “C:\Q3map2/q3map_2.5.16_win32_x86/q3map2.exe” and the path of your wolfenstein ET directory is "C:\Program Files\Wolfenstein - Enemy Territory ")

also note the spaces behind the " things, im not 100% sure if they are supposed to be there… but hey it works for me like this so :slight_smile:

then, simply drag the .bsp file you want to convert onto this shortcut and it will make a decompiled file…

eg… when i drop “oasis.bsp” onto the shortcut of q3map2 it starts a little DOS window and creates a “oasis_converted.map” in the same directory as “oasis.bsp”

hope this helps, cause it works for me, without all the fuss about the batch file…