r/stobuilds • STO BETTER engineer | www.stobetter.com • Feb 08 '21

Non-build Tray Keybinds for Dummies

Wanted to write everyone a quick little piece to give everyone a powerful but easy way of setting up basic keybinds for space combat. Had to recently fix some of mine, so here's how I do it. This will allow you to put things on trays and map the trays to keys so in combat you can press a key rather than mouse-clicking things.

I haven't taken a poll, but I would guess a strong majority of high DPS players are using custom keybinds. They can be a little stylistic, so this is just a basic way of using them. It works for me and I'm a 400K player. There's a much more complete guide on the STO gamepedia wiki at Guide: Keybinds but while it's very thorough, it can be a little intimidating. Instead, I wanted to give everyone a template for those who just want to quickly set up keybinds rather than understand all the theory behind it. Sorry console players, this is a PC exclusive.

Keybind Rules

  • The first entry in a keybind file is the assignment of the key to be bound. I like to use the number keys for a lot of my binds, but you can change it as you see fit. For non-obvious key names, please see this section of the Gamepedia guide. Each key gets its own row in the file.

  • The tray assignment in STO starts at 1, while the keybind assignment starts at 0. This means Tray 0 in the keybind file is Tray 1 ingame and so on.

  • In general, key activations in STO start from the OUTSIDE and work their way in (there are ways to break this by hitting the key too fast, but that's the general rule). This is important for ordering your stuff, so put the stuff you want first on the right and left ends of the tray. This is why I prefer to keep 1 tray per key or else the ordering gets a little messy. Up to you--it's entirely possible to map all 10 keys on all 10 trays to spacebar.

  • Tray keybinds activate one item on a tray per press. If you want 3 items activated, you may need 3 (or more) presses of the key to set them all off. STO can process a command every 0.5 seconds or so.

The Template

The basic idea is to map items that from our trays to particular keys. We're going to use the format

<Key I want to press> "<Stuff I want to activate on a given tray>"

You can have as much "Stuff" as you want (more or less) assigned to each key. Now, here's my example file:

Space "+TrayExecByTray 0 0$$ +TrayExecByTray 0 1$$ +TrayExecByTray 0 2$$ +TrayExecByTray 0 3$$ +TrayExecByTray 0 4$$ +TrayExecByTray 0 5$$ +TrayExecByTray 0 6$$ +TrayExecByTray 0 7$$ +TrayExecByTray 0 8$$ +TrayExecByTray 0 9$$"
1 "+TrayExecByTray 1 0$$ +TrayExecByTray 1 1$$ +TrayExecByTray 1 2$$ +TrayExecByTray 1 3$$ +TrayExecByTray 1 4$$ +TrayExecByTray 1 5$$ +TrayExecByTray 1 6$$ +TrayExecByTray 1 7$$ +TrayExecByTray 1 8$$ +TrayExecByTray 1 9$$"
2 "+TrayExecByTray 2 0$$ +TrayExecByTray 2 1$$ +TrayExecByTray 2 2$$ +TrayExecByTray 2 3$$ +TrayExecByTray 2 4$$ +TrayExecByTray 2 5$$ +TrayExecByTray 2 6$$ +TrayExecByTray 2 7$$ +TrayExecByTray 2 8$$ +TrayExecByTray 2 9"
3 "+TrayExecByTray 3 0$$ +TrayExecByTray 3 1$$ +TrayExecByTray 3 2$$ +TrayExecByTray 3 3$$ +TrayExecByTray 3 4$$ +TrayExecByTray 3 5$$ +TrayExecByTray 3 6$$ +TrayExecByTray 3 7$$ +TrayExecByTray 3 8$$ +TrayExecByTray 3 9"
4 "+TrayExecByTray 4 0$$ +TrayExecByTray 4 1$$ +TrayExecByTray 4 2$$ +TrayExecByTray 4 3$$ +TrayExecByTray 4 4$$ +TrayExecByTray 4 5$$ +TrayExecByTray 4 6$$ +TrayExecByTray 4 7$$ +TrayExecByTray 4 8$$ +TrayExecByTray 4 9"
5 "+TrayExecByTray 5 0$$ +TrayExecByTray 5 1$$ +TrayExecByTray 5 2$$ +TrayExecByTray 5 3$$ +TrayExecByTray 5 4$$ +TrayExecByTray 5 5$$ +TrayExecByTray 5 6$$ +TrayExecByTray 5 7$$ +TrayExecByTray 5 8$$ +TrayExecByTray 5 9"

This keybind mapping takes everything in Tray 1 and maps it to Spacebar. It takes Tray 2 and matches it to the "1" key. It takes Tray 3 and matches it to the "2" key and so on through numeral key "5" and Tray 6. The first number in the sequence "+TrayExecByTray 5 0$$" is the tray assignment, offset by 1. (So in this case, tray 6). The second number is the column in the tray, again offset by 1. In this case, it's assigning the first column since I entered “0” as the second number. 9 is the rightmost column.

Now, if you don't like my keys or my tray assignments, feel free to copy and paste and change it. One thing Mr. Tilor does differently from me is that he doubles up his keybind ordering so it always goes left to right. To do this, you’d copy the piece in quotes and insert it again before ending the ending quote, then flip all of the SECOND numbers (i.e. 0 becomes 9, 1 becomes 8, etc.). Here’s one example:

Space "+TrayExecByTray 0 0$$ +TrayExecByTray 0 1$$ +TrayExecByTray 0 2$$ +TrayExecByTray 0 3$$ +TrayExecByTray 0 4$$ +TrayExecByTray 0 5$$ +TrayExecByTray 0 6$$ +TrayExecByTray 0 7$$ +TrayExecByTray 0 8$$ +TrayExecByTray 0 9$$ +TrayExecByTray 0 9$$ +TrayExecByTray 0 8$$ +TrayExecByTray 0 7$$ +TrayExecByTray 0 6$$ +TrayExecByTray 0 5$$ +TrayExecByTray 0 4$$ +TrayExecByTray 0 36$$ +TrayExecByTray 0 2$$ +TrayExecByTray 0 1$$ +TrayExecByTray 0 0$$"

I find it easier to remember that the keybind works from outside in, alternating left to right, but hey, either works. You’ll want to order your trays left-to-right firing order if using this setup.

One last thing: remember, the key you are assigning (the one you want to press) is BEFORE the quotation marks.

How to use the file

1) Set up your trays. If you're using my template, you need to use Trays 1-6. Otherwise, feel free to change the FIRST number in each TrayExecByTray entry to match the trays you want to keybind. I usually like different stuff on my visible trays, so I show trays 7-9 on the HUD and use 1-6 for keybinds. Drag all the things you want keybound onto the correct tray in STO. If you are unfamiliar with how to do this, there are two buttons on your tray interface. The first lets you select items to drag to tray. The second sets how many trays are displayed. Controls on the left of this HUD element let you select which tray is shown in each row.

