Post subject: Many n00b questions about FBA and TAS techniques. Did RTFM.
Joined: 2/6/2011
Posts: 9
Never made a TAS before, but I'd love to TAS Arcade Shinobi. I have several questions. 1. Is there a tool like FCEU's TASEditor that will work with Final Burn Alpha? 2. Any decent FBA tutorials out there? Youtube has a few, but they're very hard to get info from. 3. I'm attempting to find things like x/y speed using RAM search, but I keep getting about a dozen possible values. As in, I'll move a few pixels to the right and search for memory locations higher than before, then move a few pixels to the left and search for memory locations lower than before, and I come up with about a dozen locations that all seem to correspond to my x position. Any tips on narrowing that down? 4. Does input happen between frames, or ON a frame? For example, if FBA displays the frame counter as frame 9, and I frame-advance while holding the "jump" button, should I expect my character to be jumping on frame 10, or on frame 11 (having registered the input on frame 10). 5. If I "start recording from power-on" and press "OK", the screen goes black. Am I looking at frame 1, or is this some initial state such that I could conceivably enter input on or before frame 1? 6. Is lua scripting generally useful for FBA TASers? Any tutorials you could recommend? FWIW, I am a programmer by trade, so if that informs your recommendation, all the better. Thanks all!
Post subject: Re: Many n00b questions about FBA and TAS techniques. Did RTFM.
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
someog wrote:
3. I'm attempting to find things like x/y speed using RAM search, but I keep getting about a dozen possible values. As in, I'll move a few pixels to the right and search for memory locations higher than before, then move a few pixels to the left and search for memory locations lower than before, and I come up with about a dozen locations that all seem to correspond to my x position. Any tips on narrowing that down?
Try setting the locations to a specific value and see if your position becomes fixed.
Alyosha
He/Him
Editor, Emulator Coder, Expert player (3828)
Joined: 11/30/2014
Posts: 2834
Location: US
@someog: while I'm not an FBA expert I can at least offer some info to get you a head start: 1. No, but it's not too hard to make something of the sort in LUA where you can use a csv or similar file to edit inputs in excel, here is an example:
for next_input in io.lines("input_file.csv") do

   Input_to_game=joypad.get()

   if string.sub(next_input,1,1)=="1" then 
      Input_to_game["P1 Up"]=true
         else 
      Input_to_game["P1 Up"]=false 
   end
   .
   .
   . repeat for other inputs
   .
   .
   
   joypad.set(Input_to_game)

   emu.frameadvance()

end
The inputs are P1 Up, P1 Down, P1 Left, P1 Right, P1 Fire 1, P1 Fire 2, P1 Fire 3, Coin 1, Start 1 (for more then 1 player just replace the '1' with '2' etc.) In my attempts at TASing FBA I found this approach pretty useful. You'll just need to convert the csv to an actual input file in the end, but since you are a programmer that should be easy. Here is the movie file format in case you need it: http://tasvideos.org/EmulatorResources/Fbarr/FBM.html 6. yes LUA is implemented and useful in FBA, here is a useful site: https://code.google.com/p/fbarr/w/list Hope this helps.
Skilled player (1673)
Joined: 7/1/2013
Posts: 453
You have good taste. As creaothceann mentioned, you can set an address to a fixed value to test it. Make a cheat file named SHINOBI.INI in /SUPPORT/CHEATS and enter something to this effect cheat "Hero X Minor Location" default 0 0 "Disabled" 1 "Enabled", 0, 0x00FFC04F, 0x00 Enter all the addresses you want to test, load Final Burn Alpha, and then enable cheats one at a time (Misc-Enable cheats in the menu). A few addresses Hero X Minor Location 00FFC04F Hero X Major Location 00FFC04E Screen X Minor Location 00FFF081 Screen X Major Location 00FFF080
Joined: 2/6/2011
Posts: 9
Many thanks so far for the replies! Alyosha, I have a crude version of that up and running. Very grateful. £e Nécroyeur, 00FFC04E was among the candidate locations I had found, but after much experimentation I'd not been able to make it behave differently than 00FFC0AE or 00FFD774. How did you know that was the one? Any more Shinobi-specific knowledge to share?
Samsara
She/They
Senior Judge, Site Admin, Expert player (2241)
Joined: 11/13/2006
Posts: 2823
Location: Northern California
Since this is turning game-specific, please continue the discussion here.
TASvideos Admin and acting Senior Judge 💙 Currently unable to dedicate a lot of time to the site, taking care of family. Now infrequently posting on Bluesky
warmCabin wrote:
You shouldn't need a degree in computer science to get into this hobby.
Skilled player (1673)
Joined: 7/1/2013
Posts: 453
I used a cheat file as I recommended previously to test the addresses that the RAM Search provided. In the case of address 00FFC04E, when the cheat was enabled, the Hero could walk to the right across the screen, but when he reached the edge of the screen, he would reappear at the left edge of the screen. This indicates that it is the Hero's X major location.
Joined: 2/6/2011
Posts: 9
Much obliged!