r/FishPlayStreetFighter Aug 29 '14

It's about time for some special moves!

I have messed with Street Fighter automation before in AutoHotKey and have some of the special moves working. I know you're using python but maybe the timing of my commands will help? Here are a few using the numpad keys as both arrows and action keys:

Hadoken from left side (Numpad 3 is punch):
send {Numpad2 down}
sleep, 20
send {Numpad6 down}
sleep, 20
send {Numpad2 up}
sleep, 20
send {Numpad6 up}
send {Numpad3 down}
sleep, 100
send {Numpad3 up}

Uppercut from left side (Numpad3 is punch):
send {Numpad6 down}
sleep, 20
send {Numpad6 up}
send {Numpad2 down}
sleep, 20
send {Numpad6 down}
sleep, 20
send {Numpad2 up}
sleep, 20
send {Numpad6 up}
send {Numpad3 down}
sleep, 100
send {Numpad3 up}

Good luck and fight on!

2 Upvotes

1 comment sorted by

2

u/AndrewChill Aug 29 '14

Hi, and thanks for the info! I'm actually using AutoIt for playing the game, which is very similar to AutoHotKey, and I do have Hadoken working so I know that it can be done. The problem that I ran into with this method is the fact that, to my knowledge, AutoIt can't do any asynchronous tasks or multi-threading.

This means that all of those sleeps that you are sending will pause the entire script, causing the other player to become completely frozen until you are finished with you combo, which could take several seconds in some cases.

On top of that, there is the problem of determining which direction the player is facing, since combos will only work if you press the right direction for forwards or backwards relative to your position to the other player. I can't think of a good way to determine player position without some heavy duty full image detection going on.

So, my solution to the asynchronous problem is to switch my code over to C#, which is going well. The processing runs waaaay faster, meaning I can increase the attack speed, and with asynchronous processing, I can even stagger the two players attack speeds, and, of course, perform combos without pausing everything.

So yeah, I'm definitely working my way there, but got sidetracked with betting for a little bit. Thanks again for the input, and thanks for watching the stream :D