Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- ::Base settings of where the game and its bin folder is
- SET Binpath=D:\programme\steam\steamapps\common\left 4 dead 2\bin
- SET gameinfopath=D:\programme\steam\steamapps\common\left 4 dead 2\left4dead2
- ::BSP file names. - Uncomment the additional listings if you want to work on multiple files at once.
- ::BSP file names of which the cubemaps should be DELETED FROM.
- SET bspname1_detelecubemaps=mapname1_witout_extension
- :: SET bspname2_detelecubemaps=mapname2_witout_extension
- :: SET bspname3_detelecubemaps=mapname3_witout_extension
- :: SET bspname4_detelecubemaps=mapname4_witout_extension
- :: SET bspname5_detelecubemaps=mapname5_witout_extension
- ::BSP file names of which the cubemaps should be EXTRACTED FROM.
- SET bspname1_extractcubemaps=mapname1_witout_extension
- :: SET bspname2_extractcubemaps=mapname2_witout_extension
- :: SET bspname3_extractcubemaps=mapname3_witout_extension
- :: SET bspname4_extractcubemaps=mapname4_witout_extension
- :: SET bspname5_extractcubemaps=mapname5_witout_extension
- ::BSP file location of which the cubemaps should be DELETED (Deletes all embedded VTF files!!!).
- SET bsp_location_todelete=D:\Programme\Steam\steamapps\common\Left 4 Dead 2\!!CUSTOM_CONTENT\Hardly_Rain\maps
- ::BSP file location of which the cubemaps should be EXTRACTED FROM.
- SET bsp_location_toextract=D:\programme\steam\steamapps\common\left 4 dead 2\left4dead2\maps
- ::pick where the cubemaps get extracted. Creates a foldername called "MAPNAME_cubemaps" in the picked folder.
- SET Cubemap_ectract_location=D:\programme\steam\steamapps\common\left 4 dead 2\!!CUSTOM_CONTENT\Hardly_Rain\maps
- ::Deletes cubemaps from all the BSP files listed in "bsp_location_todelete"
- "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname1_detelecubemaps%.bsp" -game "%gameinfopath%"
- :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname2_detelecubemaps%.bsp" -game "%gameinfopath%"
- :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname3_detelecubemaps%.bsp" -game "%gameinfopath%"
- :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname4_detelecubemaps%.bsp" -game "%gameinfopath%"
- :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname5_detelecubemaps%.bsp" -game "%gameinfopath%"
- ::Extracts cubemaps from all the BSP files listed in "bsp_location_toextract", and puts them into the folder specified in "Cubemap_ectract_location"
- "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname1_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname1%_cubemaps"
- :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname2_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname2%_cubemaps"
- :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname3_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname3%_cubemaps"
- :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname4_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname4%_cubemaps"
- :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname5_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname5%_cubemaps"
- echo.
- echo.
- echo.
- echo Cubemaps extracted to %Cubemap_ectract_location%
- echo.
- echo You can use VIDE to import cubemaps to another map.
- echo Use the PACKFILE LUMP EDITOR tool to load a map which had its cubemaps deleted,
- echo press the ADD button and select all cubemap vtf files you just extracted.
- echo When it pompts you to pick a folder; CANCEL.
- echo A new window appears, asking you for a new relative path
- echo delete everything BEFORE the last "materials"
- echo you should only have "materials\maps\%bspname1%" (or any other mapname) in that text window
- echo Press OKAY and save the map.
- echo.
- pause
Advertisement
Add Comment
Please, Sign In to add comment