1 (edited by Mic 2010-06-17 19:31:29)

Topic: [TUTORIAL] Binds.

We'll, i was hoping this topic would get usefull, it's about binds.
I did this becouse many players askes people for help while they see Binds/BindEmotes.
I give it a try.

Why people use Binds?
Mostly Players use binds, Maybe for a Smiley, Maybe for announcement.
The most used Bind is "xD", a smiley that is Laughing, the reason, is couse
some players don't wanna stop the game just too Write something.

Remote-Console binds
type bind f3 " vote yes; say <= voted yes." so players will see if you voted yes (couldn't find a better example, but for some clients this is extremely useful).
Also notice that you can bind binds:

bind m "bind i rcon up; bind j rcon left; bind k rcon down; bind l rcon right"
bind n "bind i say /up; bind j say /left; bind k say /down; bind l say /right"

(press m before playing ddrace, n before playing e.g. race+)

*Modified by Blue, Credits too him*

Rules of Binds
There is a Few rules with them, Here you can see them:

- Do Not spam Useless binds.
Don't Make a bind that spams, Like writing 135ru3495u34745973459834 or something, and spam it on the server,
You can get Banned, Hated, And yes, If you wanna keep your status, Than Play fair.

- Don't Include VERY Bad words in it.
Well, No porn/disgusting Words, Kids can be playing. And don't use a long bind.

Binding Numpad Keys. (By Alias):
The letters used are:
kp(Number) and you'll use it same way, (Look below this, too learn a simple bind), and you use a kp1 instead of 1.
bind kp1 say i love Swedish People.
Is an example.

How to Say a bind.
The Binds are simple. You can start By opening the Console. (Default=F1)
a Simple bind is The following: bind p say Hi!
As you click "P", It will say it, The binds are ment too be:
bind (letter) say (Sentace/word)
An example of Letters most be English, For example, Ü, Å, Ö For example wont work, neither F(1-12).

Binding Names
Start by using name change bind:´
bind (Key) player_Name (New Name)
Use for example: bind f player_name .mp3' <333
Mostly when you click you can disconnect and connect or press 'esc' and click on a skin, than esc again, you should get a change.


Mic.

2

Re: [TUTORIAL] Binds.

I took the liberty of editing your post to remove emotebinding, it's something that shouldn't be used by anyone since it's known to make old servers(pre-0.5.2) lag.

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

3 (edited by Blue 2010-05-27 16:16:10)

Re: [TUTORIAL] Binds.

I think you should add the effect of quotes to that tutorial. E.g. type bind f3 " vote yes; say <= voted yes." so players will see if you voted yes (couldn't find a better example, but for some clients this is extremely useful).
Also notice that you can bind binds:

bind m "bind i rcon up; bind j rcon left; bind k rcon down; bind l rcon right"
bind n "bind i say /up; bind j say /left; bind k say /down; bind l say /right"

(press m before playing ddrace, n before playing e.g. race+)

void ..

4

Re: [TUTORIAL] Binds.

Mh, as the binds for autoemotes, Why are they created if they ruin' the game?

Well. Do as you want, mods knows best.

5 (edited by Bee 2010-05-27 16:42:22)

Re: [TUTORIAL] Binds.

The only thing I see you didn't add was you have to hit [Enter] and then hit the binded button to say the word/phrase.
I've tried to do it without hitting enter because I forgot and it confused me, then I remember where I went wrong. I felt stupid afterward. xD

Give others the respect you wish to be respected with. In the mean time, enjoy the website!

6

Re: [TUTORIAL] Binds.

Isnt it kind of obvious that you should click enter afterwords?

7

Re: [TUTORIAL] Binds.

Yes... they'll probably get it, but some people are kind of out there... don't really use their brain.

Give others the respect you wish to be respected with. In the mean time, enjoy the website!

8

Re: [TUTORIAL] Binds.

I'll edit it, thanks.

9

Re: [TUTORIAL] Binds.

Sry for doublepost.

Blue, That's for mods, Which arent supported so i didnt write it.

10

Re: [TUTORIAL] Binds.

Silence wrote:

Mh, as the binds for autoemotes, Why are they created if they ruin' the game?

Well. Do as you want, mods knows best.

They weren't "created". They are just an bad side effect of having support for other useful stuff.

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

11

Re: [TUTORIAL] Binds.

Well, Okay,
This be fixed in 6.0?

12 (edited by Slayer *gV* 2010-05-28 15:07:46)

Re: [TUTORIAL] Binds.

Rules of Binds
There is a Few rules with them, Here you can see them:

- Do Not spam Useless binds.
Don't Make a bind that spams, Like writing 135ru3495u34745973459834 or something, and spam it on the server,
You can get Banned, Hated, And yes, If you wanna keep your status, Than Play fair.

- Don't Include VERY Bad words in it.
Well, No porn/disgusting Words, Kids can be playing. And don't use a long bind.

In my oppinion the most important of the topic. However, im a bit sceptical if this tutorial doesnt help "kiddies" to spam their "()/!)Q=")$(!? XD Q!")$!()$

13 (edited by Mic 2010-05-28 16:02:34)

Re: [TUTORIAL] Binds.

Kiddies won't really read though,
As spl0k said in Bee's Topic:

spl0k wrote:

long post is long

i don't think kids will read through all.

[+]!

14

Re: [TUTORIAL] Binds.

Silence wrote:

Well, Okay,
This be fixed in 6.0?

Apparts from removing the bind system or removing emote from binds, there's no way.
You can bind an emote to anykey, including one you may press for moving or fireing/hooking, it's not a special thing.

|ZPote| buffer[]'s posterous

15

Re: [TUTORIAL] Binds.

Okay, Why is ALL posts in this topic downvoted?

16

Re: [TUTORIAL] Binds.

I don't know why but I restored it for now. Be free to contact me if it happens again.

17

Re: [TUTORIAL] Binds.

Okie, Thanks Azon!

18

Re: [TUTORIAL] Binds.

Open topic Again,

19

Re: [TUTORIAL] Binds.

Mic wrote:

Sry for doublepost.

Blue, That's for mods, Which arent supported so i didnt write it.

Not only for mods, just the example I used to show it is for mods. I'm sure you might use it for other things too, e.g. for dynamic cam on and off, which consists of 3 parameters.

void ..

20

Re: [TUTORIAL] Binds.

Okay, i'll include it.

21

Re: [TUTORIAL] Binds.

How do you keep an emoticon for a long time and bind it with your moving key?? Please Help

22

Re: [TUTORIAL] Binds.

You can't hold an emoticon out, if that's what you're asking.

23

Re: [TUTORIAL] Binds.

I think there is no documentation about the 'exec' command, so I wrote a simple guide to toggle dynamic camera on and off with it. I think this is something that most people using dynamic camera might be interested in (although I couldn't care less, I don't use dynamic camera myself). I read about this method in another topic long ago but I can't find it now.

In order to Toggle dynamic camera with one key, for example 'f' you can do this:
create two files called "dynCamOn.cfg" and "dynCamOff.cfg" in:
for Windows:

%appdata%\teeworlds

or for GNU/Linux:

~/.teeworlds

write this line in "dynCamOff":

bind f "cl_mouse_followfactor 0; exec dynCamOn.cfg"

write this line in "dynCamOn":

bind f "cl_mouse_followfactor 60; exec dynCamOff.cfg"

then in local console (F1 in game):

exec dynCamOn.cfg

This way you can toggle the dynamic camera on and off with only one key.

In fact the 'exec' command opens up many possibilities to binding commands. another example that I use myself is binding a key to the 'disconnect' command. This way you can disconnect form a server with only one key. I use the key 'q' for this bind, the problem is I sometimes press q by mistake, one way to solve this problem is:

Create two files in the mentioned place above, called "qbind1.cfg" and "qbind2.cfg". Then put these lines in them:
qbind1.cfg:

 bind q "exec qbind2.cfg"

qbind2.cfg:

 bind q "disconnect; exec qbind1.cfg"

then in local console enter:

 exec qbind1.cfg 

This way you need to press q twice to disconnect from a server that is something more unlikely.

With this method you can toggle anything with one key. Think having two different keyboard layouts (You probably know what I mean if you're left handed smile ) that can be toggled by one key. Like when you share a single gaming system with your (right handed) brother/sister.

As a side note I should mention that this command can be used for evil. Don't use it for evil, people. It's a good thing. Use it for good. O_o

But... what if we tried more power?

24 (edited by ziliss 2013-02-26 18:28:26)

Re: [TUTORIAL] Binds.

Here are my binds. I like to play DDRACE, so they contain binds for it.

Config files can be found here:
Windows: C:\Documents and Settings\<account_name>\Application Data\Teeworlds\
Mac: ~/Library/Application Support/Teeworlds
Linux: ~/.teeworlds
All created config files are to be created in that same folder for the exec commands to work.

Append to settings.cfg:

cl_showfps 1                # Show FPS
cl_threadsoundloading 1        # Load sound files in background.
cl_cpu_throttle 1            # Allows CPU to sleep and not heat too much. Use if you have very high FPS (at least 120)

bind f12 "exit"                # Quit
bind backspace "disconnect"    # Disconnect from server

Create file actionKeys.cfg:

# Press backquote to switch between action and emote keyboard layouts:
bind backquote exec emoteKeys.cfg

bind q "+weapon4"        # Grenade launcher
bind e "+weapon3"        # Shotgun
bind 3 "+weapon5"        # Rifle

bind g "kill; +fire"    # Restart level
bind r "say /r"            # Rescue when freezed

bind x "say /stop"        # Locks your position where you are (toggle)
bind z "say /pause"        # Pauses, allowing you to look around

bind f "say /d"            # Call dummy
bind c "say /dc"        # Dummy change
bind v "say /dh"        # Dummy Hook (toggle)
bind b "say /dcm"        # Dummy copy moves (toggle)
bind n "say /dd"        # Dummy delete

Create file emoteKeys.cfg:

# Press backquote to switch between action and emote keyboard layouts:
bind backquote exec actionKeys.cfg

bind q "emote 2; exec actionKeys.cfg"        # Love
bind e "emote 14; exec actionKeys.cfg"        # ^^
bind r "emote 15; exec actionKeys.cfg"        # ???
bind f "emote 6; exec actionKeys.cfg"        # Sry

List of emote numbers (to be used with emote command):
OOOP: 0, !: 1, Love: 2, Drop: 3
...: 4, Sing: 5: Sry: 6, Ghost: 7
#: 8, Angry: 9, ANGRY!!: 10, #!!*!: 11
Zzz: 12, WTF: 13, ^^: 14, ???: 15

Create file autoexec.cfg:

# Loads the action keyboard layout
exec actionKeys.cfg

The autoexec.cfg is a special file that is automatically executed if it exists.

Multiple keyboard layouts:
To bind different actions to the same keys, I use 2 different keyboard layouts.
The first is called "action", used to play normally. It is loaded by the file actionKeys.cfg
The second is called "emote", used to quickly show emotes. It is loaded by the file emoteKeys.cfg
When I show an emote, it automatically switches back to the action layout.
I can always use the backquote key (bottom left key on my keyboard) to switch layouts manually.

Notes:
- I have a qwertz keyboard, but for some reason z and y keys are reversed.
- The emote binds are very few for the moment. I am still experimenting, and may expend them later.

You can find all the commands and settings here:
Client settings: https://www.teeworlds.com/?page=docs&am … ntSettings
Client commands: https://www.teeworlds.com/?page=docs&am … ntCommands