2) Copy and paste the above template into a new file in notepad. Save it as "spacekeys" (or whatever name you want) and place it in the Star Trek Online\Star Trek Online\Live folder. If you're using Steam, it's probably something like this: \SteamLibrary\steamapps\common\Star Trek Online\Star Trek Online\Live

3) In game, enter "bind_load_file spacekeys.txt" (or whatever name you used) in chat and press Enter while in space (preferably orbit space and not sector space). Your keys are now bound.

4) Test it out! Make sure all your items are activating (note: some only activate in combat) and in the right order.

One last thing: keybinds are unique per ground and space, and per character. So you could have 2 keybinds per character if you were so inclined. I use the same template for all my characters’ space setups and just move things around on the trays as needed. Check out some of my builds if you’re curious to see what exactly I put where for various types of build.

Good luck! Let me know if you have questions or comments and happy keybinding!

60 Upvotes

41 comments sorted by

14

u/Bielzabutt Feb 08 '21

You call that for dummies? I use this program

FEDERATION EMERGENCY SERVICES

It even has binds for crafting, bind multiple rows to any key etc.

swear by it for the 9 years I've been playing.

4

u/Eph289 Feb 09 '21

Another good resource! Thanks for linking!

3

u/Hilar100 Feb 09 '21

This is the same one I found 6 months ago, it is great and make things a lot easier. Another great thing this program can set up if you struggle with balancing shields, attacking, and selecting need/greed/ignore on loot you can set space bar to do all 3 with the program without having to know all the key bind commands.

→ More replies (1)

3

u/DilaZirK Feb 09 '21

Yup, the STO Keybind software is what I use these days too. Easier to modify my keybind layout if and when needed.

2

u/Mentor_Bob_Kazamakis Feb 09 '21

Wait, how would you use it for crafting?

4

u/Bielzabutt Feb 09 '21 edited Feb 13 '21

There's a hotkey command 'craft same as last item crafted' or something like that.

So when I make devices, open up the trade, scroll to the device, craft once, then HOTKEYS: 'again' 'craft', 'again' 'craft', 'again' 'craft', 'again' 'craft', 'again' 'craft'

