マニュアル/Console
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
誰か和訳よろ…orz
| style="background:none; border:0px" |
The '''console''' allows you to see [[multiplayer]] chat ...
__TOC__
| style="background:none; border:0px"|
[[Image:console.png|none|frame|The OpenTTD Console]]
|}
==Using the console==
Open the console with the tilde key (~), located to the l...
After the console is open, type in a command, such as "he...
Tips:
* Scroll the console with Shift+Up/Down or Shift+Pageup/P...
* Scroll through the input history with the Up/Down arrow...
* Make the console bigger with Ctrl+Enter. [#k145a1ff]
* Paste text from the clipboard with the normal Ctrl+V (W...
==Console commands==
Here is a list of all the console commands available in O...
===Help commands===
{| border=1 width=100%
!width="225"|Command
!Description
|-
|help [<item>]
|Display basic console help, specify <item> for help on t...
|-
|list_cmds [<filter>]
|List all available commands, optionally only commands st...
|-
|list_vars [<filter>]
|List all registered variables, optionally only commands ...
|-
|list_aliases
|List all available [[Console_Aliases|aliases]].
|-
|list_patches
|List all [[patches|patch]] options.
|}
===Game commands===
These commands work both in single player games and on se...
{| border=1 width=100%
!width="225"|Command
!Description
|-
|newgame
|Start a new game.
|-
|restart
|Restart the same game.
|-
|connect <host>
|Connect to a network game running on <host>. Not availia...
|-
|save <nowiki><number | file></nowiki>
|Saves the current game as <number> or <file>.
|-
|load <nowiki><number | file></nowiki>
|Load the savegame <number> or <file>.
|-
|part
|Quit a running game and go back to the intro menu. Not a...
|-
|exit / quit
|Quit the game.
|}
===Server commands===
These commands are used to run a multiplayer game [[serve...
{| border=1 width=100%
!width="225"|Command
!Description
!width="90"|Clients
|-
|kick <nowiki><ip | client-id></nowiki>
|Kick the client with IP <ip> or id <client-id>.
|-
|ban <nowiki><ip | client-id></nowiki>
|Ban the client with IP <ip> or id <client-id>.
|-
|unban <ip>
|Remove a ban on <ip>.
|-
|banlist
|List banned clients.
|-
|reset_company <company-id>
|Delete the company identified by <company-id>.
|-
|pause
|Pause a network game.
|-
|unpause
|Unpause a network game.
|-
|clients
|Lists client id, name, company id, and IP address of eac...
|Yes
|-
|players
|Show a list of players and their attributes, e.g. compan...
|-
|status
|Get the status information on all currently connected cl...
|-
|server_info
|List current and maximum client/player limits.
|-
|say "<msg>"
|Send a chat message containing <text> to all players.
|Yes
|-
|say_client <client-id> "<msg>"
|Send a chat message containing <msg> to the client ident...
|Yes
|-
|say_player <player-id> "<msg>"
|Send a chat message containing <msg> to everyone in the ...
|Yes
|-
|rcon <password> "<command>"
|Execute <command> on the server authenticated by <passwo...
|Yes
|}
===File handling commands===
{| border=1 width=100%
!width="225"|Command
!Description
|-
|cd <nowiki><directory | number></nowiki>
|Change the working directory to <directory> or <number>.
|-
|ls / dir
|List files of current directory.
|-
|pwd
|Print out the current working directory.
|-
|rm <nowiki><number | file></nowiki>
|Remove a savegame by name or index.
|}
{| border=1 width=100%
!width="225"|Command
!Description
|-
|script <file>
|Record a script to the file named <file>.
|-
|exec <script> <?>
|Executes a local script file.
|-
|return
|Stop executing a running script.
|}
===Other commands===
{| border=1 width=100%
!width="225"|Command
!Description
|-
|screenshot <nowiki>[big | nocon]</nowiki>
|Takes a screenshot. 'big' makes a screenshot of the whol...
|-
|alias <name> <command>
|Create an [[Console_Aliases|alias]] named <name> bound t...
|-
|patch <patchname> [<newvalue>]
|Get and set the patch settings from the console. If <new...
the current value is printed. See [[Console_Settings|Cons...
|-
|dump_vars
|Print all known variables and their values.
|-
|getseed
|Returns the seed used to create the game, for randomly g...
|-
|scrollto <tile>
|Scroll to the tile numbered <tile>; accepts hexadecimal ...
|-
|clear
|Clears the console screen.
|-
|echo <text>
|Print out <text> on the console.
|-
|echoc <color> <text>
|Print out <text> in color <color>. <color> is a number b...
|-
|info_cmd <command>
|Show technical information on the command <commmand>.
|-
|info_var <variable>
|Show technical information on the variable <variable>.
|-
|debug_level [<level>]
|Get / set the debugging levels of different parts of the...
|-
|resetengines
|Resets all use-age and availability of engines.
|}
==Variables==
Here is a list of [[wikipedia:variable|variables]] availa...
===Server variables===
{| border=1 width="100%"
!width="225"|Variable
!Description
!width="90"|Default value
|-
|autoclean_companies
|Automatically shut down inactive companies to free them ...
|off
|-
|autoclean_protected
|Automatically remove the password from an inactive compa...
|36
|-
|autoclean_unprotected
|Automatically shut down inactive companies after the giv...
|12
|-
|max_clients
|Maximum number of players allowed on the server
|10
|-
|max_companies
|Maximum number of companies allowed in the game
|8
|-
|max_join_time
|Maximum amount of time (ticks) a client is allowed to join
|500
|-
|max_spectators
|Maximum number of spectators allowed on the server
|10
|-
|min_players
|Automatically pause the game when the number of active p...
|0
|-
|net_frame_freq
|Number of frames before a command will be (visibly) exec...
|1
|-
|net_sync_freq
|Number of frames to check if the game is still in sync
|100
|-
|pause_on_join
|Set if the server should pause gameplay while a client i...
|on
|-
|rcon_pw
|Remote connection password, used to modify a server whil...
|-
|restart_game_year
|Auto-restart the server when Jan 1st of the set year is ...
|0
|-
|server_advertise
|Set if the server will advertise to the master server an...
|on
|-
|server_ip
|IP that the server binds to. Changes take effect the nex...
|0.0.0.0
|-
|server_name
|Name of the server for multiplayer.
|-
|server_port
|Server port number; change this if your firewall interfe...
|3979 (TCP & UDP)
|-
|server_pw
|Server password to protect your server; only clients wit...
|}
===Other variables===
{| border=1 width="100%"
!width="225"|Variable
!Description
!width="90"|Default value
|-
|name
|Your name for multiplayer
|Player
|-
|company_pw
|Your company password; only clients with the password ca...
|-
|developer
|Redirect debugging output from the console/command line ...
|1
|
[[Category:マニュアル]]
終了行:
誰か和訳よろ…orz
| style="background:none; border:0px" |
The '''console''' allows you to see [[multiplayer]] chat ...
__TOC__
| style="background:none; border:0px"|
[[Image:console.png|none|frame|The OpenTTD Console]]
|}
==Using the console==
Open the console with the tilde key (~), located to the l...
After the console is open, type in a command, such as "he...
Tips:
* Scroll the console with Shift+Up/Down or Shift+Pageup/P...
* Scroll through the input history with the Up/Down arrow...
* Make the console bigger with Ctrl+Enter. [#k145a1ff]
* Paste text from the clipboard with the normal Ctrl+V (W...
==Console commands==
Here is a list of all the console commands available in O...
===Help commands===
{| border=1 width=100%
!width="225"|Command
!Description
|-
|help [<item>]
|Display basic console help, specify <item> for help on t...
|-
|list_cmds [<filter>]
|List all available commands, optionally only commands st...
|-
|list_vars [<filter>]
|List all registered variables, optionally only commands ...
|-
|list_aliases
|List all available [[Console_Aliases|aliases]].
|-
|list_patches
|List all [[patches|patch]] options.
|}
===Game commands===
These commands work both in single player games and on se...
{| border=1 width=100%
!width="225"|Command
!Description
|-
|newgame
|Start a new game.
|-
|restart
|Restart the same game.
|-
|connect <host>
|Connect to a network game running on <host>. Not availia...
|-
|save <nowiki><number | file></nowiki>
|Saves the current game as <number> or <file>.
|-
|load <nowiki><number | file></nowiki>
|Load the savegame <number> or <file>.
|-
|part
|Quit a running game and go back to the intro menu. Not a...
|-
|exit / quit
|Quit the game.
|}
===Server commands===
These commands are used to run a multiplayer game [[serve...
{| border=1 width=100%
!width="225"|Command
!Description
!width="90"|Clients
|-
|kick <nowiki><ip | client-id></nowiki>
|Kick the client with IP <ip> or id <client-id>.
|-
|ban <nowiki><ip | client-id></nowiki>
|Ban the client with IP <ip> or id <client-id>.
|-
|unban <ip>
|Remove a ban on <ip>.
|-
|banlist
|List banned clients.
|-
|reset_company <company-id>
|Delete the company identified by <company-id>.
|-
|pause
|Pause a network game.
|-
|unpause
|Unpause a network game.
|-
|clients
|Lists client id, name, company id, and IP address of eac...
|Yes
|-
|players
|Show a list of players and their attributes, e.g. compan...
|-
|status
|Get the status information on all currently connected cl...
|-
|server_info
|List current and maximum client/player limits.
|-
|say "<msg>"
|Send a chat message containing <text> to all players.
|Yes
|-
|say_client <client-id> "<msg>"
|Send a chat message containing <msg> to the client ident...
|Yes
|-
|say_player <player-id> "<msg>"
|Send a chat message containing <msg> to everyone in the ...
|Yes
|-
|rcon <password> "<command>"
|Execute <command> on the server authenticated by <passwo...
|Yes
|}
===File handling commands===
{| border=1 width=100%
!width="225"|Command
!Description
|-
|cd <nowiki><directory | number></nowiki>
|Change the working directory to <directory> or <number>.
|-
|ls / dir
|List files of current directory.
|-
|pwd
|Print out the current working directory.
|-
|rm <nowiki><number | file></nowiki>
|Remove a savegame by name or index.
|}
{| border=1 width=100%
!width="225"|Command
!Description
|-
|script <file>
|Record a script to the file named <file>.
|-
|exec <script> <?>
|Executes a local script file.
|-
|return
|Stop executing a running script.
|}
===Other commands===
{| border=1 width=100%
!width="225"|Command
!Description
|-
|screenshot <nowiki>[big | nocon]</nowiki>
|Takes a screenshot. 'big' makes a screenshot of the whol...
|-
|alias <name> <command>
|Create an [[Console_Aliases|alias]] named <name> bound t...
|-
|patch <patchname> [<newvalue>]
|Get and set the patch settings from the console. If <new...
the current value is printed. See [[Console_Settings|Cons...
|-
|dump_vars
|Print all known variables and their values.
|-
|getseed
|Returns the seed used to create the game, for randomly g...
|-
|scrollto <tile>
|Scroll to the tile numbered <tile>; accepts hexadecimal ...
|-
|clear
|Clears the console screen.
|-
|echo <text>
|Print out <text> on the console.
|-
|echoc <color> <text>
|Print out <text> in color <color>. <color> is a number b...
|-
|info_cmd <command>
|Show technical information on the command <commmand>.
|-
|info_var <variable>
|Show technical information on the variable <variable>.
|-
|debug_level [<level>]
|Get / set the debugging levels of different parts of the...
|-
|resetengines
|Resets all use-age and availability of engines.
|}
==Variables==
Here is a list of [[wikipedia:variable|variables]] availa...
===Server variables===
{| border=1 width="100%"
!width="225"|Variable
!Description
!width="90"|Default value
|-
|autoclean_companies
|Automatically shut down inactive companies to free them ...
|off
|-
|autoclean_protected
|Automatically remove the password from an inactive compa...
|36
|-
|autoclean_unprotected
|Automatically shut down inactive companies after the giv...
|12
|-
|max_clients
|Maximum number of players allowed on the server
|10
|-
|max_companies
|Maximum number of companies allowed in the game
|8
|-
|max_join_time
|Maximum amount of time (ticks) a client is allowed to join
|500
|-
|max_spectators
|Maximum number of spectators allowed on the server
|10
|-
|min_players
|Automatically pause the game when the number of active p...
|0
|-
|net_frame_freq
|Number of frames before a command will be (visibly) exec...
|1
|-
|net_sync_freq
|Number of frames to check if the game is still in sync
|100
|-
|pause_on_join
|Set if the server should pause gameplay while a client i...
|on
|-
|rcon_pw
|Remote connection password, used to modify a server whil...
|-
|restart_game_year
|Auto-restart the server when Jan 1st of the set year is ...
|0
|-
|server_advertise
|Set if the server will advertise to the master server an...
|on
|-
|server_ip
|IP that the server binds to. Changes take effect the nex...
|0.0.0.0
|-
|server_name
|Name of the server for multiplayer.
|-
|server_port
|Server port number; change this if your firewall interfe...
|3979 (TCP & UDP)
|-
|server_pw
|Server password to protect your server; only clients wit...
|}
===Other variables===
{| border=1 width="100%"
!width="225"|Variable
!Description
!width="90"|Default value
|-
|name
|Your name for multiplayer
|Player
|-
|company_pw
|Your company password; only clients with the password ca...
|-
|developer
|Redirect debugging output from the console/command line ...
|1
|
[[Category:マニュアル]]
ページ名: