Bind load file (Slash Command): Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Aggelakis (historical)
(return removed comment about confirmation message)
No edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
== Slash Command ==
== Slash Command ==
{{SlashCommandArticle|command=bind_load_file|options=path|note=This command loads the specified bindfile into the current character. A message will be displayed in the chat tabs confirming that the file has been loaded. To load bindfiles without the message, use {{slashcommand|bind_load_file_silent}}.
{{SlashCommandArticle|command=bind_load_file|options=<path>\filename.txt|note=This command loads the specified bindfile into the current character. A message will be displayed in the chat tabs confirming that the file has been loaded. To load bindfiles without the message, use {{slashcommand|bind_load_file_silent}}.}}


* Due to limitations of the CoH/V command line parser, ''pathname'' must be enclosed in quotes if it contains spaces.  Thus ''/bind_load_file "C:\coh binds\bindfile.txt"'' would be a valid command, while ''/bind_load_file C:\coh binds\bindfile.txt'' would not.
* Due to limitations of the CoH/V command line parser, the ''path'' must be enclosed in quotes if it contains spaces.  Thus ''/bind_load_file "C:\coh binds\bindfile.txt"'' would be a valid command, while ''/bind_load_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.
* 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.
* ''Pathname'' may be either a relative or fully defined path:
* ''Path'' may be either a relative or fully defined (absolute) path:
:* fully defined - C:\cohbinds\bindfile.txt
:* fully defined - C:\Games\Homecoming\settings\live\bindsfolder\filename.txt
:* relative - bindfolder\bindfile.txt
:* relative - \bindsfolder\filename.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).
:*: (\bindfolder\bindfile.txt would be placed within the [[Default Folder]].)
:* relative2 - ..\bindfolder2\bindfile.txt
*  Using the [[Default Folder]] 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.
:*: ..\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).}}
* 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 directory, login to the game and in the chat box type: <code>/bind_load_file \</code>
: 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]].
* The ''bind_load_file command may also be used to import [[macros]] that have been stored in a text file.
* When used in a [[popmenu]], binds imported with {{slashcommand|bind_load_file}} sometimes do not take effect until a character has moved to a new zone or the game client has been restarted. A workaround is to use the {{slashcommand|beginchat}} command and execute the {{slashcommand|bind_load_file}} command manually by pressing the ENTER key. For example, <code>beginchat /bind_load_file \binds\bindfile.txt</code>. It's a bug with popmenus.


{{Bind Commands NavBox}}
 
===Examples===
The following are merely examples of using the bind_load_file command, your file path may be different.
: Defined path:
/bind_load_file C:\Games\Homecoming\settings\live\binds\bindfile.txt
: Relative path:
/bind_load_file \binds\bindfile.txt
 
 
 
 
{{Navbox Binds}}
[[Category:Bind Commands]]
[[Category:Slash Commands]]

Latest revision as of 14:19, 28 December 2022

Slash Command

/bind_load_file <path>\filename.txt

This command loads the specified bindfile into the current character. A message will be displayed in the chat tabs confirming that the file has been loaded. To load bindfiles without the message, use /bind_load_file_silent.

  • Due to limitations of the CoH/V command line parser, the path must be enclosed in quotes if it contains spaces. Thus /bind_load_file "C:\coh binds\bindfile.txt" would be a valid command, while /bind_load_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 Folder 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 directory, 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.
  • The bind_load_file command may also be used to import macros that have been stored in a text file.
  • When used in a popmenu, binds imported with /bind_load_file sometimes do not take effect until a character has moved to a new zone or the game client has been restarted. A workaround is to use the /beginchat command and execute the /bind_load_file command manually by pressing the ENTER key. For example, beginchat /bind_load_file \binds\bindfile.txt. It's a bug with popmenus.


Examples

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

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