Bind save file (Slash Command): Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Thirty7
mNo edit summary
(Updated the information, but kept as much of the original post and format as possible.)
Line 1: Line 1:
__NOTOC__
__NOTOC__
== Slash Command ==
== Slash Command ==
{{SlashCommandArticle|command=bind_save_file|options=filename.txt|note=Creates 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.
{{SlashCommandArticle|command=bind_save_file|options=<path>\filename.txt|note=Saves all keybindings on the current character in  a location specified by the user.  The resulting 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.}}
 
* 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 Widows a back slash (\) is used, whereas on Unix based systems such as MacOS and Linux a forward slash (/) is used.
* The location of the default directory/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''.
* The <COHInstallFolder>\data folder may NOT exist on a City of Heroes installation, depending on the game and installer version, and if desired may be manually created.
* ''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 directory.)
*  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.
* If you are having trouble finding the location of your default directory, login to the game and in the chat box type:
/bind_load_file \
: Press Enter/Return. The location of your default directory 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 directory.
 
===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
 
 


* Due to limitations of the CoH/V command line parser, ''pathname'' 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.
* The default location, unless a fully defined path is specified, is ''<COHInstallFolder>\data'' if it exists, or ''<COHInstallFolder>'' if it does not.  The \data folder does NOT exist on a default City of Heroes installation, it must be manually created.
* ''Pathname'' may be either a relative or fully defined path:
:* fully defined - C:\cohbinds\bindfile.txt
:* relative - bindfolder\bindfile.txt
:*: bindfolder\bindfile.txt would be located in the data directory of the install directory (C:\Program Files\City of Heroes\data\bindfolder\bindfile.txt).
:* relative2 - ..\bindfolder2\bindfile.txt
:*: ..\bindfolder2\bindfile.txt would be located in the install directory, since bindsavefile looks in the data directory (C:\Program Files\City of Heroes\bindfolder2\bindfile.txt).}}


{{Navbox Binds}}
{{Navbox Binds}}


[[Category:Slash Commands]]
[[Category:Slash Commands]]

Revision as of 02:47, 6 June 2022

Slash Command

/bind_save_file <path>\filename.txt

Saves all keybindings on the current character in a location specified by the user. The resulting 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 /bind_load_file or /bind_load commands.

  • 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 Widows a back slash (\) is used, whereas on Unix based systems such as MacOS and Linux a forward slash (/) is used.
  • The location of the default directory/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.
  • The <COHInstallFolder>\data folder may NOT exist on a City of Heroes installation, depending on the game and installer version, and if desired may be manually created.
  • 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 directory.)
  • 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.
  • If you are having trouble finding the location of your default directory, login to the game and in the chat box type:
/bind_load_file \
Press Enter/Return. The location of your default directory 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 directory.

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