Binds/ko: Difference between revisions

From DDraceNetwork
FuzzyBot (talk | contribs)
Updating to match new version of source page
Line 1: Line 1:
{{LangNavBox}}
<languages/>
DDNet 클라이언트에는 거의 모든 키와 마우스 버튼에 '''바인딩(binding)'''할 수 있는 다양한 [https://ddnet.org/settingscommands/#client-settings 커맨드와 세팅들]이 있습니다. 기본적으로 '''F1'''을 눌러 액세스하는 콘솔 창에서 명령어을 입력할 수 있습니다.
<div lang="en" dir="ltr" class="mw-content-ltr">
== 구문 ==
DDNet client has a multitude of [https://ddnet.org/settingscommands/#client-settings commands and settings] that can be '''''bound''''' to nearly any key or mouse button. You can enter commands into the console, which by default is accessed by pressing '''F1.'''
</div>


=== 단일 바인드 ===
bind <span style="color:green">[키]</span> <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[값]</span>


위 명령어는 단순 바인드의 기본적인 구문입니다.
<div lang="en" dir="ltr" class="mw-content-ltr">
==Syntax==
</div>


*'''[키]''' 는 명령어를 바인딩하려는 키보드/ 마우스의 설정 공간입니다. 다시말해 설정해 놓고 싶은 조작키를 설정하는 곳입니다.


*'''[커맨드/세팅]''' 모든 명령어와 세팅 용어의 전체 목록은 [https://ddnet.org/settingscommands/#client-settings 여기]에서 찾을 수 있습니다.
<div lang="en" dir="ltr" class="mw-content-ltr">
*'''[값]'''은 설정하려는데 있어서 지정하려는 변수 또는 명령어에 대한 인수를 넣는 공간입니다. 모든 명령어에 인수가 필요한 것은 아닙니다.
===Single binds===
[https://github.com/ddnet/ddnet/blob/master/src/engine/client/keynames.h 여기]에서 키 코드를 찾거나 DDNet 클라이언트에서  설정 -> 조작에 있는 것 중 하나를 일시적으로 입력해보면 키 이름이 표시가 됩니다. 바인드와 함께 수정 키를 사용할 수도 있습니다.
</div>
bind <span style="color:magenta">ctrl+</span><span style="color:green">[키]</span> <span style="color:blue">[커멘드/세팅]</span> <span style="color:purple">[값]</span>
'''ctrl''', '''alt''', '''shift''' 및 '''gui'''를 함께 사용할 수 있습니다. gui는 Windows의 Windows 키, macos/osx의 커맨드 키, Linux의 super/meta를 나타내는 데 사용됩니다.


=== 다중 바인드 ===
  <div lang="en" dir="ltr" class="mw-content-ltr">
커맨드/세팅을 세미콜론(;)으로 구분하고 따옴표로 묶어 함께 연결할 수도 있습니다. 원하는 만큼 해당 체인에 명령을 추가할 수 있습니다.
bind <span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  bind <span style="color:green">[키]</span> <span style="color:blue"><span style="color:red">"</span>[커맨드/세팅] <span style="color:purple">[]</span><span style="color:red">;</span> [커맨드/세팅]</span> <span style="color:purple">[]</span><span style="color:red">"</span>
</div>
이렇게 하면 여러 가지의 명렁어를 함께 연결하면 모든 커맨드/세팅들이 정확히 '''동시에''' 게임에서 실행된다는 점이 중요합니다. 즉, 작성한 순서대로 순차적으로 실행되지 않는다는 의미입니다. 간격을 두어 지연시키는 유형의 명령어는 없습니다.
순서대로 작업을 수행하는 가장 좋은 방법은 시퀀스의 각 단계마다 다른 키를 바인딩하거나 [https://wiki.ddnet.org/wiki/Binds#Using_Config_Files 구성 파일]을 사용하여 하나의 키를 여러 번 눌러 여러 파일을 읽는 것입니다.


=== 중첩 바인드 ===
<div lang="en" dir="ltr" class="mw-content-ltr">
백슬래시(\)를 사용하여 각각의 새 따옴표 집합을 '''탈출 처리'''하여 여러 따옴표로 묶인 문자열을 한 줄에 중첩할 수 있습니다.
This is the basic syntax for simple binds.
bind <span style="color:green">[키]</span> <span style="color:red">"</span>bind <span style="color:green">[키]</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[값]</span><span style="color:red">;</span> bind <span style="color:green">[키]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[값]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:orange">\</span><span style="color:red">""</span>
</div>
위의 명령어처럼 명령어가 질어지면 백슬래시도 탈출 처리해야 합니다. 각각의 새 레이어가 다시 탈출 해제되므로 레이어당 백슬래시 양을 두 배로 늘려야 합니다. 콘솔에서 오류를 표시하기 전까지 사용할 수 있는 최대 백슬래시를 사용한 레이어 수는 '''5'''입니다. 이는 콘솔의 최대 문자 제한이 '''255'''이기 때문입니다. 6개의 레이어에 대한 백슬래시의 양은 '''240'''(1*2 + 3*2 + 7*2 + 15*2 + 31*2 + 63*2)이므로 '''15'''만 남습니다.


  1 = 1  <span style="color:orange">\</span>
<div lang="en" dir="ltr" class="mw-content-ltr">
*'''[key]''' is the key on your keyboard/mouse you want to bind a command to.
*'''[command/setting]''' A full list of all commands and settings can be found [https://ddnet.org/settingscommands/#client-settings here].
*'''[value]''' is the variable you want to set your setting to or an argument for a command. Not all commands require arguments
You can find keycodes [https://github.com/ddnet/ddnet/blob/master/src/engine/client/keynames.h here], or just type the key temporarily into one of the controls in the Settings > Controls page in DDNet client and it will show the key name.  You can also use modifier keys with binds.
bind <span style="color:magenta">ctrl+</span><span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
you can use '''ctrl''', '''alt''', '''shift''', and '''gui'''.  '''Gui''' is used to refer to the windows key on windows, the command key on macos/osx, and super/meta on linux.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
===Multiple binds===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
You can also chain commands/settings together by separating them using a semicolon and wrapping them in quotes. You can add as many commands to this chain as you want.
bind <span style="color:green">[key]</span> <span style="color:blue"><span style="color:red">"</span>[command/setting] <span style="color:purple">[value]</span><span style="color:red">;</span> [command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">"</span>
It's important to know that when chaining things together like this, all commands/settings get executed by the game at the exact same time, meaning they will not execute sequentially in the order you write them.  There is no sleep or delay type command to space things out the way you want them.  The best way to make things happen in an ordered sequence is to either bind a different key for each step of the sequence, or to use [https://wiki.ddnet.org/wiki/Binds#Using_Config_Files config files] to press one key multiple times to read multiple files.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
=== Nested binds===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
You can nest multiple quoted strings in a single line by escaping each new set of quotes with backslashes.
bind <span style="color:green">[key]</span> <span style="color:red">"</span>bind <span style="color:green">[key]</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:orange">\</span><span style="color:red">""</span>
As the quoted strings go deeper, you also need to escape the backslash.  Since each new layer will again un-escape them, you need to double the amount of backslashes per layer.  The maximum amount of layers you can use is '''5''' before the console gives you an error.  This is because the console has a maximum character limit of '''255'''.  The amount of backslashes for 6 layers is '''240''' (1*2 + 3*2 + 7*2 + 15*2 + 31*2 + 63*2), leaving you with only '''15''' characters.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
1 = 1  <span style="color:orange">\</span>
  2 = 3  <span style="color:orange">\\\</span>
  2 = 3  <span style="color:orange">\\\</span>
  3 = 7  <span style="color:orange">\\\\\\\</span>
  3 = 7  <span style="color:orange">\\\\\\\</span>
  4 = 15  <span style="color:orange">\\\\\\\\\\\\\\\</span>
  4 = 15  <span style="color:orange">\\\\\\\\\\\\\\\</span>
  5 = 31  <span style="color:orange">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</span>
  5 = 31  <span style="color:orange">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</span>
보기에는 혼란스러울 수 있을 테지만 더 명확하게 시각적으로 탈출 처리된 새로운 명령어을 만들어 보면 아래와 같이 만들 수 있습니다.
If this is confusing to look at, try making a new line for each escaped quote to get a more clear visual idea of what's happening.
  bind <span style="color:green">[]</span> <span style="color:red">
</div>
   "</span>bind <span style="color:green">[]</span> <span style="color:orange">
 
   \</span><span style="color:red">"</span><span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span><span style="color:red">;</span> bind <span style="color:green">[]</span><span style="color:orange">
  <div lang="en" dir="ltr" class="mw-content-ltr">
     \\\</span><span style="color:red">"</span><span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span><span style="color:red">;</span> bind <span style="color:green">[]</span> <span style="color:orange">
bind <span style="color:green">[key]</span> <span style="color:red">
     \\\\\\\</span><span style="color:red">"</span><span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span><span style="color:orange">
   "</span>bind <span style="color:green">[key]</span> <span style="color:orange">
   \</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span><span style="color:orange">
     \\\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span> <span style="color:orange">
     \\\\\\\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:orange">
     \\\\\\\</span><span style="color:red">"</span><span style="color:orange">
     \\\\\\\</span><span style="color:red">"</span><span style="color:orange">
     \\\</span><span style="color:red">"</span><span style="color:orange">
     \\\</span><span style="color:red">"</span><span style="color:orange">
   \</span><span style="color:red">"
   \</span><span style="color:red">"
   "</span>
   "</span>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
===Useful Commands & Settings===
</div>


===유용한 커맨드/세팅===


<div lang="en" dir="ltr" class="mw-content-ltr">
====Toggles====
====Toggles====
Toggles<ref>한국어로 코트에 달린 막대모양의 단추를 의미합니다. 단추이기에 끼우고 떼고 가능하다 해서 코딩 용어로 Toggle key라고도 쓰이는데 "한번 누르면 어떤 기능이 ON되고, 한번 더 누르면 OFF되는 키"를 말합니다.</ref>는 하나의 키를 사용하여 어떠한 설정에 대한 2개의 값을 번갈아 사용하는 방법입니다. Toggles에는 두 가지 유형이 있습니다.
</div>
*'''toggle''' 은 키를 누를 때마다 설정에 대한 두 값 중 하나가 변경되도록 사용됩니다.
*'''+toggle''' 은 키를 누르고 있는 '''동안에만''' 첫 번째 값이 설정되고 키에서 손을 떼면 두 번째 값이 설정되도록 사용됩니다.


bind <span style="color:green">[키]</span> <span style="color:red">"</span><span style="color:magenta">toggle</span> <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[값1] [값2]<span style="color:red">"</span></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
Toggles are a way to use a single key to alternate between 2 values for a setting.  There are two types of toggles.
</div>


bind <span style="color:green">[키]</span> <span style="color:red">"</span><span style="color:magenta">+toggle</span> <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[값1] [값2]<span style="color:red">"</span></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
Toggles는 클라이언트 설정(F1)에서만 작동합니다. 클라이언트 또는 채팅창에서는 사용할 수 없습니다.
*'''toggle''' is used so that each time you press a key, it will change between one of the two values for the setting
*'''+toggle''' is used so that your first value is set only while the key is being pressed, and the second value is set when the key is released.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
bind <span style="color:green">[key]</span> <span style="color:red">"</span><span style="color:magenta">toggle</span> <span style="color:blue">[setting]</span> <span style="color:purple">[value1] [value2]<span style="color:red">"</span></span>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
bind <span style="color:green">[key]</span> <span style="color:red">"</span><span style="color:magenta">+toggle</span> <span style="color:blue">[setting]</span> <span style="color:purple">[value1] [value2]<span style="color:red">"</span></span>
Toggles only work for client settings.  They cannot be used for client or chat commands.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
====Say====
====Say====
Say 는 바인딩을 위한 중요한 클라이언트 명령입니다. 채팅 명령어을 바인드에 통합하고 채팅창에 텍스트를 보낼 수 있습니다.
</div>


  bind <span style="color:green">[]</span> <span style="color:magenta">say</span> <span style="color:blue">/[채팅 커맨드]</span>
<div lang="en" dir="ltr" class="mw-content-ltr">
Say is an important client command for binding.  It allows you to incorporate chat commands into a bind as well as just send text to the chat.
  bind <span style="color:green">[key]</span> <span style="color:magenta">say</span> <span style="color:blue">/[chat command]</span>
</div>


  bind <span style="color:green">[]</span> <span style="color:magenta">say</span> <span style="color:blue">[채팅하고자 하는 말]</span>
  <div lang="en" dir="ltr" class="mw-content-ltr">
bind <span style="color:green">[key]</span> <span style="color:magenta">say</span> <span style="color:blue">[chat message]</span>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
====Colors====
====Colors====
일부 클라이언트 명령을 사용하면 색상을 설정할 수 있습니다.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Some client commands allow you to set colors.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
*'''player_color_body'''
*'''player_color_body'''
*'''player_color_feet'''
*'''player_color_feet'''
*'''cl_message_client_color'''
*'''cl_message_client_color'''
</div>


몇 가지 예시입니다.
<div lang="en" dir="ltr" class="mw-content-ltr">
 
are a few examples.
올바른 색상 값을 얻으려면 '''설정 > Tee'''로 이동하고 '''사용자 정의 색상''' 을 눌러 원하는 색상을 찾으십시오. 그 다음 콘솔로 이동하여 위에 나온 명령어을 입력하십시오. "'''Value:'''" 다음에 나오는 숫자가 관련 숫자입니다.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
To get the correct color values, go to '''Settings > Tee''', and use the sliders to find the color you want.  Go into the console and type the command for the color you're trying to set, by itself with no value.  The number that comes after "'''Value:'''" is the relevant number.
</div>


[[File:Colors.png]]
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:Colors.png|File:Colors.png]]
</div>


  <span style="color:blue">player_color_body</span> <span style="color:purple">5635840</span>
  <div lang="en" dir="ltr" class="mw-content-ltr">
또는 16진수 값으로 사용하려는 경우:
<span style="color:blue">player_color_body</span> <span style="color:purple">5635840</span>
or, if you prefer to use the hexadecimal value:
  <span style="color:blue">player_color_body</span> <span style="color:purple">$00FF00</span>
  <span style="color:blue">player_color_body</span> <span style="color:purple">$00FF00</span>
또한 이름으로도 몇 가지 색상 값이 적용됩니다. '''red''', '''yellow''', '''green''', '''cyan''', '''blue''', '''magenta''', '''white, gray, black''' 등 모두 적용됩니다.
It will also accept a few color values by name. '''red''', '''yellow''', '''green''', '''cyan''', '''blue''', '''magenta''', '''white, gray, black''' all work.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
====Emotes====
====Emotes====
'''emote''' 명령어을 사용하면 이모트 휠(shift)을 사용하지 않고 이모티콘를 나타낼 수 있습니다. 각 이모티콘들은 다른 숫자로 표시됩니다.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
The '''emote''' command can be used to display emotes without using the emote wheel.  Each emote is represented by a different number.
[[File:Emotes.png|right|frameless]]
[[File:Emotes.png|right|frameless]]
{| class="wikitable"
{| class="wikitable"
Line 137: Line 208:
| question
| question
|}
|}
</div>




예를 들어:
<div lang="en" dir="ltr" class="mw-content-ltr">
For example:
  bind <span style="color:green">h</span> <span style="color:blue">emote</span> <span style="color:purple">14</span>
  bind <span style="color:green">h</span> <span style="color:blue">emote</span> <span style="color:purple">14</span>
위의 명령어를 입력할 시 h 를 누르면 eyes 이모티콘이 나타납니다.
</div>
====그 외====
 
  binds <span style="color:blue">[]</span>
 
이 명령을 사용하여 [키]에 바인딩된 내용을 지정할 수 있습니다. 현재 바인드의 전체 목록을 얻으려면 마지막에 키 없이 사용하십시오.
<div lang="en" dir="ltr" class="mw-content-ltr">
  unbind <span style="color:blue">[]</span>
====Other====
지정한 키를 바인딩 해제합니다.
</div>
 
  <div lang="en" dir="ltr" class="mw-content-ltr">
binds <span style="color:blue">[key]</span>
You can use this command to print what's bound to a single key. Use it without a key at the end to get a full list of all your current binds.
  unbind <span style="color:blue">[key]</span>
Will unbind whatever key you specify.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Using Config Files==
</div>
 


==구성 파일 사용하기==
<div lang="en" dir="ltr" class="mw-content-ltr">
===Syntax===
</div>


===구문===
<div lang="en" dir="ltr" class="mw-content-ltr">
보다 복잡한 바인드의 경우 키 누름을 통해 실행되는 커맨드/세팅이 포함된 텍스트 파일을 만들 수 있습니다.
For more complicated binds, you can make text files containing settings/commands that get executed via a key press.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''settings.cfg'''
'''settings.cfg'''
  <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  <span style="color:blue">[커맨드/세팅] <span style="color:purple">[]</span><span style="color:red">;</span> [커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting] <span style="color:purple">[value]</span><span style="color:red">;</span> [command/setting]</span> <span style="color:purple">[value]</span>
  <span style="color:blue">[커맨드/세팅] <span style="color:purple">[]</span><span style="color:red">;</span> [커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting] <span style="color:purple">[value]</span><span style="color:red">;</span> [command/setting]</span> <span style="color:purple">[value]</span>
   
   
  bind <span style="color:green">[]</span> <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  bind <span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  bind <span style="color:green">[]</span> <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span>
  bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span>
커맨드/세팅은 세미콜론을 통하거나 새로운 줄을 사용하여 연결할 수 있습니다. 만들고자 하는 파일에 원하는 만큼 많은 커맨드/세팅/바인드들을 넣을 수 있습니다.
Settings/commands can be chained together via a  semicolon or by just using a new line. You can put as many commands/settings/binds as you want in these files.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''Note:''' You don't need to use '''.cfg''' as the extension.  You can actually use any file extension you want.  .'''cfg''' just seems to be the standard.
</div>


'''참고:''' 확장자로 '''.cfg'''를 사용할 필요가 없습니다. 실제로 원하는 파일 확장자를 사용할 수 있습니다. .'''cfg'''가 표준인 것 같습니다.


<div lang="en" dir="ltr" class="mw-content-ltr">
===Path/Exec ===
===Path/Exec ===
이 파일을 실행하려면 올바른 디렉토리에 넣고 '''exec''' 명령으로 실행해야 합니다. 올바른 경로는 운영 체제에 따라 다릅니다.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
In order to execute these files, you need to put them in correct directory and execute them with the '''exec''' command. The correct path depends on your operating system.
</div>
 


<div lang="en" dir="ltr" class="mw-content-ltr">
======Windows======
======Windows======
  %APPDATA%\DDNet
</div>
이 폴더를 찾는 더 쉬운 방법은 '''win+r'''을 눌러 실행창을 열고 위의 경로를 복붙하시면 됩니다.
 
  <div lang="en" dir="ltr" class="mw-content-ltr">
%APPDATA%\DDNet
An easier way to find this folder is to press '''win+r''' to open the Run dialog, and paste the path above.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
======MacOS======
======MacOS======
~/Library/Application\ Support/DDNet
</div>
라이브러리 폴더는 기본적으로 숨겨져 있을 수 있습니다. Finder에서 메뉴 표시줄의 '''이동''' 메뉴를 클릭합니다. '''alt''' 키를 누르고 있으면 라이브러리 폴더가 나타납니다. '''cmd''' + '''shift''' + '''g'''를 눌러 "폴더로 이동" 메뉴를 열고 위의 경로를 붙여넣을 수도 있습니다.


<div lang="en" dir="ltr" class="mw-content-ltr">
~/Library/Application\ Support/DDNet
The library folder might be hidden by default.  In Finder, click the '''Go''' menu in the menu bar.  If you hold the '''alt''' key, the Library folder will appear.  You can also press '''cmd''' + '''shift''' + '''g''' to open the "Go to folder" menu, and paste the path above.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
======Linux======
======Linux======
  ~/.DDNet  
</div>
'''참고:''' DDNet 버전 16.1에서 새 구성 디렉토리는 '''DDNet'''이라고 합니다. 이전 버전에서는 '''Teeworlds'''라고 불렸습니다. 이전 '''Teeworlds''' 디렉토리는 여전히 폴백으로 작동합니다. 예를 들어 Windows의 이전 구성 디렉토리는 다음과 같습니다.
 
  <div lang="en" dir="ltr" class="mw-content-ltr">
~/.DDNet  
'''Note:''' as of DDNet version 16.1, the new config directory is called '''DDNet'''. In previous versions it was called '''Teeworlds'''. The old '''Teeworlds''' directories still work as a fallback. For example, the old config directory for windows was:
  %APPDATA%\Teeworlds
  %APPDATA%\Teeworlds
</div>


파일이 올바른 경로에 있으면 '''exec''' 명령을 사용하여 게임 콘솔에서 실행할 수 있습니다.
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Once the files are in the correct path, you can execute them in the game console with the '''exec''' command.
  <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span>
  <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span>
or
or
  bind <span style="color:green">[]</span> <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span>
  bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span>
'Teeworlds' 디렉토리 내의 하위 디렉토리를 사용하여 파일을 구성할 수 있습니다. 파일을 실행할 때 경로를 포함하기만 하면 됩니다.
You can use sub-directories within the 'Teeworlds' directory to organize files. Just include the path when you execute the file.
  bind <span style="color:green">[]</span> <span style="color:magenta">exec</span> <span style="color:blue">[path/to/file.cfg]</span>
  bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">[path/to/file.cfg]</span>
</div>
 
 


<div lang="en" dir="ltr" class="mw-content-ltr">
=== Improved toggle with config files===
</div>


=== 구성 파일로 향상된 toggle ===
<div lang="en" dir="ltr" class="mw-content-ltr">
구성 파일을 사용하는 가장 일반적인 이유는 두 파일 사이를 번갈아 가며 [키] toggle을 만드는 것입니다.
The most common reason to use config files is to create a single-key toggle to alternate between two files.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''file1.cfg'''
'''file1.cfg'''
  <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
   
   
  bind <span style="color:green">[]</span> <span style="color:magenta">exec</span> <span style="color:blue">file2.cfg</span>
  bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">file2.cfg</span>
'''file2.cfg'''
'''file2.cfg'''
  <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
  <span style="color:blue">[커맨드/세팅]</span> <span style="color:purple">[]</span>
  <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span>
   
   
  bind <span style="color:green">[]</span> <span style="color:magenta">exec</span> <span style="color:blue">file1.cfg</span>
  bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">file1.cfg</span>
이 경우 '''[]'''는 두 파일에서 동일한 키입니다. 이렇게 하면 키를 누를 때마다 다른 파일로 전환됩니다. 올바른 경로에 이 두 파일이 있으면 둘 중 하나를 한 번만 '''실행'''할 수 있으며 바인딩을 해제할 때까지 '''영원히''' 바인딩됩니다.
In this case, '''[key]''' would be the same key in both files. This way each time you press the key, it will switch to the other file. Once you have both of these files in the correct path, you can '''exec''' either one just once and they will be bound forever until you unbind them.
  bind <span style="color:green">[]</span> <span style="color:magenta">exec</span> <span style="color:blue">file1.cfg</span>
  bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">file1.cfg</span>
이 방법을 사용하여 원하는 양의 파일 사이를 순환할 수 있습니다.
You can use this method to cycle between any amount of files.
</div>




===커스터마이징===
<div lang="en" dir="ltr" class="mw-content-ltr">
===Customization===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
====Echo====
====Echo====
바인드를 눌렀을 때 어떤 파일을 활성화하고 있는지 보다 명확하게 표시하려면 '''echo''' 명령을 사용하여 어떤 파일이 활성화되어 있는지 표시할 수 있습니다.
</div>
  [커맨드/세팅] []
 
  [커맨드/세팅] []
<div lang="en" dir="ltr" class="mw-content-ltr">
As a more clear way to show which file you're activating when you press a bind, you can use the '''echo''' command to display which one is active.
  [command/setting] [value]
  [command/setting] [value]
   
   
  <span style="color:blue">echo</span> <span style="color:purple">setting ON</span>
  <span style="color:blue">echo</span> <span style="color:purple">setting ON</span>
   
   
  bind [] exec file1.cfg
  bind [key] exec file1.cfg
한 단계 더 나아가 echo 메시지의 색상을 변경하는 명령이 있습니다.
To take this a step further, there is a command to change the color of the echo messages.
  [커맨드/세팅] []
  [command/setting] [value]
  [커맨드/세팅] []
  [command/setting] [value]
   
   
  <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span>
  <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span>
  <span style="color:blue">echo</span> <span style="color:purple">setting OFF</span>
  <span style="color:blue">echo</span> <span style="color:purple">setting OFF</span>
   
   
  bind [] exec file1.cfg
  bind [key] exec file1.cfg
"on" "off" 바인드에 대해 서로 다른 색상을 사용하면 어떤 설정을 활성화했는지 좀 더 쉽게 알 수 있습니다. 색상을 더 창의적으로 사용하려면 [https://wiki.ddnet.org/wiki/Binds#Colors 색상]을 참조하세요.
Having different colors for "on" and "off" binds makes it a bit easier to notice which setting you've activated. If you want to get more creative with colors, see [https://wiki.ddnet.org/wiki/Binds#Colors colors].
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
====Comments====
====Comments====
바인드 파일에도 주석을 넣을 수 있습니다.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
You can put comments in your bind files too.
</div>


  <span style="color:purple"># 이 줄은 일부 설정을 변경합니다.</span>
  <div lang="en" dir="ltr" class="mw-content-ltr">
  [커맨드/세팅] []
<span style="color:purple"># These lines change some settings</span>
  [커맨드/세팅] []
  [command/setting] [value]
  [command/setting] [value]
   
   
  <span style="color:purple"># 이 다음 줄은 키를 리바인드합니다.</span>
  <span style="color:purple"># This next line rebinds the key</span>
  bind [] exec file1.cfg
  bind [key] exec file1.cfg
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Examples==
</div>
 


==예시==
<div lang="en" dir="ltr" class="mw-content-ltr">
===훅 충돌선 항상 켜놓기===
===Hook line always on===
'''cl_show_hook_coll_own''' 명령어은 '''+showhookcoll''' 바인드(기본값은 '''S''')를 유지할 때 자신의 훅 충돌 선을 볼지 여부를 설정합니다. '''2'''로 설정하면 훅 충돌 선이 항상 자신에게만 표시됩니다. 다른 플레이어는 볼 수 없습니다.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
The command '''cl_show_hook_coll_own''', sets whether you will see your own hook collision line or not when you hold your '''+showhookcoll''' bind (defaulted to '''S''').  When set to '''2''', your hook collision line will always show only to you.  Others players won't see it.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
'''hook_line_on.cfg'''
'''hook_line_on.cfg'''
  <span style="color:blue">cl_show_hook_coll_own</span> <span style="color:purple">2</span>
  <span style="color:blue">cl_show_hook_coll_own</span> <span style="color:purple">2</span>
Line 258: Line 412:
   
   
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_on.cfg</span>
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_on.cfg</span>
이 두 가지를 올바른 경로와 콘솔에 넣으십시오.:
Put both of these in the correct path, and in console:
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_on.cfg</span>
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_on.cfg</span>
===모든 훅선===
</div>
'''cl_show_hook_coll_other''' 명령어을 사용하면 다른 Tee의 훅선을 볼 수 있어 보이지 않을 때 유용할 수 있습니다.
기본 훅선 바인드에 아래의 명령어를 추가하여 "업그레이드"할 수 있습니다.


<div lang="en" dir="ltr" class="mw-content-ltr">
===Everyone's hooklines===
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
The command '''cl_show_hook_coll_other''' allows you to see other tee's hooklines, which can be useful when they are out of your view.
You can add this to the basic hookline bind to "upgrade" it:
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
'''cl_show_hook_coll_other'''
'''cl_show_hook_coll_other'''
  bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:blue">+showhookcoll</span><span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">cl_show_hook_coll_other</span> <span style="color:purple">2 1</span><span style="color:red">"</span>
  bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:blue">+showhookcoll</span><span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">cl_show_hook_coll_other</span> <span style="color:purple">2 1</span><span style="color:red">"</span>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
===Deep Fly ===
===Deep Fly ===
Deep Fly 바인드는 메인 Tee로 망치/발사 할 때마다 더미 망치/발사하게 하는 방법입니다. 당신의 더미가 완전히 얼어붙은 경우, 이 바인드를 켠 상태에서 인형을 망치질하면 인형이 당신을 향해 망치질을 할 수 있습니다. 이것을 사용하여 더미와 함께 날 수 있지만 연습이 필요합니다. 더미가 완전히 얼지 않은 경우 게임 설정에 포함된 일반 Dummy [[Hammerfly]] 바인드의 대체 버전으로 사용할 수 있습니다. 여기서 망치질을 하면서 원할 때마다 나를 향해 권총을 발사할 수 있습니다. 더미 망치의 타이밍을 제어할 수 있으므로 더 나은 제어 기능이 제공된 것입니다.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
The deep fly bind is a way to make your dummy hammer/fire toward you whenever you fire with your main tee.  If your dummy is deep frozen, they can hammer back at you when you hammer them with this bind on. You can use this to fly with your dummy, but it takes practice.  If your dummy is not deep frozen, you can just use this as a alternative version of the regular Dummy Hammerfly bind included in the games settings, where you can fire your pistol each time you want to be hammered.  It offers better control since you can control the timing of your dummy's hammers.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:Deepfly webm.webm|351x198px|gif]]
[[File:Deepfly webm.webm|351x198px|gif]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
The command '''cl_dummy_hammer 1''' is what is used for the regular Dummy Hammerfly bind in the games control options.  By using a [https://wiki.ddnet.org/wiki/Binds#Toggles toggle], you can make your dummy hammer you only when you fire, and can make an on/off switch with config files.
</div>


'''cl_dummy_hammer 1''' 명령어은 게임 제어 옵션에서 일반 Dummy Hammerfly 바인딩에 사용되는 명령입니다. [https://wiki.ddnet.org/wiki/Binds#Toggles toggle]을 사용하면 발사할 때만 더미가 망치를 치게 만들 수 있고 구성 파일로 on/off 스위치를 만들 수 있습니다.
<div lang="en" dir="ltr" class="mw-content-ltr">
====Using 2 Config Files====
</div>


====2개의 구성파일 사용하기====
<div lang="en" dir="ltr" class="mw-content-ltr">
'''deepfly_on.cfg'''
'''deepfly_on.cfg'''
  bind <span style="color:green">mouse1</span> <span style="color:red">"</span><span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">cl_dummy_hammer</span> <span style="color:purple">1 0<span style="color:red">"</span>
  bind <span style="color:green">mouse1</span> <span style="color:red">"</span><span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">cl_dummy_hammer</span> <span style="color:purple">1 0<span style="color:red">"</span>
Line 293: Line 470:
Put both of these in the correct path, and in console:
Put both of these in the correct path, and in console:
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly_on.cfg</span>
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly_on.cfg</span>
</div>


====하나의 구성 파일만 사용하기====
하나의 구성 파일만 사용하여 위와 동일한 작업을 수행할 수 있습니다.


  bind <span style="color:green">x</span> <span style="color:red">"</span>bind <span style="color:green">mouse1</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:blue"><span style="color:magenta">+toggle</span> cl_dummy_hammer</span> <span style="color:purple">1 0</span><span style="color:orange">\</span><span style="color:red">";</span><span style="color:blue">cl_message_client_color <span style="color:purple">green</span></span><span style="color:red">;</span> <span style="color:blue">echo</span> <span style="color:purple">Deep Fly ON</span><span style="color:red">;</span> bind <span style="color:green">x</span> <span style="color:orange">\</span><span style="color:red">"</span>bind <span style="color:green">mouse1</span> <span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:blue">cl_dummy_hammer</span> <span style="color:purple">0</span><span style="color:red">;</span> <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span><span style="color:red">;</span> <span style="color:blue">echo</span> <span style="color:purple">Deep Fly OFF</span><span style="color:red">;</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly.cfg</span><span style="color:orange">\</span><span style="color:red">""</span>
<div lang="en" dir="ltr" class="mw-content-ltr">
아래 파일을 올바른 경로와 콘솔에 넣습니다.
====Using 1 Config File====
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
You can accomplish the same thing as above using only 1 config file.
</div>
 
  <div lang="en" dir="ltr" class="mw-content-ltr">
bind <span style="color:green">x</span> <span style="color:red">"</span>bind <span style="color:green">mouse1</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:blue"><span style="color:magenta">+toggle</span> cl_dummy_hammer</span> <span style="color:purple">1 0</span><span style="color:orange">\</span><span style="color:red">";</span><span style="color:blue">cl_message_client_color <span style="color:purple">green</span></span><span style="color:red">;</span> <span style="color:blue">echo</span> <span style="color:purple">Deep Fly ON</span><span style="color:red">;</span> bind <span style="color:green">x</span> <span style="color:orange">\</span><span style="color:red">"</span>bind <span style="color:green">mouse1</span> <span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:blue">cl_dummy_hammer</span> <span style="color:purple">0</span><span style="color:red">;</span> <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span><span style="color:red">;</span> <span style="color:blue">echo</span> <span style="color:purple">Deep Fly OFF</span><span style="color:red">;</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly.cfg</span><span style="color:orange">\</span><span style="color:red">""</span>
Put this file in the correct path, and in console:
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly.cfg</span>
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly.cfg</span>
</div>


'''참고 1:''' 이것은 mouse1이 '''+fire''' 바인딩이라고 가정합니다.
<div lang="en" dir="ltr" class="mw-content-ltr">
'''Note 1:''' This assumes mouse1 is your '''+fire''' bind.
</div> 


'''참고 2:''' '''+발사''' 바인드를 유지하는 동안 Dee Fly를 끄면 '''cl_dummy_hammer'''가 설정되어 있기 때문에 더미가 해머링 리듬<ref>기본으로 설정되는 dummy hammer(h)때 발생하는 일정 시간마다 망치치는 걸 의미합니다.</ref>에 갇히게 됩니다. 여전히 '''1''''''deepfly_off.cfg''''''cl_dummy_hammer 0''' 줄은 이 문제를 해결합니다.
<div lang="en" dir="ltr" class="mw-content-ltr">
'''Note 2:''' If you turn deep fly off while you're holding your '''+fire''' bind, your dummy will get stuck in a hammering rhythm since '''cl_dummy_hammer''' is set to '''1''' still.  The  '''cl_dummy_hammer 0''' line in '''deepfly_off.cfg''' fixes this.
</div>


==== 무기 교체하기 ====
 
바인드를 켰을 때 더미가 망치를 들고 있지 않으면 권총과 망치 사이를 번갈아 가며 전환합니다. 이 문제를 해결하려면 아래의 명령어를 참고하세요.
<div lang="en" dir="ltr" class="mw-content-ltr">
====Weapon Swapping====
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
If your dummy isn't holding hammer when you turn the bind on, they will switch back and forth between pistol and hammer. If you want to fix this:
  <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">0</span>
  <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">0</span>
이제 바인드를 사용하기 시작할 때 그들이 권총을 들고 있다면, 그들은 해머로 전환하고 1번의 권총 발사 후에 그 자리에 머무를 것입니다. 그러나 이 설정을 '''1'''로 설정하면 몇 가지 이점이 있습니다.
Now if they're holding pistol when you start using the bind, they will switch to hammer and stay there after 1 pistol shot. There are however some benefits of having this setting set to '''1'''.
  <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">1</span>
  <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">1</span>
이렇게 하면 완벽한 조준으로 더미가 본체에게 레이저를 발사할 수 있습니다. shotgun으로도 유용할 수 있습니다.
This will allow you to laser yourself with your dummy with perfect aim. It can also be useful with shotgun.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:Deepfly laser example.webm|351x198px|gif]]
[[File:Deepfly laser example.webm|351x198px|gif]]
</div>


이 두 설정을 모두 처리하려면 [https://wiki.ddnet.org/wiki/Binds#Toggles toggle]을 만들거나 [https://wiki.ddnet.org/wiki/Binds#Using_Config_Files 구성 파일] 또는 이 설정을 무기 결합에 연결하십시오.
<div lang="en" dir="ltr" class="mw-content-ltr">
  bind <span style="color:green">[]</span> <span style="color:blue"><span style="color:red">"</span>+weapon1<span style="color:red">;</span></span> <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:red">0"</span>
To manage dealing with both of these settings, you can either create a [https://wiki.ddnet.org/wiki/Binds#Toggles toggle], use [https://wiki.ddnet.org/wiki/Binds#Using_Config_Files config files], or have this setting attached to your weapon binds.
  bind <span style="color:green">[key]</span> <span style="color:blue"><span style="color:red">"</span>+weapon1<span style="color:red">;</span></span> <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:red">0"</span>
</div>


  bind <span style="color:green">[]</span> <span style="color:blue"><span style="color:red">"</span>+weapon5<span style="color:red">;</span></span> <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:red">1"</span>
  <div lang="en" dir="ltr" class="mw-content-ltr">
물론 기본적으로 '''mousewheelup''' '''mousewheeldown'''에 바인딩된 '''+nextweapon''' '''+prevweapon'''과 달리 전용 무기 바인딩이 있는 경우에만 작동합니다. ''.
bind <span style="color:green">[key]</span> <span style="color:blue"><span style="color:red">"</span>+weapon5<span style="color:red">;</span></span> <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:red">1"</span>
This of course only works if you have dedicated weapon binds as opposed to '''+nextweapon''' and '''+prevweapon''' which is by default bound to '''mousewheelup''' and '''mousewheeldown'''.
</div>


===45° 에이밍===
 
이 바인드를 사용하면 키를 누르고 있을 때 45° 각도로만 조준할 수 있습니다. roket을 자신의 머리로 쏘는데에 있어 유용합니다.
<div lang="en" dir="ltr" class="mw-content-ltr">
===45° Aiming===
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
This bind allows you to only aim in 45° angles when holding down the key. This is useful for shooting rockets straight up for double rockets and a few other scenarios.
  bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:magenta">+toggle</span> <span style="color:blue">cl_mouse_max_distance</span> <span style="color:purple">2 400<span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">inp_mousesens</span> <span style="color:purple">1 200</span><span style="color:red">;</span> <span style="color:blue">+showhookcoll</span><span style="color:purple"><span style="color:red">"</span>
  bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:magenta">+toggle</span> <span style="color:blue">cl_mouse_max_distance</span> <span style="color:purple">2 400<span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">inp_mousesens</span> <span style="color:purple">1 200</span><span style="color:red">;</span> <span style="color:blue">+showhookcoll</span><span style="color:purple"><span style="color:red">"</span>
기본값에서 '''cl_mouse_max_distance''' 또는 '''inp_mousesens'''를 변경한 경우 위의 예를 사용하면 해당 설정이 기본값으로 재설정됩니다. 바인드를 입력하기 전에 먼저 콘솔에 '''cl_mouse_max_distance''' '''inp_mousesens'''를 입력하여 설정을 확인하십시오.
Keep in mind that if you have changed '''cl_mouse_max_distance''' or '''inp_mousesens''' from the default, using the example above will reset those settings to default. Before you just enter the binds, check your settings for both first by typing '''cl_mouse_max_distance''' and '''inp_mousesens''' into the console.
  bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:magenta">+toggle</span> <span style="color:blue">cl_mouse_max_distance</span> <span style="color:purple">2 [Your Value]<span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">inp_mousesens</span> <span style="color:purple">1 [Your Value]</span><span style="color:red">;</span> <span style="color:blue">+showhookcoll</span><span style="color:purple"><span style="color:red">"</span>
  bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:magenta">+toggle</span> <span style="color:blue">cl_mouse_max_distance</span> <span style="color:purple">2 [Your Value]<span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">inp_mousesens</span> <span style="color:purple">1 [Your Value]</span><span style="color:red">;</span> <span style="color:blue">+showhookcoll</span><span style="color:purple"><span style="color:red">"</span>
'''참고:''' '''+showhookcoll''' 줄은 선택 사항입니다. Tee의 눈이 45°의 제약을 따르지 않기 때문에 조준하는 방향을 확인하는 데 도움이 됩니다.
'''Note:''' the '''+showhookcoll''' line is optional, it's just helpful to see which way you're aiming since your tee's eyes don't follow the 45° constraints.
</div>
 
 
<div lang="en" dir="ltr" class="mw-content-ltr">
===Rainbow Tee===
</div>


===무지개 Tee===
<div lang="en" dir="ltr" class="mw-content-ltr">
때때로 플레이하면서 색상이 알록달록하게 변하는 Tee를 볼 수 있습니다. 그렇게 하려면 각각의 이동 입력에 '''player_color_body''' 변경 사항을 바인딩하기만 하면 됩니다.
You will sometimes see players rapidly changing color as they play. To do this you just have to bind a '''player_color_body''' change to each of your regular movement inputs.
  bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span>
  bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span>
몇 가지 일반적인 입력에 대해 이 작업을 수행하고 다양한 항목을 순환할 수 있습니다.
You can do this for several common inputs and get a variety of to cycle through.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''rainbow_tee.cfg'''
'''rainbow_tee.cfg'''
  bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span>
  bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span>
Line 338: Line 553:
  bind <span style="color:green">mouse1</span> <span style="color:blue"><span style="color:red">"</span>+fire<span style="color:red">;</span> player_color_body</span> <span style="color:red">blue"</span>
  bind <span style="color:green">mouse1</span> <span style="color:blue"><span style="color:red">"</span>+fire<span style="color:red">;</span> player_color_body</span> <span style="color:red">blue"</span>
  bind <span style="color:green">mouse2</span> <span style="color:blue"><span style="color:red">"</span>+hook<span style="color:red">;</span> player_color_body</span> <span style="color:red">cyan"</span>
  bind <span style="color:green">mouse2</span> <span style="color:blue"><span style="color:red">"</span>+hook<span style="color:red">;</span> player_color_body</span> <span style="color:red">cyan"</span>
다음은 무지개 Tee 파일이 어떻게 생겼는지에 대한 예입니다. 올바른 경로에 저장하고 한 번 실행할 수 있습니다.
Here's an example of what a rainbow tee file looks like. You could save that in the correct path and execute it once.
  <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee.cfg</span>
  <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee.cfg</span>
또는 on/off 를 원하는 경우:
Or if you want a key to toggle it on and off:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''rainbow_tee_on.cfg'''
'''rainbow_tee_on.cfg'''
  bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span>
  bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span>
Line 358: Line 575:
   
   
  <span style="color:purple">bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span>
  <span style="color:purple">bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span>
이 두 가지를 올바른 경로와 콘솔에 넣으십시오.
Put both of these in the correct path, and in console:
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span>
  bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span>
물론 색상을 더 창의적으로 사용하고 '''player_color_feet'''도 사용할 수 있습니다. 색상 작동 방식에 대한 자세한 내용은 [https://wiki.ddnet.org/wiki/Binds#Colors 색상]을 참조하세요.
You can of course get more creative with colors and use '''player_color_feet''' too. To learn more about how colors work, see [https://wiki.ddnet.org/wiki/Binds#Colors colors]
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
'''Note:''' This assumes you have default binds for left, right, jump, fire, and hook.
</div>


'''참고:''' 왼쪽, 오른쪽, 점프, 발사, 훅에 대한 기본 바인딩이 있다고 가정합니다.


== 그밖에 ==
<div lang="en" dir="ltr" class="mw-content-ltr">
==See also ==
</div>


*[https://forum.ddnet.org/viewtopic.php?t=2537 Just bind it] - 복사에 사용할 수 있는 유용한 바인딩
<div lang="en" dir="ltr" class="mw-content-ltr">
*[https://forum.ddnet.org/viewtopic.php?t=5819 Take Binding to the next level, with Scripting!] - 고급 바인드에 대한 또 다른 포럼 게시물
*[https://forum.ddnet.org/viewtopic.php?t=2537 Just bind it] - Useful binds available for copying
*[https://www.youtube.com/watch?v=sELsw2I2jj8& Teeworlds New Binding Tutorial by Klex] - KlexMikrowelle의 바인드에 대한 비디오
*[https://forum.ddnet.org/viewtopic.php?t=5819 Take Binding to the next level, with Scripting!] - Another forum post about more advanced binds
*[https://www.youtube.com/watch?v=sELsw2I2jj8& Teeworlds New Binding Tutorial by Klex] - A video tutorial about binds by KlexMikrowelle
</div>

Revision as of 20:29, 11 February 2023

DDNet client has a multitude of commands and settings that can be bound to nearly any key or mouse button. You can enter commands into the console, which by default is accessed by pressing F1.


Syntax


Single binds

bind [key] [command/setting] [value]

This is the basic syntax for simple binds.

  • [key] is the key on your keyboard/mouse you want to bind a command to.
  • [command/setting] A full list of all commands and settings can be found here.
  • [value] is the variable you want to set your setting to or an argument for a command. Not all commands require arguments

You can find keycodes here, or just type the key temporarily into one of the controls in the Settings > Controls page in DDNet client and it will show the key name. You can also use modifier keys with binds.

bind ctrl+[key] [command/setting] [value]

you can use ctrl, alt, shift, and gui. Gui is used to refer to the windows key on windows, the command key on macos/osx, and super/meta on linux.


Multiple binds

You can also chain commands/settings together by separating them using a semicolon and wrapping them in quotes. You can add as many commands to this chain as you want.

bind [key] "[command/setting] [value]; [command/setting] [value]"

It's important to know that when chaining things together like this, all commands/settings get executed by the game at the exact same time, meaning they will not execute sequentially in the order you write them. There is no sleep or delay type command to space things out the way you want them. The best way to make things happen in an ordered sequence is to either bind a different key for each step of the sequence, or to use config files to press one key multiple times to read multiple files.


Nested binds

You can nest multiple quoted strings in a single line by escaping each new set of quotes with backslashes.

bind [key] "bind [key] \"[command/setting] [value]; bind [key] \\\"[command/setting] [value] \\\"\""

As the quoted strings go deeper, you also need to escape the backslash. Since each new layer will again un-escape them, you need to double the amount of backslashes per layer. The maximum amount of layers you can use is 5 before the console gives you an error. This is because the console has a maximum character limit of 255. The amount of backslashes for 6 layers is 240 (1*2 + 3*2 + 7*2 + 15*2 + 31*2 + 63*2), leaving you with only 15 characters.

1 = 1 \

2 = 3   \\\
3 = 7   \\\\\\\
4 = 15  \\\\\\\\\\\\\\\
5 = 31  \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

If this is confusing to look at, try making a new line for each escaped quote to get a more clear visual idea of what's happening.

bind [key]

 "bind [key] 
  \"[command/setting] [value]; bind [key]
   \\\"[command/setting] [value]; bind [key] 
    \\\\\\\"[command/setting] [value]
    \\\\\\\"
   \\\"
  \"
 "


Useful Commands & Settings


Toggles

Toggles are a way to use a single key to alternate between 2 values for a setting. There are two types of toggles.

  • toggle is used so that each time you press a key, it will change between one of the two values for the setting
  • +toggle is used so that your first value is set only while the key is being pressed, and the second value is set when the key is released.

bind [key] "toggle [setting] [value1] [value2]"

bind [key] "+toggle [setting] [value1] [value2]" Toggles only work for client settings. They cannot be used for client or chat commands.


Say

Say is an important client command for binding. It allows you to incorporate chat commands into a bind as well as just send text to the chat.

bind [key] say /[chat command]

bind [key] say [chat message]


Colors

Some client commands allow you to set colors.

  • player_color_body
  • player_color_feet
  • cl_message_client_color

are a few examples.

To get the correct color values, go to Settings > Tee, and use the sliders to find the color you want. Go into the console and type the command for the color you're trying to set, by itself with no value. The number that comes after "Value:" is the relevant number.

File:Colors.png

player_color_body 5635840 or, if you prefer to use the hexadecimal value:

player_color_body $00FF00

It will also accept a few color values by name. red, yellow, green, cyan, blue, magenta, white, gray, black all work.


Emotes

The emote command can be used to display emotes without using the emote wheel. Each emote is represented by a different number.

emote 0 oop
emote 1 exclamation
emote 2 hearts
emote 3 drop
emote 4 dotdot
emote 5 music
emote 6 sorry
emote 7 ghost
emote 8 sushi
emote 9 splattee
emote 10 deviltee
emote 11 zomg
emote 12 zzz
emote 13 wtf
emote 14 eyes
emote 15 question


For example:

bind h emote 14


Other

binds [key] You can use this command to print what's bound to a single key. Use it without a key at the end to get a full list of all your current binds.

unbind [key]

Will unbind whatever key you specify.


Using Config Files


Syntax

For more complicated binds, you can make text files containing settings/commands that get executed via a key press.

settings.cfg

[command/setting] [value]
[command/setting] [value]
[command/setting] [value]; [command/setting] [value]
[command/setting] [value]; [command/setting] [value]

bind [key] [command/setting] [value]
bind [key] exec [file.cfg]

Settings/commands can be chained together via a semicolon or by just using a new line. You can put as many commands/settings/binds as you want in these files.

Note: You don't need to use .cfg as the extension. You can actually use any file extension you want. .cfg just seems to be the standard.


Path/Exec

In order to execute these files, you need to put them in correct directory and execute them with the exec command. The correct path depends on your operating system.


Windows

%APPDATA%\DDNet An easier way to find this folder is to press win+r to open the Run dialog, and paste the path above.


MacOS

~/Library/Application\ Support/DDNet The library folder might be hidden by default. In Finder, click the Go menu in the menu bar. If you hold the alt key, the Library folder will appear. You can also press cmd + shift + g to open the "Go to folder" menu, and paste the path above.


Linux

~/.DDNet Note: as of DDNet version 16.1, the new config directory is called DDNet. In previous versions it was called Teeworlds. The old Teeworlds directories still work as a fallback. For example, the old config directory for windows was:

%APPDATA%\Teeworlds


Once the files are in the correct path, you can execute them in the game console with the exec command.

exec [file.cfg]

or

bind [key] exec [file.cfg]

You can use sub-directories within the 'Teeworlds' directory to organize files. Just include the path when you execute the file.

bind [key] exec [path/to/file.cfg]


Improved toggle with config files

The most common reason to use config files is to create a single-key toggle to alternate between two files.

file1.cfg

[command/setting] [value]
[command/setting] [value]
[command/setting] [value]

bind [key] exec file2.cfg

file2.cfg

[command/setting] [value]
[command/setting] [value]
[command/setting] [value]

bind [key] exec file1.cfg

In this case, [key] would be the same key in both files. This way each time you press the key, it will switch to the other file. Once you have both of these files in the correct path, you can exec either one just once and they will be bound forever until you unbind them.

bind [key] exec file1.cfg

You can use this method to cycle between any amount of files.


Customization


Echo

As a more clear way to show which file you're activating when you press a bind, you can use the echo command to display which one is active.

[command/setting] [value]
[command/setting] [value]

echo setting ON

bind [key] exec file1.cfg

To take this a step further, there is a command to change the color of the echo messages.

[command/setting] [value]
[command/setting] [value]

cl_message_client_color red
echo setting OFF

bind [key] exec file1.cfg

Having different colors for "on" and "off" binds makes it a bit easier to notice which setting you've activated. If you want to get more creative with colors, see colors.


Comments

You can put comments in your bind files too.

# These lines change some settings

[command/setting] [value]
[command/setting] [value]

# This next line rebinds the key
bind [key] exec file1.cfg


Examples


Hook line always on

The command cl_show_hook_coll_own, sets whether you will see your own hook collision line or not when you hold your +showhookcoll bind (defaulted to S). When set to 2, your hook collision line will always show only to you. Others players won't see it.

hook_line_on.cfg

cl_show_hook_coll_own 2

cl_message_client_color green
echo Hook Line ON

bind x exec hook_line_off.cfg

hook_line_off.cfg

cl_show_hook_coll_own 1

cl_message_client_color red
echo Hook Line OFF

bind x exec hook_line_on.cfg

Put both of these in the correct path, and in console:

bind x exec hook_line_on.cfg

Everyone's hooklines

The command cl_show_hook_coll_other allows you to see other tee's hooklines, which can be useful when they are out of your view. You can add this to the basic hookline bind to "upgrade" it:

cl_show_hook_coll_other

bind x "+showhookcoll; +toggle cl_show_hook_coll_other 2 1"


Deep Fly

The deep fly bind is a way to make your dummy hammer/fire toward you whenever you fire with your main tee. If your dummy is deep frozen, they can hammer back at you when you hammer them with this bind on. You can use this to fly with your dummy, but it takes practice. If your dummy is not deep frozen, you can just use this as a alternative version of the regular Dummy Hammerfly bind included in the games settings, where you can fire your pistol each time you want to be hammered. It offers better control since you can control the timing of your dummy's hammers.

The command cl_dummy_hammer 1 is what is used for the regular Dummy Hammerfly bind in the games control options. By using a toggle, you can make your dummy hammer you only when you fire, and can make an on/off switch with config files.


Using 2 Config Files

deepfly_on.cfg

bind mouse1 "+fire; +toggle cl_dummy_hammer 1 0"

cl_message_client_color green
echo Deep Fly ON

bind x exec deepfly_off.cfg

deepfly_off.cfg

bind mouse1 +fire
cl_dummy_hammer 0

cl_message_client_color red
echo Deep Fly OFF

bind x exec deepfly_on.cfg

Put both of these in the correct path, and in console:

bind x exec deepfly_on.cfg


Using 1 Config File

You can accomplish the same thing as above using only 1 config file.

bind x "bind mouse1 \"+fire; +toggle cl_dummy_hammer 1 0\";cl_message_client_color green; echo Deep Fly ON; bind x \"bind mouse1 +fire; cl_dummy_hammer 0; cl_message_client_color red; echo Deep Fly OFF; exec deepfly.cfg\"" Put this file in the correct path, and in console:

bind x exec deepfly.cfg

Note 1: This assumes mouse1 is your +fire bind.

Note 2: If you turn deep fly off while you're holding your +fire bind, your dummy will get stuck in a hammering rhythm since cl_dummy_hammer is set to 1 still. The cl_dummy_hammer 0 line in deepfly_off.cfg fixes this.


Weapon Swapping

If your dummy isn't holding hammer when you turn the bind on, they will switch back and forth between pistol and hammer. If you want to fix this:

cl_dummy_restore_weapon 0

Now if they're holding pistol when you start using the bind, they will switch to hammer and stay there after 1 pistol shot. There are however some benefits of having this setting set to 1.

cl_dummy_restore_weapon 1

This will allow you to laser yourself with your dummy with perfect aim. It can also be useful with shotgun.

To manage dealing with both of these settings, you can either create a toggle, use config files, or have this setting attached to your weapon binds.

bind [key] "+weapon1; cl_dummy_restore_weapon 0"

bind [key] "+weapon5; cl_dummy_restore_weapon 1" This of course only works if you have dedicated weapon binds as opposed to +nextweapon and +prevweapon which is by default bound to mousewheelup and mousewheeldown.


45° Aiming

This bind allows you to only aim in 45° angles when holding down the key. This is useful for shooting rockets straight up for double rockets and a few other scenarios.

bind x "+toggle cl_mouse_max_distance 2 400; +toggle inp_mousesens 1 200; +showhookcoll"

Keep in mind that if you have changed cl_mouse_max_distance or inp_mousesens from the default, using the example above will reset those settings to default. Before you just enter the binds, check your settings for both first by typing cl_mouse_max_distance and inp_mousesens into the console.

bind x "+toggle cl_mouse_max_distance 2 [Your Value]; +toggle inp_mousesens 1 [Your Value]; +showhookcoll"

Note: the +showhookcoll line is optional, it's just helpful to see which way you're aiming since your tee's eyes don't follow the 45° constraints.


Rainbow Tee

You will sometimes see players rapidly changing color as they play. To do this you just have to bind a player_color_body change to each of your regular movement inputs.

bind a "+left; player_color_body red"

You can do this for several common inputs and get a variety of to cycle through.

rainbow_tee.cfg

bind a "+left; player_color_body red"
bind d "+right; player_color_body yellow"
bind space "+jump; player_color_body green"
bind mouse1 "+fire; player_color_body blue"
bind mouse2 "+hook; player_color_body cyan"

Here's an example of what a rainbow tee file looks like. You could save that in the correct path and execute it once.

exec rainbow_tee.cfg

Or if you want a key to toggle it on and off:

rainbow_tee_on.cfg

bind a "+left; player_color_body red"
bind d "+right; player_color_body yellow"
bind space "+jump; player_color_body green"
bind mouse1 "+fire; player_color_body blue"
bind mouse2 "+hook; player_color_body cyan"

bind x exec rainbow_tee_off.cfg

rainbow_tee_off.cfg

bind a +left
bind d +right
bind space +jump
bind mouse1 +fire
bind mouse2 +hook

bind x exec rainbow_tee_on.cfg

Put both of these in the correct path, and in console:

bind x exec rainbow_tee_on.cfg

You can of course get more creative with colors and use player_color_feet too. To learn more about how colors work, see colors

Note: This assumes you have default binds for left, right, jump, fire, and hook.


See also