Ryukenden

MacroLua tutorial

Aug 3rd, 2024 (edited)
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | Gaming | 0 0
  1. This is a supplementary tutorial for a preset FBA-RR emulator with MacroLua, which you can download here: https://mega.nz/file/XcgyBaRT#5krysPuTgLNh5wUSN4IJghiS78NS5yBk1XUpDKAK8Os
  2.  
  3. FBA-RR and MacroLua normally require configuration when downloaded from their official pages.
  4. https://code.google.com/archive/p/fbarr/downloads
  5. https://code.google.com/archive/p/macrolua/downloads
  6.  
  7. ————————————
  8. Introduction
  9. ————————————
  10.  
  11. MacroLua is a tool for scripting player inputs with perfect frame accuracy. It's used for creating hard playthroughs, elaborate combos in fighting games, and researching games.
  12.  
  13. ———————————————————
  14. How to run MacroLua
  15. ———————————————————
  16.  
  17. Open FBA-RR emulator.
  18. Go to Game>Lua Scripting>New Lua Script Window.
  19. Click Browse.
  20. Open macro.lua file (located in the MacroLua folder).
  21. Click Run.
  22.  
  23. ————————————————
  24. MacroLua hotkeys
  25. ————————————————
  26.  
  27. Q - Play script.
  28. W - Record inputs. A .mis script will be created in the MacroLua folder when you stop recording (by pressing the W key again).
  29. T - Toggle input display on/off.
  30.  
  31. —————————————————
  32. MacroLua commands
  33. —————————————————
  34.  
  35. The commands below represent player inputs. Type them in the Inputs.mis file to execute them in the game.
  36.  
  37. L = Left
  38. R = Right
  39. U = Up
  40. D = Down
  41. 1 = Light Punch
  42. 2 = Medium Punch
  43. 3 = Heavy Punch
  44. 4 = Light Kick
  45. 5 = Medium Kick
  46. 6 = Heavy Kick
  47.  
  48. Example: 14 = Press Light Punch (1) and Light Kick (4) at the same time.
  49.  
  50. . = Wait 1 frame.
  51. Example: ... = Wait 3 frames.
  52.  
  53. Wx = Wait x number of frames.
  54. Example: W10 = Wait 10 frames.
  55.  
  56. _x = Hold x input.
  57. Example: _1 = Hold Light Punch (1).
  58.  
  59. ^x = Release the held x input.
  60. Example: _1_4..^4 = Hold Light Punch (1) and Light Kick (4), wait 2 frames, then stop holding Light Kick (4) only.
  61.  
  62. * = Release all held inputs.
  63. Example: _1_4..* = Hold Light Punch (1) and Light Kick (4), wait 2 frames, then stop holding both inputs.
  64.  
  65. ()x = Repeat commands written inside parentheses x number of times.
  66. Example: (U.D.)3 = Press Up, Down 3 times.
  67.  
  68. # = Text after # on the same line is ignored. Use this to type notes without executing any commands as a consequence or to disable a part of the script instead of deleting commands.
  69.  
  70. ! = All text after ! is ignored. Use this to add notes at the end of the script or to store commands that you might use later.
  71.  
  72. For an input to be recognized, there must be at least 1 frame of waiting after it. For example, for Heavy Punch to come out, you must type "3." or "3W1", not just "3" without any wait command.
  73.  
  74. Comma, space, and new line don't do anything, so you can use them for script readability.
  75.  
  76. ————————————————————
  77. Macro script example
  78. ————————————————————
  79.  
  80. R.D.DR1,W48,R.D5.DR1.
  81.  
  82. This is Ken's Light Punch Shoryuken, Light Punch Shoryuken mid-screen combo in Street Fighter III: 3rd Strike. Crouching Medium Kick is canceled into Shoryuken on its second frame so that Ken gains forward momentum for his second Shoryuken.
  83.  
  84. Copy the above text into Inputs.mis file, save the file, place Ken next to Ryu, and press the Q key to play the script.
  85.  
  86. ———————————————
  87. Inputs.mis file
  88. ———————————————
  89.  
  90. Inputs.mis file is pre-edited for simultaneous two-player control. It looks like this:
  91.  
  92. &1
  93. < # Player 1
  94.  
  95.  
  96. / # Player 2
  97.  
  98.  
  99. >
  100.  
  101. Player 1 inputs go under the Player 1 line, Player 2 inputs go under the Player 2 line.
  102.  
  103. For elaborate scripts to produce a desired result in the game, you often need to repeatedly play them from the same save state, and then re-edit them.
  104.  
  105. The script is played from save state slot 1 by default. If there's no save state in slot 1, the script will be played from the current frame. To play a script from a different save state, change the number after & accordingly. For example, &7 plays the script from save state slot 7.
  106.  
  107. —————————————————————————
  108. Useful emulator shortcuts
  109. —————————————————————————
  110.  
  111. Tab = Fast forward.
  112. Pause = Pause the game.
  113. \ = Advance 1 frame.
  114. Shift+F1–F10 = Save state to slot 1–10.
  115. F1–F10 = Load state from slot 1–10.
  116. F2 = Service mode.
  117. F3 = Restart game.
  118. Ctrl+L = Open Lua Script window.
  119. Ctrl+C = Open cheats menu.
  120.  
  121. F2 and F3 are configured twice by default, so you should re-configure them via Inputs>Map game inputs.
Add Comment
Please, Sign In to add comment