Fightcade Lua Hotkey [top]

Lua hotkeys in (specifically for the FinalBurn Neo engine) allow you to trigger training mode menus, toggle hitboxes, and control dummy recordings without opening the emulator's menu 1. Configure the "Lua Hotkey" in Input Mapping

Before a script can use a custom hotkey, you must map it to your controller or keyboard. : Launch your game in Fightcade via the Game > Map game inputs : Scroll down to the bottom of the list to find Lua Hotkey 1 Lua Hotkey 2 Lua Hotkey 3

: Click the entry and press the button on your controller (e.g., Select, L3, or R3) or keyboard that you want to use. 2. Common Hotkeys by Script Type

Different Lua scripts use these hotkeys for various functions: Script / Tool Primary Hotkey Secondary Hotkey / Function Training Modes Lua Hotkey 1 : Open/Close Menu P1/P2 Start : Often opens menus in older scripts. Spectator Script : Cycle scrolling inputs : Toggle hitboxes. Vampire Savior Lua Hotkey 1 : Open Menu : Swap control to dummy during match. General FBNeo Volume Up/Down : Used by some scripts for Record/Playback. : Often used to return to Character Select. 3. Loading Scripts with Hotkey Support To ensure hotkeys work, the script must be active:

To set up and use Lua hotkeys in Fightcade (specifically the FBNeo emulator), you need to map them within the emulator's input settings after loading your script. These hotkeys are commonly used in training mode scripts to open menus, reset positions, or record/play back inputs. 1. Enable and Load your Lua Script

Before you can use script-specific hotkeys, the script must be active:

Place the Script: Put your .lua files in the emulator/fbneo/lua folder within your Fightcade directory.

Test Game: Launch your desired game using the Test Game button in Fightcade.

Run Script: Navigate to Game > Lua Scripting > New Lua Script Window in the emulator menu, browse for your file, and click Run. 2. Map the Lua Hotkeys

Lua scripts in FBNeo utilize specific "Lua Hotkey" slots that you must manually bind to your keyboard or controller:

Open Mapping Menu: Press F5 or go to Input > Map game inputs while the game is running.

Locate Hotkeys: Scroll down to find Lua Hotkey 1 through Lua Hotkey 10.

Assign Keys: Double-click the hotkey slot and press the button on your controller or keyboard you wish to use.

Lua Hotkey 1: Usually opens the script's main training menu.

Lua Hotkey 4: Often used in many scripts to return to the Character Selection Screen (CSS). 3. Common Training Mode Hotkeys

Depending on the specific training script (like those for 3rd Strike or Vampire Savior), the following functions are often mapped to standard emulator inputs rather than dedicated Lua hotkey slots: fightcade lua hotkey

Record/Playback: Often mapped to Volume Up (Record) and Volume Down (Playback) in the "Map game inputs" menu.

P2 Dummy Control: Tapping Coin while in a match may swap controls to the dummy.

Menu Shortcuts: Some scripts use Shift + Enter or specific F-keys (like F7 for player switching) by default. 💡 Quick Troubleshooting

Script Not Responding: Ensure you are in 2-player mode (press Coin and Start for both players) as most training scripts require P2 to be active to function properly.

Visuals Missing: If the script runs but you see no text or hitboxes, try changing your video settings to DirectX9 Alt blitter.

Auto-Launch: You can bypass the manual loading by creating a Windows shortcut with the --lua flag followed by the script path.

If you tell me which specific game or training script you are trying to use, I can give you the exact hotkey list for that module.

In Fightcade (specifically the FBNeo emulator), Lua hotkeys are specialized inputs used to trigger features within external scripts, most commonly for training mode mods like those by Grouflon or NBeing. Mapping Lua Hotkeys

To use these hotkeys, you must first bind them in the emulator's input configuration: Launch a Game: Open any game via "Test Game."

Open Input Mapping: Press F5 to bring up the Map Game Inputs window.

Locate Hotkeys: Scroll to the bottom of the list to find Lua Hotkey 1 through Lua Hotkey 5.

Bind Keys: Double-click a hotkey and press the button on your controller or keyboard you wish to assign to it. Common Lua Hotkey Uses

Functions vary by script, but standard conventions in popular training mods include:

Lua Hotkey 1: Usually opens the Training Menu or OSD (On-Screen Display). Lua Hotkey 2: Often toggles input displays or hitboxes.

