Post subject: Keeping inputs when going into RECmode in tastudio
Editor, Player, Reviewer (200)
Joined: 4/2/2019
Posts: 19
Location: Italy
I tried looking up if this question was made but i didnt find anything, maybe the answer is obvius in tastudio but honestly some options are still vague to me, so i felt like asking Basically i was wondering if i could write inputs in TAStudio, THEN go in recording mode (to test some things with controller), while keeping certain inputs i already gave (like only the sequences of X for example)
RetroEdit
Any
Editor, Player, Reviewer (164)
Joined: 8/8/2019
Posts: 131
To the best of my knowledge, this isn't currently possible. However, you can replicate the behavior through Lua scripts pretty easily.
Language: lua

use_from_movie = {'B', 'Left', 'Right', 'Up', 'Down'} while true do old_inputs = movie.getinput(emu.framecount()) filtered_inputs = {} for k, button in pairs(use_from_movie) do filtered_inputs[button] = old_inputs[button] end joypad.set(filtered_inputs) emu.frameadvance() end
use_from_movie is a table of inputs I want to be taken from the movie. In my example code, I choose for directional inputs and the 'B' button to be taken from the movie. That means the emulator will essentially ignore any of my inputs that are directional keys or the 'B' button, and always press those when the original movie had them pressed. You can save that script to a file with a .lua file extension and drag it into BizHawk. That first line of code can be modified to your specific situation. You can see a list of buttons for your current emulated system by entering joypad.get() into the Lua console.
Editor, Player, Reviewer (200)
Joined: 4/2/2019
Posts: 19
Location: Italy
Thanks a lot! This will be pretty handy in some situations.