콘솔

From Team Fortress Wiki
< User:ValS
Revision as of 14:41, 17 December 2021 by ValS (talk | contribs)
Jump to: navigation, search


팀 포트리스 2 에서 찾아볼 수 있는 개발자 콘솔

콘솔이란 게임 개발자, 콘텐츠 작성자 및 고급 사용자를 대상으로 하는 유저 인터페이스입니다. 콘솔은 게임이 해석하는 텍스트 명령어를 사용자가 입력하도록 돕는 텍스트 기반의 인터페이스입니다.

콘솔에 접속하기

콘솔을 활성화하는 옵션을 보여주는 고급 키보드 설정 대화 상자

콘솔에 대한 접근은 기본적으로 비활성화 되어있습니다. 콘솔을 열기 위해선 콘솔을 열기 위한 키가 설정 되어있어야 합니다. 이 키는 기본적으로 억음 부호, 물결표(`/~)로 되어 있습니다. 그리고 고급 키보드 설정 대화 상자에서 활성화를 해야합니다.

시작 옵션에서 -console를 이용하여 게임을 실행할 경우 활성화를 하지 않더라도 콘솔이 열립니다. -developer를 사용할 경우 콘솔과 함께 developersv_cheats 변수가 설정됩니다.

Xbox 360 또는 PlayStation 3 버전의 게임에서는 콘솔에 접근할 수 없습니다.

콘솔 사용하기

콘솔은 큰 출력 패널과 명령 프롬프트의 두 부분으로 나뉩니다.

출력 패널

출력 패널은 입력된 명령의 출력을 표시하는 것 외에도 플레이어 사망 및 채팅 텍스트와 같은 다양한 게임 이벤트를 기록합니다.

콘솔에 표시된 마지막 몇 줄은 developer 변수를 통해서 게임 화면 왼쪽 상단에 표시 될 수 있습니다.

명령 프롬프트

명령 프롬프트는 쓰여진 명령어를 처리합니다. return 키 Return 또는 엔터 키 ↵ Enter를 사용하여 명령어를 실행합니다.

GUI의 다른 텍스트 필드와 마찬가지로 클립보드를 지원하여 사용자가 텍스트를 잘라내고 복사하고 붙여넣을 수 있습니다.

명령 프롬프트는 자동 완성을 지원합니다. 사용자가 명령을 입력하면 게임에서 사용자가 입력하는 내용을 제안합니다. 탭 키 Tab ⇆를 누르면 제안이 수락되며 사용자가 계속해서 명령을 입력할 수 있습니다.

명령어 유형

There are two kinds of commands, pure commands and so called console variables. The difference is that a console variable retains a value, while pure commands execute once.

Commands are flagged as being one or more of special types of commands.

입력 명령어

Some commands are special and have a name beginning with a plus sign. These commands provide input used to play the game. When bound to a key they have the special property of automatically issuing their twin off command (indicated by beginning with a minus sign instead of the plus sign) when the key is released.

치트

본문: Cheats

Many commands are considered too powerful for normal players and are marked as cheats. Unless explicitly allowed by the server owner using the sv_cheats variable, pure commands marked as cheats will not execute and console variables will be reverted to their default values.

오프라인 명령어

Most commands only make sense when connected to a server. As such the game will prevent them being used unless connected to a server. A few do make sense even without a connected server and are marked as such.

복제되는 변수

Some variables must have the same value on both the server and the client. The game will temporarily override those variables on the client when connected to a server.

보관되는 변수

Some variables contain user settings that should persist across play sessions. They are stored in the config.cfg file by the game.

보호되는 변수

Certain variables contain data that should not be sent between clients and the server, such as passwords.

Demo에서 쓰이거나 금지된 변수

Some variables influence the recording of gameplay demos and as such need to be included/excluded from the demo recording.

변경 알림

Some variables are deemed to be important enough to alert all players on the server when they are changed. Changes to these variables are shown among the chat text overlay.

Change notify variables are included by default in server rule queries done by external tools.

특수 스크립트 파일

Team Fortress 2 automatically reads several game files and executes any commands within them. Here is the list of those files:

  • config.cfg - This is the default configuration file which is edited to reflect any in-game changes to keybinds or video settings. It is safe to edit this file, but it will change to reflect any modified keybinds on startup. This config will run every time the game starts up, before any other config.
    • config_default.cfg - This contains a basic set of keybinds, and will be executed as a backup if config.cfg is not present.
  • autoexec.cfg - This is the default config file for executing custom keybinds and aliases. This config will run every time the game starts up, after config.cfg.
  • Each class has a config file which automatically runs whenever a player switches to that class. Note that any settings set in one classes config file will be retained when switching classes unless explicitly rebound. They are as follows:
    • scout.cfg, soldier.cfg, pyro.cfg, demoman.cfg, heavyweapons.cfg, engineer.cfg, medic.cfg, sniper.cfg, spy.cfg
  • A config file can be created for any map if it shares the same name, and will run whenever that map is loaded. For example, a cp_well.cfg file will be automatically run any time Well (Control Point) is loaded.

스크립트 경로

If on Windows, scripting files may be found in:
<Steam Folder>/SteamApps/common/team fortress 2/tf/cfg
If on a Mac, scripting files may be found in:
~/Library/Application Support/Steam/SteamApps/common/team fortress 2/tf/cfg
If on Linux, scripting files may be found in:
~/.steam/steam/SteamApps/common/Team Fortress 2/tf/cfg

Since the SteamPipe update, code can also be placed in .../team fortress 2/tf/custom/yourfoldernamehere/cfg

원격 콘솔

Dedicated servers are exclusively controlled from the console. However, logging in to the server and reattaching to the console is a major hassle. Instead server administrators can use the remote console system. The game server runs an additional service that accepts console commands from remote clients. This is secured using a dedicated password.

맵에 적용되는 콘솔

Maps can issue console commands using the point_servercommand, point_clientcommand and point_broadcastclientcommand entities.

같이 보기

[[Category:GUI/ko]] 이후에 추가