Alt + 1–5: Some scripts use Alt combinations as default hardcoded hotkeys for recording and playback. Lua hotkeys in (specifically for the FinalBurn Neo

System Controls: Standard emulator shortcuts like F5 (Map Inputs) or F6 (Save State) often work alongside Lua scripts to manage your practice session. Loading a Lua Script If you haven't loaded your script yet, follow these steps:

Go to the top menu and select Game > Lua Scripting > New Lua Script Window.

Click Browse, select your .lua file (e.g., 3rd_training.lua), and click Run.

The hotkeys you mapped in the F5 menu will now trigger the script's specific functions. Advanced: Creating a Direct Shortcut

You can bypass the menus by creating a Windows shortcut that automatically loads the game and the Lua script simultaneously:

, Lua hotkeys are specialized input mappings used primarily by custom training mode scripts (like those for Street Fighter III: 3rd Strike Vampire Savior

) to trigger features such as menu overlays, health refills, or frame data displays. Unlike standard game controls (punch, kick), these hotkeys are specific to the FBNeo emulator's Lua engine. 1. Mapping Lua Hotkeys

To use functions within a training script, you must first bind the "Lua Hotkeys" in your emulator settings: Open Input Mapping : While in a game, press to open the Map Game Inputs Locate Lua Binds : Scroll to the bottom of the list to find entries labeled Lua Hotkey 1 Lua Hotkey 2 Assign Keys

: Double-click a hotkey and press the physical button on your controller or keyboard you wish to use. Note: Most scripts use Lua Hotkey 1 to toggle the main training menu. 2. Loading the Lua Script Hotkeys only function if a corresponding script is active: Launch a Game : Use the "Test Game" button in a lobby to open FBNeo. Open Script Window : Navigate to Game > Lua Scripting > New Lua Script Window Run Script , select your file (e.g., 3rd_training.lua ), and click 3. Common Script Commands

While specific to each script, standard training mode hotkeys often include: Lua Hotkey 1 : Open/Close the training menu.

: Often repurposed by scripts to reset positions or swap control to the dummy. Volume Up/Down : Frequently used for functions in trial scripts. 4. Advanced: Auto-Loading with Shortcuts

You can bypass the manual menu selection by creating a Windows shortcut that automatically loads the Lua script and its hotkeys upon launch: Shortcut Target

C:\path\to\fcadefbneo.exe [romname] --lua "C:\path\to\script.lua"

This allows you to launch straight into a practice environment with your hotkeys ready.

For specific game resources, many players recommend checking the #resources channel in the respective game's Fightcade Discord for the most up-to-date training scripts. for a specific game? function input_frame() local current_keys = input

In the context of FightCade (which uses a modified version of the FinalBurn Alpha emulator), a "Lua hotkey" usually refers to a script that automates inputs, creates training modes for games that lack them, or manages save states for practicing combos.

Since "interesting piece" sounds like you might be looking for a code snippet to learn from or a specific functionality, here is a comprehensive breakdown of how to set up a hotkey system in FightCade's Lua environment.

Putting It All Together: A Production-Ready Template

Here’s a complete input.lua you can adapt. It supports multiple hotkeys, per-key state tracking, and automatic macro cancellation.

-- Fightcade Advanced Hotkey System
local active_macro = nil
local macro_frame = 0
local last_keys = {}

local macros = ["u"] = -- Shinkuu Hadoken trigger = "u", sequence = "down", "downright", "right", "down", "downright", "right", "punch1" , frame_duration = 2 -- each step lasts 2 frames , ["i"] = -- Quick double tap forward (dash) trigger = "i", sequence = "right", "right" , frame_duration = 1

function input_frame() local current_keys = input.get_keys()

-- Start new macros on rising edge
for id, macro in pairs(macros) do
    if current_keys[macro.trigger] and not last_keys[macro.trigger] then
        active_macro =  
            macro = macro, 
            step = 1, 
            frame_in_step = 0,
            trigger_key = macro.trigger
end
end
-- Update active macro
if active_macro then
    -- Cancel if trigger key released
    if not current_keys[active_macro.trigger_key] then
        active_macro = nil
    else
        active_macro.frame_in_step = active_macro.frame_in_step + 1
        if active_macro.frame_in_step >= active_macro.macro.frame_duration then
            active_macro.frame_in_step = 0
            active_macro.step = active_macro.step + 1
        end
if active_macro.step > #active_macro.macro.sequence then
            active_macro = nil
        else
            local btn = active_macro.macro.sequence[active_macro.step]
            input.set(btn, true)
        end
    end
end
last_keys = current_keys

end

To install, drop this into your game’s config/input.lua, edit the macros table, and restart Fightcade. Your hotkeys will be live immediately.

4) Polling inputs manually (fallback)

function frame()
  local joy = input.get()
  if joy["P1 Start"] then
    if not last_start then
      on_hotkey()
    end
    last_start = true
  else
    last_start = false
  end
end
emu.registerframecallback(frame)

1. Executive Summary

Fightcade, the premier platform for playing classic arcade fighting games online via emulation (FinalBurn Neo and Sega Dreamcast), includes a built‑in Lua scripting engine. This engine allows users to create custom scripts that extend functionality beyond basic emulation. One of the most practical applications of this feature is the creation of Lua hotkeys—keyboard or controller shortcuts that trigger specific actions, automate repetitive inputs, or display real‑time information.

This report explains what Fightcade Lua hotkeys are, how they are implemented, common use cases, limitations, and security considerations.


Part 8: Troubleshooting Common Lua Hotkey Issues

My hotkey does nothing

The emulator crashes when I press the hotkey

Hotkey works once then stops

I want multiple scripts to run together