Post subject: Keyboard Macro TASes
Editor, Expert player (2364)
Joined: 5/15/2007
Posts: 3940
Location: Germany
Since everyone is probably ignoring the other topic I made, I'm going to make this one with a more significant title. To get to the point: I'm working on a keyboard macro that completes a Windows shareware game. I have not heard about anyone who has done this before so any ideas/thoughts? I feel like the game I'm trying to run is simple enough that desyncs are rare. The problem is that playback may not be completely consistent - as in, you have to insert some leeway sleep time for the game to execute a keystroke. I'm using Autohotkey (AHK). In this image you can see, I'm giving the game 20 ms to start level 1, and from there I do something every 2 ms. Do you think this could be something worth of publishing to TASvideos? After all, the game is being played back with keystrokes. (Probably I should mention I'm emulating the Windows XP in Virtualbox because I have no other means of running the game.)
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
Macro-based TASes have been known for a while in Quake and Half-Life speedrunning communities. I wouldn't get my hopes up on publishing if I were you. It's a logistical headache to judge/verify (you need an emulator, fresh system image installed, AHK setup, and the game itself), not exactly trivial to standardize, and is guaranteed to be suboptimal due to lack of easy rewind and frame advance (besides the forced pauses for sync stability). I think your only solid option is to use Hourglass inside Virtualbox and hope it works.
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Editor, Active player (476)
Joined: 5/23/2006
Posts: 361
Location: Washington, United States
I did something like this a long time ago for DROD (2005 remake edition) and also Beret, a friend's indie game. I used Java.awt.robot for the input since that was the easiest way to hack something together. I got through the first level in each game before quitting. I'll admit my approach may not have been the best but I remember running into lots of issues. It was indeed a huge challenge to get playback to consistently sync (DROD was better here because it buffers input) and creating the movie got tedious really fast - there's no visual feedback on what you're doing (you have to guess what keystrokes to put in) and you waste a lot of time replaying the movie checking and fixing sync issues. The end product was satisfying but it sure was a headache putting it together. If nothing else I'd want to avoid subjecting anyone else to the same. Things might be better with a more standardized toolchain but it's hard to completely solve all of these issues without just going the emulator route.
Editor, Expert player (2364)
Joined: 5/15/2007
Posts: 3940
Location: Germany
Anerag is attempting to "TAS" Might & Magic 6 https://www.twitch.tv/anerag