Bind save file (Slash Command): Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Eabrace
m (created article)
 
No edit summary
 
(22 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{stub}}
__NOTOC__
{{TOCright}}
== Slash Command ==
==Overview==
{{SlashCommandArticle|command=bind_save_file|options=<path>\filename.txt|note=Saves only the custom, player-made keybindings on the current character in  a location specified by the user. It will not save any keybinds that match the selected default keybindings. The resulting file is in text format, and lists one binding per line starting with the [[List of Key Names|key name]] followed by slash commands.  Further, the file will be formatted correctly for import using the {{slashcommand|bind_load_file}} or {{slashcommand|bind_load}} commands.}}
The '''bind_save_file''' [[:Category:Slash Commands|slash command]] will create a file at a location specified by the user. This file will be in text format, and will list all bindings on the current character, one binding per line.  Further, the file will be formatted correctly for import using the {{slashcommand|bind_load_file}} or {{slashcommand|bind_load}} commands.


==Syntax==
* The {{slashcommand|bind_save_file}} command also saves the currently selected [[Keybind Profiles|Keybind Profile]] to the top of the specified text file. A keybind profile tells the game which set of default binds to use on the character.
:/'''bind_save_file''' ''pathname''
* Due to limitations of the CoH/V command line parser, the ''path'' must be enclosed in quotes if it contains spaces.  Thus ''/bind_save_file "C:\coh binds\bindfile.txt"'' would be a valid command, while ''/bind_save_file C:\coh binds\bindfile.txt'' would not.
* A forward slash (/) or back slash (\) is used in the path depending on the operating system of your computer. For Windows a back slash (\) is used, whereas on Unix based systems such as MacOS and Linux a forward slash (/) is used.
* ''Path'' may be either a relative or fully defined (absolute) path:
:* fully defined - C:\Games\Homecoming\settings\live\bindsfolder\filename.txt
:* relative - \bindsfolder\filename.txt
:*: (\bindfolder\bindfile.txt would be placed within the [[Default Folder]].)
*  Using the default directory and a relative path can greatly reduce the number of characters in a bind or macro. The maximum number of characters allowed for a bind/macro is 255 characters.
* The location of the [[Default Folder]] (otherwise known as the working folder, the home folder, or relative path folder), can vary depending on the game version, how the game was installed, and the game launcher. So far, there have been 3 locations for the [[Default Folder]]: ''<COHInstallFolder>'', ''<COHInstallFolder>\data'', and ''<COHInstallFolder>\settings\live''.
* If you are having trouble finding the location of your [[Default Folder]], login to the game and in the chat box type:
/bind_load_file \
: Press Enter/Return. The location of your [[Default Folder]] will be shown in the Global chat window as part of an error message.
* The default game settings files Keybinds.txt, wdw.txt, options.txt, and chat.txt are all stored in the [[Default Folder]].


* Due to limitations of the CoH/V command line parser, ''pathname'' must contain no spacesThus ''C:\cohbinds\bindfile.txt'' would be a valid path, while ''C:\coh binds\bindfile.txt'' would not.
===Examples===
* ''Pathname'' may be either a relative or fully defined path:
The following are merely examples of using the bind_save_file command, your file path may be different.
:* fully defined - C:\cohbinds\bindfile.txt
: Defined path:
:* relative - bindfolder\bindfile.txt
  /bind_save_file C:\Games\Homecoming\settings\live\binds\bindfile.txt
: Relative path:
/bind_save_file \binds\bindfile.txt


==Related==
* {{slashcommand|bind_save}}
* {{slashcommand|bind_load}}
* {{slashcommand|bind_load_file}}


===See Also===
* {{slashcommand|show_bind_all}}
* {{slashcommand|show_bind_all_file}}
==Historical==
{{historical}}
The [[Issue 27 Page 7]] game update changed the way that the {{slashcommand|bind_save}} commands work. Prior to Issue 27 Page 7, this command saved '''''every''''' keybinding that was assigned to that character. After Issue 27 Page 7, the bind_save commands only save the custom, player-made keybindings assigned to the character. Any keybind that matches a keybind in the selected keybind profile (the character's default keybindings) will not be saved to the file. To see or have a file with '''''all''''' of a character's keybindings, use the 2 {{slashcommand|show_bind_all}} commands.
{{Navbox Binds}}
[[Category:Bind Commands]]
[[Category:Slash Commands]]
[[Category:Slash Commands]]

Latest revision as of 06:50, 14 October 2024

Slash Command

/bind_save_file <path>\filename.txt

Saves only the custom, player-made keybindings on the current character in a location specified by the user. It will not save any keybinds that match the selected default keybindings. The resulting file is in text format, and lists one binding per line starting with the key name followed by slash commands. Further, the file will be formatted correctly for import using the /bind_load_file or /bind_load commands.

  • The /bind_save_file command also saves the currently selected Keybind Profile to the top of the specified text file. A keybind profile tells the game which set of default binds to use on the character.
  • Due to limitations of the CoH/V command line parser, the path must be enclosed in quotes if it contains spaces. Thus /bind_save_file "C:\coh binds\bindfile.txt" would be a valid command, while /bind_save_file C:\coh binds\bindfile.txt would not.
  • A forward slash (/) or back slash (\) is used in the path depending on the operating system of your computer. For Windows a back slash (\) is used, whereas on Unix based systems such as MacOS and Linux a forward slash (/) is used.
  • Path may be either a relative or fully defined (absolute) path:
  • fully defined - C:\Games\Homecoming\settings\live\bindsfolder\filename.txt
  • relative - \bindsfolder\filename.txt
    (\bindfolder\bindfile.txt would be placed within the Default Folder.)
  • Using the default directory and a relative path can greatly reduce the number of characters in a bind or macro. The maximum number of characters allowed for a bind/macro is 255 characters.
  • The location of the Default Folder (otherwise known as the working folder, the home folder, or relative path folder), can vary depending on the game version, how the game was installed, and the game launcher. So far, there have been 3 locations for the Default Folder: <COHInstallFolder>, <COHInstallFolder>\data, and <COHInstallFolder>\settings\live.
  • If you are having trouble finding the location of your Default Folder, login to the game and in the chat box type:
/bind_load_file \
Press Enter/Return. The location of your Default Folder will be shown in the Global chat window as part of an error message.
  • The default game settings files Keybinds.txt, wdw.txt, options.txt, and chat.txt are all stored in the Default Folder.

Examples

The following are merely examples of using the bind_save_file command, your file path may be different.

Defined path:
/bind_save_file C:\Games\Homecoming\settings\live\binds\bindfile.txt
Relative path:
/bind_save_file \binds\bindfile.txt


See Also


Historical

This article or section contains information that no longer applies to the current version of Homecoming: City of Heroes/Villains. It is provided for historical purposes.

The Issue 27 Page 7 game update changed the way that the /bind_save commands work. Prior to Issue 27 Page 7, this command saved every keybinding that was assigned to that character. After Issue 27 Page 7, the bind_save commands only save the custom, player-made keybindings assigned to the character. Any keybind that matches a keybind in the selected keybind profile (the character's default keybindings) will not be saved to the file. To see or have a file with all of a character's keybindings, use the 2 /show_bind_all commands.