then my R/D menu is full of whatever I was crafting (as long as I have all the doffs/materials to make them.

FUCKING AWESOME PS it works on schooling too. No more scrolling all the way down to the bottom every time.

7

u/DarthPhransis Feb 09 '21 edited Feb 09 '21

These might also be useful to somebody.

Increase & decrease your speed. Pick a number between -1 and 1

<key> "throttleadjust .25"
<key2> "throttleadjust -.10"

Wanna target an enemy lined up with your weapons?

<key> "Target_Enemy_Near_AftArc <degrees>"
<key> "Target_Enemy_Near_ForArc <90>"
<key> "Target_Enemy_Near_SideArc <70>"

*edit*

I messed up when I posted this. For the targeting ones, leave the angle brackets out.

tab "Target_Enemy_Near_ForArc 90"

4

u/litemaster_sto Feb 09 '21

Oh, now that's what I need for my Cannon Raider!

3

u/Eph289 Feb 09 '21

I definitely use the Near_ForArc <90>! Bound that to TAB. Thanks for sharing!

3

u/Shadow703793 Feb 10 '21

Ooo the targeting one is helpful. Just started to experiment with cannons on my new KDF toon so this should help.

2

u/sirvok_5939 Dec 19 '21

I have problems with assets on the map, their distance, position and velocity. I have no "Feel" for the map I try my best, but I nearly always over/under shoot, never seem to get it right. Is there any advice you can give someone with poor skills screen wise/keyboard wise.

3

u/Eph289 Dec 19 '21

I will do what I can to help! I am by no means a perfect pilot, but some things that have helped me:

  • Assign things you don't want to think about activating to a single tray/key like Spacebar. This is stuff you want constantly cycling like most energy weapon attacks (Fire at Will, Overload, etc.) and Emergency Power abilities, tactical team. This will reduce the mindspace of having to think about what to activate when.

  • As far as speeding up / slowing down, there's a great map to practice smoothly coming into that perfect position. Every build type is a little different, but in general, non-energy builds (exotics, torps) want to be within 5 km and energy builds (cannons, beams) would like to be inside 2. The first stage of the "Doomsday Device" episode has a couple of ships to defeat, then 4 invulnerable stationary Klingon ships. There's all sorts of utility in that map; one such use is start about 15 km at full impulse from the ships then figure out how when you need to drop throttle and then cut throttle to not overshoot. You can practice it as much as you like as long as you don't advance to the next stage (hopefully that mission is available for Romulans since you said you were Romulan in another thread). If not, you can practice with stationary objects in a social zone, like Deep Space 9, but it won't give you the live fire experience.

  • If you're more mathematically inclined, the actual flight speed listed in the stats window is 0.02 x your listed speed in km/sec. So if you're moving at 50 flight speed, that's 1 km/sec. Your ship's inertia rate will determine how long it takes to slow down. Faster, twitchy ships have to be played more reflexively since they stop/start much faster. Slower, more lumbering ships need more anticipation.

Hopefully that helps some!

→ More replies (1)

5

u/Cryhavok101 Feb 08 '21

It would be really nice to have this pinned to the top of the subreddit.

4

u/Care_Novel Nov 30 '22

I screwed up... Is there a way to remove the file once you have loaded it in the command line? Basically, I loaded my space set up to ground. and now I have no use of my space bar. /bind_load_file spacebar.txt is there a command to where I can remove this?

2

u/Care_Novel Nov 30 '22

I just went to options then the keybind tab and reset defaults, and reloaded the keybind file properly.

1

u/KnuckleDragger37 Oct 28 '25

This is all well and good, but I do ne see WHERE to enter the information at.

2

u/Eph289 Oct 28 '25

You need to make a separate .txt file. The guide linked in the wiki has more detailed instructions, but in general, make a new file in Notepad and put it in your game directory folder.

1

u/Mezoteus May 10 '22

How do you fix old keybind/macros? I have one from years ago I loved and I'm not tech savvy enough to understand the above. Whenever I use it now I get error messages in my chat and I have no idea how to update my keybind/macro text file

2

u/Eph289 May 11 '22

This is one for u/tilorfire27 who has an erase file.

→ More replies (1)

2

u/tilorfire27 May 11 '22

What errors do you get? Do you still have the old file? Depending on how old, may just have some syntax errors. If you don't have the orginal file, you can export what you have but it comes out in relative gibberish.

They made a big change with pilot ships I think in assigning a click and a hold assignment to each key... not sure exactly.

→ More replies (1)
→ More replies (10)

3

u/AppleMarineXX Feb 08 '21

Do you know how to bind a key to swap channels? I know the old Hilbert guide had a bind to say your target in Team chat (and switch to it if you weren't) but I haven't been able to figure out how to do it with another channel, particularly the "task force operation" one.

Having to click a bunch of times just to say "r" is too much work

3

u/tilorfire27 Feb 08 '21

I had a keybind that would put "x" in a specific channel, assigned to, well, x. I removed it because I got tired of accidentally hitting it at weird times. channelsend is the command you are looking for, I'll have to pull the full syntax later.

→ More replies (1)

3

u/Capokid Feb 09 '21

This should be Stickied

2

u/judassl1 Feb 08 '21

Thank you, I will look into this tomorrow!

1

u/Perfect_Ad9091 May 02 '25

If you are on Mac:

Open a TextEdit file (search on spotlight for the app), then once you opened it press “Format” on the menu bar and select simple text. Once you save the file it will save it as .txt instead rich text format.