Editing Hotkeys

 

Basic Points of Making a Hotkey

Path: Fleet Operations/Data/Input.map

All hotkeys for any user interface function in the game can be found in the Input.map file. So long as you do not alter the hotkey in the ODF, changing hotkeys in Input.map will not affect multiplayer compatibility.

Each section is labeled appropriately and it is relatively simple to determine which areas of the Input.map file contain references to the type of hotkey you would like to input.

The very first section lists what each control key on your keyboard corresponds to in the ODF hotkeylabel entries and the rest of the Input.map file:

##########################################
#
# STAR TREK Input Map
#
# Modify these to update the keyboard and
# mouse configuration.
#
##########################################

####################
# Key Descriptions #
####################

For instance:

# Control Key // Indicates the key you press. "#" indicates a comment for these type of files
control {
    + keyboard    Control // Indicates what the game uses to reference that key when making hotkeys. "+" indicates use, "-" indicates disuse
} // The bracket closes the hotkey entry

Note that there must always be four hotkeys listed for a single bracketed reference, even if three are not used (as can be indicated by the minus character).

To remove an existing hotkey from the Input.map file, simply delete (or comment out, using "#") the entry.

Unit / Ability / Build Hotkeys

When you create a new hotkey for building a unit, or for a unit (vessel, station, research) or an ability, you will need to add it under this entry:

#########################################
#########################################
######  Fleet Operations Inputmaps  #####
#########################################
#########################################

Each reference may be one of two types:

bc_ // Build Control: used to assign a hotkey to a ship / station / research
wc_ // Weapon Control: used to assign a hotkey to a special weapon / ability

To give a particular unit a hotkey(s), the unit's ODF name must first be specified (no .odf extension required):

bc_intrepid { // This is a build control hotkey for the Intrepid
    + keyboard C // Pressing "C" is part of the hotkey.
    - keyboard Shift // Not used
    + keyboard Control // Pressing "Control" is part of the hotkey.
    - keyboard Alt // Not used
}

To activate the hotkey to build this unit, "Control" and "C" on your keyboard must thus be pressed at the same time.

Generally in Fleet Ops, F1-F12 are used to access the build station hotkeys from a constructor, while the keyboard letters are used to build or research from a yard or station (as well as access some special weapons). These hotkeys almost always consist of a single command.

Adding a Hotkey to the In-Game Tooltip

Note that while the unit does not require a hotkey to be shown in the tooltip in order to be used (so long as it is present in Input.map), it is nicer if it is referenced in the unit's tooltip as well.

The proper ODF line, hotkeylabel = "GAME-HOTKEY-{the actual hotkey}", can be found in the Ship ODF Template. To make a hotkey not show up on a unit tooltip, simply remove (or comment out) the line, "hotkeylabel," from the unit ODF.