AutoBSPpackingTool: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(update 0.1.1.0)
Line 23: Line 23:
|-
|-
| .txt (map story) || <code>/maps/<mapname>_story.txt</code>
| .txt (map story) || <code>/maps/<mapname>_story.txt</code>
|-
| .txt (map commentary) || <code>/maps/<mapname>_commentary.txt</code>
|-
| .txt (particle manifests) || <code>/particles/particles_manifest.txt</code> ''or'' <code>/maps/<mapname>_particles.txt</code> ''or''<br><code>/particles/<mapname>_manifest.txt</code>
|-
|-
| .txt (radar information) || <code>/resource/overviews/<mapname>.txt</code>
| .txt (radar information) || <code>/resource/overviews/<mapname>.txt</code>
|-
|-
| .dds (radar image) || <code>/resource/overviews/<mapname>_radar_spectate.dds</code> ''(and vertical sections)''
| .dds (radar images) || <code>/resource/overviews/<mapname>_radar_spectate.dds</code> ''(and vertical sections)''
|-
|-
| .svg (map icon) || <code>/materials/panorama/images/map_icons/map_icon_<mapname>.svg</code>
| .svg (map icon) || <code>/materials/panorama/images/map_icons/map_icon_<mapname>.svg</code>
Line 42: Line 46:
| .vtf (dz tablet map) || <code>/materials/models/weapons/v_models/tablet/tablet_radar_<mapname>.vtf</code>
| .vtf (dz tablet map) || <code>/materials/models/weapons/v_models/tablet/tablet_radar_<mapname>.vtf</code>
|}
|}
'''AutoBSPpackingTool''' is a third party tool made for {{game name|src|name=Source}} developers and mappers. It automatically detects and packs almost every possible custom file that can be used in a map ([[BSP|.bsp file]]). (Current version: 0.1.0.9).
'''AutoBSPpackingTool''' is a third party tool made for {{game name|src|name=Source}} developers and mappers. It automatically detects and packs almost every possible custom file that can be used in a map ([[BSP|.bsp file]]). (Current version: 0.1.1.0).


Currently the program supports only some games, the list of which you can find below, but support for more games will be added in the future.
Currently the program supports only some games, the list of which you can find below, but support for more games will be added in the future.
Line 49: Line 53:


== Features ==
== Features ==
* Detects materials, textures, models, sounds (.wav, .mp3, .ogg), skyboxes.
* Detects materials, textures, models, sounds (.wav, .mp3, .ogg), skybox materials, [[Detail_props|detail files]], [[Color_correction|color correction profiles]], [[PCF_File_Format|particles]].
* Detects materials and textures used in models (including skins) and also detects $includemodel parameter.
* Detects materials and textures used in models (including skins) and also detects $includemodel parameter.
* Recognizes patch materials.
* Recognizes patch materials.
* Detects [[NAV|.nav]] ([[Nav Mesh|navigation mesh]]), [[AIN|.ain]] ([[info_node]]), .txt ([[Mapname.txt|map description]]), .txt ([[soundscape]]), .txt ([[soundscripts|soundscript]]), .cache ([[soundcache]]), .txt ([[CS:GO_Game_Modes/Retakes#Adding_Retakes_Support_to_a_Bomb_Scenario_Map|retake bombplants]]), .txt (camera positions), .txt (map story), .txt ([[Creating_a_working_mini-map#Intro_and_Basics|radar information]]), .dds ([[Creating_a_working_mini-map#Intro_and_Basics|radar images]]), .svg (map icon), .png (map background), .kv ([[Choosing Player Models|player models]]), [[KeyValues3|.kv3]] ([[CS:GO Bot Behavior Trees|bots behaviour]]), .png ([[CS:GO_Game_Modes/Danger_Zone#Map_Overviews|dz spawn mask]]), .png ([[CS:GO_Game_Modes/Danger_Zone#Map_Overviews|dz deployment map]]), .vtf ([[CS:GO_Game_Modes/Danger_Zone#Map_Overviews|dz tablet map]]).
* Detects [[NAV|.nav]] ([[Nav Mesh|navigation mesh]]), [[AIN|.ain]] ([[info_node]]), .txt ([[Mapname.txt|map description]]), .txt ([[soundscape]]), .txt ([[soundscripts|soundscript]]), .cache ([[soundcache]]), .txt ([[CS:GO_Game_Modes/Retakes#Adding_Retakes_Support_to_a_Bomb_Scenario_Map|retake bombplants]]), .txt (camera positions), .txt (map story), .txt ([[Commentary_System#The_Commentary_File|map commentary]]), .txt ([[Particles_manifest.txt|particle manifests]]), .txt ([[Creating_a_working_mini-map#Intro_and_Basics|radar information]]), .dds ([[Creating_a_working_mini-map#Intro_and_Basics|radar images]]), .svg (map icon), .png (map background), .kv ([[Choosing Player Models|player models]]), [[KeyValues3|.kv3]] ([[CS:GO Bot Behavior Trees|bots behaviour]]), .png ([[CS:GO_Game_Modes/Danger_Zone#Map_Overviews|dz spawn mask]]), .png ([[CS:GO_Game_Modes/Danger_Zone#Map_Overviews|dz deployment map]]), .vtf ([[CS:GO_Game_Modes/Danger_Zone#Map_Overviews|dz tablet map]]).
* Detects sounds referenced in soundscape and soundscript files.
* Detects sounds referenced in soundscape and soundscript files.
* Detects scripts ([[VScript|.nut]] and [[CFG|.cfg]]).
* Detects scripts ([[VScript|.nut]] and [[CFG|.cfg]]).
* Detects models, sounds and other scripts inside detected scripts if they are named with their file extension (.mdl, .wav, .mp3, .ogg, .cfg, .nut).
* Detects models, sounds and other scripts inside detected scripts if they are named with their file extensions (.mdl, .wav, .mp3, .ogg, .nut, .cfg).
* Also finds [[VMF|.vmf]] files specified in [[func_instance]]s and packs their data too.
* Can either pack all the found files into [[BSP|.bsp]] or save a file with a list of all detected custom files.
 
 
{{warning|
{{warning|
* The program does not detect scripts with a space in the path (so does Hammer).
* The program does not detect scripts with a space in the path (so does Hammer).
* The program does not detect sounds referenced in scripts with a space in the path.
* The program does not detect sounds referenced in scripts with a space in the path.
}}
}}
* Also finds [[VMF|.vmf]] files specified in [[func_instance]]s and packs their data too.
* Can either pack all the found files into [[BSP|.bsp]] or save a file with a list of all detected custom files.


== Information ==
== Information ==
* The program is written in C# and requires Microsoft .NET Framework 4.0 or higher.
* The program is written in C# and requires Microsoft .NET Framework 4.0 or higher.
* You should put the program in an individual folder, because it will create a cache folder and some necessary files in the directory .exe file is in.
* You should put the program in an individual folder, because it will create cache folder, folder to store game configurations and some necessary files in the directory .exe file is in.
* The program creates a .bsp.backup file before packing.
* The program creates a .bsp.backup file before packing.
* The program checks for an update on startup.
* The program checks for an update on startup.
* It shows a notification when packing is finished.
* It shows a notification when packing is finished.
* Instead of waiting for support for other games to be added, you can create your own configuration or edit existing ones.
* It will be better if you pack your custom content referenced in scripts by yourself, because there are a lot of situations in which it is impossible to detect custom content used in scripts.
* It will be better if you pack your custom content referenced in scripts by yourself, because there are a lot of situations in which it is impossible to detect custom content used in scripts.
* The program uses [[VPK#Windows|vpk.exe]] and [[BSPZIP|bspzip.exe]], so you must have the SDK tools installed and the game itself you want to pack files for.
* The program uses [[VPK#Windows|vpk.exe]] and [[BSPZIP|bspzip.exe]], so you must have the SDK tools installed and the game itself you want to pack files for.
Line 76: Line 79:
== Supported games ==
== Supported games ==
* {{game name|name=Counter-Strike: Global Offensive}} ''(full support)''
* {{game name|name=Counter-Strike: Global Offensive}} ''(full support)''
* {{game name|name=Garry's Mod}} ''(test support)''
* {{game name|name=Garry's Mod}} ''(test support stage 2)''
* {{game name|name=Portal 2}} ''(test support)''
* {{game name|name=Portal 2}} ''(test support stage 2)''


== Options ==
== Options ==
Line 87: Line 90:
; -log: Create a log file. If this option is enabled and any argument is invalid, a ''cmd_exit_reason.log'' file will be created in the ''cache'' folder.
; -log: Create a log file. If this option is enabled and any argument is invalid, a ''cmd_exit_reason.log'' file will be created in the ''cache'' folder.
; -notify: Show a notification when packing is finished.
; -notify: Show a notification when packing is finished.
; -cachedir <path>: Override default ''cache'' folder path (<the directory .exe file is in>/cache/).
; -cachedir <path>: Override default ''cache'' folder path ('''<the directory .exe file is in>/cache/''').
; -addcfg <path>: Add game configuration (configurations located in '''<the directory .exe file is in>/game_cfgs/''' will be added automatically).


== Usage with Hammer ==
== Usage with Hammer ==

Revision as of 13:25, 19 April 2022

English (en)Русский (ru)中文 (zh)Translate (Translate)
AutoBSPpackingTool interface.
AutoBSPpackingTool settings.
Checkbox File(s)
.nav (navigation mesh) /maps/<mapname>.nav
.ain (info_node) /maps/graphs/<mapname>.ain
.txt (map description) /maps/<mapname>.txt
.txt (soundscape) /scripts/soundscapes_<mapname>.txt
.txt (soundscript) /maps/<mapname>_level_sounds.txt
.cache (soundcache) /maps/soundcache/<mapname>.cache
.txt (retake bombplants) /maps/<mapname>_retake.txt
.txt (camera positions) /maps/<mapname>_cameras.txt
.txt (map story) /maps/<mapname>_story.txt
.txt (map commentary) /maps/<mapname>_commentary.txt
.txt (particle manifests) /particles/particles_manifest.txt or /maps/<mapname>_particles.txt or
/particles/<mapname>_manifest.txt
.txt (radar information) /resource/overviews/<mapname>.txt
.dds (radar images) /resource/overviews/<mapname>_radar_spectate.dds (and vertical sections)
.svg (map icon) /materials/panorama/images/map_icons/map_icon_<mapname>.svg
.png (map background) /materials/panorama/images/map_icons/screenshots/1080p/<mapname>.png
.kv (player models) /maps/<mapname>.kv
.kv3 (bots behaviour) /scripts/<any mentioned in scripts or .vmf>.kv3
.png (dz spawn mask) /maps/<mapname>_spawnmask.png
.png (dz deployment map) /materials/panorama/images/survival/spawnselect/map_<mapname>.png
.vtf (dz tablet map) /materials/models/weapons/v_models/tablet/tablet_radar_<mapname>.vtf

AutoBSPpackingTool is a third party tool made for Template:Game name developers and mappers. It automatically detects and packs almost every possible custom file that can be used in a map (.bsp file). (Current version: 0.1.1.0).

Currently the program supports only some games, the list of which you can find below, but support for more games will be added in the future.

Move to download heading

Features

Warning.pngWarning:
  • The program does not detect scripts with a space in the path (so does Hammer).
  • The program does not detect sounds referenced in scripts with a space in the path.
  • Also finds .vmf files specified in func_instances and packs their data too.
  • Can either pack all the found files into .bsp or save a file with a list of all detected custom files.

Information

  • The program is written in C# and requires Microsoft .NET Framework 4.0 or higher.
  • You should put the program in an individual folder, because it will create cache folder, folder to store game configurations and some necessary files in the directory .exe file is in.
  • The program creates a .bsp.backup file before packing.
  • The program checks for an update on startup.
  • It shows a notification when packing is finished.
  • Instead of waiting for support for other games to be added, you can create your own configuration or edit existing ones.
  • It will be better if you pack your custom content referenced in scripts by yourself, because there are a lot of situations in which it is impossible to detect custom content used in scripts.
  • The program uses vpk.exe and bspzip.exe, so you must have the SDK tools installed and the game itself you want to pack files for.

Supported games

Options

-vmf <path>
Set path to .vmf file.
-bsp <path>
Set path to .bsp file (if not specified, a file with a list of all detected custom files will be saved in the cache folder).
-game <index | gamefolder | path>
Select what game to use. Index is a number of game in supported games list starting from 0 (the order of the games in the list may change in the future, so it is better to use the game folder name or the path to it).
Also, if the program fails to find your Steam path and if you use the path to the game folder in this argument, then the Steam path will be obtained from it).
Examples: 0, 1, csgo, garrysmod, C:/Program Files (x86)/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/
-log
Create a log file. If this option is enabled and any argument is invalid, a cmd_exit_reason.log file will be created in the cache folder.
-notify
Show a notification when packing is finished.
-cachedir <path>
Override default cache folder path (<the directory .exe file is in>/cache/).
-addcfg <path>
Add game configuration (configurations located in <the directory .exe file is in>/game_cfgs/ will be added automatically).

Usage with Hammer

You can add a Hammer configuration to pack all the custom files right after compile. Follow this steps if you want to.


1) Add a new compile configuration in the expert compile mode.
2) Set its name to [AutoBSPpackingTool] - Pack data or whatever you want.
3) Set the Command to the path where this program is located.

Example: C:/Users/user/Downloads/AutoBSPpackingTool.exe

4) Set the Parameters to: -vmf $path\$file.vmf -bsp $bspdir\$file.bsp -game $gamedir -notify and add other arguments if you want.
5) Done! Now press Go! and wait until the notification appears.

Download

See Also