SHOW:
|
|
- or go back to the newest paste.
| 1 | @echo off | |
| 2 | ::Base settings of where the game and its bin folder is | |
| 3 | SET Binpath=D:\programme\steam\steamapps\common\left 4 dead 2\bin | |
| 4 | SET gameinfopath=D:\programme\steam\steamapps\common\left 4 dead 2\left4dead2 | |
| 5 | ||
| 6 | - | ::BSP file names. - Uncomment the additional listings if you want to work on multiple files at once. |
| 6 | + | ::BSP file names. Used for both "deletecubemaps" and "extractcubemaps". |
| 7 | - | ::BSP file names of which the cubemaps should be DELETED FROM. |
| 7 | + | ::Assuming you added cubemaps, compiled the map just for the cubemaps and now want to transfer them from the "cubemap only" map into your "Final" compile map. |
| 8 | - | SET bspname1_detelecubemaps=mapname1_witout_extension |
| 8 | + | ::Uncomment the additional listings if you want to work on mor files at once. |
| 9 | - | :: SET bspname2_detelecubemaps=mapname2_witout_extension |
| 9 | + | SET bspname1=mapname1_witout_extension |
| 10 | - | :: SET bspname3_detelecubemaps=mapname3_witout_extension |
| 10 | + | :: SET bspname2=mapname2_witout_extension |
| 11 | - | :: SET bspname4_detelecubemaps=mapname4_witout_extension |
| 11 | + | :: SET bspname3=mapname3_witout_extension |
| 12 | - | :: SET bspname5_detelecubemaps=mapname5_witout_extension |
| 12 | + | :: SET bspname4=mapname4_witout_extension |
| 13 | :: SET bspname5=mapname5_witout_extension | |
| 14 | - | ::BSP file names of which the cubemaps should be EXTRACTED FROM. |
| 14 | + | |
| 15 | - | SET bspname1_extractcubemaps=mapname1_witout_extension |
| 15 | + | |
| 16 | - | :: SET bspname2_extractcubemaps=mapname2_witout_extension |
| 16 | + | |
| 17 | - | :: SET bspname3_extractcubemaps=mapname3_witout_extension |
| 17 | + | |
| 18 | - | :: SET bspname4_extractcubemaps=mapname4_witout_extension |
| 18 | + | |
| 19 | - | :: SET bspname5_extractcubemaps=mapname5_witout_extension |
| 19 | + | |
| 20 | SET Cubemap_ectract_location=D:\programme\steam\steamapps\common\left 4 dead 2\!!CUSTOM_CONTENT\Hardly_Rain\maps | |
| 21 | ||
| 22 | ::Deletes cubemaps from all the BSP files listed in "bsp_location_todelete" | |
| 23 | "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname1%.bsp" -game "%gameinfopath%" | |
| 24 | :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname2%.bsp" -game "%gameinfopath%" | |
| 25 | :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname3%.bsp" -game "%gameinfopath%" | |
| 26 | :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname4%.bsp" -game "%gameinfopath%" | |
| 27 | :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname5%.bsp" -game "%gameinfopath%" | |
| 28 | ||
| 29 | ::Extracts cubemaps from all the BSP files listed in "bsp_location_toextract", and puts them into the folder specified in "Cubemap_ectract_location" | |
| 30 | - | "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname1_detelecubemaps%.bsp" -game "%gameinfopath%" |
| 30 | + | "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname1%.bsp" "%Cubemap_ectract_location%\%bspname1%_cubemaps" |
| 31 | - | :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname2_detelecubemaps%.bsp" -game "%gameinfopath%" |
| 31 | + | :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname2%.bsp" "%Cubemap_ectract_location%\%bspname2%_cubemaps" |
| 32 | - | :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname3_detelecubemaps%.bsp" -game "%gameinfopath%" |
| 32 | + | :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname3%.bsp" "%Cubemap_ectract_location%\%bspname3%_cubemaps" |
| 33 | - | :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname4_detelecubemaps%.bsp" -game "%gameinfopath%" |
| 33 | + | :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname4%.bsp" "%Cubemap_ectract_location%\%bspname4%_cubemaps" |
| 34 | - | :: "%Binpath%\bspzip.exe" -deletecubemaps "%bsp_location_todelete%\%bspname5_detelecubemaps%.bsp" -game "%gameinfopath%" |
| 34 | + | :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname5%.bsp" "%Cubemap_ectract_location%\%bspname5%_cubemaps" |
| 35 | ||
| 36 | ||
| 37 | - | "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname1_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname1%_cubemaps" |
| 37 | + | |
| 38 | - | :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname2_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname2%_cubemaps" |
| 38 | + | |
| 39 | - | :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname3_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname3%_cubemaps" |
| 39 | + | |
| 40 | - | :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname4_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname4%_cubemaps" |
| 40 | + | |
| 41 | - | :: "%Binpath%\bspzip.exe" -extractcubemaps "%bsp_location_toextract%\%bspname5_extractcubemaps%.bsp" "%Cubemap_ectract_location%\%bspname5%_cubemaps" |
| 41 | + | |
| 42 | echo You can use VIDE to import cubemaps to another map. | |
| 43 | echo Use the PACKFILE LUMP EDITOR tool to load a map which had its cubemaps deleted, | |
| 44 | echo press the ADD button and select all cubemap vtf files you just extracted. | |
| 45 | echo When it pompts you to pick a folder; CANCEL. | |
| 46 | echo A new window appears, asking you for a new relative path | |
| 47 | echo delete everything BEFORE the last "materials" | |
| 48 | echo you should only have "materials\maps\%bspname1%" (or any other mapname) in that text window | |
| 49 | echo Press OKAY and save the map. | |
| 50 | echo. | |
| 51 | ||
| 52 | pause |