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
Start small: bind F1 to save state and F2 to load state. Then add a position reset. Soon you’ll be frame-stepping through infinites and sharing your own Lua hotkey pack with the community. fightcade lua hotkey
To use these hotkeys, you must first map them within the emulator's input settings: Launch a Game : In Fightcade, click on any title to open the FBNeo window. Open Input Mapping Input > Map Game Inputs Assign Keys : Scroll down to the bottom of the list to find Lua Hotkey 1 Lua Hotkey 8 . Bind these to your keyboard or controller buttons. Run Your Script Game > Lua Scripting > New Lua Script Window , browse for your file (e.g., a training mode script), and click Common Uses in Training Scripts Many popular training scripts, such as those for Street Fighter III: 3rd Strike Vampire Savior , utilize these hotkeys for specific shortcuts: Lua Hotkey 1 : Usually opens or closes the training mode menu. Lua Hotkey 4 : Often used as a shortcut to return to the Character Select Screen (CSS) Alternative Shortcuts To set up and use Lua hotkeys in
| Problem | Likely Fix | | :--- | :--- | | Script won’t load | Check the file extension ( .lua , not .txt ). Use Fightcade’s System > Lua Scripting > Run Script . | | Hotkey does nothing | Verify the key code. Use print(input.get_key_state(0x13)) to see if Fightcade detects your key. | | Game crashes when script runs | You attempted to read an invalid memory address. Double-check your peek/poke addresses. | | Hotkey triggers multiple times | Add a debounce flag (the hotkey_pressed pattern shown earlier). | | Script works in FBNeo standalone but not Fightcade | Some functions (like emu.pause() ) are disabled in Fightcade’s network play to prevent desyncs. Use save/load states instead. | Run emu
Paste the path to your emulator followed by the --lua flag and script path:
function on_hotkey() hotkey_pressed = not hotkey_pressed if hotkey_pressed then -- code for ON state else -- code for OFF state end end
emu.print("Script loaded") at the top of your script. Check Fightcade console (View → Console).Click , select your .lua file (e.g., 3rd_training.lua ), and click Run .